JPH04189092A - Orthogonal transformation coding device and decoding device - Google Patents

Orthogonal transformation coding device and decoding device

Info

Publication number
JPH04189092A
JPH04189092A JP2319278A JP31927890A JPH04189092A JP H04189092 A JPH04189092 A JP H04189092A JP 2319278 A JP2319278 A JP 2319278A JP 31927890 A JP31927890 A JP 31927890A JP H04189092 A JPH04189092 A JP H04189092A
Authority
JP
Japan
Prior art keywords
scan
coefficients
distribution
vertical direction
zero coefficients
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
JP2319278A
Other languages
Japanese (ja)
Inventor
Kenji Sugiyama
賢二 杉山
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2319278A priority Critical patent/JPH04189092A/en
Publication of JPH04189092A publication Critical patent/JPH04189092A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To properly make the distribution of non-zero coefficients after an orthogonal transformation by increasing the scan motion in that direction only, if the scan order is distributed in the vertical and horizontal directions in accordance with the generation distribution of the non-zero coefficients. CONSTITUTION:The picture signals entered into a picture input terminal 1 are orthogonally transformed for every block by an orthogonal transforming unit 2. One of the transformation coefficients, which are the output of the transforming unit 2, is a DC coefficient which shows the average value of the block and the others are AC coefficients indicating the variation manner and both of them are inputted to a quantizer 3. The quantizer 3 quatizes each coefficient at a preset skip width, outputs the results to a scan section 4 and reads into a block memory 5. At this time, the scan order is in line with the generation distribution of the non-zero coefficients and if the distribution is in the direction of vertical/horizontal, the scan movement in the direction of vertical/ horizontal direction only is set to be increased by a scan preset means. Thus, no mismatch occurs between the distribution after the orthogonal transformation and scan groups.

Description

【発明の詳細な説明】 (産業上の利用分野) 画像信号を記録、伝送1表示する装置において、画像信
号をより少ない符号量でディジタル化する高能率符号化
方式で、特に直交変換を用いる直交変換符号化装置及び
復号化装置に関する。
Detailed Description of the Invention (Industrial Application Field) A high-efficiency encoding method that digitizes an image signal with a smaller amount of code in a device that records, transmits, and displays an image signal. The present invention relates to a transform encoding device and a decoding device.

(従来の技術) DCT (離散コサイン変換)などの直交変換を用いる
高能率符号化において、変換された信号(係数)の多く
は、0と見なすことができる。
(Prior Art) In high-efficiency encoding using orthogonal transform such as DCT (discrete cosine transform), many of the transformed signals (coefficients) can be regarded as zero.

従って、0と判定された係数が多く存在する場合には、
それを個別に符号化するよりも、まとめて符号化した方
が効率が良くなる。
Therefore, if there are many coefficients determined to be 0,
It is more efficient to encode them all at once than to encode them individually.

その具体的な手法として、ジグザグスキャンにより、2
次元の係数を1次元に並べ換えて、0係数はその連続す
る数を符号化する方法がある。
As a specific method, 2
There is a method in which the dimensional coefficients are rearranged into one dimension and the 0 coefficients are encoded as consecutive numbers.

第4図は従来のスキャン順を示す図である。FIG. 4 is a diagram showing the conventional scan order.

第4図において、矢印はスキャン類、点は変換された成
分(係数)を表している。
In FIG. 4, arrows represent scan types and points represent converted components (coefficients).

係数は水平垂直とも8個あり、各係数をkITとする。There are eight coefficients both horizontally and vertically, and each coefficient is defined as kIT.

ここでXは水平方向の周波数の低い方がらの番号、yは
垂直方向の周波数の低い方からの番号である。
Here, X is the number from the lowest frequency in the horizontal direction, and y is the number from the lowest frequency in the vertical direction.

従って、kHはDC成分、k77は最も周波数の高い成
分である。
Therefore, kH is a DC component, and k77 is a component with the highest frequency.

スキャン類は、垂直、水平共に周波数が低い方(k 0
0)から、高い方(k77)へと、ジグザグスキャンに
より、2次元の係数を1次元の配列に並べ換える。
The scan type is the one with lower frequency both vertically and horizontally (k 0
0) to the higher one (k77), the two-dimensional coefficients are rearranged into a one-dimensional array by zigzag scanning.

