JPH0832042B2 - Quasi-variable-length code DPCM encoder - Google Patents
Quasi-variable-length code DPCM encoderInfo
- Publication number
- JPH0832042B2 JPH0832042B2 JP62105158A JP10515887A JPH0832042B2 JP H0832042 B2 JPH0832042 B2 JP H0832042B2 JP 62105158 A JP62105158 A JP 62105158A JP 10515887 A JP10515887 A JP 10515887A JP H0832042 B2 JPH0832042 B2 JP H0832042B2
- Authority
- JP
- Japan
- Prior art keywords
- prediction
- line
- quasi
- circuit
- code
- 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.)
- Expired - Fee Related
Links
- 238000013139 quantization Methods 0.000 claims description 14
- 230000002093 peripheral effect Effects 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000006866 deterioration Effects 0.000 description 3
- 230000002411 adverse Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、映像信号を高能率で符号量子化するDPCM符
号化装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a DPCM coding device that codes and quantizes a video signal with high efficiency.
従来の技術 第2図に、準可変長符号DPCM符号化装置の簡単な例を
示す。この構成において予測画素の輝度信号yiは、第3
図(a)に示すように前ラインで既に符号化ずみの過去
の画素b2y,b0y、及び現ライン前値a2yを用いてyi=a2y
+b0y−b2yと予測され、色信号ciは、第3図(b)に示
すように前ラインと現ラインとでは位相が反転している
ことからci=−b0yと予測される。輝度信号・色信号分
離を2次の線形ディジタルフィルタで行うものとする
と、輝度信号は低域通過フィルタZ・{(1+Z-1)/2}2、色
信号は高域通過フィルタ−Z・{(1-Z-1)/2}2を用いて分
離されるので、最終的な予測値xiは xi=yi+ci =(a1+2a2+a3+2b-1+b1−2b2−b3)/4 …(1) となり、前ライン4画素、現ライン3画素を必要とす
る。これを第4図(a)に示す。2. Description of the Related Art FIG. 2 shows a simple example of a quasi-variable-length code DPCM coder. In this configuration, the luminance signal y i of the prediction pixel is
As shown in FIG. 6A, using the past pixels b 2y and b 0y which have already been encoded in the previous line and the previous value a 2y of the current line, y i = a 2y
The color signal c i is predicted to be + b 0y −b 2y, and the color signal c i is predicted to be c i = −b 0y because the phase is inverted between the previous line and the current line as shown in FIG. 3B. . Assuming that the luminance signal / color signal separation is performed by a second-order linear digital filter, the luminance signal is a low-pass filter Z · {(1 + Z −1 ) / 2} 2 , and the color signal is a high-pass filter −Z. Since they are separated using {(1-Z -1 ) / 2} 2 , the final predicted value x i is x i = y i + c i = (a 1 + 2a 2 + a 3 + 2b -1 + b 1 − 2b 2 −b 3 ) / 4 (1), which requires 4 pixels in the previous line and 3 pixels in the current line. This is shown in FIG.
以上は、映像信号が平面的な相関性をもつために予測
誤差が小さくなるが、画像の境界等によって前値、ある
いは前ライン画素と予測画素との相関性が失われた場
合、この予測は成り立たず伝送画像の品質劣化を引き起
こすことがある。準可変長量子化回路は、通常は短符号
に量子化し、予測した画素の予測誤差が大きい時のみ、
これを長符号に量子化して、平均的な符号長を短くする
ものである。この場合、1ライン中で長符号が所定の個
数発生した後は、そのラインでの量子化を固定長符号に
限定している。従って、1ライン中の前半より後半で画
像品質が劣る傾向にあるのは避けられないと言える。In the above, the prediction error is small because the video signal has a planar correlation, but if the previous value or the correlation between the previous line pixel and the predicted pixel is lost due to the boundary of the image, this prediction is Otherwise, it may cause deterioration of the quality of the transmitted image. The quasi-variable length quantization circuit normally quantizes into a short code, and only when the prediction error of the predicted pixel is large,
This is quantized into a long code to shorten the average code length. In this case, after a predetermined number of long codes are generated in one line, the quantization in that line is limited to the fixed length code. Therefore, it can be said that the image quality tends to be inferior in the latter half of the one line than in the latter half.
発明が解決しようとする問題点 このような前ライン予測動作、あるいは準可変長量子
化回路の長符号発生に対し、従来何等の制御も加えてい
ないために、以下のような問題が生ずる。第一に、前ラ
イン予測は第4図(a)に示したように予測点を選ぶわ
けであるが、第4図(b),(c)に示すように有効画
面の前端・終端、または有効画面第1ラインの画素に対
する予測時には、必要とする前ライン予測点が水平ブラ
ンキング期間、または垂直ブランキング期間に位置する
場合が生ずる。水平・垂直ブランキング期間の信号は有
効画面とは何等相関性を持たないために、この時の予測
誤差は現ラインのみによる予測誤差よりもむしろ大きな
ものとなり、更にこの誤差は、平面予測を用いる性質
上、その後のラインの有効画面中央部に向かって波及し
て伝送品質の劣化を招く大きな原因となり得る。第二
に、この有効画面の周辺部で生ずる誤差に対しては、そ
の大きさに応じ伝送時に準可変長量子化回路によって長
符号で量子化される可能性が高くなるが、これは有効画
面周辺部であるがゆえに視覚的には長符号量子化の利点
があまり生かされない。特に、伝送速度によって使用で
きる長符号発生数が限定される場合においては、このよ
うな長符号の使い方は、非常に不利である。Problems to be Solved by the Invention Since no control has been conventionally added to the preceding line prediction operation or the long code generation of the quasi-variable length quantization circuit, the following problems occur. First, in the previous line prediction, the prediction point is selected as shown in FIG. 4 (a), but as shown in FIGS. 4 (b) and 4 (c), the front end / end of the effective screen, or At the time of prediction for the pixels of the first line of the effective screen, the required previous line prediction point may be located in the horizontal blanking period or the vertical blanking period. Since the signal in the horizontal / vertical blanking period has no correlation with the effective screen, the prediction error at this time is larger than the prediction error due to only the current line. Furthermore, this error uses the plane prediction. In nature, it can spread to the central portion of the effective screen of the subsequent line and cause a great deterioration in transmission quality. Secondly, the error generated in the peripheral part of this effective screen is likely to be quantized by the long code by the quasi-variable length quantization circuit during transmission according to its size. Since it is the peripheral portion, the advantage of long code quantization is not visually utilized. Especially, when the number of long codes that can be used is limited depending on the transmission rate, the use of such long codes is extremely disadvantageous.
本発明は上記問題点解消し、長符号を有効に使用し伝
送品質の向上を可能にするDPCM符号化装置を提供するも
のである。The present invention solves the above-mentioned problems and provides a DPCM coding apparatus which can effectively use a long code and improve the transmission quality.
問題点を解決するための手段 本発明は、ディジタル化された映像信号の現ラインと
前ライン以前の複数の画素から、次に出現する画素信号
を平面予測し、予測した画素の予測誤差を長符号または
短符号に量子化し、あるラインで長符号が所定の個数発
生した場合、その後、そのラインでは固定長符号に限定
して量子化し、更に前記予測を有効画面の周辺領域で現
ライン予測に変更するべく制御し、また前記準可変長量
子化を有効画面の周辺領域で固定長符号に限定するもの
である。Means for Solving the Problems The present invention performs plane prediction of a pixel signal that appears next from a plurality of pixels before the current line and the previous line of a digitized video signal, and lengthens prediction error of the predicted pixel. Quantize to a code or short code, and if a certain number of long codes occur on a line, then quantize by limiting to a fixed length code on that line, and further predict the current line prediction in the peripheral area of the effective screen. It is controlled to change, and the quasi-variable length quantization is limited to a fixed length code in the peripheral area of the effective screen.
作用 上記の方法により準可変長符号DPCM符号化装置の有効
画面周辺部における誤り増大を防ぐと共に、限られた数
の長符号をより有効に使用することによって、伝送品質
の向上を可能にする。By the above method, it is possible to improve the transmission quality by preventing the error from increasing in the peripheral portion of the effective screen of the quasi-variable-length code DPCM encoding device and by effectively using the limited number of long codes.
実施例 本発明によるDPCM符号化装置の一実施例について、第
1図と共にその回路構成を示す。これは、準可変長量子
化回路14、及び前ライン・現ライン予測回路18・17と、
長符号カウンタ12及び固定長符号選択信号出力ブロック
13と、画素カウンタ24と、前ライン予測停止信号出力ブ
ロック22、及び前ライン予測停止ゲート21と、固定長符
号強制信号出力ブロック23等から成る。ここでは一例と
して、サンプリング周波数を8.91MHzとし、従って1ラ
インのサンプル点は566個、有効画面での画素数は460画
素となる。伝送速度を32.06Mbpsとした場合、この460画
素の内46画素までを8ビットの長符号として伝送するこ
とが可能で、残りを4ビットの短符号で伝送することに
なる。固定長符号選択信号出力ブロック13は、長符号カ
ウンタ12が長符号の数を46個数えた直後に、固定長符号
(短符号)選択信号を準可変長量子化回路14に出力す
る。Embodiment An embodiment of the DPCM encoding device according to the present invention will be shown in FIG. 1 together with its circuit configuration. This is a quasi-variable length quantization circuit 14, and previous line / current line prediction circuits 18 and 17,
Long code counter 12 and fixed length code selection signal output block
13, a pixel counter 24, a preceding line prediction stop signal output block 22, a preceding line prediction stop gate 21, a fixed length code forced signal output block 23, and the like. Here, as an example, the sampling frequency is 8.91 MHz, so that there are 566 sample points on one line and the number of pixels on the effective screen is 460 pixels. When the transmission speed is 32.06 Mbps, up to 46 pixels of the 460 pixels can be transmitted as an 8-bit long code, and the rest can be transmitted by a 4-bit short code. The fixed-length code selection signal output block 13 outputs the fixed-length code (short code) selection signal to the quasi-variable-length quantization circuit 14 immediately after the long-code counter 12 counts the number of long codes by 46.
本回路の予測式は、既に(1)式に示したもので、第
4図によれば画素xiの予測には前ラインにおいて前方向
に最大3画素、後方向に最大1画素を必要とすることに
なるので、これらが水平ブランキング期間内に属する場
合、第5図に示すように有効画面の前端3画素、及び後
端1画素の信号を前ライン予測停止ゲート21においてマ
スクしてやれば、予測に必要な前ライン画素が水平ブラ
ンキング期間に属した場合に起こり得る現ライン予測点
に対する悪影響を取り除くことができる。The prediction formula of this circuit is already shown in the formula (1). According to FIG. 4, a maximum of 3 pixels in the forward direction and a maximum of 1 pixel in the backward direction are required for the prediction of the pixel x i . Therefore, when these belong to the horizontal blanking period, if the signals of the front end 3 pixels and the rear end 1 pixel of the effective screen are masked in the front line prediction stop gate 21 as shown in FIG. 5, It is possible to remove an adverse effect on the current line prediction point that may occur when the previous line pixel required for prediction belongs to the horizontal blanking period.
前ライン予測結果は、入力PCM信号との誤差検出のた
めの減算器11までに2遅延(現ライン予測回路内)を通
過すること、及び画素カウンタ24が準可変長量子化回路
14入力時の画素信号よりも1クロック早くカウントして
いることの2点から、前ライン予測停止信号出力ブロッ
ク22が前ライン予測停止ゲート21に与えるマスク信号は
第6図のようになる。The previous line prediction result passes through two delays (in the current line prediction circuit) up to the subtracter 11 for detecting an error with the input PCM signal, and the pixel counter 24 uses the quasi variable length quantization circuit.
From the two points of counting one clock earlier than the pixel signal at the time of 14 inputs, the mask signal given to the preceding line prediction stop gate 21 by the preceding line prediction stop signal output block 22 is as shown in FIG.
同様に、前ライン画素が垂直ブランキング期間に属す
る場合、即ち有効画面第1ラインの予測時にも前ライン
予測停止ゲート21において予測信号をマスクしてやれ
ば、前ライン予測による悪影響は取り除くことができ
る。Similarly, if the preceding line pixel belongs to the vertical blanking period, that is, the prediction signal is masked by the preceding line prediction stop gate 21 even when the first line of the effective screen is predicted, the adverse effect of the preceding line prediction can be eliminated.
第5図には、垂直ブランキング期間、及び有効画面第
1ラインを前ライン予測停止期間として示してある。長
符号量子化禁止領域、即ち固定長符号強制領域を、第5
図に示すように水平ブランキング期間、及び有効画面前
端5画素の期間とすると、やはり画素カウンタ24が準可
変長量子化回路14入力時の画素信号より1クロック早い
ことから、固定長符号強制信号出力ブロック23が準可変
長量子化回路14に与える信号は第6図(b)に示すよう
なものとなる。In FIG. 5, the vertical blanking period and the first line of the effective screen are shown as the previous line prediction stop period. The long code quantization prohibited area, that is, the fixed length code forced area is
As shown in the figure, if the horizontal blanking period and the period of 5 pixels at the front end of the effective screen are set, the pixel counter 24 is one clock earlier than the pixel signal at the time of inputting the quasi-variable length quantization circuit 14. The signal supplied from the output block 23 to the quasi-variable length quantization circuit 14 is as shown in FIG. 6 (b).
発明の効果 以上のように、本発明によれば、準可変長符号を用い
るDPCM符号化装置において有効画面の周辺部に生ずる大
きな予測誤差による伝送品質の劣化を防ぎ、また長符号
を有効的に使用することで伝送品質の向上が可能とな
る。As described above, according to the present invention, in the DPCM coding apparatus using the quasi-variable-length code, it is possible to prevent the deterioration of the transmission quality due to the large prediction error that occurs in the peripheral portion of the effective screen, and to effectively use the long code. By using it, the transmission quality can be improved.
第1図は本発明の一実施例の準可変長DPCM符号化装置の
構成図、第2図は従来例の準可変長DPCM符号化装置の簡
単な例を示す構成図、第3図および第4図は同従来例に
おける予測画素状態図、第5図は第1図における装置の
予測画素状態図、第6図は同装置の動作波形図である。 10,25,26……遅延器、11……減算器、12……長符号カウ
ンタ、13……固定長符号選択信号出力ブロック、14……
準可変長量子化回路、15,16……加算器、17……現ライ
ン予測回路、18……前ライン予測回路、20……ANDゲー
ト、21……前ライン予測停止ゲート、22……前ライン予
測停止信号出力ブロック、23……固定長符号強制信号出
力ブロック、24……画素カウンタ、27……NANDゲート。FIG. 1 is a configuration diagram of a quasi-variable length DPCM encoding device according to an embodiment of the present invention, FIG. 2 is a configuration diagram showing a simple example of a conventional quasi-variable length DPCM encoding device, FIG. 3 and FIG. FIG. 4 is a predicted pixel state diagram in the conventional example, FIG. 5 is a predicted pixel state diagram of the device in FIG. 1, and FIG. 6 is an operation waveform diagram of the device. 10,25,26 …… Delayer, 11 …… Subtractor, 12 …… Long code counter, 13 …… Fixed length code selection signal output block, 14 ……
Quasi-variable-length quantization circuit, 15, 16 ... Adder, 17 ... Current line prediction circuit, 18 ... Previous line prediction circuit, 20 ... AND gate, 21 ... Previous line prediction stop gate, 22 ... Previous Line prediction stop signal output block, 23 ... fixed length code forced signal output block, 24 ... pixel counter, 27 ... NAND gate.
Claims (1)
前ライン以前の複数のサンプル画素から、次に出現する
画素信号を平面予測する予測回路と、この予測した画素
の予測誤差を長符号または短符号に量子化し、あるライ
ンで長符号が所定の個数発生した場合、その後、そのラ
インでは固定長符号に限定して量子化する準可変長量子
化回路を構成要素とし、前記予測回路は、有効画面の周
辺領域で現ライン予測のみに変更する前ライン予測停止
回路、および前記準可変長量子化回路を有効画面の周辺
領域で固定長符号に強制限定する強制回路を有すること
を特徴とする準可変長DPCM符号化装置。1. A prediction circuit for planarly predicting a pixel signal that appears next from a plurality of sample pixels before the current line and the previous line of the digitized video signal, and a prediction error of the predicted pixel by a long code or Quantizing into a short code, when a predetermined number of long codes occur in a certain line, after that, a quasi-variable length quantizing circuit that quantizes by limiting to a fixed length code in that line is a component, and the prediction circuit is A pre-line prediction stop circuit that changes only the current line prediction in the peripheral area of the effective screen, and a compulsory circuit that forcibly limits the quasi-variable-length quantization circuit to a fixed-length code in the peripheral area of the effective screen. Quasi-variable length DPCM encoder.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62105158A JPH0832042B2 (en) | 1987-04-28 | 1987-04-28 | Quasi-variable-length code DPCM encoder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62105158A JPH0832042B2 (en) | 1987-04-28 | 1987-04-28 | Quasi-variable-length code DPCM encoder |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63269883A JPS63269883A (en) | 1988-11-08 |
| JPH0832042B2 true JPH0832042B2 (en) | 1996-03-27 |
Family
ID=14399903
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62105158A Expired - Fee Related JPH0832042B2 (en) | 1987-04-28 | 1987-04-28 | Quasi-variable-length code DPCM encoder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0832042B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02219390A (en) * | 1989-02-21 | 1990-08-31 | Oki Electric Ind Co Ltd | System for compressing and extending video signal |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59215184A (en) * | 1983-05-23 | 1984-12-05 | Nippon Telegr & Teleph Corp <Ntt> | Buffer memory control system |
-
1987
- 1987-04-28 JP JP62105158A patent/JPH0832042B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63269883A (en) | 1988-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3109854B2 (en) | Image coding method and apparatus | |
| JP2891772B2 (en) | Digital image coding method using random scanning of image frames | |
| EP0737015B1 (en) | Encoding apparatus | |
| JP2509469B2 (en) | Method and apparatus for adaptive encoding and decoding of continuous image by conversion | |
| WO1991003128A1 (en) | Control system for encoding image | |
| JPH09121162A (en) | Transmission system with difference pulse-code modulation encoding device | |
| JPH08256335A (en) | Quantization parameter determination device and method | |
| JP2007158430A (en) | Image information encoding device | |
| JP2872339B2 (en) | Redundancy reduction device for blocks of digital video data in discrete cosine transform coding | |
| JPH0313089A (en) | encoding device | |
| CA2090206A1 (en) | Encoding apparatus for motion video signals | |
| JPS5857836A (en) | Forecasting encoder | |
| EP0719052B1 (en) | Image coding method and apparatus with code amount estimation | |
| JPH0832042B2 (en) | Quasi-variable-length code DPCM encoder | |
| JP2573921B2 (en) | Television signal DPCM encoder | |
| JPH0748859B2 (en) | Predictive coding method for television signals | |
| KR100287146B1 (en) | Compression encoding method of video signal and encoder | |
| KR930004265B1 (en) | Quantumized pulse width control circuit | |
| JP2000050277A (en) | Encoding device and encoding method | |
| JP2701274B2 (en) | High efficiency coding device | |
| KR100357089B1 (en) | Frame reconstruction device of mpeg video encoder | |
| KR100225348B1 (en) | Quantization coefficient counting device for quantization number determination | |
| JP2623891B2 (en) | Data compression apparatus and method | |
| JP2789586B2 (en) | High efficiency coding device | |
| KR890000334B1 (en) | Quantization Coding Device with Image Motion Detector |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |