JPH04360469A - Adaptive scan coding circuit - Google Patents

Adaptive scan coding circuit

Info

Publication number
JPH04360469A
JPH04360469A JP3136654A JP13665491A JPH04360469A JP H04360469 A JPH04360469 A JP H04360469A JP 3136654 A JP3136654 A JP 3136654A JP 13665491 A JP13665491 A JP 13665491A JP H04360469 A JPH04360469 A JP H04360469A
Authority
JP
Japan
Prior art keywords
encoding
information
scan
circuit
image information
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
JP3136654A
Other languages
Japanese (ja)
Inventor
Kazuya Ogawa
和也 小川
Kazuhiko Kondo
和彦 近藤
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP3136654A priority Critical patent/JPH04360469A/en
Publication of JPH04360469A publication Critical patent/JPH04360469A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain most effective compression coding in response to a picture when a coding coefficient subjected to orthogonal transformation is coded in the coding and decoding employing both the orthogonal transformation and the entropy coding. CONSTITUTION:A discrete cosine transformation circuit 2 applies discrete cosine transformation to picture information in response to the frequency component and 1st, 2nd, 3rd scan circuits 3, 4, 5 with different scan sequence are used to rearrange the result into plural linear picture information sets and 1st, 2nd, 3rd coding circuits 6, 7, 8 connecting respectively to them encode the result. The coded picture information is given to 1st, 2nd, 3rd data length counter circuits 10, 11, 12, from which code quantity is counted and the least value is detected by a comparator circuit 13 from the result of count and the result of detection is outputted. Then the picture information in response to the result of detection is selected by a selection circuit 9 and selected picture information and scan information are outputted mutiplexedly from a multiplexer circuit 14.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、画像の高能率符号化に
係り、直交変換とエントロピー符号化を合わせて用いる
複合符号化回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to highly efficient encoding of images, and relates to a composite encoding circuit that uses orthogonal transformation and entropy encoding together.

【0002】0002

【従来の技術】画像情報を高効率で符号化して圧縮する
ものに、直交変換の一つである離散コサイン変換(DC
T)と、エントロピー符号化の一つであるハフマン符号
化を組合わせて用いる複合符号化がある(例えば、テレ
ビジョン学会発行「テレビジョン学会誌」1989年 
Vol.43,No.10 の記事「静止画像の符号化
方式」第1145頁乃至第1155頁や、テレビジョン
学会発行「画像符号化アルゴリズムII」1990年 
Vol.44,No.2の記事「静止画像の符号化方式
」第153頁乃至第161頁参照)。
[Prior Art] Discrete cosine transform (DC), which is one of orthogonal transforms, is used to encode and compress image information with high efficiency.
There is a composite encoding that uses a combination of Huffman encoding, which is a type of entropy encoding (for example, "Television Society Journal" published by the Television Society of Japan, 1989).
Vol. 43, No. 10, ``Still Image Coding Method,'' pages 1145 to 1155, and ``Image Coding Algorithm II,'' published by the Television Society of Japan, 1990.
Vol. 44, No. (See article 2, “Still Image Coding Method,” pages 153 to 161).

【0003】この離散コサイン変換とハフマン符号化と
の複合符号化を用いた場合の全体としての情報圧縮率は
、離散コサイン変換後の符号化係数を如何に効率よく符
号化するかに依存する。即ち、離散コサイン変換はただ
単に2次元の情報である画像情報を、縦方向と横方向そ
れぞれについて周波数成分が異なる複数のコサイン関数
で表わし、各周波数成分のレベルを周波数順に配置しな
おして符号化係数として出力するだけのものでありそれ
自体に情報圧縮はない。従って、全体の情報圧縮率は、
離散コサイン変換で得られる周波数成分毎の符号化係数
を、如何に符号化するかで決められる。
[0003] The overall information compression rate when using this composite coding of discrete cosine transform and Huffman coding depends on how efficiently the coding coefficients after the discrete cosine transform are coded. In other words, discrete cosine transformation simply represents image information, which is two-dimensional information, with multiple cosine functions with different frequency components in the vertical and horizontal directions, and rearranges the levels of each frequency component in frequency order and encodes it. It is only output as a coefficient, and there is no information compression itself. Therefore, the overall information compression rate is
It is determined by how the coding coefficients for each frequency component obtained by discrete cosine transform are coded.

【0004】一般的には、離散コサイン変換から出力さ
れた符号化係数に対して、符号化前の線形量子化と次元
変換の段階で符号化全体の圧縮率向上が図られている。 以下にその手順を説明する。
[0004] Generally, the compression rate of the entire encoding is improved at the stage of linear quantization and dimensional transformation before encoding for the encoding coefficients output from the discrete cosine transform. The procedure will be explained below.