端の部分以外は全て水平方向の]−っの移動と、垂直方
向の1つの移動が同時に行われ、斜め45度の方向にス
キャンされている。
All parts except the end portions are scanned in a 45-degree diagonal direction, with one horizontal movement and one vertical movement performed at the same time.

1次元化された係数は、初めから順に見て、0以外の係
数が発生した時点でその係数値と、1つ前の0以外の係
数値(又はスタート)の間にある0係数の数の2種類の
値を、それぞれハフマン符号等の可変長符号を用いて符
号化する。
One-dimensional coefficients are looked at in order from the beginning, and when a non-zero coefficient occurs, it is calculated as the number of zero coefficients between that coefficient value and the previous non-zero coefficient value (or start). The two types of values are each encoded using a variable length code such as a Huffman code.

ここで、0係数の数は、0ランレングスと呼ばれ、0以
外の係数が連続して0係数が0個の場合にも、符号化す
る必要があることは勿論である。
Here, the number of 0 coefficients is called 0 run length, and it goes without saying that it is necessary to encode even when there are consecutive non-zero coefficients and zero 0 coefficients.

0ランレングスは、その長さが短いほど、平均符号旦を
少なくできる。
The shorter the 0-run length is, the smaller the average code number can be.

従って、非0係数は、1次元上で近いところに集中して
発生する方が、分散して発生するよりも0ランレングス
の符号量が少なくなる。
Therefore, when non-zero coefficients are generated in a concentrated manner in one dimension, the amount of code for the 0-run length is smaller than when they are generated dispersedly.

そのため、非Oの発生確率が高い低周波成分から順にス
キャンすれば良い。
Therefore, it is sufficient to scan in order of low frequency components with a high probability of non-O occurrence.

(発明が解決しようとする課題) 従来例に示したスキャン方法は、サンプル間隔が正方形
に近いノンインターレース信号の場合に適している。
(Problems to be Solved by the Invention) The scanning method shown in the conventional example is suitable for a non-interlaced signal in which the sample interval is close to a square.

しかし、通常のテレビ信号は、1フレームが2つのフィ
ールドに分割されるインターレース信号である。
However, a typical television signal is an interlaced signal in which one frame is divided into two fields.

第5図はインターレース信号をフィールド毎にサンプリ
ングした際のサンプリング点の様子を示す図である。破
線は、8×8画素のブロックの形状を示している。  
          ゛′第5図において、垂直のサン
プル間隔は、水平のサンプル間隔の2倍程度になってお
り、この様な信号に対して、従来と同様に8X8画素で
DCTを行うと、垂直力向により多くの非0係数が発生
する。
FIG. 5 is a diagram showing sampling points when an interlaced signal is sampled field by field. The broken line indicates the shape of an 8×8 pixel block.
゛'In Figure 5, the vertical sample interval is approximately twice the horizontal sample interval, and if DCT is performed on such a signal using 8x8 pixels as in the past, the vertical force direction Many non-zero coefficients occur.

第6図はノンインターレース信号とインターレース信号
との直交変換後の非0係数の分布の様子を示す図である
。図中の密は非0係数の分布密度が高い部分、粗は低い
部分を示している。
FIG. 6 is a diagram showing the distribution of non-zero coefficients after orthogonal transformation between a non-interlaced signal and an interlaced signal. In the figure, dense indicates a portion where the distribution density of non-zero coefficients is high, and coarse indicates a portion where the distribution density of non-zero coefficients is low.

第6図(A)のノンインターレース信号に対して、第6
図(B)のインターレース信号は、垂直方向に2倍程度
広がっていることか分かる。
For the non-interlaced signal in FIG. 6(A),
It can be seen that the interlaced signal in Figure (B) spreads approximately twice as much in the vertical direction.

従って、第4図に示したスキャン類と、第6図(B)の
非O係数の分布がミスマツチとなっており、発生符号量
が不必要に多くなってしまうという不具合があった。
Therefore, there is a mismatch between the scans shown in FIG. 4 and the distribution of non-O coefficients in FIG. 6(B), resulting in an unnecessarily large amount of generated codes.

