[go: up one dir, main page]

JPH06178287A - Picture coder - Google Patents

Picture coder

Info

Publication number
JPH06178287A
JPH06178287A JP32293492A JP32293492A JPH06178287A JP H06178287 A JPH06178287 A JP H06178287A JP 32293492 A JP32293492 A JP 32293492A JP 32293492 A JP32293492 A JP 32293492A JP H06178287 A JPH06178287 A JP H06178287A
Authority
JP
Japan
Prior art keywords
code amount
data
circuit
encoding
coding
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
JP32293492A
Other languages
Japanese (ja)
Inventor
Hiroshi Okamoto
啓史 岡本
Tatsuji Sakauchi
達司 坂内
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP32293492A priority Critical patent/JPH06178287A/en
Publication of JPH06178287A publication Critical patent/JPH06178287A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

(57)【要約】 【目的】 可変長符号化後の符号量が目標符号量を越え
た場合においても、再生画質に与える影響の少ない画像
符号化装置を提供することを目的とする。 【構成】 DCT処理後のデータを、シャフリング回路
6で画面中央部のデータから周辺部のデータへと並び換
え、符号量見積り回路7で選択された量子化テーブルに
基づいて順次量子化回路8で量子化する。符号量積算回
路11で可変長符号化後の累積符号量をカウントし、途中
の累積符号量に応じて、量子化制御回路9でマクロブロ
ック単位に量子化ステップを再設定する。途中で目標符
号量を越えた時は、それ以降の可変長符号化回路10から
のデータ出力を打ち切る。復号時には、伝送ブロック検
出回路20で、復号データからEOBが検出されるタイミ
ングをもとにデータの打ち切られた領域を検出する。
(57) [Abstract] [Purpose] An object of the present invention is to provide an image coding apparatus which has little influence on the reproduced image quality even when the code amount after variable length coding exceeds the target code amount. The data after DCT processing is rearranged by the shuffling circuit 6 from the data in the central portion of the screen to the data in the peripheral portion, and the quantizing circuit 8 is sequentially arranged based on the quantization table selected by the code amount estimating circuit 7. Quantize with. The code amount accumulating circuit 11 counts the accumulated code amount after the variable length coding, and the quantization control circuit 9 resets the quantization step for each macro block according to the accumulated code amount in the middle. When the target code amount is exceeded on the way, the data output from the variable length coding circuit 10 thereafter is terminated. At the time of decoding, the transmission block detection circuit 20 detects the area where the data is discontinued based on the timing at which EOB is detected from the decoded data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、テレビジョン等の映像
信号を情報圧縮してVTRなどに記録、あるいは伝送す
るための画像符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus for compressing information of a video signal of a television or the like and recording or transmitting the information on a VTR or the like.

【0002】[0002]

【従来の技術】画像の高能率符号化方式の国際標準とし
て、DCTと可変長符号化によって情報圧縮を図る方式
が採用されている。この方式では、まずディジタルの画
像データに変換された映像信号に対して、2次元DCT
処理を施すことによって水平・垂直方向の周波数成分に
変換する。次に、低域の係数は細かく、高域の係数は粗
く量子化する。量子化されたDCT係数に対して、DC
成分はDPCMとハフマン符号化によって可変長符号化
し、AC成分についてはジグザグスキャンして低域から
順番に並べ替えた後、ハフマン符号化とランレングス符
号化によって可変長符号化し、情報を圧縮する。
2. Description of the Related Art As an international standard for a high-efficiency image coding method, a method for compressing information by DCT and variable length coding is adopted. In this method, a two-dimensional DCT is first performed on a video signal converted into digital image data.
By processing, it is converted into frequency components in the horizontal and vertical directions. Next, low-frequency coefficients are finely quantized, and high-frequency coefficients are coarsely quantized. DC for the quantized DCT coefficient
The components are subjected to variable length coding by DPCM and Huffman coding, and the AC components are zigzag scanned to be rearranged in order from the low frequency range, and then variable length coding is performed by Huffman coding and run length coding to compress information.

【0003】上記符号化方式をVTRなどに適用する場
合、所定のデータレートを越えないように、例えば1フ
レーム毎に一定の符号量に制御する必要がある。符号量
の制御は、各DCT係数を量子化する際の量子化ステッ
プを変えることによって行うのが一般的である。量子化
ステップを細かくすれば符号量は増大し、逆に量子化ス
テップを粗くすれば符号量は減少する。目標符号量以下
で符号量が最大となるような量子化ステップの最適値を
求めるために、実際に量子化する前に次のような処理を
行う。
When the above-mentioned coding method is applied to a VTR or the like, it is necessary to control the code amount so that it does not exceed a predetermined data rate, for example, every frame. The code amount is generally controlled by changing the quantization step when quantizing each DCT coefficient. If the quantization step is made fine, the code amount increases, and conversely, if the quantization step is made coarse, the code amount decreases. Before the actual quantization, the following processing is performed in order to find the optimum value of the quantization step that maximizes the code amount below the target code amount.