【0005】線形量子化は、所定の数値が配置されたテ
ーブル(量子化係数テーブル)を用いて符号化係数を除
算して量子化するもので、量子化係数テーブルの値の設
定により希望する圧縮率を得ることができる。また、離
散コサイン変換から出力される符号化係数は、周波数成
分順に配置(画像の単調な変化を示す低周波成分が左も
しくは上方向、画像の細かい変化を示す高周波成分が右
もしくは下方向)されるため、この特性を利用して右下
方向に配置された人の視覚特性上認識しづらいとされる
高周波成分を除去することでより圧縮率を向上させるこ
とができる。
[0005] Linear quantization is quantization by dividing the coding coefficient using a table (quantization coefficient table) in which predetermined numerical values are arranged, and the desired compression is achieved by setting the values of the quantization coefficient table. You can get the rate. In addition, the coding coefficients output from the discrete cosine transform are arranged in the order of their frequency components (low frequency components, which indicate monotonous changes in the image, are to the left or above, and high frequency components, which indicate fine changes in the image, are to the right or below). Therefore, the compression ratio can be further improved by utilizing this characteristic to remove high frequency components that are difficult to recognize due to the visual characteristics of a person placed in the lower right direction.

【0006】線形量子化により情報圧縮された画像情報
は、符号化のため1次元の符号化係数へ並べ替えられる
。2次元から1次元への並べ替えは、図2に示すように
2次元の符号化係数を左上から右下へジグザグ状にスキ
ャンするジグザグスキャンが一般的に多く用いられてい
る。このジグザグスキャンは、2次元で表現された符号
化係数を、図2に示すように右上と左下を結ぶ線に沿っ
て、左上方向から順に右下方向へ隣合う係数を順次スキ
ャンし、1次元の符号化係数に並べかえるものである。 ジグザグ状にスキャンすることで、前述の線形量子化に
よる高周波成分の圧縮時など、例えば2次元符号化係数
中の右下方向に0が集中して存在するような場合に、0
が続く数(0ランレングス)を特定の符号に置き換え、
情報量のより一層の圧縮ができる。
Image information compressed by linear quantization is rearranged into one-dimensional coding coefficients for encoding. For rearrangement from two-dimensional to one-dimensional, zigzag scanning, in which two-dimensional coding coefficients are scanned in a zigzag pattern from the upper left to the lower right, as shown in FIG. 2, is generally used. This zigzag scan scans the coding coefficients expressed in two dimensions sequentially from the upper left direction to the lower right direction along the line connecting the upper right and lower left as shown in Figure 2. This is to rearrange the encoding coefficients. By scanning in a zigzag pattern, when 0s are concentrated in the lower right direction of the two-dimensional encoded coefficients, for example, when compressing high frequency components by linear quantization,
Replace the number followed by (0 run length) with a specific sign,
The amount of information can be further compressed.

【0007】ジグザグスキャンによって2次元から1次
元へ並べ替えられた符号化係数は、ハフマン符号化によ
り符号化が行われる。ハフマン符号化は、1次元の符号
化係数に対し、発生頻度の高い係数値から順に短いビッ
ト列からなる符号に置き換え、発生頻度が低い係数値ほ
ど長いビット列からなる符号に置き換える。つまり、ハ
フマン符号化は頻繁に発生する情報ほど短い符号で示し
て、情報量の圧縮を行う符号化である。
[0007] The encoding coefficients rearranged from two dimensions to one dimension by zigzag scanning are encoded by Huffman encoding. In Huffman encoding, one-dimensional coding coefficients are replaced with codes consisting of shorter bit strings in descending order of frequency of occurrence, and coefficient values with lower frequency of occurrence are replaced with codes consisting of longer bit strings. In other words, Huffman encoding is encoding that compresses the amount of information by indicating the information that occurs more frequently with a shorter code.

【0008】[0008]

【発明が解決しようとする課題】上記の複合符号化を用
いて画像情報の圧縮符号化を行う場合、その圧縮効率は
圧縮符号化対象となる画像が単調な画像であったり、高
周波成分に対する圧縮が許される画像である時など、2
次元の符号化係数の中の右下方向に同じビットデータ(
0か1)が多く存在する場合に高い圧縮率を得ることが
できる。即ち、圧縮効率は2次元符号化係数に対するジ
グザグスキャンで発生するランレングスが大きい程、そ
の効率が高くなる。
[Problems to be Solved by the Invention] When compressing and encoding image information using the above-mentioned composite encoding, the compression efficiency is limited when the image to be compressed and encoded is a monotonous image, or when high-frequency components are compressed. 2 is an acceptable image, etc.
The same bit data (
A high compression ratio can be obtained when there are many 0 or 1). That is, the compression efficiency increases as the run length generated by zigzag scan for two-dimensional encoded coefficients increases.