本発明は、以上の点に着目してなされたもので、2次元
直交変換係数をスキャンして1次元化し、0となる係数
をランレングス符号化する際に、スキャン順を非O係数
の発生分布に合わせて、垂直方向に分布が広かっている
場合には垂直方向のろのスキャンの移動を多くし、水平
方向に分布が広かっている場合には水平方向のみのスキ
ャンの移動を多く設定するので、直交変換後の非0係数
の分布とスキャン類がミスマツチとなることがなく、非
0係数の分布に適合したスキャンニングとなり、0ラン
レングスの平均値が下がり、発生する符号量が少なくて
すむ画像符号化装置及び復号化装置を提供することを目
的とするものである。
The present invention has been made with attention to the above points, and when scanning two-dimensional orthogonal transform coefficients to make them one-dimensional and run-length encoding coefficients that become 0, the scan order is changed according to the occurrence of non-O coefficients. Depending on the distribution, if the distribution is wide in the vertical direction, increase the movement of the vertical scan, and if the distribution is wide in the horizontal direction, set the movement of only the horizontal scan to be large. Therefore, there is no mismatch between the distribution of non-zero coefficients after orthogonal transformation and the scanning types, and the scanning is adapted to the distribution of non-zero coefficients, the average value of the 0-run length is lowered, and the amount of code generated is small. The object of the present invention is to provide an image encoding device and a decoding device.

(課題を解決するための手段) 本発明は、前記課題を解決するために、(1)2次元直
交変換係数をスキャンして1次元化し、0となる係数を
ランレングス符号化する際に、スキャン順を非O係数の
発生分布に合わせて、垂直方向に分布が広がっている場
合には垂直方向のみのスキャンの移動を多くし、水平方
向に分布が広がっている場合には水平方向のみのスキャ
ンの移動を多く設定するスキャン順設定手段を有するこ
とを特徴とする直交変換符号化装置を提供し、(2)ス
キャンされ1次元化された係数を2次元配列に逆スキャ
ンする際に、スキャン順を非O係数の発生分布に合わせ
て、垂直方向に分布が広がっている場合には垂直方向の
みのスキャンの移動を多くし、水平方向に分布が広がっ
ている場合には水平方向のみのスキャンの移動を多く設
定するスキャン順設定手段を有することを特徴とする直
交変換復号化装置を提供するものである。
(Means for Solving the Problems) In order to solve the above problems, the present invention provides the following steps: (1) When scanning two-dimensional orthogonal transform coefficients to make them one-dimensional and run-length encoding coefficients that become 0, Adjust the scan order to match the occurrence distribution of non-O coefficients, and if the distribution spreads in the vertical direction, increase the number of scans in the vertical direction, and if the distribution spreads in the horizontal direction, increase the number of scans in the horizontal direction only. Provided is an orthogonal transform encoding device characterized by having a scan order setting means for setting a large number of scan movements, and (2) when inversely scanning the scanned and one-dimensional coefficients into a two-dimensional array, Adjust the order to match the occurrence distribution of non-O coefficients, and if the distribution spreads in the vertical direction, increase the number of scans in the vertical direction, and if the distribution spreads in the horizontal direction, scan only in the horizontal direction. The present invention provides an orthogonal transform decoding device characterized by having scan order setting means for setting a large number of movements.

(作用) スキャンユング類の設定方法として、非O係数の発生分
布が垂直方向に広がっている場合には、垂直方向の高周
波成分が、水平方向の高周波成分より早くスキャンされ
るようにする。
(Operation) As a method of setting the scan Jung class, when the occurrence distribution of non-O coefficients spreads in the vertical direction, the high frequency components in the vertical direction are scanned earlier than the high frequency components in the horizontal direction.

具体的には、従来全て斜め移動だった部分の半分程度を
、垂直方向の移動にする。
Specifically, about half of the parts that were previously all diagonal movements are now moved in the vertical direction.

スキャンユング類がほぼ非0係数の発生頻度に合った形
となるので、0ランレングスの長さが短くなり、符号量
が少なくなる。
Since the scan Jung class has a shape that approximately matches the frequency of occurrence of non-zero coefficients, the length of the 0-run length becomes shorter and the amount of code becomes smaller.