【0004】まず1枚の画像データをM個の領域に分割
する。量子化ステップ幅と対応するスケールファクタを
αとするとき、M個の領域それぞれ別のαに基づいて量
子化して可変長符号化した場合の符号量を計算し、ここ
で符号化する画像におけるスケールファクタαと符号量
の関係を求める。この関係から、目標符号量を達成する
ための最適なスケールファクタαを計算する。量子化テ
ーブルは、スケールファクタαの関数として選ばれるの
で、上記計算結果から最適な量子化テーブルを初期値と
して選択する。被符号化画像データの各DCT係数は、
選択された量子化テーブルに基づいて、それぞれ対応す
る量子化ステップでもって実際に量子化され、可変長符
号化される。
First, one image data is divided into M areas. When the scale factor corresponding to the quantization step width is α, the amount of code when variable length coding is performed by quantization based on α of each of the M areas is calculated, and the scale in the image to be encoded here is calculated. The relationship between the factor α and the code amount is calculated. From this relationship, the optimum scale factor α for achieving the target code amount is calculated. Since the quantization table is selected as a function of the scale factor α, the optimum quantization table is selected as the initial value from the above calculation result. Each DCT coefficient of the encoded image data is
Based on the selected quantization table, it is actually quantized by the corresponding quantization step and variable-length coded.

【0005】上記のように、初期値として選択された量
子化テーブルは予測値であり、最適値であるとは限らな
いので、符号量制御単位(例えば1フレーム)の画像全
体を可変長符号化した後の全符号量が、常に目標符号量
以下になるという保証はない。その誤差を修正するため
に、複数の符号化ブロックからなるマクロブロック毎に
量子化テーブルを再設定可能なフォーマットにすること
によって、途中の累積符号量から、最終的に目標符号量
を越えると判断される場合は、その時点以降の量子化テ
ーブルを、量子化ステップが粗くなる方向に再設定する
ことにより、一定のデータレート以下になるように調整
する。
As described above, since the quantization table selected as the initial value is the predicted value and is not always the optimum value, the entire image of the code amount control unit (for example, one frame) is variable length coded. There is no guarantee that the total code amount after this will always be less than or equal to the target code amount. In order to correct the error, the quantization table is set to a format that can be reset for each macroblock consisting of multiple coded blocks, and it is determined that the target code amount will eventually be exceeded from the cumulative code amount in the middle. In such a case, the quantization table after that point is reset so that the quantization step becomes coarser, so that the data rate is adjusted to be equal to or lower than a certain data rate.

【0006】また、特開平4−81184号公報で開示
されている画像データ圧縮方式では、可変長符号化後の
総符号量が目標符号量を越える場合には、画像の上下の
ラインをトリミングして符号化対象画像を小さくするこ
とにより、データ量を削減し、符号量を制御している。
In the image data compression method disclosed in Japanese Patent Laid-Open No. 4-81184, if the total code amount after variable length coding exceeds the target code amount, upper and lower lines of the image are trimmed. The amount of data is reduced and the amount of code is controlled by reducing the size of the image to be encoded.

【0007】[0007]

【発明が解決しようとする課題】しかしながら上記第1
の従来の画像符号化装置では、符号化の途中でその時点
以降の量子化テーブルを変更するので、1枚の画像の中
で、最後の方に符号化されたブロックの方が前半に符号
化されたものよりも歪が大きくなる可能性があり、ま
た、量子化テーブルの変更だけでは途中で累積符号量が
目標符号量を越えて、それ以降のデータが切り捨てられ
る場合もある。したがって、例えば画面中央部の画質が
著しく劣化したり、あるいはデータが切り捨てられてし
まう可能性があり、この場合、再生画像の品質に大きく
影響することになる。
However, the above-mentioned first problem
In the conventional image coding apparatus, the quantization table after that time is changed in the middle of coding, so that the last coded block in one image is coded in the first half. There is a possibility that the distortion will be larger than the above-mentioned one, and the cumulative code amount may exceed the target code amount in the middle only by changing the quantization table, and the data thereafter may be truncated. Therefore, for example, the image quality at the central portion of the screen may be significantly deteriorated or the data may be truncated, and in this case, the quality of the reproduced image is greatly affected.