【0009】しかしながら、2次元符号化係数の中に右
上と左下を結ぶ直線の方向に連続した0が少ない画像、
例えば画質の劣化が許されず線形量子化時の高周波成分
への圧縮が不可能で符号化係数に高周波成分が残る画像
や、図4(1)、図5(1)に示す画像のような離散コ
サイン変換時の符号化係数(図4(1)に対しては図4
(2)、図5(1)に対しては図5(2))が、水平も
しくは垂直方向に集中して発生するような画像では、右
上と左下を結ぶ直線方向にジグザグスキャンした所で大
きなランレングスの発生は少なく、情報の圧縮効果を得
ることはできない。
[0009] However, images with few consecutive 0s in the direction of the straight line connecting the upper right and lower left in the two-dimensional coding coefficients,
For example, images that cannot be compressed into high-frequency components during linear quantization because deterioration in image quality is not allowed and high-frequency components remain in the coding coefficients, or discrete images such as those shown in Figure 4 (1) and Figure 5 (1) Coding coefficients during cosine transformation (see Fig. 4 for (1) in Fig. 4)
(2), Fig. 5 (2)) with respect to Fig. 5 (1) shows that in images where the occurrences are concentrated in the horizontal or vertical direction, a large zigzag scan in the straight line connecting the upper right and lower left The occurrence of run lengths is small, and the effect of compressing information cannot be obtained.

【0010】本発明は、斯様な点に鑑みて為されたもの
で、画像に応じて最も効果的に圧縮符号化できる適応ス
キャン符号化回路を提供するものである。
The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide an adaptive scan encoding circuit that can perform compression encoding most effectively depending on the image.

【0011】[0011]

【課題を解決するための手段】本発明は、画像情報を周
波数成分に応じて直交変換する直交変換手段と、該直交
変換手段で変換された画像情報を異なる複数の取り出し
順でスキャンして1次元画像情報としその取り出し順の
スキャン情報と共に複数出力するスキャン手段と、該ス
キャン手段から出力された複数の1次元画像情報のうち
、符号化した時に情報量が最少となる1次元画像情報を
符号化した状態で前記スキャン情報と共に出力する画像
符号化手段とを備えるものである。
[Means for Solving the Problems] The present invention provides orthogonal transformation means for orthogonally transforming image information according to frequency components, and an apparatus for scanning image information transformed by the orthogonal transformation means in a plurality of different extraction orders. A scanning means for outputting a plurality of dimensional image information together with scan information in the order in which it is taken out, and encoding one-dimensional image information that has the least amount of information when encoded among the plurality of one-dimensional image information output from the scanning means. and an image encoding means for outputting the scan information together with the scan information.

【0012】0012

【作用】直交変換手段は、画像情報を周波数成分に応じ
て直交変換し、スキャン手段は、該直交変換手段で変換
された画像情報を異なる複数の取り出し順でスキャンし
て1次元画像情報としその取り出し順のスキャン情報と
共に複数出力し、画像符号化手段は、該スキャン手段か
ら出力された複数の1次元画像情報のうち、符号化した
時に情報量が最少となる1次元画像情報を符号化した状
態で前記スキャン情報と共に出力する。
[Operation] The orthogonal transformation means orthogonally transforms the image information according to the frequency components, and the scanning means scans the image information transformed by the orthogonal transformation means in a plurality of different extraction orders to convert it into one-dimensional image information. The image encoding means encodes the one-dimensional image information that has the least amount of information when encoded among the plurality of one-dimensional image information outputted from the scanning means. The scan information is output together with the scan information.

【0013】[0013]

【実施例】本発明の一実施例に係る適応スキャン符号化
回路として、直交変換の一つである離散コサイン変換と
エントロピー符号化の一つであるハフマン符号化を例に
図1から図5を参照しながら説明を行う。
[Embodiment] As an adaptive scan encoding circuit according to an embodiment of the present invention, FIGS. 1 to 5 are illustrated using discrete cosine transformation, which is one of orthogonal transformations, and Huffman encoding, which is one of entropy encoding, as examples. I will explain while referring to it.