(実施例) 第1図は本発明の直交変換符号化装置を示すブロック図
である。
(Embodiment) FIG. 1 is a block diagram showing an orthogonal transform encoding device of the present invention.

第1図において、画像入力端子1から入力された画像信
号は、直交変換器2へ供給されている。
In FIG. 1, an image signal input from an image input terminal 1 is supplied to an orthogonal transformer 2.

直交変換器2は、入力信号を8X8画素のブロック毎に
DCT (離散コサイン変換)などの手法で直交変換し
ている。
The orthogonal transformer 2 orthogonally transforms the input signal for each 8×8 pixel block using a method such as DCT (discrete cosine transform).

直交変換器2の出力である変換係数は、1つがブロック
の平均値を示すDC係数で、他は変化の様子を示すAC
係数であり、各係数は量子化器3へ供給されている。
Among the transform coefficients output from the orthogonal transformer 2, one is a DC coefficient that indicates the average value of the block, and the others are AC coefficients that indicate the state of change.
Each coefficient is supplied to the quantizer 3.

量子化器3は、各係数を設定されたステップ幅で量子化
し、その出力(大半は0である)をスキャン部4へ供給
し、ブロックメモリ5へ書き込む。
The quantizer 3 quantizes each coefficient with a set step width, supplies the output (mostly 0) to the scan unit 4, and writes it into the block memory 5.

スキャン部4は、ブロックメモリ5.切り換えスイッチ
6、ROM7. カウンタ8により構成されている。
The scanning unit 4 includes a block memory 5. Changeover switch 6, ROM7. It is composed of a counter 8.

ブロックメモリ5のアドレスは、書き込み(W)時と、
読み出しくR)時で変えられる。
The address of the block memory 5 is when writing (W),
It can be changed at readout time.

書き込み時は、切り換えスイッチ6はW側に接続されて
いる。
During writing, the changeover switch 6 is connected to the W side.

カウンタ8の出力信号は、ROM7へ供給されてROM
のアドレスとして利用されると共に、切り換えスイッチ
6を介してブロックメモリ5の書き込みアドレスとして
供給される。
The output signal of the counter 8 is supplied to the ROM 7 and the ROM
This address is used as the address of the block memory 5, and is also supplied as the write address of the block memory 5 via the changeover switch 6.

読み出し時は、切り換えスイッチ6はR側に接続されて
いる。
During reading, the changeover switch 6 is connected to the R side.

ROM7は、後述するような本発明のスキャン順が書き
込まれているROMであり、切り換えスイッチ6を介し
てブロックメモリ5の読み出しアドレスとして供給され
る。
The ROM 7 is a ROM in which the scan order of the present invention as described later is written, and is supplied as a read address of the block memory 5 via the changeover switch 6.

ブロックメモリ5は、実際には2面のメモリよりなり、
一方が書き込んでいる間、他方は読み出し用となる。
The block memory 5 actually consists of two sides of memory,
While one is writing, the other is for reading.

スキャン順に変換されたブロックメモリ5の出力信号は
、ランレングス符号化器9へ供給される。
The output signal of the block memory 5 converted into the scan order is supplied to a run-length encoder 9.

ランレングス符号化器9は、入力信号の非0係数値と、
0ランレングス値を、可変長符号化して、データ出力端
子10を介して、復号装置等へ出力している。
The run-length encoder 9 receives non-zero coefficient values of the input signal,
The 0-run length value is variable-length coded and output to a decoding device or the like via a data output terminal 10.

第2図は本発明の直交変換復号化装置を示すブロック図
である。復号化装置では、符号化装置の逆の処理が行わ
れる。
FIG. 2 is a block diagram showing an orthogonal transform decoding device of the present invention. The decoding device performs the reverse processing of the encoding device.

第2図において、符号化装置等よりの符号化されたデー
タ信号は、データ入力端子1】から入力され、ランレン
グス復号化器12へ供給される。
In FIG. 2, an encoded data signal from an encoding device or the like is input from a data input terminal 1 and is supplied to a run-length decoder 12.