【0008】また、上記第2の従来の画像符号化装置で
は、画面中央部の品質は保証されるが、画面の大きさが
画像によって変わることになるので、静止画の符号化に
は適用できるが、動画の符号化には向いていない。更
に、この方式では、所定のデータレート以下になるまで
1枚の画像に対して、トリミング、DCT、量子化、可
変長符号化処理を繰り返すので、例えば静止画ファイル
のエンコーダなど符号化に要する時間に制約の少ない装
置には有効であるが、VTRなど動画像の記録装置で
は、リアルタイムに符号化処理する必要があるので適用
が困難である。
Further, in the second conventional image coding apparatus, the quality of the central portion of the screen is guaranteed, but the size of the screen changes depending on the image, so that it can be applied to the coding of a still image. However, it is not suitable for video coding. Further, in this method, trimming, DCT, quantization, and variable length coding processing are repeated for one image until the data rate becomes equal to or lower than a predetermined data rate. Therefore, for example, the time required for coding such as a still image file encoder. However, it is difficult to apply it to a moving image recording device such as a VTR because it requires real-time encoding processing.

【0009】本発明は上記従来の問題点を解決するもの
で、簡単な構成で、可変長符号化後の符号量が目標符号
量を越えた場合においても、再生画質に与える影響の少
ない画像符号化装置を提供することを目的とする。
The present invention solves the above-mentioned problems of the prior art, and has a simple structure, and even when the code amount after variable-length coding exceeds the target code amount, an image code that has little influence on the reproduced image quality. It is an object of the present invention to provide a chemical conversion device.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
に第1の発明の画像符号化装置は、符号量制御単位毎に
目標符号量になる符号化パラメータを推測する手段と、
前記推測した符号化パラメータで、画像信号の画面上の
中央部の画素から周辺部に向かって順に符号化する手段
と、前記符号化後の符号量を積算する手段と、前記積算
された符号量が目標符号量を越えた場合にそれ以降のデ
ータを打ち切る手段とを有する。
In order to achieve this object, the image coding apparatus according to the first aspect of the present invention comprises means for estimating a coding parameter which becomes a target code amount for each code amount control unit,
With the estimated coding parameters, means for sequentially coding from the central pixel on the screen of the image signal toward the peripheral portion, means for integrating the code amount after the encoding, and the integrated code amount Has a target code amount, the subsequent data is cut off.

【0011】また、第2の発明は、画像符号化する際
に、符号量制御単位毎に目標符号量になる符号化パラメ
ータを推測する手段と、前記推測した符号化パラメータ
で符号化する手段と、前記符号化後の符号量を積算する
手段と、前記積算された符号量が目標符号量を越えた場
合にそれ以降のデータを打ち切る手段と、復号する際
に、打ち切られたデータを検出する手段と、前記打ち切
られたデータが示す画面上の領域は既に伝送されたフレ
ームもしくはフィールドのデータで置き換える手段とを
有するものである。
The second aspect of the present invention further comprises means for estimating a coding parameter that becomes a target code amount for each code amount control unit, and means for performing encoding with the estimated coding parameter when the image is encoded. , Means for accumulating the code amount after the encoding, means for aborting the subsequent data when the accumulated code amount exceeds a target code amount, and detecting the aborted data when decoding Means and means for replacing the area on the screen indicated by the aborted data with the data of the already transmitted frame or field.

【0012】[0012]

【作用】本発明は画面上の中央部のブロックから順番に
符号化することにより、データレートを所定のレート内
に制限するために、量子化ステップが粗い領域や、ブロ
ック内のデータの一部あるいは全部が切り捨てられるブ
ロックは画面周辺部に集中するので、画面上で視覚に与
える影響の大きい中央部のデータが保護される。また、
データが切り捨てられたブロックについては、既に伝送
されている前フレームのデータで置き換えることによ
り、最終的に目標符号量を越えた場合にも、画質劣化を
少なくすることができる。更に、フレーム毎に符号化の
順番を換えることにより、データの切り捨てが連続して
行われた場合においても、常に同じブロックのデータが
切り捨てられることはない。
According to the present invention, coding is performed in order from the central block on the screen, so that the data rate is limited within a predetermined rate, so that a region with a rough quantization step or a part of data in the block is used. Alternatively, since all the blocks that are truncated are concentrated in the peripheral area of the screen, the data in the central area, which has a large visual impact on the screen, is protected. Also,
By replacing the block in which the data has been truncated with the data of the previous frame that has already been transmitted, it is possible to reduce image quality deterioration even when the target code amount is finally exceeded. Furthermore, by changing the encoding order for each frame, even if the data is continuously truncated, the data in the same block is not always truncated.

【0013】[0013]

【実施例】以下本発明の画像符号化装置の一実施例につ
いて、図面を参照しながら説明する。図1は本発明の一
実施例における信号処理ブロック図、図2は本発明の一
実施例におけるブロックの符号化順序の説明図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the image coding apparatus of the present invention will be described below with reference to the drawings. FIG. 1 is a signal processing block diagram in an embodiment of the present invention, and FIG. 2 is an explanatory diagram of a coding order of blocks in an embodiment of the present invention.