【0014】図1は、本発明適応スキャン符号化回路の
一実施例の概略構成図である。図1において、1は入力
された画像情報を所定の大きさのブロックに分割するブ
ロック分割回路、2はブロック分割回路1で分割された
所定の大きさ毎の画像情報に対して離散コサイン変換と
線形量子化を行い2次元の符号化係数として出力する直
交変換手段としての離散コサイン変換回路、3は離散コ
サイン変換回路2から出力された2次元の符号化係数を
、図1に示す順序(従来のジグザグスキャン)でスキャ
ンして1次元に並べ替えるスキャン手段としての第1ス
キャン回路、4は離散コサイン変換回路2から出力され
た2次元の符号化係数を、図4(3)に示す順序でスキ
ャンして1次元に並べ替えるスキャン手段として第2ス
キャン回路、5は離散コサイン変換回路2から出力され
た2次元の符号化係数を、図5(3)に示す順序でスキ
ャンして1次元に並べ替えるスキャン手段として第3ス
キャン回路、6は第1スキャン回路3でスキャンされ1
次元に並べ替えられた符号化係数をハフマン符号化して
出力する符号化手段としての第1符号化回路、7は第2
スキャン回路4でスキャンされ1次元に並べ替えられた
符号化係数をハフマン符号化して出力する符号化手段と
しての第2符号化回路、8は第3スキャン回路5でスキ
ャンされ1次元に並べ替えられた符号化係数をハフマン
符号化して出力する符号化手段としての第3符号化回路
、10は第1符号化回路6で符号化された画像情報の情
報長を計数する第1データ長カウンタ回路、11は第2
符号化回路7で符号化された画像情報の情報長を計数す
る第2データ長カウンタ回路、12は第3符号化回路8
で符号化された画像情報の情報長を計数する第3データ
長カウンタ回路、13は第1,第2,第3データ長カウ
ンタ回路10,11,12で計数した3種類の符号化情
報量(異なるスキャン順序のもとで符号化された第1,
第2,第3符号化回路6,7,8の出力)を比較して情
報量が最少となるもののスキャン種別情報等を比較検出
信号として出力する比較回路、9は比較回路13からの
比較検出信号に基づいて第1,第2,第3符号化回路6
,7,8の符号化画像出力から符号化情報量が最少な符
号化画像情報を選択する選択手段としての選択回路、1
4は選択回路9で選択された符号化画像情報に、比較回
路13からの比較検出信号内のスキャン種別等を符号化
画像情報に多重する多重回路14である。
FIG. 1 is a schematic diagram of an embodiment of an adaptive scan encoding circuit according to the present invention. In FIG. 1, 1 is a block division circuit that divides input image information into blocks of a predetermined size, and 2 is a block division circuit that performs discrete cosine transformation on the image information of each predetermined size divided by the block division circuit 1. A discrete cosine transform circuit 3 serves as an orthogonal transform means that performs linear quantization and outputs two-dimensional encoded coefficients. 3 is a discrete cosine transform circuit that performs linear quantization and outputs the two-dimensional encoded coefficients output from the discrete cosine transform circuit 2 in the order shown in FIG. A first scan circuit 4 is a scanning means that scans and rearranges the two-dimensional coding coefficients in one dimension using a zigzag scan (zigzag scan). A second scan circuit 5 serves as a scanning means for scanning and rearranging into one dimension, and 5 scans the two-dimensional coding coefficients output from the discrete cosine transform circuit 2 in the order shown in FIG. A third scan circuit serves as a scanning means for sorting, and 6 is scanned by the first scan circuit 3 and 1
A first encoding circuit serves as an encoding means for Huffman encoding the encoding coefficients rearranged into dimensions, and 7 is a second encoding circuit.
A second encoding circuit 8 serves as an encoding means for Huffman encoding and outputting the encoded coefficients scanned by the scan circuit 4 and rearranged in one dimension; 10 is a first data length counter circuit that counts the information length of the image information encoded by the first encoding circuit 6; 11 is the second
A second data length counter circuit that counts the information length of image information encoded by the encoding circuit 7; 12 is a third encoding circuit 8;
A third data length counter circuit 13 counts the information length of the encoded image information, and 13 indicates the three types of encoded information amounts ( The first coded under different scanning orders,
A comparison circuit that compares the outputs of the second and third encoding circuits 6, 7, and 8 and outputs scan type information, etc. of the one with the smallest amount of information as a comparison detection signal; 9 is a comparison detection signal from the comparison circuit 13; The first, second and third encoding circuits 6 based on the signal
, 7 and 8, a selection circuit as a selection means for selecting encoded image information having the least amount of encoded information from the encoded image outputs of , 7 and 8;
Reference numeral 4 denotes a multiplexing circuit 14 that multiplexes the scan type and the like in the comparison detection signal from the comparison circuit 13 onto the encoded image information selected by the selection circuit 9.

【0015】斯様な回路に於て、画像情報の符号化を行
う場合について説明する。
The case where image information is encoded in such a circuit will be explained.

【0016】図1において、画像情報はブロック分割回
路1へ入力され所定のサイズ毎にブロック分割される。 ブロック分割された画像情報は、離散コサイン変換回路
2で所定のブロック毎に離散コサイン変換が施される。 離散コサイン変換された画像情報は、所定の量子化係数
テーブルに従って線形量子化が行われ2次元の符号化係
数として出力される。この線形量子化では量子化テーブ
ルの設定により所定の圧縮率を得ることができる。例え
ば、画質より圧縮率を優先するような場合であれば、量
子化係数テーブルの設定値を全体に大きくすると共に、
高周波成分に対応する設定値をより大きく設定して高い
圧縮率を得ることができる。この時、線形量子化後の2
次元の符号化係数は、右下方向に位置する符号化高周波
成分の多くが0となり出力される。逆に圧縮率より画質
を優先するような場合であれば、量子化係数テーブルの
設定値を全体に小さく(1に近づける)設定して画質の
劣化を抑えることができる。この時、線形量子化後の2
次元の符号化係数は、圧縮符号化対象となる画像の状態
により、単調な画像であれば左上方向に、複雑な画像で
あれば全体に、水平方向に変化が多い画像であれば右上
方向に、垂直方向に変化が多い画像であれば左下方向に
それぞれ大きな係数値が発生する。
In FIG. 1, image information is input to a block dividing circuit 1 and divided into blocks of a predetermined size. The image information divided into blocks is subjected to discrete cosine transformation for each predetermined block by a discrete cosine transformation circuit 2. The image information subjected to the discrete cosine transform is linearly quantized according to a predetermined quantization coefficient table and output as two-dimensional encoded coefficients. In this linear quantization, a predetermined compression rate can be obtained by setting the quantization table. For example, if you want to give priority to compression rate over image quality, increase the overall setting value of the quantization coefficient table and
A high compression ratio can be obtained by setting a larger setting value corresponding to a high frequency component. At this time, 2 after linear quantization
In the dimension encoding coefficient, most of the encoded high frequency components located in the lower right direction are output as 0. On the other hand, if the image quality is given priority over the compression rate, the deterioration of the image quality can be suppressed by setting the overall setting values of the quantization coefficient table to be small (close to 1). At this time, 2 after linear quantization
Depending on the state of the image to be compressed and encoded, the dimension coding coefficients are applied to the upper left for a monotonous image, to the entire image for a complex image, and to the upper right for an image with many changes in the horizontal direction. , if the image has many changes in the vertical direction, large coefficient values will occur in the lower left direction.

【0017】線形量子化された2次元の符号化係数は第
1,第2,第3スキャン回路3,4,5で夫々のスキャ
ン順序でスキャンされ1次元の符号化係数となる。この
時、スキャンした符号化係数においてランレングスの検
出を行い、これを所定の符号に置き換える。第1,第2
,第3スキャン回路3,4,5で1次元に並べ替えられ
た符号化係数は、第1,第2,第3スキャン回路3,4
,5それぞれに接続される第1,第2,第3符号化回路
6,7,8で符号化されると共に、その出力は第1,第
2,第3データ長カウンタ回路10,11,12でそれ
ぞれの情報量が計数される。
The linearly quantized two-dimensional encoded coefficients are scanned by first, second, and third scan circuits 3, 4, and 5 in the respective scanning orders to become one-dimensional encoded coefficients. At this time, the run length is detected in the scanned coding coefficients and replaced with a predetermined code. 1st, 2nd
, the coding coefficients rearranged one-dimensionally by the third scan circuits 3, 4, and 5 are sent to the first, second, and third scan circuits 3, 4,
, 5, respectively, and the output thereof is encoded by the first, second, and third data length counter circuits 10, 11, and 12 connected to the respective data length counter circuits 10, 11, and 12. The amount of information for each is counted.

【0018】第1,第2,第3符号化回路6,7,8で
の符号化は第1,第2,第3スキャン回路3,4,5で
1次元化された符号化係数に対し、発生頻度の高い係数
値から順に短いビット列からなる符号に置き換え、発生
頻度が低い係数値ほど長いビット列からなる符号に置き
換える。
The first, second, and third encoding circuits 6, 7, and 8 encode the encoding coefficients that have been made one-dimensional by the first, second, and third scanning circuits 3, 4, and 5. , the more frequently occurring coefficient values are replaced with codes consisting of shorter bit strings, and the less frequently occurring coefficient values are replaced with codes consisting of longer bit strings.

【0019】第1,第2,第3データ長カウンタ回路1
0,11,12でそれぞれ計数された符号化画像情報量
は、比較回路13にて比較され、画像情報量の最も少な
いものが検出され、そのスキャン情報を含む比較検出信
号が出力される。選択回路9では、比較回路13からの
比較検出信号に対応する符号化画像情報を第1,第2,
第3符号化回路6,7,8から選択し、多重回路14へ
出力する。多重回路14では、選択回路9からの符号化
画像情報と、比較回路13からの比較検出信号に含まれ
るスキャン情報を多重して出力する。
First, second and third data length counter circuits 1
The encoded image information amounts counted as 0, 11, and 12 are compared in a comparison circuit 13, the one with the smallest image information amount is detected, and a comparison detection signal containing the scan information is output. The selection circuit 9 selects the encoded image information corresponding to the comparison detection signal from the comparison circuit 13 as first, second,
It is selected from the third encoding circuits 6, 7, and 8 and output to the multiplexing circuit 14. The multiplexing circuit 14 multiplexes the encoded image information from the selection circuit 9 and the scan information included in the comparison detection signal from the comparison circuit 13 and outputs the multiplexed signal.

【0020】以上の実施例では、3種類の異なる第1,
第2,第3スキャン回路3,4,5とそれに対応する3
つの第1,第2,第3符号化回路6,7,8、そして第
1,第2,第3符号化回路6,7,8それぞれの符号化
情報量から最少の符号化情報量を検出する、データ長カ
ウンタ10,11,12と比較回路13を設けて、3種
類のスキャン順序での符号化で符号化情報量が最少とな
った符号化情報を選択したが、この構成に限られるもの
ではない。例えば、3種類の異なる第1,第2,第3ス
キャン回路3,4,5で発生するランレングスの最大値
を検出してその最大値を検出したスキャン順序について
符号化を行う構成とすることもできるし、3種類の異な
る第1,第2,第3スキャン回路3,4,5で発生する
0の総計を計数してその最大値を検出したスキャン順序
について符号化を行う構成とすることもできる。各スキ
ャン順序におけるランレングスの最大値を検出する場合
の構成を図3に示す。尚、図3と同一部分には、同じ符
号を付して説明を省略する。
In the above embodiment, three different types of first,
Second and third scan circuits 3, 4, 5 and their corresponding 3
Detect the minimum encoded information amount from the encoded information amounts of the first, second, and third encoding circuits 6, 7, and 8, and the respective encoded information amounts of the first, second, and third encoding circuits 6, 7, and 8. Although data length counters 10, 11, and 12 and a comparison circuit 13 are provided to select the encoded information with the least amount of encoded information by encoding in three types of scan orders, this configuration is limited. It's not a thing. For example, the configuration may be such that the maximum value of the run lengths generated in three different types of first, second, and third scan circuits 3, 4, and 5 is detected, and the scanning order in which the maximum value is detected is encoded. It is also possible to count the total number of 0s generated in three different types of first, second, and third scan circuits 3, 4, and 5, and to encode the scan order in which the maximum value is detected. You can also do it. FIG. 3 shows a configuration for detecting the maximum value of run length in each scan order. Note that the same parts as those in FIG. 3 are given the same reference numerals, and the description thereof will be omitted.

【0021】15,16,17は第1,第2,第3スキ
ャン回路3,4,5で1次元化された符号化情報それぞ
れにおいて、連続する0の最大値を検出し出力する0ラ
ンカウンタ1〜3回路、18は0ランカウンタ1〜3回
路15,16,17からの0の連続数から最大のものを
比較検出して比較検出信号として出力する比較回路、1
9は比較回路18からの比較検出信号に基づいて、選択
回路9で選択された第1,第2,第3スキャン回路3,
4,5からの1次元符号化係数を符号化して出力する符
号化手段としての符号化回路19である。
15, 16, and 17 are 0-run counters that detect and output the maximum value of consecutive 0s in each of the encoded information made one-dimensional by the first, second, and third scan circuits 3, 4, and 5. 1 to 3 circuits, 18 is a comparison circuit that compares and detects the maximum number of consecutive 0s from the 0 run counters 1 to 3 circuits 15, 16, and 17 and outputs it as a comparison detection signal;
Reference numeral 9 indicates the first, second and third scan circuits 3, selected by the selection circuit 9 based on the comparison detection signal from the comparison circuit 18;
This is an encoding circuit 19 as an encoding means for encoding and outputting the one-dimensional encoding coefficients from 4 and 5.

【0022】図3に於ける回路構成では、スキャンによ
り得られる1次元符号化係数の内、0が最も多く連続し
て検出される符号化係数を選択することで、符号化時の
符号量が最少となると推測されるスキャン順序を選択す
ることができる。この構成によれば、符号化回路を1に
して回路構成を簡単化できる。
In the circuit configuration shown in FIG. 3, the amount of code at the time of encoding can be reduced by selecting the coding coefficient that has the most consecutively detected 0s among the one-dimensional coding coefficients obtained by scanning. The scan order that is estimated to be the minimum can be selected. According to this configuration, the circuit configuration can be simplified by using only one encoding circuit.

【0023】また、以上の実施例において、線形量子化
後の符号化係数を2次元から1次元へ並べ替えるスキャ
ン手段として3種類の順序でのスキャンを設定し、情報
量の比較を行ったがこれに限られるものではなく、少な
くとも2種類のスキャン順序での符号化情報量の比較を
行えばよい。
Furthermore, in the above embodiment, three types of scanning orders were set as scanning means for rearranging the encoded coefficients after linear quantization from two-dimensional to one-dimensional, and the amount of information was compared. The present invention is not limited to this, and the amount of encoded information may be compared in at least two types of scan orders.

【0024】更に、以上の実施例では複合符号化におけ
る直交変換は、その内の一つである離散コサイン変換を
例にとり説明したがこれに限られるものではなく、例え
ばフーリエ変換、アダマール変換、カルーネン・ルーベ
変換などの直交変換であってもよい。同様にエントロピ
ー符号化は、その一つであるハフマン符号化を例にとり
説明したがこれに限られるものではなく、例えば算術符
号化、モディファイド・ハフマン符号化(MH)、モデ
ィファイド・リード符号化(MR)、モディファイド・
モディファイド・リード符号化(MMR)などのエント
ロピー符号化であってもよい。
Furthermore, in the above embodiments, the orthogonal transform in composite encoding was explained using one of them, the discrete cosine transform, but it is not limited to this, and for example, the Fourier transform, Hadamard transform, Karunen transform, etc. - Orthogonal transformation such as Roubaix transformation may be used. Similarly, entropy encoding has been explained using Huffman encoding as an example; however, it is not limited to this; examples include arithmetic encoding, modified Huffman encoding (MH), and modified read encoding (MR). ), modified
Entropy encoding such as modified read encoding (MMR) may also be used.