ランレングス復号化器12は、入力信号の非0係数値と
、0ランレングス値を可変長復号化して、スキャン部1
3へ供給し、ブロックメモリ5に書き込む。
The run length decoder 12 performs variable length decoding on the non-zero coefficient values and 0 run length values of the input signal,
3 and writes it into the block memory 5.

スキャン部13は、ブロックメモリ5.切り換えスイッ
チ6、ROM7.  カウンタ8により構成されている
The scanning unit 13 includes a block memory 5. Changeover switch 6, ROM7. It is composed of a counter 8.

ブロックメモリ5のアドレスは、書き込み(W)時と、
読み出しくR)時で変えられる。
The address of the block memory 5 is when writing (W),
It can be changed at readout time.

書き込み時は、切り換えスイッチ6はW側に接続されて
いる。
During writing, the changeover switch 6 is connected to the W side.

ROM7は、後述するような本発明のスキャン順が書き
込まれているR OMであり、切り換えスイッチ6を介
してブロックメモリ5の書き込みアドレスとして供給さ
れる。
The ROM 7 is a ROM in which the scan order of the present invention as described later is written, and is supplied as a write address of the block memory 5 via the changeover switch 6.

これにより、ランレングス復号化器12の出力信号は、
元の配列に戻されてブロックメモリ5へ書きまれる。
As a result, the output signal of the run-length decoder 12 is
The data is returned to the original arrangement and written to the block memory 5.

読み出し時は、切り換えスイッチ6はR側に接続されて
いる。
During reading, the changeover switch 6 is connected to the R side.

カウンタ8の出力信号は、ROM7へ供給されてROM
のアドレスとして利用されると共に、切り換えスイッチ
6を介してブロックメモリ5の読み出しアドレスとして
供給される。
The output signal of the counter 8 is supplied to the ROM 7 and the ROM
This address is used as the address of the block memory 5, and is also supplied as the read address of the block memory 5 via the changeover switch 6.

ブロックメモリ5は、実際には2面のメモリよりなり、
一方が書き込んでいる間、他方は読み出し用となる。
The block memory 5 actually consists of two sides of memory,
While one is writing, the other is for reading.

元の配列に戻されたブロックメモリ5の出力信号は、逆
量子化器14へ供給されている。
The output signal of the block memory 5 which has been returned to its original arrangement is supplied to an inverse quantizer 14.

逆量子化器】4は、入力信号を逆量子化して、逆直交変
換器15へ供給していいる。
The inverse quantizer 4 inversely quantizes the input signal and supplies it to the inverse orthogonal transformer 15.

逆直交変換器15は、入力信号を逆DCT変換し、再生
画像信号を得て、画像出力端子】6を介して出力してい
る。
The inverse orthogonal transformer 15 performs inverse DCT transform on the input signal, obtains a reproduced image signal, and outputs it via an image output terminal 6.

本発明の特徴は、スキャン類の設定にあり、このスキャ
ン順設定手段について、以下説明する。
A feature of the present invention is the setting of scan types, and this scan order setting means will be explained below.

このスキャン順設定手段は、前記の如く、第1図に示す
符号化装置のROM7及び、第2図に示す復号化装置の
ROM7に、格納、設定されている。
As described above, this scan order setting means is stored and set in the ROM 7 of the encoding device shown in FIG. 1 and the ROM 7 of the decoding device shown in FIG. 2.

第3図は本発明のスキャン順を示す図である。FIG. 3 is a diagram showing the scan order of the present invention.

第3図において、(A)〜(D)の4種類のスキャン順
を示しており、いずれも垂直、水平共に周波数が低い方
から、高い方へと、ジグザグスキャンにより、2次元の
係数を1次元の配列にに並べ換える。
In Figure 3, four types of scan orders (A) to (D) are shown, in which two-dimensional coefficients are 1 Sort into an array of dimensions.

第4図に示した従来のスキャン類は、端の部分以外は全
て水平方向の1つの移動と、垂直方向の1つの移動が同
時に行われ、斜め45度の方向にスキャンされている。
In the conventional scan type shown in FIG. 4, except for the end portions, one movement in the horizontal direction and one movement in the vertical direction are performed at the same time, and scanning is performed in a diagonal direction of 45 degrees.

これに対して、本発明では、スキャンの半分程度を、垂
直方向のみの移動とする。
In contrast, in the present invention, about half of the scan is performed only in the vertical direction.