【0014】図1において、1は映像信号入力端子、2
はアナログの映像信号をディジタルの画像データに変換
するA/D変換器、3は1フレームの画像データを8ラ
イン*8画素からなるブロックに分割するブロック分割
回路、4は前記ブロック毎にDCT処理を行うDCT処
理回路、5はシャフリングルール切り換え信号入力端
子、6はシャフリング回路、7は可変長符号化後の符号
量を見積り、最適な量子化テーブルを選択する符号量見
積り回路、8は各DCT係数を量子化する量子化回路、
9は累積符号量に応じて量子化ステップの再設定を行う
量子化制御回路、10は量子化結果を可変長符号化する可
変長符号化回路、11は符号量を順次積算する符号量積算
回路、12は可変長符号とシャフリングルール切り換え信
号と量子化テーブルナンバーとを多重するデータ多重回
路、13は記録信号処理回路、14は記録ヘッド、15は記録
媒体である。
In FIG. 1, 1 is a video signal input terminal and 2 is a video signal input terminal.
Is an A / D converter that converts an analog video signal into digital image data, 3 is a block division circuit that divides 1 frame of image data into blocks of 8 lines * 8 pixels, and 4 is a DCT process for each block A DCT processing circuit for performing 5), 5 is a shuffling rule switching signal input terminal, 6 is a shuffling circuit, 7 is a code amount estimation circuit for estimating a code amount after variable-length encoding and selecting an optimum quantization table, 8 is A quantization circuit for quantizing each DCT coefficient,
Reference numeral 9 is a quantization control circuit that resets the quantization step according to the cumulative code amount, 10 is a variable length coding circuit that performs variable length coding on the quantization result, and 11 is a code amount integrating circuit that sequentially integrates the code amounts. , 12 is a data multiplexing circuit for multiplexing the variable length code, the shuffling rule switching signal and the quantization table number, 13 is a recording signal processing circuit, 14 is a recording head, and 15 is a recording medium.

【0015】16は再生ヘッド、17は再生信号処理回路、
18は再生信号から可変長符号とシャフリングルール切り
換え信号と量子化テーブルナンバーとを分離するデータ
分離回路、19は可変長復号化回路、20は伝送ブロック検
出回路、21は逆量子化回路、22は逆シャフリング回路、
23は逆DCT回路、24はブロック統合回路、25はD/A
変換器、26は映像信号出力端子である。
Reference numeral 16 is a reproducing head, 17 is a reproduction signal processing circuit,
18 is a data separation circuit for separating a variable length code, a shuffling rule switching signal and a quantization table number from a reproduced signal, 19 is a variable length decoding circuit, 20 is a transmission block detection circuit, 21 is an inverse quantization circuit, 22 Is a reverse shuffling circuit,
23 is an inverse DCT circuit, 24 is a block integrated circuit, 25 is a D / A
The converter 26 is a video signal output terminal.

【0016】以上のように構成された画像符号化装置に
ついて、以下その動作について説明する。簡単のため
に、入力映像信号は輝度信号のみの場合について説明す
る。まず、入力端子1から入力された映像信号は、A/
D変換器2でディジタルの画像データに変換される。ブ
ロック分割回路3では前記画像データを8ライン*8画
素からなるブロックに分割し、64画素毎の画像データ
を順次出力する。DCT処理回路4ではブロック毎に2
次元DCT処理を行い、8*8のDCT係数を順次出力
する。
The operation of the image coding apparatus configured as described above will be described below. For simplicity, the case where the input video signal is only the luminance signal will be described. First, the video signal input from the input terminal 1 is A /
It is converted into digital image data by the D converter 2. The block division circuit 3 divides the image data into blocks each consisting of 8 lines * 8 pixels, and sequentially outputs the image data for every 64 pixels. In the DCT processing circuit 4, 2 for each block
Dimensional DCT processing is performed, and 8 * 8 DCT coefficients are sequentially output.

【0017】シャフリング回路6では、1フレーム分の
DCT係数をメモリに書き込む。また、シャフリングル
ール切り換え信号入力端子5からは、奇数番目のフレー
ムと偶数番目のフレームを区別する信号が入力し、その
信号に応じて2種類のシャフリングルールの内の一方が
選択され、それに基づいてブロック毎に各DCT係数を
シャフリング回路6から出力する。
The shuffling circuit 6 writes the DCT coefficients for one frame in the memory. Further, a signal for distinguishing an odd-numbered frame from an even-numbered frame is input from the shuffling rule switching signal input terminal 5, and one of two types of shuffling rules is selected according to the signal, and Based on this, each DCT coefficient is output from the shuffling circuit 6 for each block.