【0025】[0025]

【発明の効果】本発明は、以上の説明から明かな如く、
離散コサイン変換からの符号化係数を2次元から1次元
へ並べ替える際に、符号化係数を取り出す順序を複数通
り設けてスキャンし、スキャンされた複数の1次元符号
化係数の中から、圧縮効率の優れたスキャンでの符号化
情報を選択して出力するので、画像の状態や量子化係数
テーブルの設定によらず、常に効率のよい符号化を行う
ことができる。
[Effects of the Invention] As is clear from the above description, the present invention has the following advantages:
When sorting the coding coefficients from the discrete cosine transform from two dimensions to one dimension, the coding coefficients are scanned in multiple ways, and the compression efficiency is determined from among the scanned one-dimensional coding coefficients. Since the encoded information obtained by the superior scan is selected and output, efficient encoding can always be performed regardless of the image condition or the quantization coefficient table settings.

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

【図1】本発明の一実施例に係る適応スキャン符号化回
路の概略構成図である。
FIG. 1 is a schematic configuration diagram of an adaptive scan encoding circuit according to an embodiment of the present invention.

【図2】従来のジグザグスキャンの説明図である。FIG. 2 is an explanatory diagram of a conventional zigzag scan.

【図3】本発明の一実施例に係る適応スキャン符号化回
路の概略構成図である。
FIG. 3 is a schematic configuration diagram of an adaptive scan encoding circuit according to an embodiment of the present invention.

【図4】画像に対するスキャン状態の一例の説明図であ
る。
FIG. 4 is an explanatory diagram of an example of a scanning state for an image.

【図5】画像に対するスキャン状態の他の例の説明図で
ある。
FIG. 5 is an explanatory diagram of another example of a scan state for an image.

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

1    ブロック分割回路 2    離散コサイン変換回路 3    第1スキャン回路 4    第2スキャン回路 5    第3スキャン回路 6    第1符号化回路 7    第2符号化回路 8    第3符号化回路 9    選択回路 10  第1データ長カウンタ回路 11  第2データ長カウンタ回路 12  第3データ長カウンタ回路 13  比較回路 14  多重回路 1 Block division circuit 2 Discrete cosine transform circuit 3 First scan circuit 4 Second scan circuit 5 Third scan circuit 6 First encoding circuit 7 Second encoding circuit 8 Third encoding circuit 9 Selection circuit 10 First data length counter circuit 11 Second data length counter circuit 12 Third data length counter circuit 13 Comparison circuit 14 Multiplex circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】画像情報を周波数成分に応じて直交変換す
る直交変換手段と、該直交変換手段で変換された画像情
報を異なる複数の取り出し順でスキャンして1次元画像
情報としその取り出し順のスキャン情報と共に複数出力
するスキャン手段と、該スキャン手段から出力された複
数の1次元画像情報のうち、符号化した時に情報量が最
少となる1次元画像情報を符号化した状態で前記スキャ
ン情報と共に出力する画像符号化手段とを備えることを
特徴とする適応スキャン符号化回路。
1. Orthogonal transformation means for orthogonally transforming image information according to frequency components, and scanning the image information transformed by the orthogonal transformation means in a plurality of different extraction orders to obtain one-dimensional image information according to the extraction order. a scanning means for outputting a plurality of pieces of information together with the scan information; and one-dimensional image information having the least amount of information when encoded among the plurality of one-dimensional image information outputted from the scanning means, encoded together with the scan information. An adaptive scan encoding circuit comprising an image encoding means for outputting an image.
【請求項2】前記画像符号化手段は、スキャン手段から
出力された複数の1次元画像情報を夫々符号化する複数
の符号化手段と、それら該符号化手段で符号化された夫
々の画像情報から情報量が最も少ない画像情報を選択し
てスキャン情報と共に出力する選択手段とを備えること
を特徴とする請求項1記載の適応スキャン符号化回路。
2. The image encoding means includes a plurality of encoding means each encoding a plurality of one-dimensional image information output from the scanning means, and each image information encoded by the encoding means. 2. The adaptive scan encoding circuit according to claim 1, further comprising a selection means for selecting image information having the smallest amount of information from among them and outputting the selected image information together with the scan information.
【請求項3】前記画像符号化手段は、スキャン手段から
出力された複数の1次元画像情報を符号化した時に情報
量が最少となる画像情報を選択する選択手段と、該選択
手段で選択された画像情報を符号化してスキャン情報と
共に出力する符号化手段とを備えることを特徴とする請
求項1記載の適応スキャン符号化回路。
3. The image encoding means includes a selection means for selecting image information with a minimum amount of information when encoding a plurality of one-dimensional image information output from the scanning means; 2. The adaptive scan encoding circuit according to claim 1, further comprising: encoding means for encoding the image information and outputting the encoded image information together with the scan information.
JP3136654A 1991-06-07 1991-06-07 Adaptive scan coding circuit Pending JPH04360469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3136654A JPH04360469A (en) 1991-06-07 1991-06-07 Adaptive scan coding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3136654A JPH04360469A (en) 1991-06-07 1991-06-07 Adaptive scan coding circuit