係数は、垂直方向に8個あるので、7回動くわけである
が、そのうち3〜4回を垂直方向のみの移動とする。
Since there are 8 coefficients in the vertical direction, it moves 7 times, but 3 to 4 of them are moved only in the vertical direction.

各係数をkxyとする。ここでXは水平方向の周波数の
低い方からの番号、yは垂直方向の周波数の低い方から
の番号である。
Let each coefficient be kxy. Here, X is the number from the lowest frequency in the horizontal direction, and y is the number from the lowest frequency in the vertical direction.

従って、kooはDC成分、k77は最も周波数の高い
成分である。
Therefore, koo is a DC component and k77 is a component with the highest frequency.

第3図(A)は、kxlがらk x2.  k 13が
らkx4、kx5からkx5の3種の移動を、垂直方向
のみとし、kxQからkxl、kx2からk !3. 
 k x4がらk X5゜kx6からkxlの4種の移
動は従来と同じにした場合である。
FIG. 3(A) shows k x2 from kxl. The three types of movement from k13 to kx4 and from kx5 to kx5 are made only in the vertical direction, from kxQ to kxl, and from kx2 to k! 3.
The four types of movement from kx4 to kx5° and from kx6 to kxl are the same as in the conventional case.

こうすると、端で不連続となる部分が生じるが、そこは
図で破線で示したように、最も近いものと結ぶ。
This will create a discontinuous part at the end, but it will be connected to the nearest one, as shown by the broken line in the figure.

これによって、スキャンニングは、従来例に比べて、垂
直方向に約2倍早くなる。
This makes scanning approximately twice as fast in the vertical direction as compared to the conventional example.

第3図(B)は、kxQからkxl、kx3がらk x
4゜kx6からkxlの3種の移動を、垂直方向のみと
したもので、第3図(A)よりも不連続となる部分が少
なくなる。
Figure 3 (B) shows kxQ to kxl, kx3 to kx
The three types of movement from 4°kx6 to kxl are made only in the vertical direction, and there are fewer discontinuous parts than in FIG. 3(A).

第3図(C)は、kxoがらkxl、kx2がらkx3
、kx4からkx5.kx6からkxlの4種の移動を
垂直方向のみとしたもので、スキャンニングは、第3図
(A)、(B)よりも垂直方向により早くなる。
Figure 3 (C) shows kxl from kxo, kx3 from kx2.
, kx4 to kx5. The four types of movement from kx6 to kxl are performed only in the vertical direction, and scanning is faster in the vertical direction than in FIGS. 3(A) and 3(B).

なお、スキャン類は、スタートをどちらの方向から始め
るかで2通りある。
Note that there are two types of scans depending on which direction to start from.

これらは、お互いに逆の関係にあり、k77をに00と
見なして辿ったのが、もう1種類のものとなる。
These are in an inverse relationship to each other, and the other type was traced by regarding k77 as 00.

第3図(B)は、水平と垂直のDC以外の最低周波数(
即ち、図でに01とに10)が連続せず、非0係数がそ
れ(kolとk 10)だけのとき、kolとklOが
スキャン類で離れていると間に長いOランレングスが入
り不利になる可能性があるが、その場合に第3図(D)
に示すようにスタートのみを変更することにより、他と
同等となる。
Figure 3 (B) shows the horizontal and vertical lowest frequencies other than DC (
In other words, in the figure, when 01 and 10) are not consecutive and there are only non-zero coefficients (kol and k10), if kol and klO are separated by scan type, there will be a long O-run length between them, which will be disadvantageous. In that case, Figure 3 (D)
By changing only the start as shown in , it becomes equivalent to the others.

なお、以上の説明では、非0係数の分布が、垂直方向に
広がっている場合について述べたが、水平方向に広がっ
ている場合についても同様であり、この場合には水平方
向の移動を多くすれば良いことは勿論である。
In the above explanation, the case where the distribution of non-zero coefficients spreads in the vertical direction was described, but the same applies to the case where the distribution of non-zero coefficients spreads in the horizontal direction. Of course it's a good thing.

(発明の効果) 本発明の画像符号化装置及び復号化装置は、2次元直交
変換係数をスキャンして1次元化し、0となる係数をラ
ンレングス符号化する際に、スキキン順を非0係数の発
生分布に合わせて、垂直方向に分布が広がっている場合
には垂直方向のみのスキャンの移動を多くし、水平方向
に分布が広がっている場合には水平方向のみのスキャン
の移動を多く設定するので、直交変換後の非0係数の分
布とスキャン順がミスマツチとなることがなく、非0係
数の分布に適合したスキャンニングとなり、0ランレン
グスの平均値が下がり、発生する符号量が少なくてすむ
等、実用上極めて優れた効果がある。
(Effects of the Invention) The image encoding device and decoding device of the present invention scan two-dimensional orthogonal transform coefficients to make them one-dimensional, and when performing run-length encoding of coefficients that become 0, the image encoding device and decoding device of the present invention change the skikin order to non-zero coefficients. According to the occurrence distribution, if the distribution is spreading in the vertical direction, increase the scan movement only in the vertical direction, and if the distribution is spreading in the horizontal direction, set the movement of the scan only in the horizontal direction. Therefore, there is no mismatch between the distribution of non-zero coefficients after orthogonal transformation and the scanning order, and the scanning is adapted to the distribution of non-zero coefficients, reducing the average value of 0-run lengths and reducing the amount of code generated. It has extremely excellent practical effects, such as reducing the number of tasks.

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

第1図は本発明の直交変換符号化装置を示すブロック図
、第2図は本発明の直交変換復号化装置を示すブロック
図、第3図は本発明のスキャン順を示す図、第4図は従
来のスキャン順を示す図、第5図はインターレース信号
をフィールド毎にサンプリングした際のサンプリング点
の様子を示す図、第6図はノンインターレース信号とイ
ンターレース信号との直交変換後の非0係数の分布の様
子を示す図である。 1・・・画像入力端子、2・・・直交変換器、3・・量
子化器、4.13・・・スキャン部、5・・・ブロック
メモリ、6・・・切り換えスイッチ、7・・・ROM、
8・・・カウンタ、9・・・ランレングス符号化器、1
0・・・データ出力端子、11・・・データ入力端子、
12・・・ランレングス復号化器、14・・・逆量子化
器、15・・・逆直交変換器、16・・・画像出力端子
3、特許出願人 日本ビクター株式会社 第1図 第2図 第4図 第3図
FIG. 1 is a block diagram showing the orthogonal transform encoding device of the present invention, FIG. 2 is a block diagram showing the orthogonal transform decoding device of the present invention, FIG. 3 is a diagram showing the scan order of the present invention, and FIG. is a diagram showing the conventional scan order, Figure 5 is a diagram showing the state of sampling points when an interlaced signal is sampled field by field, and Figure 6 is a diagram showing non-zero coefficients after orthogonal transformation between a non-interlaced signal and an interlaced signal. FIG. 2 is a diagram showing the distribution of DESCRIPTION OF SYMBOLS 1... Image input terminal, 2... Orthogonal transformer, 3... Quantizer, 4.13... Scan section, 5... Block memory, 6... Changeover switch, 7... ROM,
8...Counter, 9...Run length encoder, 1
0...Data output terminal, 11...Data input terminal,
12... Run length decoder, 14... Inverse quantizer, 15... Inverse orthogonal transformer, 16... Image output terminal 3, Patent applicant: Victor Japan Co., Ltd. Figure 1 Figure 2 Figure 4Figure 3

Claims (2)

【特許請求の範囲】[Claims] (1)2次元直交変換係数をスキャンして1次元化し、
0となる係数をランレングス符号化する際に、スキャン
順を非0係数の発生分布に合わせて、垂直方向に分布が
広がっている場合には垂直方向のみのスキャンの移動を
多くし、水平方向に分布が広がっている場合には水平方
向のみのスキャンの移動を多く設定するスキャン順設定
手段を有することを特徴とする直交変換符号化装置。
(1) Scan the two-dimensional orthogonal transformation coefficients to make them one-dimensional,
When run-length encoding coefficients that become 0, the scan order is adjusted to match the occurrence distribution of non-zero coefficients, and if the distribution spreads in the vertical direction, the scan movement is increased only in the vertical direction, and the scan order is increased in the horizontal direction. 1. An orthogonal transform encoding device comprising scan order setting means for setting a large number of scan movements only in the horizontal direction when the distribution is widened.
(2)スキャンされ1次元化された係数を2次元配列に
逆スキャンする際に、スキャン順を非0係数の発生分布
に合わせて、垂直方向に分布が広がっている場合には垂
直方向のみのスキャンの移動を多くし、水平方向に分布
が広がっている場合には水平方向のみのスキャンの移動
を多く設定するスキャン順設定手段を有することを特徴
とする直交変換復号化装置。
(2) When inversely scanning the scanned and one-dimensional coefficients into a two-dimensional array, the scanning order is adjusted to match the occurrence distribution of non-zero coefficients, and if the distribution spreads in the vertical direction, only the vertical direction is used. An orthogonal transform decoding device characterized by having a scan order setting means that increases the number of scan movements and sets the number of scan movements only in the horizontal direction when the distribution spreads in the horizontal direction.
JP2319278A 1990-11-22 1990-11-22 Orthogonal transformation coding device and decoding device Pending JPH04189092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2319278A JPH04189092A (en) 1990-11-22 1990-11-22 Orthogonal transformation coding device and decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2319278A JPH04189092A (en) 1990-11-22 1990-11-22 Orthogonal transformation coding device and decoding device

Publications (1)

Publication Number Publication Date
JPH04189092A true JPH04189092A (en) 1992-07-07

Family

ID=18108424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2319278A Pending JPH04189092A (en) 1990-11-22 1990-11-22 Orthogonal transformation coding device and decoding device

Country Status (1)

Country Link
JP (1) JPH04189092A (en)

Cited By (3)

* 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
WO2011024602A1 (en) * 2009-08-26 2011-03-03 シャープ株式会社 Image encoding device and image decoding device
JP2016006983A (en) * 2010-12-03 2016-01-14 クゥアルコム・インコーポレイテッドQualcomm Incorporated Video encoding using function-based scan order for transform coefficients

Cited By (5)

* 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
WO2011024602A1 (en) * 2009-08-26 2011-03-03 シャープ株式会社 Image encoding device and image decoding device
CN102484720A (en) * 2009-08-26 2012-05-30 夏普株式会社 Image encoding device and image decoding device
JPWO2011024602A1 (en) * 2009-08-26 2013-01-24 シャープ株式会社 Image encoding apparatus and image decoding apparatus
JP2016006983A (en) * 2010-12-03 2016-01-14 クゥアルコム・インコーポレイテッドQualcomm Incorporated Video encoding using function-based scan order for transform coefficients

Similar Documents

Publication Publication Date Title
CN1056717C (en) Decoder for a compressed digital video signal using a common memory for decoding and 2/3 pull-down conversion
JP4700491B2 (en) Adaptive coefficient scan ordering
US7215707B2 (en) Optimal scanning method for transform coefficients in coding/decoding of image and video
JPH0377477A (en) Method and apparatus for variable length coding
US6847685B1 (en) Shuffling device, coding device, decoding device of video signal and medium recording the programs of shuffling, coding and decoding
JPH04189092A (en) Orthogonal transformation coding device and decoding device
US20070065018A1 (en) Compressing image data
JPH04229382A (en) Method and device for resolution conversion of digital image data
JP3403724B2 (en) Image reproducing apparatus and method
JPH0723385A (en) Highly efficient encoding device
JPH06292184A (en) Coding system
KR100359813B1 (en) Alternative Double Scan For Video Coding And Decoding
JPH02122767A (en) Encoding/decoding system for picture signal
JP2563450B2 (en) Image processing device for files
JP2861328B2 (en) High efficiency coding device
JP2835770B2 (en) Video coding control method
JPH09275559A (en) Coding method and its device
JP3238444B2 (en) Image coding system and image decoding system
JPH06291680A (en) Code quantity estimating device
JPH04293362A (en) Picture data encoding system
JP3191462B2 (en) High efficiency coding device
JP2897056B2 (en) Video coding control method
JP2662451B2 (en) Image data encoding device
JPH03285460A (en) Picture data compressing and encoding system
JPH02264584A (en) Encoding system for picture signal