【0018】図2に2種類のシャフリングルールの一例
を示している。図2では、1フレームの画像を512ラ
イン*768画素(64*96ブロック)とした時、水
平方向に隣合う8ブロックと垂直方向に隣合う4ブロッ
クの合計32ブロックを1マクロブロックとして、各マ
クロブロック単位で符号化順序を設定している。ここ
で、奇数番目のフレームに対応する符号化順序を(a)
に示し、偶数番目のフレームに対応する符号化順序を
(b)に示している。符号化順序すなわちシャフリング
回路6からの出力はまず画面の中央部のブロックのDC
T係数から順に出力する。
FIG. 2 shows an example of two types of shuffling rules. In FIG. 2, when one frame image has 512 lines * 768 pixels (64 * 96 blocks), 8 blocks adjacent in the horizontal direction and 4 blocks adjacent in the vertical direction are 32 blocks in total, and one macroblock is defined as each block. The coding order is set for each macroblock. Here, the encoding order corresponding to the odd-numbered frames is (a)
And the coding order corresponding to the even-numbered frames is shown in (b). The encoding order, that is, the output from the shuffling circuit 6 is the DC of the block in the center of the screen
It outputs in order from the T coefficient.

【0019】画面周辺部のブロックについては、奇数番
目のフレームは図2(a)に示すように上端部を下端部
より先に出力し、逆に、偶数番目のフレームは図2
(b)に示すように下端部を上端部より先に出力する。
符号量見積り回路7では、1フレーム分の時間でそのフ
レームの画像に対して最適な量子化テーブルの初期値が
選択される。量子化回路8では、各DCT係数に対し
て、量子化制御回路9から入力する量子化テーブルに基
づいて量子化を行い、量子化データを出力する。量子化
制御回路9では、符号量積算回路11から入力する累積符
号量から1フレーム全体の最終的な符号量を予測し、目
標符号量を越えると判断される場合は、その時点以降の
量子化テーブルをマクロブロック単位で変更して量子化
回路8とデータ多重回路12に出力する。
Regarding the blocks in the peripheral portion of the screen, the odd-numbered frames output the upper end portion before the lower end portion as shown in FIG. 2A, and conversely, the even-numbered frames are output as shown in FIG.
As shown in (b), the lower end is output before the upper end.
The code amount estimation circuit 7 selects the optimum initial value of the quantization table for the image of the frame in a time corresponding to one frame. The quantization circuit 8 quantizes each DCT coefficient based on the quantization table input from the quantization control circuit 9, and outputs quantized data. The quantization control circuit 9 predicts the final code amount of one frame from the accumulated code amount input from the code amount integration circuit 11, and if it is determined that the target code amount is exceeded, the quantization after that time is performed. The table is changed in macroblock units and output to the quantization circuit 8 and the data multiplexing circuit 12.

【0020】可変長符号化回路10では前記量子化データ
に対して、係数のDC成分はDPCM処理した後、ハフ
マン符号化し、AC成分については低域成分から高域成
分の順にジグザグスキャンした後、ハフマン符号化とラ
ンレングス符号化することによって可変長符号化して、
可変長符号を出力する。この時、AC成分のデータ列に
おいて、一番最後の非零の係数のあとにEOB(End of
Block)の符号を挿入する。
In the variable-length coding circuit 10, the DC component of the coefficient is subjected to the DPCM processing, the Huffman coding is performed on the quantized data, and the AC component is zigzag-scanned in the order from the low frequency component to the high frequency component. Variable length coding by Huffman coding and run length coding,
Outputs a variable length code. At this time, in the data string of AC component, EOB (End of
Block) is inserted.

【0021】符号量積算回路11では1フレーム内で、可
変長符号化後の符号量を積算し、量子化制御回路9に出
力する。また、累積符号量があらかじめ設定された目標
符号量を越えた場合は、可変長符号化回路10に符号化打
ち切り信号を出力する。符号化打ち切り信号が入力され
た後に可変長符号化回路10に入力されたデータは、全
て切り捨てられる。
The code amount integrating circuit 11 integrates the code amounts after variable-length coding within one frame and outputs it to the quantization control circuit 9. Further, when the cumulative code amount exceeds the preset target code amount, a coded cutoff signal is output to the variable length coding circuit 10. All the data input to the variable length coding circuit 10 after the coded truncation signal is input are truncated.

【0022】データ多重回路12では、シャフリングルー
ル切り換え信号入力端子5から入力するシャフリングル
ール切り換え信号と、量子化制御回路9から入力する量
子化テーブルナンバーとを、可変長符号に多重する。記
録信号処理回路13で誤り訂正信号付加、同期信号及びI
D付加、記録変調処理を施し、記録ヘッド14を介して記
録媒体15上に記録する。
The data multiplexing circuit 12 multiplexes the shuffling rule switching signal input from the shuffling rule switching signal input terminal 5 and the quantization table number input from the quantization control circuit 9 into a variable length code. The recording signal processing circuit 13 adds an error correction signal, a synchronization signal and I
D addition and recording modulation processing are performed, and recording is performed on the recording medium 15 via the recording head 14.