Publications (1)

Publication Number Publication Date
JPH04360469A true JPH04360469A (en) 1992-12-14

Family

ID=15180386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3136654A Pending JPH04360469A (en) 1991-06-07 1991-06-07 Adaptive scan coding circuit

Country Status (1)

Country Link
JP (1) JPH04360469A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003289543A (en) * 1992-07-23 2003-10-10 Samsung Electronics Co Ltd Method and equipment for decoding data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003289543A (en) * 1992-07-23 2003-10-10 Samsung Electronics Co Ltd Method and equipment for decoding data

Similar Documents

Publication Publication Date Title
KR100289591B1 (en) Image data compression apparatus and method thereof, image data decompression apparatus and method thereof, image data recording and reproducing apparatus
US6650784B2 (en) Lossless intraframe encoding using Golomb-Rice
US7782960B2 (en) DCT compression using Golomb-Rice coding
AU2002316546A1 (en) Lossless intraframe encoding using golomb-rice
JPH06237448A (en) Variable length coder and decoder
EP0635807B1 (en) Coding apparatus for image compression
JP3532963B2 (en) Image compression device
JPH0487460A (en) Picture processor
JPH04360469A (en) Adaptive scan coding circuit
JP3559314B2 (en) Image compression device
Philips et al. A new embedded lossless/quasi-lossless image coder based on the Hadamard transform
JPH05207287A (en) Picture coder and picture decoder
JPH07255054A (en) Image encoding device
JP3232160B2 (en) Encoding device and method
JP2571274B2 (en) Code data storage / readout method
JPH03238563A (en) Method and device for encoding and restoring picture data
JPH0537920A (en) Image data coding system
JPH0678156A (en) Image encoder and image decoder
JPH0787490A (en) Picture data coding method
JPH0591338A (en) Video informaiton volume compressing and/or expanding device
JPH03262382A (en) Method and apparatus for picture data coding and decoding
JPH04225693A (en) Encoder
JPH03238564A (en) Method and device for encoding and restoring picture data
JPH0385062A (en) Picture data coding device
JPH02308673A (en) Picture data coding system