【0023】再生時には、記録媒体15から再生ヘッド16
を介して再生した信号を、再生信号処理回路17で再生等
化、符号検出、同期検出、再生復調し、誤り訂正処理を
行った後、データ分離回路18に出力する。データ分離回
路18は、再生されたデータを可変長符号と、シャフリン
グルール切り換え信号と、量子化テーブルナンバーに分
離して出力する。可変長復号化回路19は、可変長符号を
復号し、各符号化ブロック毎に挿入されているEOBが
検出された時にEOB検出信号を出力する。可変長復号
化回路19から出力される復号データおよびEOB検出信
号は、ブロック毎に一定のタイミングで出力される。
At the time of reproduction, the reproducing head 16 is removed from the recording medium 15.
The reproduction signal processing circuit 17 performs reproduction equalization, code detection, synchronization detection, reproduction demodulation, and error correction processing on a signal reproduced via the data reproduction circuit 17 and outputs the signal to the data separation circuit 18. The data separation circuit 18 separates the reproduced data into a variable length code, a shuffling rule switching signal, and a quantization table number and outputs the separated data. The variable length decoding circuit 19 decodes a variable length code and outputs an EOB detection signal when an EOB inserted in each coded block is detected. The decoded data and the EOB detection signal output from the variable length decoding circuit 19 are output at constant timing for each block.

【0024】伝送ブロック検出回路20では、可変長復号
化回路19からのEOB検出信号が所定のタイミングで出
力されているかどうかを判定し、EOB検出信号が所定
のタイミングで出力されなかったブロック以降はデータ
が伝送されていないものと判断して、逆シャフリング回
路22にメモリ書き込み禁止信号を出力する。
The transmission block detection circuit 20 determines whether or not the EOB detection signal from the variable length decoding circuit 19 is output at a predetermined timing, and after the block where the EOB detection signal is not output at the predetermined timing, It judges that the data is not transmitted and outputs the memory write inhibit signal to the reverse shuffling circuit 22.

【0025】逆量子化回路21では、可変長復号化回路19
で復号されたデータを、データ分離回路18から入力する
量子化テーブルナンバーに基づいてDCT係数データに
変換する。逆シャフリング回路22では、DCT係数デー
タを、データ分離回路18で分離されたシャフリングルー
ル切り換え信号に従って、メモリに書き込む。伝送ブロ
ック検出回路20からメモリ書き込み禁止信号が入力され
れば、その時点でメモリへの書き込みを中断する。すな
わち、その時点以降のデータは前フレームのデータが保
持されることになる。1フレーム分の時間が経過した
後、メモリからデータが読み出され、逆DCT、ブロッ
ク統合、D/A変換された後、映像信号出力端子26から
出力される。
In the inverse quantization circuit 21, the variable length decoding circuit 19
The data decoded in (1) is converted into DCT coefficient data based on the quantization table number input from the data separation circuit 18. The inverse shuffling circuit 22 writes the DCT coefficient data in the memory in accordance with the shuffling rule switching signal separated by the data separating circuit 18. When a memory write inhibit signal is input from the transmission block detection circuit 20, writing to the memory is interrupted at that point. That is, the data of the previous frame is held as the data after that time. After a lapse of time for one frame, data is read from the memory, subjected to inverse DCT, block integration, D / A conversion, and then output from the video signal output terminal 26.

【0026】以上説明したように本実施例によれば、画
面上で中央付近の画素から先に符号化することによっ
て、符号量を調整するために量子化ステップが粗くなっ
たり、データが切り捨てられることによって、画質劣化
が大きくなる可能性がある領域は画面周辺部に集中し、
視覚上重要な画面中央部のデータを保護することができ
る。
As described above, according to the present embodiment, the pixels near the center of the screen are encoded first, so that the quantization step becomes coarse to adjust the code amount, or the data is truncated. As a result, the areas where image quality may become large are concentrated in the peripheral area of the screen,
Data in the center of the screen, which is visually important, can be protected.

【0027】また、最終的に目標符号量を越えてデータ
が切り捨てられる場合においても、その部分だけ既に伝
送されているフレームのデータと置き換えることによ
り、画質劣化を少なくすることができる。更にこの場
合、連続する2フレームすなわち符号量制御単位毎に異
なる順序で符号化することにより、連続して目標符号量
を越える場合でも、2フレーム以上前のデータで置き換
えられることはない。
Further, even when the data is finally truncated beyond the target code amount, deterioration of the image quality can be reduced by replacing only that portion with the data of the already transmitted frame. Further, in this case, by encoding in two consecutive frames, that is, in a different order for each code amount control unit, even if the target code amount is continuously exceeded, the data of two or more frames before is not replaced.

【0028】尚、符号化の順序を示すシャフリングルー
ルや、マクロブロックの設定は本実施例に示したものに
限らず、複雑なシャフリングルールや他のマクロブロッ
ク設定を用いることもできる。また、本実施例では、符
号化方式としてDCTを用いた場合について説明した
が、例えばサブバンド符号化や予測符号化など他の符号
化方式を用いた場合にも同様に適用できる。さらに、本
実施例では符号量制御の単位はフレーム単位としたが、
フレーム単位以外で符号量制御する場合にも、上記のよ
うな効果は得られる。なお、本発明の画像符号化装置は
VTRに限らず、他の記録再生装置や伝送装置に適用し
た場合にも同様の効果が得られることは言うまでもな
い。
The shuffling rule indicating the order of encoding and the setting of the macroblock are not limited to those shown in this embodiment, and a complicated shuffling rule or another macroblock setting can be used. In addition, although a case has been described with the present embodiment where DCT is used as an encoding method, the present invention can be similarly applied to the case where another encoding method such as subband encoding or predictive encoding is used. Furthermore, in the present embodiment, the unit of code amount control is the frame unit,
The above effect can be obtained even when the code amount is controlled in units other than the frame unit. It is needless to say that the image encoding device of the present invention is not limited to the VTR, and the same effect can be obtained when applied to other recording / reproducing devices and transmission devices.

【0029】[0029]

【発明の効果】以上のように第1の発明は、符号量制御
単位毎に目標符号量になる符号化パラメータを推測する
手段と、前記推測した符号化パラメータで、画像信号の
画面上の中央部の画素から周辺部に向かって順に符号化
する手段と、前記符号化後の符号量を積算する手段と、
前記積算された符号量が目標符号量を越えた場合にそれ
以降のデータを打ち切る手段とを有することにより、簡
単な構成で、画面中央部のデータを保護して、符号量制
御のできる優れた画像符号化装置を実現できる。
As described above, according to the first aspect of the present invention, the means for estimating the encoding parameter that becomes the target code amount for each code amount control unit, and the estimated encoding parameter are used for the center of the image signal on the screen. Means for sequentially encoding from the pixels of the part toward the peripheral portion, means for accumulating the code amount after the encoding,
When the accumulated code amount exceeds the target code amount, it has means for cutting off the subsequent data, so that the data in the central portion of the screen can be protected and the code amount can be controlled with a simple structure. An image coding device can be realized.

【0030】また、第2の発明は、画像符号化する際
に、符号量制御単位毎に目標符号量になる符号化パラメ
ータを推測する手段と、前記推測した符号化パラメータ
で符号化する手段と、前記符号化後の符号量を積算する
手段と、前記積算された符号量が目標符号量を越えた場
合にそれ以降のデータを打ち切る手段と、復号する際
に、打ち切られたデータを検出する手段と、前記打ち切
られたデータが示す画面上の領域は既に伝送されたフレ
ームもしくはフィールドのデータで置き換える手段とを
有することにより、最終的に目標符号量を越えた場合に
も、画質劣化の少ない優れた画像符号化装置を実現でき
るものである。
The second aspect of the present invention further comprises means for estimating an encoding parameter that will be a target code amount for each code amount control unit in image encoding, and means for encoding with the estimated encoding parameter. , Means for accumulating the code amount after the encoding, means for aborting the subsequent data when the accumulated code amount exceeds a target code amount, and detecting the aborted data when decoding By providing the means and the means for replacing the area on the screen indicated by the aborted data with the data of the already transmitted frame or field, the image quality is less deteriorated even when the target code amount is finally exceeded. It is possible to realize an excellent image encoding device.

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

【図1】本発明の一実施例における画像符号化装置の信
号処理ブロック図
FIG. 1 is a signal processing block diagram of an image coding apparatus according to an embodiment of the present invention.

【図2】(a)は本発明の一実施例におけるブロックの
符号化順序の説明図 (b)は本発明の一実施例における他のブロックの符号
化順序の説明図
FIG. 2A is an explanatory diagram of a coding order of blocks in an embodiment of the present invention. FIG. 2B is an explanatory diagram of an encoding order of other blocks in an embodiment of the present invention.

【符号の説明】 3 ブロック分割回路 4 DCT処理回路 5 シャフリングルール切り換え信号入力端子 6 シャフリング回路 7 符号量見積り回路 8 量子化回路 9 量子化制御回路 10 可変長符号化回路 11 符号量積算回路 12 データ多重回路 18 データ分離回路 19 可変長復号化回路 20 伝送ブロック検出回路 21 逆量子化回路 22 逆シャフリング回路 23 逆DCT回路 24 ブロック統合回路[Description of Codes] 3 block division circuit 4 DCT processing circuit 5 shuffling rule switching signal input terminal 6 shuffling circuit 7 code amount estimation circuit 8 quantization circuit 9 quantization control circuit 10 variable length coding circuit 11 code amount integration circuit 12 Data multiplexing circuit 18 Data separation circuit 19 Variable length decoding circuit 20 Transmission block detection circuit 21 Inverse quantization circuit 22 Inverse shuffling circuit 23 Inverse DCT circuit 24 Block integration circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】画像信号に対して高能率符号化する際に、
符号量制御単位毎に目標符号量になる符号化パラメータ
を推測する手段と、前記推測した符号化パラメータで、
画像信号の画面上の中央部の画素から周辺部に向かって
順に符号化する手段と、前記符号化後の符号量を積算す
る手段と、前記積算された符号量が目標符号量を越えた
場合にそれ以降のデータを打ち切る手段とを有すること
を特徴とする画像符号化装置。
1. When high-efficiency encoding is performed on an image signal,
A means for estimating the encoding parameter that becomes the target code amount for each code amount control unit, and the estimated encoding parameter,
A means for sequentially encoding from the central pixel on the screen of the image signal toward the peripheral portion, a means for accumulating the code amount after the encoding, and a case where the accumulated code amount exceeds a target code amount. And a means for cutting off subsequent data.
【請求項2】画像信号に対して高能率符号化する際に、
符号量制御単位毎に目標符号量になる符号化パラメータ
を推測する手段と、前記推測した符号化パラメータで符
号化する手段と、前記符号化後の符号量を積算する手段
と、前記積算された符号量が目標符号量を越えた場合に
それ以降のデータを打ち切る手段と、高能率符号を復号
する際に、打ち切られたデータを検出する手段と、前記
打ち切られたデータが示す画面上の領域は既に伝送され
たフレームもしくはフィールドのデータで置き換える手
段とを有することを特徴とする画像符号化装置。
2. When highly efficient coding is performed on an image signal,
Means for estimating a coding parameter that becomes the target code amount for each code amount control unit, means for encoding with the estimated coding parameter, means for accumulating the code amount after the encoding, and the means for accumulating When the code amount exceeds the target code amount, means for terminating the subsequent data, means for detecting the censored data when decoding the high efficiency code, and an area on the screen indicated by the censored data And a means for replacing with already transmitted frame or field data.
【請求項3】符号量制御単位毎に符号化の順番を変更す
ることを特徴とする請求項2記載の画像符号化装置。
3. The image coding apparatus according to claim 2, wherein the coding order is changed for each code amount control unit.
JP32293492A 1992-12-02 1992-12-02 Picture coder Pending JPH06178287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32293492A JPH06178287A (en) 1992-12-02 1992-12-02 Picture coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32293492A JPH06178287A (en) 1992-12-02 1992-12-02 Picture coder

Publications (1)

Publication Number Publication Date
JPH06178287A true JPH06178287A (en) 1994-06-24

Family

ID=18149269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32293492A Pending JPH06178287A (en) 1992-12-02 1992-12-02 Picture coder

Country Status (1)

Country Link
JP (1) JPH06178287A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09289452A (en) * 1996-01-06 1997-11-04 Samsung Electron Co Ltd Method and apparatus for selecting transform coefficient of transform coding system
JP2001268568A (en) * 2000-03-17 2001-09-28 Matsushita Electric Ind Co Ltd Method and apparatus for macroblock recording of subtraction coefficients
JP2017085247A (en) * 2015-10-23 2017-05-18 キヤノン株式会社 Encoding method, encoding device, imaging apparatus and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09289452A (en) * 1996-01-06 1997-11-04 Samsung Electron Co Ltd Method and apparatus for selecting transform coefficient of transform coding system
JP2001268568A (en) * 2000-03-17 2001-09-28 Matsushita Electric Ind Co Ltd Method and apparatus for macroblock recording of subtraction coefficients
JP2017085247A (en) * 2015-10-23 2017-05-18 キヤノン株式会社 Encoding method, encoding device, imaging apparatus and program

Similar Documents

Publication Publication Date Title
KR0150955B1 (en) Compressive and extensive method of an image for bit-fixing and the apparatus thereof
EP1441536B1 (en) Adaptive variable-length coding and decoding methods for image data
US8031769B2 (en) Method and device for controlling quantization scales of a video encoding bit stream
EP0475251A2 (en) Coding apparatus for digital image data
US5657399A (en) Encoding/decoding apparatus using quantizing steps information
EP1377071A1 (en) Image processing device, image processing method, image processing program, and recording medium
JPWO2002080573A1 (en) Quantizer, quantization method, quantization program, and recording medium
JPH06178287A (en) Picture coder
JP2963958B2 (en) High efficiency coding device
JP2003189308A (en) Moving picture encoder, encoding method, decoder, decoding method, and moving picture code string transmission method
JP3190164B2 (en) Code amount estimation device
JP3427505B2 (en) Image coding method and editing device
JP3161098B2 (en) High efficiency coding device
JP2897585B2 (en) Image coding recording and playback device
JPH06113140A (en) Image processing device
JPH08256337A (en) Moving image coder
JP3127629B2 (en) Error correction device for digital image signal
KR0160608B1 (en) Variable length encoding method and apparatus by bit fixing
JP3788431B2 (en) Image coding method and editing apparatus
JPH06133292A (en) Highly efficient coding device
JPH09135418A (en) Image recording device