+

JPH07231449A - Encoder and decoder for picture signal - Google Patents

Encoder and decoder for picture signal

Info

Publication number
JPH07231449A
JPH07231449A JP2165894A JP2165894A JPH07231449A JP H07231449 A JPH07231449 A JP H07231449A JP 2165894 A JP2165894 A JP 2165894A JP 2165894 A JP2165894 A JP 2165894A JP H07231449 A JPH07231449 A JP H07231449A
Authority
JP
Japan
Prior art keywords
circuit
image signal
image
data
flag
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
JP2165894A
Other languages
Japanese (ja)
Inventor
Teruhiko Suzuki
輝彦 鈴木
Katsumi Tawara
勝己 田原
Jun Yonemitsu
潤 米満
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2165894A priority Critical patent/JPH07231449A/en
Publication of JPH07231449A publication Critical patent/JPH07231449A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To best correct the decoded picture signal with a simple configuration. CONSTITUTION:An encoder 18 of an encoding device 1 encodes a PST flag showing the encoding condition of a pre-filter 21 together with the bit stream being picture data at the same time. The bit stream and the PST flag are sent to a recording medium 3 at the same time. The bit stream and the PST flag encoded and stored in the recording medium 3 are decoded by a decoder 31 of a decoding device 2. The decoded bit stream is inputted to a format conversion circuit 32 and it is converted from the block format into the frame format. On the other hand, the decoded PST flag is sent to a post filter 22 which selects the optimal filter by the PST flag.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、動画像データを圧縮し
て伝送する場合に用いて好適な画像信号符号化装置及び
画像信号復号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal coding apparatus and an image signal decoding apparatus suitable for use in compressing and transmitting moving image data.

【0002】[0002]

【従来の技術】動画像データを光磁気ディスクや磁気テ
ープ等にデジタル的に記録する場合、あるいは所定の伝
送媒体を介して伝送する場合、データを符号化し、圧縮
して、データ量を減少するようにしている。
2. Description of the Related Art When moving image data is digitally recorded on a magneto-optical disk, a magnetic tape or the like, or transmitted through a predetermined transmission medium, the data is encoded and compressed to reduce the amount of data. I am trying.

【0003】例えば、テレビ会議システム、テレビ電話
システムなどのように、動画像信号を遠隔地に伝送する
システムにおいては、伝送路を効率良く利用するため、
映像信号のライン相関やフレーム間相関を利用して、画
像信号を圧縮符号化するようになされている。
In a system for transmitting a moving image signal to a remote place such as a video conference system or a video telephone system, for example, in order to efficiently use a transmission line,
The image signal is compressed and encoded by utilizing the line correlation and the inter-frame correlation of the video signal.

【0004】ライン相関を利用すると、画像信号を、例
えばDCT(離散コサイン変換)処理するなどして圧縮
することができる。
By utilizing the line correlation, the image signal can be compressed by, for example, DCT (discrete cosine transform) processing.

【0005】また、フレーム間相関を利用すると、画像
信号をさらに圧縮して符号化することが可能となる。例
えば図11に示すように、時刻t1,t2,t3におい
て、フレーム画像PC1,PC2,PC3がそれぞれ発
生しているとき、フレーム画像PC1とPC2の画像信
号の差を演算して、PC12を生成し、また、フレーム
画像PC2とPC3の差を演算して、PC23を生成す
る。通常、時間的に隣接するフレームの画像は、それ程
大きな変化を有していないため、両者の差を演算する
と、その差分信号は小さな値のものとなる。そこで、こ
の差分信号を符号化すれば、符号量を圧縮することがで
きる。
Further, by utilizing the inter-frame correlation, the image signal can be further compressed and encoded. For example, as shown in FIG. 11, when frame images PC1, PC2, and PC3 are generated at times t1, t2, and t3, respectively, the difference between the image signals of the frame images PC1 and PC2 is calculated to generate PC12. Also, the difference between the frame images PC2 and PC3 is calculated to generate PC23. Normally, the images of frames that are temporally adjacent do not have such a large change, so when the difference between the two is calculated, the difference signal has a small value. Therefore, if this difference signal is encoded, the code amount can be compressed.

【0006】しかしながら、差分信号のみを伝送したの
では、元の画像を復元することができない。そこで、各
フレームの画像を、Iピクチャ、PピクチャまたはBピ
クチャの3種類のピクチャのいずれかのピクチャとし、
画像信号を圧縮符号化するようにしている。
However, the original image cannot be restored by transmitting only the differential signal. Therefore, the image of each frame is set to any one of three types of pictures of I picture, P picture, and B picture,
The image signal is compressed and encoded.

【0007】即ち、例えば図12に示すように、フレー
ムF1乃至F17までの17フレームの画像信号をグル
ープオブピクチャ(GOP)とし、処理の1単位とす
る。そして、その先頭のフレームF1の画像信号はIピ
クチャとして符号化し、第2番目のフレームF2はBピ
クチャとして、また第3番目のフレームF3はPピクチ
ャとして、それぞれ処理する。以下、第4番目以降のフ
レームF4乃至F17は、BピクチャまたはPピクチャ
として交互に処理する。
That is, for example, as shown in FIG. 12, image signals of 17 frames from frames F1 to F17 are set as a group of pictures (GOP), which is one unit of processing. Then, the image signal of the leading frame F1 is encoded as an I picture, the second frame F2 is processed as a B picture, and the third frame F3 is processed as a P picture. Hereinafter, the fourth and subsequent frames F4 to F17 are alternately processed as a B picture or a P picture.

【0008】Iピクチャの画像信号としては、その1フ
レーム分の画像信号をそのまま伝送する。これに対し
て、Pピクチャの画像信号としては、基本的には、図1
2(A)に示すように、それより時間的に先行するIピ
クチャまたはPピクチャの画像信号からの差分を伝送す
る。さらにBピクチャの画像信号としては、基本的に
は、図12(B)に示すように、時間的に先行するフレ
ームまたは後行するフレームの両方の平均値からの差分
を求め、その差分を符号化する。
As the image signal of the I picture, the image signal for one frame is transmitted as it is. On the other hand, as the image signal of the P picture, basically, as shown in FIG.
As shown in FIG. 2 (A), the difference from the image signal of the I picture or P picture preceding it in time is transmitted. Further, as the image signal of the B picture, basically, as shown in FIG. 12B, a difference from the average value of both the temporally preceding frame and the subsequent frame is obtained, and the difference is encoded. Turn into.

【0009】図13は、このようにして、動画像信号を
符号化する方法の原理を示している。同図に示すよう
に、最初のフレームF1は、Iピクチャとして処理され
るため、そのまま伝送データF1Xとして伝送路に伝送
される(画像内符号化)。これに対して、第2のフレー
ムF2は、Bピクチャとして処理されるため、時間的に
先行するフレームF1と、時間的に後行するフレームF
3の平均値との差分(予測誤差)が演算され、その差分
が伝送データF2Xとして伝送される。
FIG. 13 shows the principle of the method of encoding a moving image signal in this way. As shown in the figure, since the first frame F1 is processed as an I picture, it is directly transmitted to the transmission line as the transmission data F1X (intra-picture coding). On the other hand, since the second frame F2 is processed as a B picture, the frame F1 that temporally precedes and the frame F that temporally follows.
The difference (prediction error) from the average value of 3 is calculated, and the difference is transmitted as the transmission data F2X.

【0010】但し、このBピクチャとしての処理は、さ
らに細かく説明すると、4種類存在する。その第1の処
理は、元のフレームF2のデータをそのまま伝送データ
F2Xとして伝送するものであり(SP1)(イントラ
(画像内予測)符号化)、Iピクチャにおける場合と同
様の処理となる。第2の処理は、時間的に後のフレーム
F3からの差分を演算し、その差分(SP2)を伝送す
るものである(後方予測符号化)。第3の処理は、時間
的に先行するフレームF1との差分(SP3)を伝送す
るものである(前方予測符号化)。さらに第4の処理
は、時間的に先行するフレームF1と後行するフレーム
F3の平均値との差分(SP4)を生成し、これを伝送
データF2Xとして伝送するものである(両方向予測符
号化)。
However, there are four types of processing as the B picture, which will be described in more detail. The first process is to transmit the data of the original frame F2 as it is as the transmission data F2X (SP1) (intra (intra-picture prediction) coding), and is the same process as in the I picture. The second processing is to calculate the difference from the frame F3 that is temporally later and transmit the difference (SP2) (backward predictive coding). The third process is to transmit a difference (SP3) from the temporally preceding frame F1 (forward predictive coding). Further, the fourth process is to generate a difference (SP4) between the average value of the frame F1 preceding in time and the average value of the frame F3 following, and transmit this as the transmission data F2X (bidirectional predictive coding). .

【0011】この4つの方法のうち、伝送データが最も
少なくなる方法が採用される。
Of these four methods, the method that minimizes the amount of transmission data is adopted.

【0012】尚、差分データを伝送するとき、差分を演
算する対象となるフレームの画像(予測画像)との間の
動きベクトルx1(フレームF1とF2の間の動きベク
トル)(前方予測の場合)、もしくはx2(フレームF
3とF2の間の動きベクトル)(後方予測の場合)、ま
たはx1とx2の両方(両方向予測の場合)が、差分デ
ータとともに伝送される。
When transmitting the difference data, a motion vector x1 (motion vector between frames F1 and F2) between the difference image and the image of the frame (prediction image) for which the difference is calculated (for forward prediction). , Or x2 (frame F
The motion vector between 3 and F2) (for backward prediction) or both x1 and x2 (for bidirectional prediction) are transmitted with the difference data.

【0013】また、PピクチャのフレームF3は、時間
的に先行するフレームF1を予測画像として、このフレ
ームとの差分信号(SP3)と、動きベクトルx3が演
算され、これが伝送データF3Xとして伝送される(前
方予測符号化)。あるいはまた、元のフレームF3のデ
ータが、そのままデータF3Xとして伝送される(SP
1)(イントラ符号化)。いずれの方法により伝送され
るかは、Bピクチャにおける場合と同様に、伝送データ
がより少なくなる方が選択される。
In the frame F3 of the P picture, the frame F1 temporally preceding is used as a prediction image to calculate a difference signal (SP3) from the frame and a motion vector x3, which is transmitted as transmission data F3X. (Forward predictive coding). Alternatively, the data of the original frame F3 is directly transmitted as the data F3X (SP
1) (Intra coding). As in the case of the B picture, whichever method is used for transmission is selected so that less transmission data is transmitted.

【0014】図14は、上述した原理に基づいて、動画
像信号を符号化して伝送し、これを復号化する装置の構
成例を示している。符号化装置1は、入力された映像信
号を符号化し、伝送路としての記録媒体3に伝送するよ
うになされている。そして、復号化装置2は、記録媒体
3に記録された信号を再生し、これを復号して出力する
ようになされている。
FIG. 14 shows an example of the configuration of an apparatus which encodes and transmits a moving image signal based on the above-mentioned principle, and decodes this. The encoding device 1 encodes the input video signal and transmits it to the recording medium 3 as a transmission path. Then, the decoding device 2 reproduces the signal recorded on the recording medium 3, decodes the signal, and outputs the decoded signal.

【0015】符号化装置1においては、入力された映像
信号が前処理回路11に入力され、そこで輝度信号と色
信号(この実施例の場合、色差信号)が分離され、それ
ぞれA/D変換器12,13でA/D変換される。A/
D変換器12,13によりA/D変換されてデジタル信
号となった映像信号は、プリフィルタ21によって処理
された後フレームメモリ14に供給され、記憶される。
フレームメモリ14は、輝度信号を輝度信号フレームメ
モリ15に、また、色差信号を色差信号フレームメモリ
16に、それぞれ記憶させる。
In the encoding device 1, the input video signal is input to the pre-processing circuit 11, where the luminance signal and the chrominance signal (color difference signal in this embodiment) are separated, and each is an A / D converter. A / D conversion is performed at 12 and 13. A /
The video signal converted into a digital signal by A / D conversion by the D converters 12 and 13 is supplied to and stored in the frame memory 14 after being processed by the prefilter 21.
The frame memory 14 stores the luminance signal in the luminance signal frame memory 15 and the color difference signal in the color difference signal frame memory 16, respectively.

【0016】プリフィルタ21は、符号化効率を向上さ
せるための処理を行う。これは例えば、ノイズ除去フィ
ルタであり、また例えば帯域を制限するためのフィルタ
である。
The pre-filter 21 performs a process for improving coding efficiency. This is, for example, a noise removal filter and, for example, a filter for limiting the band.

【0017】フォーマット変換回路17は、フレームメ
モリ14に記憶されたフレームフォーマットの信号を、
ブロックフォーマットの信号に変換する。即ち、図15
に示すように、フレームメモリ14に記憶された映像信
号は、1ライン当りHドットのラインがVライン集めら
れたフレームフォーマットのデータとされている。フォ
ーマット変換回路17は、この1フレームの信号を、1
6ラインを単位としてN個のスライスに区分する。そし
て、各スライスは、M個のマクロブロックに分割され
る。各マクロブロックは、16×16個の画素(ドッ
ト)に対応する輝度信号により構成され、この輝度信号
は、さらに8×8ドットを単位とするブロックY[1]
乃至Y[4]に区分される。そして、この16×16ド
ットの輝度信号には、8×8ドットのCb信号と、8×
8ドットのCr信号が対応される。
The format conversion circuit 17 converts the frame format signal stored in the frame memory 14 into
Convert to block format signal. That is, FIG.
As shown in FIG. 5, the video signal stored in the frame memory 14 is frame format data in which V lines of H dots are collected per line. The format conversion circuit 17 converts this 1-frame signal into 1
It is divided into N slices in units of 6 lines. Then, each slice is divided into M macroblocks. Each macroblock is composed of a luminance signal corresponding to 16 × 16 pixels (dots), and this luminance signal further includes a block Y [1] in units of 8 × 8 dots.
To Y [4]. Then, this 16 × 16 dot luminance signal includes an 8 × 8 dot Cb signal and an 8 × 8 dot Cb signal.
An 8-dot Cr signal is supported.

【0018】このように、ブロックフォーマットに変換
されたデータは、フォーマット変換回路17からエンコ
ーダ18に供給され、ここでエンコード(符号化)が行
われる。その詳細については、図16を参照して後述す
る。
The data converted into the block format in this way is supplied from the format conversion circuit 17 to the encoder 18, where it is encoded. The details will be described later with reference to FIG.

【0019】エンコーダ18によりエンコードされた信
号は、ビットストリームとして伝送路に出力される。例
えば記録回路19に供給され、デジタル信号として記録
媒体3に記録される。
The signal encoded by the encoder 18 is output to the transmission line as a bit stream. For example, it is supplied to the recording circuit 19 and recorded on the recording medium 3 as a digital signal.

【0020】再生回路30により記録媒体3より再生さ
れたデータは、復号化装置2のデコーダ31に供給さ
れ、デコードされる。デコーダ31の詳細については、
図19を参照して後述する。
The data reproduced from the recording medium 3 by the reproducing circuit 30 is supplied to the decoder 31 of the decoding device 2 and decoded. For details of the decoder 31,
It will be described later with reference to FIG.

【0021】デコーダ31によりデコードされたデータ
は、フォーマット変換回路32に入力され、ブロックフ
ォーマットからフレームフォーマットに変換される。そ
して、フレームフォーマットの輝度信号は、フレームメ
モリ33の輝度信号フレームメモリ34に供給され、記
憶され、色差信号は色差信号フレームメモリ35に供給
され、記憶される。輝度信号フレームメモリ34と色差
信号フレームメモリ35より読み出された輝度信号と色
差信号は、ポストフィルタ22によって処理された後、
D/A変換器36と37によりそれぞれD/A変換さ
れ、後処理回路38に供給され、合成される。そして、
例えば、図示せぬCRTなどのディスプレイに出力さ
れ、表示される。
The data decoded by the decoder 31 is input to the format conversion circuit 32 and converted from the block format to the frame format. Then, the luminance signal of the frame format is supplied to and stored in the luminance signal frame memory 34 of the frame memory 33, and the color difference signal is supplied to and stored in the color difference signal frame memory 35. The luminance signal and the color difference signal read from the luminance signal frame memory 34 and the color difference signal frame memory 35 are processed by the post filter 22 and then,
The D / A converters 36 and 37 respectively perform D / A conversion, supply to the post-processing circuit 38, and synthesize. And
For example, it is output and displayed on a display such as a CRT (not shown).

【0022】ポストフィルタ22は、画質を改善するた
めの処理を行う。例えばブロック歪やモスキートノイズ
を除去するためのフィルタである。
The post filter 22 performs processing for improving the image quality. For example, it is a filter for removing block distortion and mosquito noise.

【0023】次に図16を参照して、エンコーダ18の
構成例について説明する。
Next, an example of the structure of the encoder 18 will be described with reference to FIG.

【0024】符号化されるべき画像データは、マクロブ
ロック単位で動きベクトル検出回路50に入力される。
動きベクトル検出回路50は、予め設定された所定のシ
ーケンスに従って、各フレームの画像データを、Iピク
チャ、Pピクチャ、またはBピクチャとして処理する。
シーケンシャルに入力される各フレームの画像を、I,
P,Bのいずれのピクチャとして処理するかは、予め定
められている(例えば、図15に示したように、フレー
ムF1乃至F17により構成されるグループオブピクチ
ャが、I,B,P,B,P,・・・B,Pとして処理さ
れる)。
The image data to be encoded is input to the motion vector detection circuit 50 in macroblock units.
The motion vector detection circuit 50 processes the image data of each frame as an I picture, a P picture, or a B picture according to a preset predetermined sequence.
The image of each frame that is sequentially input is
Which of P and B pictures is to be processed is predetermined (for example, as shown in FIG. 15, the group of pictures composed of frames F1 to F17 is I, B, P, B, P, ... B, P).

【0025】Iピクチャとして処理されるフレーム(例
えばフレームF1)の画像データは、動きベクトル検出
回路50からフレームメモリ51の前方原画像部51a
に転送、記憶され、Bピクチャとして処理されるフレー
ム(例えばフレームF2)の画像データは、参照原画像
部51bに転送、記憶され、Pピクチャとして処理され
るフレーム(例えばフレームF3)の画像データは、後
方原画像部51cに転送、記憶される。
The image data of the frame (for example, the frame F1) processed as the I picture is transmitted from the motion vector detecting circuit 50 to the front original image portion 51a of the frame memory 51.
The image data of the frame (for example, frame F2) that is transferred and stored in the reference original image section 51b is the image data of the frame (for example, frame F3) that is transferred and stored in the reference original image portion 51b. , And is transferred to and stored in the rear original image portion 51c.

【0026】また、次のタイミングにおいて、さらにB
ピクチャ(フレームF4)またはPピクチャ(フレーム
F5)として処理すべきフレームの画像が入力されたと
き、それまで後方原画像部51cに記憶されていた最初
のPピクチャ(フレームF3)の画像データが、前方原
画像部51aに転送され、次のBピクチャ(フレームF
4)の画像データが、参照原画像部51bに記憶(上書
き)され、次のPピクチャ(フレームF5)の画像デー
タが、後方原画像部51cに記憶(上書き)される。こ
のような動作が順次繰り返される。
At the next timing, B
When an image of a frame to be processed as a picture (frame F4) or P picture (frame F5) is input, the image data of the first P picture (frame F3) stored in the backward original image portion 51c until then is It is transferred to the front original image portion 51a, and the next B picture (frame F
The image data of 4) is stored (overwritten) in the reference original image portion 51b, and the image data of the next P picture (frame F5) is stored (overwritten) in the backward original image portion 51c. Such an operation is sequentially repeated.

【0027】フレームメモリ51に記憶された各ピクチ
ャの信号は、そこから読み出され、予測モード切り替え
回路52において、フレーム予測モード処理、またはフ
ィールド予測モード処理が行なわれる。さらにまた、予
測判定回路54の制御の下に、演算部53において、画
像内予測、前方予測、後方予測、または両方向予測の演
算が行なわれる。これらの処理のうち、いずれの処理を
行なうかは、予測誤差信号(処理の対象とされている参
照画像と、これに対する予測画像との差分)に対応して
決定される。このため、動きベクトル検出回路50は、
この判定に用いられる予測誤差信号の絶対値和(自乗和
でもよい)を生成する。
The signal of each picture stored in the frame memory 51 is read therefrom, and the prediction mode switching circuit 52 performs the frame prediction mode process or the field prediction mode process. Furthermore, under the control of the prediction determination circuit 54, the arithmetic unit 53 performs intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction. Which of these processes is to be performed is determined in accordance with the prediction error signal (difference between the reference image to be processed and the predicted image corresponding thereto). Therefore, the motion vector detection circuit 50
The sum of absolute values of the prediction error signals (may be the sum of squares) used for this determination is generated.

【0028】ここで、予測モード切り替え回路52にお
けるフレーム予測モードとフィールド予測モードについ
て説明する。
Here, the frame prediction mode and field prediction mode in the prediction mode switching circuit 52 will be described.

【0029】フレーム予測モードが設定された場合にお
いては、予測モード切り替え回路52は、動きベクトル
検出回路50より供給される4個の輝度ブロックY
[1]乃至Y[4]を、そのまま後段の演算部53に出
力する。即ち、この場合においては、図8に示すよう
に、各輝度ブロックに奇数フィールドのラインのデータ
と、偶数フィールドのラインのデータとが混在した状態
となっている。このフレーム予測モードにおいては、4
個の輝度ブロック(マクロブロック)を単位として予測
が行われ、4個の輝度ブロックに対して1個の動きベク
トルが対応される。
When the frame prediction mode is set, the prediction mode switching circuit 52 supplies the four luminance blocks Y supplied from the motion vector detection circuit 50.
[1] to Y [4] are directly output to the arithmetic unit 53 in the subsequent stage. That is, in this case, as shown in FIG. 8, the data of the odd field lines and the data of the even field lines are mixed in each luminance block. In this frame prediction mode, 4
Prediction is performed in units of luminance blocks (macroblocks), and one motion vector is associated with four luminance blocks.

【0030】これに対して、予測モード切り替え回路5
2は、フィールド予測モードにおいては、図17(A)
に示す構成で動きベクトル検出回路50より入力される
信号を、図17(B)に示すように、4個の輝度ブロッ
クのうち、輝度ブロックY[1]とY[2]を、例えば
奇数フィールドのラインのドットによりのみ構成させ、
他の2個の輝度ブロックY[3]とY[4]を、偶数フ
ィールドのラインのデータにより構成させて、演算部5
3に出力する。この場合においては、2個の輝度ブロッ
クY[1]とY[2]に対して、1個の動きベクトルが
対応され、他の2個の輝度ブロックY[3]とY[4]
に対して、他の1個の動きベクトルが対応される。
On the other hand, the prediction mode switching circuit 5
2 in FIG. 17A in the field prediction mode.
The signal input from the motion vector detection circuit 50 in the configuration shown in FIG. 17 is converted into luminance blocks Y [1] and Y [2] among four luminance blocks as shown in FIG. Only the dots of the line
The other two luminance blocks Y [3] and Y [4] are configured by the data of the even field lines, and the arithmetic unit 5
Output to 3. In this case, one motion vector is associated with the two luminance blocks Y [1] and Y [2], and the other two luminance blocks Y [3] and Y [4].
Is associated with one other motion vector.

【0031】動きベクトル検出回路50は、フレーム予
測モードにおける予測誤差の絶対値和と、フィールド予
測モードにおける予測誤差の絶対値和を、予測モード切
り替え回路52に出力する。予測モード切り替え回路5
2は、フレーム予測モードとフィールド予測モードにお
ける予測誤差の絶対値和を比較し、その値が小さい予測
モードに対応する処理を施して、データを演算部53に
出力する。
The motion vector detection circuit 50 outputs the sum of absolute values of prediction errors in the frame prediction mode and the sum of absolute values of prediction errors in the field prediction mode to the prediction mode switching circuit 52. Prediction mode switching circuit 5
2 compares the absolute value sums of the prediction errors in the frame prediction mode and the field prediction mode, performs a process corresponding to the prediction mode having the smaller value, and outputs the data to the arithmetic unit 53.

【0032】但し、このような処理は、実際には動きベ
クトル検出回路50で行われる。即ち、動きベクトル検
出回路50は、決定されたモードに対応する構成の信号
を予測モード切り替え回路52に出力し、予測モード切
り替え回路52は、その信号を、そのまま後段の演算部
53に出力する。
However, such processing is actually performed by the motion vector detection circuit 50. That is, the motion vector detection circuit 50 outputs a signal having a configuration corresponding to the determined mode to the prediction mode switching circuit 52, and the prediction mode switching circuit 52 outputs the signal as it is to the arithmetic unit 53 in the subsequent stage.

【0033】尚、色差信号は、フレーム予測モードの場
合、図17(A)に示すように、奇数フィールドのライ
ンのデータと偶数フィールドのラインのデータとが混在
する状態で、演算部53に供給される。また、フィール
ド予測モードの場合、図17(B)に示すように、各色
差ブロックCb,Crの上半分(4ライン)が、輝度ブ
ロックY[1],Y[2]に対応する奇数フィールドの
色差信号とされ、下半分(4ライン)が、輝度ブロック
Y[3],Y[4]に対応する偶数フィールドの色差信
号とされる。
In the frame prediction mode, the color difference signal is supplied to the arithmetic unit 53 in a state in which line data of odd fields and line data of even fields are mixed, as shown in FIG. To be done. Further, in the field prediction mode, as shown in FIG. 17B, the upper half (4 lines) of each color difference block Cb, Cr is an odd field corresponding to the luminance blocks Y [1], Y [2]. The lower half (4 lines) is a color difference signal, and the lower half (4 lines) is an even field color difference signal corresponding to the luminance blocks Y [3] and Y [4].

【0034】また、動きベクトル検出回路50は、次の
ようにして、予測判定回路54において、画像内予測、
前方予測、後方予測、または両方向予測のいずれの予測
を行なうかを決定するための予測誤差の絶対値和を生成
する。
Further, the motion vector detection circuit 50 uses the prediction determination circuit 54 to predict the intra-image,
A sum of absolute values of prediction errors for determining whether to perform forward prediction, backward prediction, or bidirectional prediction is generated.

【0035】即ち、画像内予測の予測誤差の絶対値和と
して、参照画像のマクロブロックの信号Aijの和ΣAij
の絶対値|ΣAij|と、マクロブロックの信号Aijの絶
対値|Aij|の和Σ|Aij|の差を求める。また、前方
予測の予測誤差の絶対値和として、参照画像のマクロブ
ロックの信号Aijと、予測画像のマクロブロックの信号
Bijの差Aij−Bijの絶対値|Aij−Bij|の和Σ|A
ij−Bij|を求める。また、後方予測と両方向予測の予
測誤差の絶対値和も、前方予測における場合と同様に
(その予測画像を前方予測における場合と異なる予測画
像に変更して)求める。
That is, the sum ΣAij of the signals Aij of the macroblocks of the reference image is used as the sum of the absolute values of the prediction errors of the intra-picture prediction.
Of the absolute value | ΣAij | of the macroblock signal and the sum Σ | Aij | of the absolute value | Aij | of the macroblock signal Aij. Also, as the sum of absolute values of prediction errors in forward prediction, the sum Σ | A of the absolute value | Aij-Bij | of the difference Aij-Bij between the signal Aij of the macroblock of the reference image and the signal Bij of the macroblock of the predicted image.
ij-Bij | is calculated. Further, the sum of absolute values of the prediction errors of the backward prediction and the bidirectional prediction is also obtained in the same manner as in the case of forward prediction (the predicted image is changed to a predicted image different from that in forward prediction).

【0036】これらの絶対値和は、予測判定回路54に
供給される。予測判定回路54は、前方予測、後方予測
および両方向予測の予測誤差の絶対値和のうち、最も小
さいものを、インタ予測の予測誤差の絶対値和として選
択する。さらに、このインタ予測の予測誤差の絶対値和
と、画像内予測の予測誤差の絶対値和とを比較し、その
小さい方を選択し、この選択した絶対値和に対応するモ
ードを予測モードとして選択する。即ち、画像内予測の
予測誤差の絶対値和の方が小さければ、画像内予測モー
ドが設定される。インタ予測の予測誤差の絶対値和の方
が小さければ、前方予測、後方予測または両方向予測モ
ードのうち、対応する絶対値和が最も小さかったモード
が設定される。
The sum of these absolute values is supplied to the prediction determination circuit 54. The prediction determination circuit 54 selects the smallest sum of absolute values of prediction errors of forward prediction, backward prediction, and bidirectional prediction as the sum of absolute values of prediction errors of inter prediction. Furthermore, the sum of the absolute values of the prediction error of the inter prediction and the sum of the absolute values of the prediction errors of the intra-picture prediction are compared, the smaller one is selected, and the mode corresponding to the selected sum of the absolute values is set as the prediction mode. select. That is, if the sum of absolute values of prediction errors in intra-picture prediction is smaller, the intra-picture prediction mode is set. If the sum of absolute values of prediction errors in inter prediction is smaller, the mode in which the corresponding sum of absolute values is the smallest is set among the forward prediction, backward prediction, and bidirectional prediction modes.

【0037】このように、動きベクトル検出回路50
は、参照画像のマクロブロックの信号を、フレームまた
はフィールド予測モードのうち、予測モード切り替え回
路52により選択されたモードに対応する構成で、予測
モード切り替え回路52を介して演算部53に供給する
とともに、4つの予測モードのうち、予測判定回路54
により選択された予測モードに対応する予測画像と参照
画像の間の動きベクトルを検出し、可変長符号化回路5
8と動き補償回路65に出力する。上述したように、こ
の動きベクトルとしては、対応する予測誤差の絶対値和
が最小となるものが選択される。
In this way, the motion vector detection circuit 50
Supplies the signal of the macroblock of the reference image to the arithmetic unit 53 via the prediction mode switching circuit 52 in a configuration corresponding to the mode selected by the prediction mode switching circuit 52 among the frame or field prediction modes. Of the four prediction modes, the prediction determination circuit 54
The motion vector between the prediction image and the reference image corresponding to the prediction mode selected by is detected, and the variable length coding circuit 5
8 and the motion compensation circuit 65. As described above, the motion vector that minimizes the sum of absolute values of the corresponding prediction errors is selected.

【0038】予測判定回路54は、動きベクトル検出回
路50が前方原画像部51aよりIピクチャの画像デー
タを読み出しているとき、予測モードとして、フレーム
またはフィールド(画像)内予測モード(動き補償を行
わないモード)を設定し、演算部53のスイッチ53d
を接点a側に切り替える。これにより、Iピクチャの画
像データがDCTモード切り替え回路55に入力され
る。
The prediction determination circuit 54, when the motion vector detection circuit 50 is reading the image data of the I picture from the front original image portion 51a, uses the intra-frame or field (image) prediction mode (motion compensation is performed as the prediction mode. Mode), and the switch 53d of the calculation unit 53 is set.
To the contact a side. As a result, the I-picture image data is input to the DCT mode switching circuit 55.

【0039】このDCTモード切り替え回路55は、図
18(A)または図18(B)に示すように、4個の輝
度ブロックのデータを、奇数フィールドのラインと偶数
フィールドのラインが混在する状態(フレームDCTモ
ード)、または、分離された状態(フィールドDCTモ
ード)、のいずれかの状態にして、DCT回路56に出
力する。
As shown in FIG. 18A or FIG. 18B, the DCT mode switching circuit 55 is a state in which the data of four luminance blocks are mixed with the lines of odd fields and lines of even fields ( Either the frame DCT mode) or the separated state (field DCT mode) is output to the DCT circuit 56.

【0040】即ち、DCTモード切り替え回路55は、
奇数フィールドと偶数フィールドのデータを混在してD
CT処理した場合における符号化効率と、分離した状態
においてDCT処理した場合の符号化効率とを比較し、
符号化効率の良好なモードを選択する。
That is, the DCT mode switching circuit 55 is
Mixed data of odd field and even field D
Comparing the coding efficiency in the case of CT processing and the coding efficiency in the case of DCT processing in the separated state,
Select a mode with good coding efficiency.

【0041】例えば、入力された信号を、図18(A)
に示すように、奇数フィールドと偶数フィールドのライ
ンが混在する構成とし、上下に隣接する奇数フィールド
のラインの信号と偶数フィールドのラインの信号の差を
演算し、さらにその絶対値の和(または自乗和)を求め
る。また、入力された信号を、図18(B)に示すよう
に、奇数フィールドと偶数フィールドのラインが分離し
た構成とし、上下に隣接する奇数フィールドのライン同
士の信号の差と、偶数フィールドのライン同士の信号の
差を演算し、それぞれの絶対値の和(または自乗和)を
求める。さらに、両者(絶対値和)を比較し、小さい値
に対応するDCTモードを設定する。即ち、前者の方が
小さければ、フレームDCTモードを設定し、後者の方
が小さければ、フィールドDCTモードを設定する。
For example, the input signal is shown in FIG.
As shown in, the odd field and even field lines are mixed, and the difference between the signal of the odd field line and the signal of the even field that are vertically adjacent to each other is calculated, and then the sum of the absolute values (or squared value) is calculated. Sum). In addition, as shown in FIG. 18B, the input signal has a structure in which odd field lines and even field lines are separated, and the difference between the signals of the vertically adjacent odd field lines and the even field lines are set. The difference between the signals is calculated, and the sum (or sum of squares) of the absolute values of each is calculated. Further, both (sum of absolute values) are compared, and the DCT mode corresponding to a smaller value is set. That is, if the former is smaller, the frame DCT mode is set, and if the latter is smaller, the field DCT mode is set.

【0042】そして、選択したDCTモードに対応する
構成のデータをDCT回路56に出力するとともに、選
択したDCTモードを示すDCTフラグを、可変長符号
化回路58、DCTブロック並び替え回路62、および
動き補償回路65に出力する。
Then, the data having the structure corresponding to the selected DCT mode is output to the DCT circuit 56, and the DCT flag indicating the selected DCT mode is set to the variable length coding circuit 58, the DCT block rearranging circuit 62, and the motion. Output to the compensation circuit 65.

【0043】予測モード切り替え回路52における予測
モード(図17)と、このDCTモード切り替え回路5
5におけるDCTモード(図18)を比較して明らかな
ように、輝度ブロックに関しては、両者の各モードにお
けるデータ構造は実質的に同一である。
The prediction mode in the prediction mode switching circuit 52 (FIG. 17) and the DCT mode switching circuit 5
As is clear by comparing the DCT modes in FIG. 5 (FIG. 18), the data structures in both modes are substantially the same for the luminance block.

【0044】予測モード切り替え回路52において、フ
レーム予測モード(奇数ラインと偶数ラインが混在する
モード)が選択された場合、DCTモード切り替え回路
55においても、フレームDCTモード(奇数ラインと
偶数ラインが混在するモード)が選択される可能性が高
く、また予測モード切り替え回路52において、フィー
ルド予測モード(奇数フィールドと偶数フィールドのデ
ータが分離されたモード)が選択された場合、DCTモ
ード切り替え回路55において、フィールドDCTモー
ド(奇数フィールドと偶数フィールドのデータが分離さ
れたモード)が選択される可能性が高い。
When the frame prediction mode (a mode in which odd lines and even lines are mixed) is selected in the prediction mode switching circuit 52, the frame DCT mode (in which odd lines and even lines are mixed) is also selected in the DCT mode switching circuit 55. If the field prediction mode (a mode in which the data in the odd field and the data in the even field are separated) is selected in the prediction mode switching circuit 52, the field in the DCT mode switching circuit 55 is high. There is a high possibility that the DCT mode (mode in which the data of the odd field and the data of the even field are separated) is selected.

【0045】しかしながら、必ずしも常にそのようにな
されるわけではなく、予測モード切り替え回路52にお
いては、予測誤差の絶対値和が小さくなるようにモード
が決定され、DCTモード切り替え回路55において
は、符号化効率が良好となるようにモードが決定され
る。
However, this is not always the case, and the prediction mode switching circuit 52 determines the mode so that the sum of the absolute values of the prediction errors becomes small, and the DCT mode switching circuit 55 encodes the mode. The mode is determined so that the efficiency is good.

【0046】DCTモード切り替え回路55より出力さ
れたIピクチャの画像データは、DCT回路56に入力
され、DCT(離散コサイン変換)処理され、DCT係
数に変換される。このDCT係数は、量子化回路57に
入力され、送信バッファ59のデータ蓄積量(バッファ
蓄積量)に対応した量子化ステップで量子化された後、
可変長符号化回路58に入力される。
The I-picture image data output from the DCT mode switching circuit 55 is input to the DCT circuit 56, subjected to DCT (discrete cosine transform) processing, and converted into DCT coefficients. This DCT coefficient is input to the quantization circuit 57, quantized in a quantization step corresponding to the data storage amount (buffer storage amount) of the transmission buffer 59, and then,
It is input to the variable length coding circuit 58.

【0047】可変長符号化回路58は、量子化回路57
より供給される量子化ステップ(スケール)に対応し
て、量子化回路57より供給される画像データ(いまの
場合、Iピクチャのデータ)を、例えばハフマン符号な
どの可変長符号に変換し、送信バッファ59に出力す
る。
The variable length coding circuit 58 is a quantization circuit 57.
In accordance with the supplied quantization step (scale), the image data (in this case, I picture data) supplied from the quantization circuit 57 is converted into a variable length code such as a Huffman code and transmitted. Output to the buffer 59.

【0048】可変長符号化回路58にはまた、量子化回
路57より量子化ステップ(スケール)、予測判定回路
54より予測モード(画像内予測、前方予測、後方予
測、または両方向予測のいずれが設定されたかを示すモ
ード)、動きベクトル検出回路50より動きベクトル、
予測モード切り替え回路52より予測フラグ(フレーム
予測モードまたはフィールド予測モードのいずれが設定
されたかを示すフラグ)、およびDCTモード切り替え
回路55が出力するDCTフラグ(フレームDCTモー
ドまたはフィールドDCTモードのいずれが設定された
かを示すフラグ)が入力されており、これらも可変長符
号化される。
In the variable length coding circuit 58, a quantization step (scale) is set by the quantization circuit 57, and a prediction mode (intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction is set by the prediction determination circuit 54. Mode indicating whether or not the motion vector is detected by the motion vector detection circuit 50,
A prediction flag (a flag indicating whether the frame prediction mode or the field prediction mode has been set) is set by the prediction mode switching circuit 52, and a DCT flag (whether the frame DCT mode or the field DCT mode is set by the DCT mode switching circuit 55 is set. Has been input, and these are also variable length coded.

【0049】送信バッファ59は、入力されたデータを
一時蓄積し、蓄積量に対応するデータを量子化回路57
に出力する。送信バッファ59は、そのデータ残量が許
容上限値まで増量すると、量子化制御信号によって量子
化回路57の量子化スケールを大きくすることにより、
量子化データのデータ量を低下させる。また、これとは
逆に、データ残量が許容下限値まで減少すると、送信バ
ッファ59は、量子化制御信号によって量子化回路57
の量子化スケールを小さくすることにより、量子化デー
タのデータ量を増大させる。このようにして、送信バッ
ファ59のオーバフローまたはアンダフローが防止され
る。
The transmission buffer 59 temporarily stores the input data and stores the data corresponding to the storage amount in the quantizing circuit 57.
Output to. When the remaining amount of data increases to the allowable upper limit value, the transmission buffer 59 increases the quantization scale of the quantization circuit 57 by the quantization control signal,
The amount of quantized data is reduced. On the contrary, when the data remaining amount decreases to the allowable lower limit value, the transmission buffer 59 uses the quantization control signal to quantize circuit 57.
The data amount of the quantized data is increased by reducing the quantization scale of. In this way, overflow or underflow of the transmission buffer 59 is prevented.

【0050】そして、送信バッファ59に蓄積されたデ
ータは、所定のタイミングで読み出され、伝送路に出力
され、例えば記録媒体3に記録される。
Then, the data accumulated in the transmission buffer 59 is read out at a predetermined timing, output to the transmission path, and recorded on the recording medium 3, for example.

【0051】一方、量子化回路57より出力されたIピ
クチャのデータは、逆量子化回路60に入力され、量子
化回路57より供給される量子化ステップに対応して逆
量子化される。逆量子化回路60の出力は、IDCT
(逆DCT)回路61に入力され、逆DCT処理された
後、DCTブロック並び替え回路62に入力される。D
CTブロック並び替え回路62は、入力されたデータ
を、予測モード切り替え回路52から供給される予測フ
ラグと、DCTモード切り替え回路55から供給される
DCTフラグに対応して、データの並び替えを行う。
On the other hand, the I picture data output from the quantization circuit 57 is input to the inverse quantization circuit 60 and inversely quantized in accordance with the quantization step supplied from the quantization circuit 57. The output of the inverse quantization circuit 60 is IDCT
It is input to the (inverse DCT) circuit 61, subjected to inverse DCT processing, and then input to the DCT block rearranging circuit 62. D
The CT block rearrangement circuit 62 rearranges the input data according to the prediction flag supplied from the prediction mode switching circuit 52 and the DCT flag supplied from the DCT mode switching circuit 55.

【0052】即ち、予測モード切り替え回路52におい
て、フレーム予測モードが設定されている場合、動き補
償回路65から読み出され、演算部53に供給されるデ
ータは、奇数フィールドのデータと偶数フィールドのデ
ータとが混在する状態となされている。このデータが演
算器63にも供給される。このため、DCTブロック並
び替え回路62は、IDCT回路61より供給されるデ
ータを、フレームDCTモードが設定されている場合、
そのまま演算器63に供給し、フィールドDCTモード
が設定されている場合、奇数フィールドのデータと偶数
フィールドのデータとが分離された状態となされている
ため、これらが混在する状態にデータを並べ替えて、演
算器63に出力する。
That is, when the frame prediction mode is set in the prediction mode switching circuit 52, the data read from the motion compensation circuit 65 and supplied to the arithmetic unit 53 is the odd field data and the even field data. It is said that the and are mixed. This data is also supplied to the calculator 63. Therefore, the DCT block rearrangement circuit 62 converts the data supplied from the IDCT circuit 61 when the frame DCT mode is set.
When the field DCT mode is set, the data in the odd field and the data in the even field are separated, so that the data is rearranged in a mixed state. , To the computing unit 63.

【0053】一方、予測モード切り替え回路52におい
て、フィールド予測モードが設定されている場合、動き
補償回路65より演算部53に供給されるデータは、奇
数フィールドのデータと偶数フィールドのデータとが分
離した状態となされている。このため、DCTブロック
並び替え回路58は、DCTモード切り替え回路55に
よりフィールドDCTモードが設定されている場合、I
DCT回路61より出力されるデータをそのまま演算器
63に供給するが、フレームDCTモードが設定されて
いる場合、奇数フィールドのデータと偶数フィールドの
データとが混在する状態となされているため、これを、
それぞれが分離された状態に並べ替えて、演算器63に
出力する。
On the other hand, in the prediction mode switching circuit 52, when the field prediction mode is set, the data supplied from the motion compensation circuit 65 to the arithmetic unit 53 is the data of the odd field and the data of the even field separated. It is in a state. Therefore, when the field DCT mode is set by the DCT mode switching circuit 55, the DCT block rearranging circuit 58 is I
The data output from the DCT circuit 61 is supplied to the arithmetic unit 63 as it is. However, when the frame DCT mode is set, the data of the odd field and the data of the even field are mixed. ,
Each of them is sorted into a separated state and is output to the computing unit 63.

【0054】即ち、DCTブロック並び替え回路58
は、動き補償回路65から演算部53に供給されるデー
タの配列状態と同一の配列状態になるように、IDCT
回路61の出力するデータの並び替えを実行する。
That is, the DCT block rearrangement circuit 58.
Is IDCT so that it has the same arrangement state as the arrangement state of the data supplied from the motion compensation circuit 65 to the arithmetic unit 53.
The data output from the circuit 61 is rearranged.

【0055】いまの場合、IDCT回路61より出力さ
れるデータは、Iピクチャのデータであるから、画像内
予測とされている。このため、DCTモード切り替え回
路55がフレームDCTフラグを出力しているとき、I
DCT回路61より出力されたデータは、そのまま演算
器63を介してフレームメモリ65の前方予測画像部6
5aに供給され、記憶される。また、フィールドDCT
フラグが出力されているとき、データの並び替えが行わ
れた後、記憶される。
In this case, since the data output from the IDCT circuit 61 is I picture data, it is considered as intra-picture prediction. Therefore, when the DCT mode switching circuit 55 is outputting the frame DCT flag, I
The data output from the DCT circuit 61 is directly transmitted via the calculator 63 to the forward prediction image section 6 of the frame memory 65.
5a and stored. Also, the field DCT
When the flag is output, the data is sorted and then stored.

【0056】動きベクトル検出回路50は、シーケンシ
ャルに入力される各フレームの画像データを、たとえ
ば、I,B,P,B,P,B・・・のピクチャとしてそ
れぞれ処理する場合、最初に入力されたフレームの画像
データをIピクチャとして処理した後、次に入力された
フレームの画像をBピクチャとして処理する前に、さら
にその次に入力されたフレームの画像データをPピクチ
ャとして処理する。Bピクチャは、後方予測を伴うた
め、後方予測画像としてのPピクチャが先に用意されて
いないと、復号することができないからである。
When the motion vector detection circuit 50 processes the sequentially input image data of each frame as a picture of I, B, P, B, P, B ... After processing the image data of another frame as an I picture, before processing the image of the next input frame as a B picture, the image data of the next input frame is processed as a P picture. This is because a B picture is accompanied by backward prediction and cannot be decoded unless a P picture as a backward predicted image is prepared in advance.

【0057】そこで動きベクトル検出回路50は、Iピ
クチャの処理の次に、後方原画像部51cに記憶されて
いるPピクチャの画像データの処理を開始する。そし
て、上述した場合と同様に、マクロブロック単位でのフ
レーム間差分(予測誤差)の絶対値和が、動きベクトル
検出回路50から予測モード切り替え回路52と予測判
定回路54に供給される。予測モード切り替え回路52
と予測判定回路54は、このPピクチャのマクロブロッ
クの予測誤差の絶対値和に対応して、フレーム/フィー
ルド予測モード、または画像内予測、前方予測、後方予
測、もしくは両方向予測の予測モードを設定する。
Then, the motion vector detecting circuit 50 starts the processing of the image data of the P picture stored in the backward original image portion 51c after the processing of the I picture. Then, as in the case described above, the sum of absolute values of the inter-frame difference (prediction error) in macroblock units is supplied from the motion vector detection circuit 50 to the prediction mode switching circuit 52 and the prediction determination circuit 54. Prediction mode switching circuit 52
And the prediction determination circuit 54 sets the frame / field prediction mode, or the prediction mode of intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction in accordance with the sum of the absolute values of the prediction errors of the macroblock of the P picture. To do.

【0058】演算部53は、画像内予測モードが設定さ
れたとき、スイッチ53dを上述したように接点a側に
切り替える。従って、このデータは、Iピクチャのデー
タと同様に、DCTモード切り替え回路55、DCT回
路56、量子化回路57、可変長符号化回路58、送信
バッファ59を介して伝送路に伝送される。また、この
データは、逆量子化回路60、IDCT回路61、DC
Tブロック並び替え回路62、演算器63を介してフレ
ームメモリ64の後方予測画像部64bに供給され、記
憶される。
When the intra-picture prediction mode is set, the arithmetic unit 53 switches the switch 53d to the contact a side as described above. Therefore, this data is transmitted to the transmission line via the DCT mode switching circuit 55, the DCT circuit 56, the quantization circuit 57, the variable length coding circuit 58, and the transmission buffer 59, like the I picture data. Further, this data is the inverse quantization circuit 60, the IDCT circuit 61, the DC
It is supplied to and stored in the backward predicted image portion 64b of the frame memory 64 via the T block rearrangement circuit 62 and the computing unit 63.

【0059】前方予測モードの時、スイッチ53dが接
点bに切り替えられるとともに、フレームメモリ64の
前方予測画像部64aに記憶されている画像(いまの場
合、Iピクチャの画像)データが読み出され、動き補償
回路65により、動きベクトル検出回路50が出力する
動きベクトルに対応して動き補償される。即ち、動き補
償回路65は、予測判定回路54より前方予測モードの
設定が指令されたとき、前方予測画像部64aの読み出
しアドレスを、動きベクトル検出回路50がいま出力し
ているマクロブロックの位置に対応する位置から動きベ
クトルに対応する分だけずらしてデータを読み出し、予
測画像データを生成する。
In the forward prediction mode, the switch 53d is switched to the contact b, and the image data (in this case, the I picture image) stored in the forward prediction image portion 64a of the frame memory 64 is read out. The motion compensation circuit 65 performs motion compensation corresponding to the motion vector output from the motion vector detection circuit 50. That is, when the prediction determination circuit 54 instructs the motion compensation circuit 65 to set the forward prediction mode, the motion compensation circuit 65 sets the read address of the forward predicted image portion 64a to the position of the macroblock currently output by the motion vector detection circuit 50. Data is read out by shifting from the corresponding position by an amount corresponding to the motion vector, and predicted image data is generated.

【0060】動き補償回路65より出力された予測画像
データは、演算器53aに供給される。演算器53a
は、予測モード切り替え回路52より供給された参照画
像のマクロブロックのデータから、動き補償回路65よ
り供給された、このマクロブロックに対応する予測画像
データを減算し、その差分(予測誤差)を出力する。こ
の差分データは、DCTモード切り替え回路55、DC
T回路56、量子化回路57、可変長符号化回路58、
送信バッファ59を介して伝送路に伝送される。また、
この差分データは、逆量子化回路60、IDCT回路6
1、DCTブロック並び替え回路62により局所的に復
号され、演算器63に入力される。
The predicted image data output from the motion compensation circuit 65 is supplied to the calculator 53a. Calculator 53a
Subtracts the predicted image data corresponding to this macroblock supplied from the motion compensation circuit 65 from the data of the macroblock of the reference image supplied from the prediction mode switching circuit 52, and outputs the difference (prediction error). To do. This difference data is the DCT mode switching circuit 55, DC
T circuit 56, quantization circuit 57, variable length coding circuit 58,
It is transmitted to the transmission line via the transmission buffer 59. Also,
This difference data is stored in the inverse quantization circuit 60 and the IDCT circuit 6
1, locally decoded by the DCT block rearrangement circuit 62 and input to the arithmetic unit 63.

【0061】この演算器63にはまた、演算器53aに
供給されている予測画像データと同一のデータが供給さ
れている。演算器63は、DCTブロック並び替え回路
62が出力する差分データに、動き補償回路65が出力
する予測画像データを加算する。これにより、元の(復
号した)Pピクチャの画像データが得られる。このPピ
クチャの画像データは、フレームメモリ64の後方予測
画像部64bに供給され、記憶される。
The calculator 63 is also supplied with the same data as the predicted image data supplied to the calculator 53a. The calculator 63 adds the predicted image data output by the motion compensation circuit 65 to the difference data output by the DCT block rearrangement circuit 62. As a result, the image data of the original (decoded) P picture is obtained. The image data of the P picture is supplied to and stored in the backward predicted image portion 64b of the frame memory 64.

【0062】動きベクトル検出回路50は、このよう
に、IピクチャとPピクチャのデータが前方予測画像部
64aと後方予測画像部64bにそれぞれ記憶された
後、次にBピクチャの処理を実行する。予測モード切り
替え回路52と予測判定回路54は、マクロブロック単
位でのフレーム間差分の絶対値和の大きさに対応して、
フレーム/フィールドモードを設定し、また、予測モー
ドを画像内予測モード、前方予測モード、後方予測モー
ド、または両方向予測モードのいずれかに設定する。
In this way, the motion vector detection circuit 50 executes the processing of the B picture after the data of the I picture and the P picture are stored in the forward prediction image section 64a and the backward prediction image section 64b, respectively. The prediction mode switching circuit 52 and the prediction determination circuit 54 correspond to the magnitude of the sum of absolute values of inter-frame differences in macroblock units,
The frame / field mode is set, and the prediction mode is set to any of the intra-picture prediction mode, the forward prediction mode, the backward prediction mode, and the bidirectional prediction mode.

【0063】上述したように、画像内予測モードまたは
前方予測モードの時、スイッチ53dは接点aまたはb
に切り替えられる。このとき、Pピクチャにおける場合
と同様の処理が行われ、データが伝送される。
As described above, in the intra-picture prediction mode or the forward prediction mode, the switch 53d has the contact a or b.
Can be switched to. At this time, the same processing as in the P picture is performed and the data is transmitted.

【0064】これに対して、後方予測モードまたは両方
向予測モードが設定された時、スイッチ53dは、接点
cまたはdにそれぞれ切り替えられる。
On the other hand, when the backward prediction mode or the bidirectional prediction mode is set, the switch 53d is switched to the contact c or d, respectively.

【0065】スイッチ53dが接点cに切り替えられて
いる後方予測モードの時、後方予測画像部64bに記憶
されている画像(いまの場合、Pピクチャの画像)デー
タが読み出され、動き補償回路65により、動きベクト
ル検出回路50が出力する動きベクトルに対応して動き
補償される。即ち、動き補償回路65は、予測判定回路
54より後方予測モードの設定が指令されたとき、後方
予測画像部64bの読み出しアドレスを、動きベクトル
検出回路50がいま出力しているマクロブロックの位置
に対応する位置から動きベクトルに対応する分だけずら
してデータを読み出し、予測画像データを生成する。
In the backward prediction mode in which the switch 53d is switched to the contact c, the image (in this case, P picture image) data stored in the backward predicted image section 64b is read out and the motion compensation circuit 65 is read. Thus, motion compensation is performed corresponding to the motion vector output by the motion vector detection circuit 50. That is, the motion compensation circuit 65 sets the read address of the backward predicted image portion 64b to the position of the macroblock currently output by the motion vector detection circuit 50 when the backward determination mode setting is instructed by the prediction determination circuit 54. Data is read out by shifting from the corresponding position by an amount corresponding to the motion vector, and predicted image data is generated.

【0066】動き補償回路65より出力された予測画像
データは、演算器53bに供給される。演算器53b
は、予測モード切り替え回路52より供給された参照画
像のマクロブロックのデータから、動き補償回路65よ
り供給された予測画像データを減算し、その差分を出力
する。この差分データは、DCTモード切り替え回路5
5、DCT回路56、量子化回路57、可変長符号化回
路58、送信バッファ59を介して伝送路に伝送され
る。
The predicted image data output from the motion compensation circuit 65 is supplied to the calculator 53b. Calculator 53b
Subtracts the prediction image data supplied from the motion compensation circuit 65 from the macroblock data of the reference image supplied from the prediction mode switching circuit 52, and outputs the difference. This difference data is stored in the DCT mode switching circuit 5
5, the DCT circuit 56, the quantization circuit 57, the variable length coding circuit 58, and the transmission buffer 59.

【0067】スイッチ53dが接点dに切り替えられて
いる両方向予測モードの時、前方予測画像部64aに記
憶されている画像(いまの場合、Iピクチャの画像)デ
ータと、後方予測画像部64bに記憶されている画像
(いまの場合、Pピクチャの画像)データが読み出さ
れ、動き補償回路65により、動きベクトル検出回路5
0が出力する動きベクトルに対応して動き補償される。
即ち、動き補償回路65は、予測判定回路54より両方
向予測モードの設定が指令されたとき、前方予測画像部
64aと後方予測画像部64bの読み出しアドレスを、
動きベクトル検出回路50がいま出力しているマクロブ
ロックの位置に対応する位置から動きベクトル(この場
合の動きベクトルは、前方予測画像用と後方予測画像用
の2つとなる)に対応する分だけずらしてデータを読み
出し、予測画像データを生成する。
In the bidirectional prediction mode in which the switch 53d is switched to the contact point d, the image data (in this case, the I picture image) stored in the forward predicted image portion 64a and the backward predicted image portion 64b are stored. Image data (in this case, an image of P picture) is read out, and the motion compensation circuit 65 causes the motion vector detection circuit 5 to read.
Motion compensation is performed according to the motion vector output by 0.
That is, when the prediction determination circuit 54 instructs the bidirectional prediction mode to be set, the motion compensation circuit 65 sets the read addresses of the forward prediction image portion 64a and the backward prediction image portion 64b to the read addresses.
The motion vector detection circuit 50 shifts from the position corresponding to the position of the macro block currently output by the amount corresponding to the motion vector (in this case, there are two motion vectors for the forward prediction image and the backward prediction image). Data is read out to generate predicted image data.

【0068】動き補償回路65より出力された予測画像
データは、演算器53cに供給される。演算器53c
は、動きベクトル検出回路50より供給された参照画像
のマクロブロックのデータから、動き補償回路65より
供給された予測画像データの平均値を減算し、その差分
を出力する。この差分データは、DCTモード切り替え
回路55、DCT回路56、量子化回路57、可変長符
号化回路58、送信バッファ59を介して伝送路に伝送
される。
The predicted image data output from the motion compensation circuit 65 is supplied to the calculator 53c. Calculator 53c
Subtracts the average value of the predicted image data supplied from the motion compensation circuit 65 from the data of the macroblock of the reference image supplied from the motion vector detection circuit 50, and outputs the difference. This difference data is transmitted to the transmission line via the DCT mode switching circuit 55, the DCT circuit 56, the quantization circuit 57, the variable length coding circuit 58, and the transmission buffer 59.

【0069】Bピクチャの画像は、他の画像の予測画像
とされることがないため、フレームメモリ64には記憶
されない。
The B picture image is not stored in the frame memory 64 because it is not used as a predicted image of another image.

【0070】尚、フレームメモリ64において、前方予
測画像部64aと後方予測画像部64bは、必要に応じ
てバンク切り替えが行われ、所定の参照画像に対して、
一方または他方に記憶されているものを、前方予測画像
あるいは後方予測画像として切り替えて出力することが
できる。
In the frame memory 64, the forward predictive image section 64a and the backward predictive image section 64b are bank-switched as necessary, and a predetermined reference image
The one stored in one or the other can be switched and output as the forward prediction image or the backward prediction image.

【0071】以上においては、輝度ブロックを中心とし
て説明をしたが、色差ブロックについても図15に示し
たマクロブロックと同様なマクロブロックを単位として
処理され、伝送される。尚、色差ブロックを処理する場
合の動きベクトルは、対応する輝度ブロックの動きベク
トルを垂直方向と水平方向に、それぞれ1/2にしたも
のが用いられる。
In the above description, the luminance block is mainly described, but the chrominance block is also processed and transmitted in units of macro blocks similar to the macro block shown in FIG. The motion vector used for processing the color difference block is obtained by halving the motion vector of the corresponding luminance block in each of the vertical direction and the horizontal direction.

【0072】図19は、図14のデコーダ31の一実施
例である復号回路90の構成を示すブロック図である。
伝送路(記録媒体3)を介して伝送された符号化された
画像データは、図示せぬ受信回路で受信されたり、再生
回路で再生され、受信バッファ81に一時記憶された
後、復号回路90の可変長復号化回路82に供給され
る。可変長復号化回路82は、受信バッファ81より供
給されたデータを可変長復号化し、動きベクトル、予測
モード、予測フラグおよびDCTフラグを動き補償回路
88に、また、量子化ステップ(スケール)を逆量子化
回路83に、それぞれ出力するとともに、復号された画
像データを逆量子化回路83に出力する。さらに、DC
Tフラグと予測フラグを、逆量子化回路83に出力す
る。
FIG. 19 is a block diagram showing the structure of a decoding circuit 90 which is an embodiment of the decoder 31 shown in FIG.
The encoded image data transmitted through the transmission path (recording medium 3) is received by a receiving circuit (not shown), reproduced by a reproducing circuit, temporarily stored in the receiving buffer 81, and then decoded by the decoding circuit 90. Of the variable length decoding circuit 82. The variable length decoding circuit 82 performs variable length decoding on the data supplied from the reception buffer 81, the motion vector, the prediction mode, the prediction flag and the DCT flag to the motion compensation circuit 88, and the quantization step (scale) to the reverse. The decoded image data is output to the quantization circuit 83 and the decoded image data is output to the inverse quantization circuit 83. Furthermore, DC
The T flag and the prediction flag are output to the inverse quantization circuit 83.

【0073】逆量子化回路83は、可変長復号化回路8
2より供給された画像データを、同じく可変長復号化回
路82より供給された量子化ステップに従って逆量子化
し、IDCT回路84に出力する。逆量子化回路83よ
り出力されたデータ(DCT係数)は、IDCT回路8
4で、逆DCT処理され、元の画像データに戻される。
The inverse quantization circuit 83 is used in the variable length decoding circuit 8
The image data supplied from No. 2 is inversely quantized according to the quantization step supplied from the variable length decoding circuit 82, and output to the IDCT circuit 84. The data (DCT coefficient) output from the inverse quantization circuit 83 is the IDCT circuit 8
In step 4, inverse DCT processing is performed to restore the original image data.

【0074】この画像データは、さらにDCTブロック
並び替え回路86に入力される。DCTブロック並び替
え回路86は、DCTフラグと予測フラグに対応して、
このデータを、動き補償回路88が演算部87に出力す
るデータと同一の配列状態になるように並び替えを行
い、演算器87に出力する。
This image data is further input to the DCT block rearrangement circuit 86. The DCT block rearrangement circuit 86 corresponds to the DCT flag and the prediction flag,
This data is rearranged so that it has the same arrangement as the data output by the motion compensation circuit 88 to the arithmetic unit 87, and is output to the arithmetic unit 87.

【0075】DCTブロック並び替え回路86より供給
された画像データが、Iピクチャのデータである場合、
そのデータは演算器86より出力され、演算器86に後
に入力される画像データ(PピクチャまたはBピクチャ
のデータ)の予測画像データ生成のために、フレームメ
モリ87の前方予測画像部87aに供給されて記憶され
る。また、このデータは、フォーマット変換回路32
(図14)に出力される。
When the image data supplied from the DCT block rearrangement circuit 86 is I picture data,
The data is output from the computing unit 86, and is supplied to the forward prediction image unit 87a of the frame memory 87 to generate predicted image data of image data (P picture or B picture data) that is input to the computing unit 86 later. Will be remembered. In addition, this data is the format conversion circuit 32.
(FIG. 14).

【0076】IDCT回路84より供給された画像デー
タが、その1フレーム前の画像データを予測画像データ
とするPピクチャのデータであって、前方予測モードの
データである場合、フレームメモリ87の前方予測画像
部87aに記憶されている、1フレーム前の画像データ
(Iピクチャのデータ)が読み出され、動き補償回路8
8で可変長復号化回路82より出力された動きベクトル
に対応する動き補償が施される。そして、演算器86に
おいて、DCTブロック並べ替え回路86より供給され
た画像データ(差分のデータ)と加算され、出力され
る。この加算されたデータ、即ち、復号されたPピクチ
ャのデータは、演算器86に後に入力される画像データ
(BピクチャまたはPピクチャのデータ)の予測画像デ
ータ生成のために、フレームメモリ87の後方予測画像
部87bに供給されて記憶される。
When the image data supplied from the IDCT circuit 84 is P picture data in which the image data one frame before is the predicted image data and is the data in the forward prediction mode, the forward prediction of the frame memory 87 is performed. The image data (I-picture data) one frame before stored in the image section 87a is read out, and the motion compensation circuit 8
At 8, the motion compensation corresponding to the motion vector output from the variable length decoding circuit 82 is performed. Then, in the arithmetic unit 86, the image data (difference data) supplied from the DCT block rearrangement circuit 86 is added and output. The added data, that is, the decoded P picture data is stored in the rear of the frame memory 87 to generate predictive image data of image data (B picture or P picture data) that is input later to the calculator 86. It is supplied to and stored in the predicted image section 87b.

【0077】Pピクチャのデータであっても、画像内予
測モードのデータは、Iピクチャのデータと同様に、演
算器87で特に処理は行わず、そのまま後方予測画像部
87bに記憶される。
Even in the case of P-picture data, the intra-picture prediction mode data is stored in the backward-prediction image section 87b as it is without any special processing by the computing unit 87, like the I-picture data.

【0078】このPピクチャは、次のBピクチャの次に
表示されるべき画像であるため、この時点では、まだフ
ォーマット変換回路32へ出力されない(上述したよう
に、Bピクチャの後に入力されたPピクチャが、Bピク
チャより先に処理され、伝送されている)。
Since this P picture is an image to be displayed next to the next B picture, it is not yet output to the format conversion circuit 32 at this point (as described above, the P input after the B picture is input). Pictures have been processed and transmitted before B pictures).

【0079】DCTブロック並べ替え回路86より供給
された画像データが、Bピクチャのデータである場合、
可変長復号化回路82より供給された予測モードに対応
して、フレームメモリ87の前方予測画像部87aに記
憶されているIピクチャの画像データ(前方予測モード
の場合)、後方予測画像部87bに記憶されているPピ
クチャの画像データ(後方予測モードの場合)、また
は、その両方の画像データ(両方向予測モードの場合)
が読み出され、動き補償回路88において、可変長復号
化回路82より出力された動きベクトルに対応する動き
補償が施されて、予測画像が生成される。但し、動き補
償を必要としない場合(画像内予測モードの場合)、予
測画像は生成されない。
When the image data supplied from the DCT block rearrangement circuit 86 is B picture data,
Corresponding to the prediction mode supplied from the variable length decoding circuit 82, the image data of the I picture stored in the forward prediction image section 87a of the frame memory 87 (in the case of the forward prediction mode) and the backward prediction image section 87b. Stored P-picture image data (in backward prediction mode) or both image data (in bidirectional prediction mode)
Is read out, and the motion compensation circuit 88 performs motion compensation corresponding to the motion vector output from the variable length decoding circuit 82 to generate a predicted image. However, when motion compensation is not required (in the case of the intra-picture prediction mode), the predicted picture is not generated.

【0080】このようにして、動き補償回路88で動き
補償が施されたデータは、演算器86において、DCT
ブロック並べ替え回路86出力と加算される。この加算
出力は、フォーマット変換回路32に出力される。
The data thus motion-compensated by the motion compensating circuit 88 is processed by the arithmetic unit 86 by the DCT.
It is added to the output of the block rearrangement circuit 86. This addition output is output to the format conversion circuit 32.

【0081】但し、この加算出力はBピクチャのデータ
であり、他の画像の予測画像生成のために利用されるこ
とがないため、フレームメモリ87には記憶されない。
However, since this addition output is B picture data and is not used for generating a predicted image of another image, it is not stored in the frame memory 87.

【0082】Bピクチャの画像が出力された後、後方予
測画像部87bに記憶されているPピクチャの画像デー
タが読み出され、動き補償回路88、演算器86を介し
て、フォーマット変換回路32に供給される。但し、こ
のとき、動き補償は行われない。
After the B-picture image is output, the P-picture image data stored in the backward-predicted image section 87b is read out and sent to the format conversion circuit 32 via the motion compensation circuit 88 and the arithmetic unit 86. Supplied. However, at this time, motion compensation is not performed.

【0083】尚、このデコーダ31には、図16のエン
コーダ18における予測モード切り替え回路52とDC
Tモード切り替え回路55に対応する回路が図示されて
いないが、これらの回路に対応する処理、即ち、奇数フ
ィールドと偶数フィールドのラインの信号が分離された
構成を、元の混在する構成に必要に応じて戻す処理は、
動き補償回路88が実行する。
The decoder 31 includes a prediction mode switching circuit 52 and a DC in the encoder 18 of FIG.
Although the circuits corresponding to the T mode switching circuit 55 are not shown, the processing corresponding to these circuits, that is, the configuration in which the signals of the lines of the odd field and the even field are separated is necessary for the original mixed configuration. The process of returning according to
The motion compensation circuit 88 executes.

【0084】また、以上においては、輝度信号の処理に
ついて説明をしたが、色差信号の処置についても同様に
行われる。但し、動きベクトルは、輝度信号用のもの
を、垂直方向と水平方向に1/2にしたものが用いられ
る。
Further, although the processing of the luminance signal has been described above, the processing of the color difference signal is similarly performed. However, the motion vector used is one for the luminance signal, which is halved in the vertical and horizontal directions.

【0085】[0085]

【発明が解決しようとする課題】図14に示す復号化装
置のようにポストフィルタ22を有する場合、ポストフ
ィルタ22には様々な種類のフィルタが存在するが、ど
の種類のフィルタが最適であるかは、画質の性質及び符
号化時の条件に依存する。
When the post filter 22 is provided as in the decoding apparatus shown in FIG. 14, there are various kinds of filters in the post filter 22. Which kind of filter is optimum? Depends on the nature of the image quality and the conditions at the time of encoding.

【0086】例えば、符号化ビットレートが低い場合に
は、復号化された画像の劣化が顕著であるため、これを
補うために画質を改善するためのフィルタを強くかける
必要がある。一方、符号化ビットレートが高い場合、復
号化された画像はそのままで高画質を維持しており、低
ビットレートの場合と同じフィルタを用いると、それに
より画質を劣化させることになるといった問題がある。
For example, when the coding bit rate is low, the decoded image is significantly deteriorated, and therefore, in order to compensate for this, it is necessary to strongly apply a filter for improving the image quality. On the other hand, when the encoding bit rate is high, the decoded image maintains the high image quality as it is, and using the same filter as in the case of the low bit rate causes the problem that the image quality is deteriorated. is there.

【0087】また、例えば、低ビットレートの場合のみ
を考えると、動きの速い画像は符号化効率が悪く、画質
に劣化が顕著になるため、画質を改善するためのフィル
タを強くかける必要があるが、これを符号化効率の良い
画像に用いるとかえって画質を悪化させるという問題が
ある。
Further, for example, considering only the case of a low bit rate, a fast moving image has poor coding efficiency and the image quality is significantly deteriorated. Therefore, it is necessary to strongly apply a filter for improving the image quality. However, if this is used for an image with high coding efficiency, there is a problem that the image quality deteriorates.

【0088】つまり、従来の画像データを符号・復号化
する画像信号処理装置では、画質の性質や符号化時の条
件に応じて、最適に画像データを圧縮・伸張することが
できないといった問題がある。
That is, in the conventional image signal processing apparatus for encoding / decoding image data, there is a problem that the image data cannot be optimally compressed / decompressed according to the characteristics of the image quality and the conditions at the time of encoding. .

【0089】本発明は上記事情に鑑みてなされたもので
あり、簡単な構成により復号化した画像信号を最適に補
正することのできる画像信号符号化装置及び画像信号復
号化装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide an image signal coding apparatus and an image signal decoding apparatus capable of optimally correcting a decoded image signal with a simple configuration. To aim.

【0090】[0090]

【課題を解決するための手段】請求項1に記載の画像信
号符号化装置は、画像信号を所定の予測画像信号に基づ
いて符号化する符号化手段としてのエンコーダ18を備
えた画像信号符号化装置において、エンコーダ18は、
予測画像信号に基づいて画像信号を符号化する際に、画
像信号の符号化条件を示す符号化条件フラグを符号化す
るように構成される。
An image signal coding apparatus according to claim 1 is provided with an image signal coding apparatus including an encoder 18 as coding means for coding an image signal based on a predetermined predicted image signal. In the device, the encoder 18
When the image signal is encoded based on the predicted image signal, the encoding condition flag indicating the encoding condition of the image signal is encoded.

【0091】請求項1に記載の画像信号符号化装置は、
画像信号をビットストリームの画像情報とし、符号化フ
ラグをビットストリームの前記画像情報のユーザエリア
中に存在させ、エンコーダ18が符号化するビットスト
リームの画像情報の符号化ビットレートに基づき、符号
化フラグを設定するフラグ設定手段としてのポストフィ
ルタ選択回路140を備えることができる。
The image signal coding apparatus according to claim 1 is
The image flag is used as image information of the bit stream, the encoding flag is present in the user area of the image information of the bit stream, and the encoding flag is based on the encoding bit rate of the image information of the bit stream encoded by the encoder 18. A post filter selection circuit 140 can be provided as a flag setting means for setting

【0092】請求項4の画像信号復号化装置は、所定の
予測画像信号に基づき画像信号を符号化した符号化画像
信号を復号化する画像信号復号化装置において、符号化
画像信号は、画像信号及び画像信号の符号化条件を示す
符号化条件フラグとからなり、符号化条件フラグに基づ
いて、復号化された画像信号を補正する画像補正手段と
してのポストフィルタ22を具備して構成される。
The image signal decoding apparatus according to claim 4 is an image signal decoding apparatus for decoding an encoded image signal obtained by encoding an image signal based on a predetermined predicted image signal, wherein the encoded image signal is the image signal. And a coding condition flag indicating a coding condition of the image signal, and a post filter 22 as an image correcting means for correcting the decoded image signal based on the coding condition flag.

【0093】[0093]

【作 用】請求項1に記載の画像信号符号化装置では、
エンコーダ18で予測画像信号に基づいて画像信号を符
号化する際に画像信号の符号化条件を示す符号化条件フ
ラグを符号化することで、簡単な構成により、画像信号
を復号する際に、符号化条件フラグに基づき画像信号を
最適に補正することを可能とする。
[Operation] In the image signal encoding device according to claim 1,
By encoding the encoding condition flag indicating the encoding condition of the image signal when the encoder 18 encodes the image signal based on the predicted image signal, the encoding is performed when the image signal is decoded with a simple configuration. It is possible to optimally correct the image signal based on the conversion condition flag.

【0094】また、請求項1に記載の画像信号符号化装
置では、ポストフィルタ選択回路140でエンコーダ1
8が符号化するビットストリームの画像情報の符号化ビ
ットレートに基づき、符号化フラグを設定することで、
画像信号をより最適に補正することを可能とする。
Further, in the image signal coding apparatus according to the first aspect, the post filter selection circuit 140 uses the encoder 1
8 sets the coding flag based on the coding bit rate of the image information of the bit stream to be coded,
The image signal can be corrected more optimally.

【0095】請求項4の画像信号復号化装置では、ポス
トフィルタ22で画像信号の符号化条件を示す符号化条
件フラグに基づいて、復号化された画像信号を補正する
ことで、簡単な構成により、画像信号を復号する際に、
符号化条件フラグに基づき画像信号を最適に補正するこ
とを可能とする。
In the image signal decoding apparatus according to the fourth aspect, the post filter 22 corrects the decoded image signal based on the coding condition flag indicating the coding condition of the image signal. , When decoding the image signal,
It is possible to optimally correct the image signal based on the coding condition flag.

【0096】[0096]

【実施例】図1の第1実施例は、従来例と同一の構成を
有しているので、異なる構成のみ説明し、同一構成には
同じ符号をつけ説明は省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The first embodiment shown in FIG. 1 has the same construction as the prior art, so only different constructions will be described.

【0097】第1実施例の画像データ符号化装置1及び
画像データ復号化装置2は、従来例と、エンコーダ1
8、デコーダ31及びポストフィルタ22の構成が異な
り、本実施例において、図1に示すように、符号化装置
1のエンコーダ18は、画像データであるビットストリ
ームと同時に、プリフィルタ21の符号化条件を示すP
STフラグを符号化し、ビットストリームと共にPST
フラグを記録媒体3に伝送する。
The image data coding apparatus 1 and the image data decoding apparatus 2 of the first embodiment are the same as the conventional example and the encoder 1.
8, the configurations of the decoder 31 and the post filter 22 are different, and in this embodiment, as shown in FIG. 1, the encoder 18 of the encoding device 1 causes the encoder 18 of the encoding device 1 to simultaneously encode the bit stream which is image data and the encoding condition of the pre-filter 21. Indicating P
Encode ST flag and PST with bitstream
The flag is transmitted to the recording medium 3.

【0098】記録媒体3に符号化されて記憶されたビッ
トストリームとPSTフラグは、復号化装置2のデコー
ダ31で復号化され、復号化されたビットストリーム
は、フォーマット変換回路32に入力され、ブロックフ
ォーマットからフレームフォーマットに変換される。一
方、復号化されたPSTフラグは、ポストフィルタ22
に伝送され、ポストフィルタ22では、PSTフラグに
より最適フィルタを選択するようになっている。
The bit stream and the PST flag coded and stored in the recording medium 3 are decoded by the decoder 31 of the decoding device 2, and the decoded bit stream is input to the format conversion circuit 32, and the block Format is converted to frame format. On the other hand, the decoded PST flag indicates that the post filter 22
The post filter 22 selects the optimum filter according to the PST flag.

【0099】エンコーダ18によるPSTフラグの決定
は、本実施例では次に示すような方法によりなされる。
即ち、外部から強制的にPSTフラグを入力し設定する
方法であり、このPSTフラグの決定方法について説明
する。
The determination of the PST flag by the encoder 18 is performed by the following method in this embodiment.
That is, this is a method of forcibly inputting and setting the PST flag from the outside, and a method of determining the PST flag will be described.

【0100】この決定方法を実現するエンコーダ18の
構成を図2に示す。入力されたPSTフラグは、可変長
符号化回路58に入力される。そして可変長符号化回路
58では、従来例と同様にビットストリームを可変長符
号化すると共に、入力されたPSTフラグを可変長符号
化する。
FIG. 2 shows the configuration of the encoder 18 that implements this determination method. The input PST flag is input to the variable length coding circuit 58. Then, in the variable length coding circuit 58, the bit stream is variable length coded as in the conventional example, and the input PST flag is variable length coded.

【0101】そして、PSTフラグは、ビットストリー
ム中のユーザデータ(user data)としてビットストリ
ームと共に記憶媒体3に記憶される。MPEG,MPE
G2方式では、"user data"は、シーケンス、GOP、
ピクチャヘッダの後に設定可能であるので、PSTフラ
グは同様に、シーケンス、GOP、ピクチャヘッダ単位
で設定可能である。
The PST flag is stored in the storage medium 3 together with the bitstream as user data in the bitstream. MPEG, MPE
In G2 system, "user data" is sequence, GOP,
Since it can be set after the picture header, the PST flag can be similarly set for each sequence, GOP, and picture header.

【0102】ここで、表1乃至表4にMPEG方式のビ
デオのシンタクスを示す。表1における"extention and
user data(i)"に"extention data"または"user data"
が記録される。
Here, Tables 1 to 4 show the syntax of the MPEG video. "Extention and in Table 1
"extention data" or "user data" in "user data (i)"
Is recorded.

【0103】[0103]

【表1】 [Table 1]

【0104】表2に表1の"extention and user data
(i)"を示す。ここに、"user data start cord"が記載さ
れている場合、次に"user data"が記載されていること
を示している。
Table 2 shows "extention and user data" in Table 1.
(i) "indicates that when" user data start cord "is described here," user data "is described next.

【0105】[0105]

【表2】 [Table 2]

【0106】表3に"user data"を示す。"user data"
は、8ビット単位で記録される。例えば、"0000 0000 0
000 0000 0000 0001"が発生すると、"user data"が終了
することを意味する。
Table 3 shows "user data". "user data"
Are recorded in 8-bit units. For example, "0000 0000 0
When "000 0000 0000 0001" occurs, it means that "user data" ends.

【0107】[0107]

【表3】 [Table 3]

【0108】PSTフラグは、例えば8ビットのフラグ
として""user data"に記憶される。表4にPSTフラグ
を示す。ここで、例えば、フィルタ1、2、…、Nはポ
ストフィルタ22の各種フィルタを示している。
The PST flag is stored in "" user data "as an 8-bit flag, for example.The PST flag is shown in Table 4. Here, for example, filters 1, 2, ..., N are various types of post filter 22. Shows a filter.

【0109】[0109]

【表4】 [Table 4]

【0110】尚、PSTフラグは、シーケンス、GO
P、ピクチャヘッダの後に設定可能であるので、次に再
設定されるまでその値を用いることが可能であり、即
ち、再設定されるまで、同一フィルタが用いられる。
Note that the PST flag is a sequence, GO
Since P and P can be set after the picture header, it is possible to use that value until the next reset, that is, the same filter is used until it is reset.

【0111】また、PSTフラグを、シーケンスフラグ
で設定することも可能であり、この場合の再設定は、シ
ーケンス、GOP、ピクチャヘッダの後の"user data"
で行うようにしても良い。
It is also possible to set the PST flag with a sequence flag. In this case, the resetting is performed by "user data" after the sequence, GOP and picture header.
It may be done in.

【0112】記憶媒体3に記憶されたビットストリーム
は、デコーダ31で復号化される。このデコーダ31の
構成は、図3に示すように、図19の従来例で示した復
号回路90と同様に構成されており、ビットストリーム
が受信バッファ81を介して復号回路90の可変長復号
化回路82に入力されると、この可変長復号化回路82
で、可変長符号が解かれる。このとき"user data"に記
録されているPSTフラグが復号され、図1に示したポ
ストフィルタ22に伝送される。その他のデコーダ31
の構成、動作は従来例と同じである。
The bit stream stored in the storage medium 3 is decoded by the decoder 31. As shown in FIG. 3, the configuration of this decoder 31 is similar to that of the decoding circuit 90 shown in the conventional example of FIG. 19, and the bit stream is variable length decoded by the decoding circuit 90 via the reception buffer 81. When input to the circuit 82, the variable length decoding circuit 82
Then, the variable length code is solved. At this time, the PST flag recorded in "user data" is decoded and transmitted to the post filter 22 shown in FIG. Other decoder 31
The configuration and operation of are the same as those of the conventional example.

【0113】このように復号化されたPSTフラグによ
りポストフィルタ22は、例えば、ポストフィルタ22
の各種フィルタとしてのメディアンフィルタ、ローパス
フィルタ等を選択する。尚、メディアンフィルタ、ロー
パスフィルタはパラメータにより複数種類のフィルタか
らなるフィルタ群とすることができる。
The post filter 22 uses, for example, the post filter 22 according to the PST flag thus decoded.
A median filter, a low-pass filter, or the like is selected as each type of filter. The median filter and the low-pass filter can be a filter group including a plurality of types of filters depending on parameters.

【0114】具体的には、図4に示すように、ポストフ
ィルタ22は、入力されたPSTフラグに基づいてスイ
ッチ101、102によりフィルタ100(1)〜10
0(N)を選択し、ビットストリームとしてフレームメ
モリ34,35に記憶された色差信号C及び輝度信号Y
を、選択したフィルタに出力し、選択されたフィルタに
より処理された信号をスイッチ103、104を介して
D/A変換器36、37に出力する。
More specifically, as shown in FIG. 4, the post filter 22 uses the switches 101 and 102 to filter 100 (1) to 10 (10) based on the input PST flag.
0 (N) is selected, and the color difference signal C and the luminance signal Y stored in the frame memories 34 and 35 as a bit stream are selected.
Is output to the selected filter, and the signal processed by the selected filter is output to the D / A converters 36 and 37 via the switches 103 and 104.

【0115】次に、ポストフィルタ22のフィルタの一
例としてのメディアンフィルタを説明する。メディアン
フィルタは、ブロック歪やモスキートノイズを効果的に
除去するフィルタである。図5に示すように、フィール
ドメモリ群120に記憶されている、ある画素の周囲、
例えば3×3画素を3×3画素抽出回路121で取り出
し、並べ変え回路122で降べき順に並べ変える。この
とき、その中央の値、即ち3×3画素の場合、5番目の
値をメディアンと呼ぶが、このメディアン値をMedi
an検出器123で検出し、その画素の値としてD/A
変換器36、37に出力する。メディアンを求めるため
の画素値はフィルタをかける前の画素値を用いる。
Next, a median filter as an example of the filter of the post filter 22 will be described. The median filter is a filter that effectively removes block distortion and mosquito noise. As shown in FIG. 5, around a certain pixel stored in the field memory group 120,
For example, the 3 × 3 pixels are extracted by the 3 × 3 pixel extraction circuit 121, and rearranged by the rearrangement circuit 122 in the descending order. At this time, in the case of the central value, that is, in the case of 3 × 3 pixels, the fifth value is called a median.
An detector 123 detects D / A as the value of the pixel.
Output to the converters 36 and 37. A pixel value before filtering is used as the pixel value for obtaining the median.

【0116】尚、上記のメディアンの算出において、あ
る画素の周囲3×3画素を用いるとしたが、これに限ら
ず、メディアンを求める画素群はどのように設定しても
良い。そして、このメディアンを求める画素群を変える
ことにより、フィルタの効果を変えることができる。
In the calculation of the median, 3 × 3 pixels around a certain pixel are used, but the present invention is not limited to this, and the pixel group for which the median is calculated may be set in any manner. Then, the effect of the filter can be changed by changing the pixel group for which the median is obtained.

【0117】例えば全ての画素について3×3画素のメ
ディアンをとるメディアンフィルタをかけた場合、ブロ
ック歪等は除去できるが、全体にぼけた画像となる強い
フィルタとなる(フィルタ1)。
For example, when a median filter that takes a median of 3 × 3 pixels for all pixels is applied, block distortion and the like can be removed, but a strong filter that results in a blurred image as a whole (filter 1).

【0118】これに対して、ブロックエッジのみに3×
3画素のメディアンをとるメディアンフィルタをかけた
場合、ブロック歪を除去すると共に、フィルタ1に比べ
高周波成分を維持することができる(フィルタ2)。
On the other hand, 3 × is applied only to the block edge.
When a median filter that takes a median of 3 pixels is applied, block distortion can be removed and a high frequency component can be maintained as compared with the filter 1 (filter 2).

【0119】また、1次元のメディアンフィルタをかけ
ることができ、この場合フィルタ1、2と比べると、ブ
ロック歪除去の効率は落ちるが、高周波成分を多少維持
することができる(フィルタ3)。
Further, a one-dimensional median filter can be applied. In this case, compared with the filters 1 and 2, the efficiency of removing block distortion is lowered, but the high frequency component can be maintained to some extent (filter 3).

【0120】このようなフィルタ1、2、3をPSTフ
ラグにより切り換えて最適フィルタを選択する。
The filters 1, 2 and 3 are switched by the PST flag to select the optimum filter.

【0121】このように第1実施例の画像データ符号化
・復号化装置によれば、入力されたPSTフラグに基づ
いて、ポストフィルタ22でスイッチ101、102を
切り換えることで、最適フィルタを選択することができ
る。
As described above, according to the image data encoding / decoding apparatus of the first embodiment, the optimum filter is selected by switching the switches 101 and 102 by the post filter 22 based on the input PST flag. be able to.

【0122】次に第2実施例ついて説明する。第2実施
例は、第1実施例とほとんど同じであり、異なる点はP
STフラグの設定方法が符号化時に発生する各種パラメ
ータに基づいて設定する点であり、その他の構成は第1
実施例と同じであるので、異なる構成のみ説明し、同一
構成には同じ符号をつけ説明は省略する。
Next, the second embodiment will be described. The second embodiment is almost the same as the first embodiment, and the difference is that P
The setting method of the ST flag is that it is set based on various parameters generated at the time of encoding, and other configurations are the first.
Since it is the same as the embodiment, only different configurations will be described, the same configurations will be denoted by the same reference numerals, and description thereof will be omitted.

【0123】第2実施例のエンコーダ18におけるPS
Tフラグ決定方法では、図6に示すように、ポストフィ
ルタ選択回路140が、可変長符号化器回路58に入力
される各種パラメータ及びビットカウンタから出力され
る発生ビット量(符号化パラメータ)に応じて後処理に
用いるフィルタを決定する。ポストフィルタ選択回路1
40は、また、使用するポストフィルタを示すPSTフ
ラグを可変長符号化回路58に出力する。尚、可変長符
号化回路58は、第1実施例と同様にPSTフラグを可
変長符号化する。
PS in the encoder 18 of the second embodiment
In the T flag determination method, as shown in FIG. 6, the post filter selection circuit 140 is responsive to various parameters input to the variable length encoder circuit 58 and the generated bit amount (encoding parameter) output from the bit counter. Determine the filter to be used for post-processing. Post filter selection circuit 1
The 40 also outputs a PST flag indicating the post filter to be used to the variable length coding circuit 58. The variable length coding circuit 58 performs variable length coding on the PST flag as in the first embodiment.

【0124】次に、エンコーダ18によるPSTフラグ
の決定方法の1例を説明する。ポストフィルタ22を特
に必要とする場合は、低ビットレートで、かつ符号化効
率の悪い場合である。この場合、ブロック歪やモスキー
トノイズ等が顕著に現れ、画像の劣化が激しくなる。こ
のような画像の劣化を目だたなくなるような後処理が必
要となる。一方、高ビットレートで符号化した、符号化
効率の良い画像は、復号化されたままで、高画質を維持
しているので、過度な後処理を行うことはかえって画質
の劣化を引き起こすことになる。
Next, an example of a method of determining the PST flag by the encoder 18 will be described. The case where the post filter 22 is particularly required is a case where the bit rate is low and the coding efficiency is low. In this case, block distortion, mosquito noise, and the like appear prominently, resulting in severe deterioration of the image. Post-processing is required to make such image deterioration unnoticeable. On the other hand, an image having a high coding efficiency, which has been encoded at a high bit rate, is still decoded and maintains high image quality, so excessive post-processing rather causes deterioration of image quality. .

【0125】従って、符号化ビットレートが低いほど、
ブロック歪等を除去する強いフィルタが必要であり、ま
た符号化効率の悪いシーケンスほど強いフィルタをかけ
る必要がある。
Therefore, the lower the coding bit rate,
It is necessary to have a strong filter that removes block distortion and the like, and it is necessary to apply a stronger filter to a sequence with poor coding efficiency.

【0126】これらを表す符号化パラメータとしては、
量子化係数が存在する。この量子化係数は、符号化ビッ
トレートが高くなるほど小さな値をとり、また、符号化
効率が良いシーケンスほど小さい値をとる。つまり、こ
の量子化係数の大きさに従って、PSTフラグを適応的
に切り換えれば良いことになる。
The coding parameters representing these are:
There are quantized coefficients. This quantized coefficient takes a smaller value as the coding bit rate increases, and takes a smaller value as the coding efficiency increases. That is, the PST flag may be adaptively switched according to the size of the quantized coefficient.

【0127】量子化係数(quantizer scale code)は、
MPEG方式の場合、マクロブロック単位で設定され
る。マクロブロックシンタクスを表5に示す。
The quantizer scale code is
In the case of the MPEG system, it is set in macroblock units. Table 5 shows the macroblock syntax.

【0128】[0128]

【表5】 [Table 5]

【0129】まず、1フレーム符号化した後、1フレー
ム中の量子化係数の平均値MEAN_Qを求める。PS
Tフラグが表4のように、PSTフラグの値が大きいほ
ど強いフィルタに対応している場合、MEAN_Qが大
きいほど大きなPSTフラグを割り当てる。MEAN_
QとPSTフラグの関係は、図7(A)に示すように、
線形関係であっても、図7(B)に示す階段状の関係で
あっても良い(図7(B)はポストフィルタが頻繁に変
化しないような制御方式である)。
First, after encoding one frame, the average value MEAN_Q of the quantized coefficients in one frame is obtained. PS
As shown in Table 4, when the T flag has a larger value corresponding to a stronger filter, the larger the MEAN_Q, the larger the PST flag is assigned. MEAN_
The relationship between Q and the PST flag is as shown in FIG.
The relationship may be linear or stepwise as shown in FIG. 7B (FIG. 7B is a control method in which the post filter does not change frequently).

【0130】尚、MEAN_QとPSTフラグの関係
は、図7(A)と(B)のどちらか一方を用いて構成さ
れ、符号化装置側と復号化装置側で同一の関係を有する
ものとする。
Note that the relationship between MEAN_Q and the PST flag is configured by using either one of FIGS. 7A and 7B, and it is assumed that the encoder side and the decoder side have the same relationship. .

【0131】具体的には、図8に示すように、ポストフ
ィルタ選択回路140では、量子化スケール(量子化係
数)が入力されると、平均回路150で1フレーム毎に
MEAN_Qが算出される。そして、PST決定回路1
51でMEAN_Qに基づいてPSTフラグを決定し、
可変長符号化回路58に出力する。その他の構成、作用
は第1実施例と同じである。
Specifically, as shown in FIG. 8, in the post filter selection circuit 140, when the quantization scale (quantization coefficient) is input, the averaging circuit 150 calculates MEAN_Q for each frame. Then, the PST determination circuit 1
51 determines the PST flag based on MEAN_Q,
It is output to the variable length coding circuit 58. Other configurations and operations are the same as those in the first embodiment.

【0132】また、上記の量子化係数を用いる方式の変
形として、符号化ビットレートのみを用いる方法があ
り、この場合、シーケンスヘッダの後でPSTフラグが
設定される。
As a modification of the above-mentioned method using the quantized coefficient, there is a method using only the coding bit rate. In this case, the PST flag is set after the sequence header.

【0133】以上説明したように、第2実施例は、第1
実施例の効果に加え、PSTフラグの設定を符号化時に
発生する各種パラメータに基づいて行っているので、符
号化内容に応じた最適なPSTフラグが設定でき、より
最適フィルタを選択することができる。
As described above, the second embodiment is the first
In addition to the effect of the embodiment, since the setting of the PST flag is performed based on various parameters generated at the time of encoding, the optimum PST flag can be set according to the content of encoding, and a more optimum filter can be selected. .

【0134】次に第3実施例ついて説明する。第3実施
例は、第2実施例とほとんど同じであり、異なる点はポ
ストフィルタを選択するポストフィルタ選択回路140
を復号化装置側に設けた点であり、その他の構成は第2
実施例と同じであるので、異なる構成のみ説明し、同一
構成には同じ符号をつけ説明は省略する。
Next, a third embodiment will be described. The third embodiment is almost the same as the second embodiment, except that a post filter selection circuit 140 that selects a post filter is used.
Is provided on the decoding device side, and other configurations are the second
Since it is the same as the embodiment, only different configurations will be described, the same configurations will be denoted by the same reference numerals, and description thereof will be omitted.

【0135】図9に示すように、第3実施例では、第2
実施例で符号化装置1のエンコーダ18に設けたポスト
フィルタ選択回路140を復号化装置2内に設けて構成
している。
As shown in FIG. 9, in the third embodiment, the second
In the embodiment, the post filter selection circuit 140 provided in the encoder 18 of the encoding device 1 is provided in the decoding device 2 and configured.

【0136】第3実施例のデコーダ31は、図10に示
すように、図19の従来例で示した復号回路90と同様
に構成されており、ビットストリームが受信バッファ8
1を介して復号回路90の可変長復号化回路82に入力
されると、この可変長復号化回路82で、可変長符号が
解かれる。このとき符号化パラメータとしての量子化係
数が復号化され、ポストフィルタ22に伝送される。そ
の他の構成、作用及び効果が第2実施例と同じである。
As shown in FIG. 10, the decoder 31 of the third embodiment has the same configuration as the decoding circuit 90 shown in the conventional example of FIG.
When input to the variable length decoding circuit 82 of the decoding circuit 90 via 1, the variable length decoding circuit 82 solves the variable length code. At this time, the quantized coefficient as the encoding parameter is decoded and transmitted to the post filter 22. Other configurations, operations and effects are the same as those of the second embodiment.

【0137】[0137]

【発明の効果】以上の説明したように、請求項1に記載
の画像処理方法によれば、符号化手段で予測画像信号に
基づいて画像信号を符号化する際に画像信号の符号化条
件を示す符号化条件フラグを符号化するので、簡単な構
成により、画像信号を復号する際に、符号化条件フラグ
に基づき画像信号を最適に補正することができるという
効果がある。
As described above, according to the image processing method of the first aspect, when the image signal is encoded by the encoding means based on the predicted image signal, the encoding condition of the image signal is set. Since the coding condition flag shown is coded, the image signal can be optimally corrected based on the coding condition flag when decoding the image signal with a simple configuration.

【0138】また、請求項1に記載の画像信号符号化装
置では、フラグ設定手段で符号化手段が符号化するビッ
トストリームの画像情報の符号化ビットレートに基づ
き、符号化フラグを設定するので、画像信号をより最適
に補正することができるという効果がある。
In the image signal coding apparatus according to the first aspect, the coding flag is set by the flag setting means based on the coding bit rate of the image information of the bit stream coded by the coding means. There is an effect that the image signal can be corrected more optimally.

【0139】請求項4に記載の画像信号復号化装置によ
れば、画像補正手段で画像信号の符号化条件を示す符号
化条件フラグに基づいて、復号化された画像信号を補正
することで、簡単な構成により、画像信号を復号する際
に、符号化条件フラグに基づき画像信号を最適に補正す
ることができるという効果がある。
According to the image signal decoding apparatus of the fourth aspect, the image correcting means corrects the decoded image signal based on the coding condition flag indicating the coding condition of the image signal, With a simple configuration, when the image signal is decoded, the image signal can be optimally corrected based on the coding condition flag.

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

【図1】本発明の画像データ符号化・復号化装置の第1
実施例の構成を示すブロック図である。
FIG. 1 is a first image data encoding / decoding device according to the present invention.
It is a block diagram which shows the structure of an Example.

【図2】図1のエンコーダ18の構成を示すブロック図
である。
2 is a block diagram showing a configuration of an encoder 18 of FIG.

【図3】図1のデコーダ31としての復号回路90の構
成を示すブロック図である。
3 is a block diagram showing a configuration of a decoding circuit 90 as a decoder 31 of FIG.

【図4】図1のポストフィルタ22の構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing a configuration of a post filter 22 of FIG.

【図5】図4のポストフィルタ22のフィルタ例として
のメディアンフィルタの構成を示すブロック図である。
5 is a block diagram showing the configuration of a median filter as a filter example of the post filter 22 of FIG.

【図6】本発明の第2実施例のエンコーダ18の構成を
示すブロック図である。
FIG. 6 is a block diagram showing a configuration of an encoder 18 according to a second embodiment of the present invention.

【図7】図6のポストフィルタ選択回路140の作用を
説明する説明図である。
FIG. 7 is an explanatory diagram illustrating an operation of the post filter selection circuit 140 in FIG.

【図8】図6のポストフィルタ選択回路140の構成を
示すブロック図である。
8 is a block diagram showing a configuration of a post filter selection circuit 140 of FIG.

【図9】本発明の画像データ符号化・復号化装置の第3
実施例の構成を示すブロック図である。
FIG. 9 is a third image data encoding / decoding device of the present invention.
It is a block diagram which shows the structure of an Example.

【図10】図9のデコーダ31としての復号回路90の
構成を示すブロック図である。
10 is a block diagram showing a configuration of a decoding circuit 90 as the decoder 31 of FIG.

【図11】高能率符号化の原理を説明する図である。FIG. 11 is a diagram illustrating the principle of high efficiency encoding.

【図12】画像データを圧縮する場合におけるピクチャ
のタイプを説明する図である。
[Fig. 12] Fig. 12 is a diagram for describing the types of pictures in the case of compressing image data.

【図13】動画像信号を符号化する原理を説明する図で
ある。
FIG. 13 is a diagram illustrating the principle of encoding a moving image signal.

【図14】画像信号符号化装置と復号化装置の構成例を
示すブロック図である。
[Fig. 14] Fig. 14 is a block diagram illustrating a configuration example of an image signal encoding device and a decoding device.

【図15】図14におけるフォーマット変換回路17の
フォーマット変換の動作を説明する図である。
15 is a diagram illustrating a format conversion operation of the format conversion circuit 17 in FIG.

【図16】図14におけるエンコーダ18の構成例を示
すブロック図である。
16 is a block diagram showing a configuration example of an encoder 18 in FIG.

【図17】図16の予測モード切り替え回路52の動作
を説明する図である。
17 is a diagram for explaining the operation of the prediction mode switching circuit 52 in FIG.

【図18】図16のDCTモード切り替え回路55の動
作を説明する図である。
18 is a diagram illustrating the operation of the DCT mode switching circuit 55 in FIG.

【図19】図14のデコーダ31の1例である復号回路
90の構成例を示すブロック図である。
19 is a block diagram showing a configuration example of a decoding circuit 90 which is an example of the decoder 31 of FIG.

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

1 符号化装置 2 復号化装置 3 記録媒体 12,13 A/D変換器 14 フレームメモリ 15 輝度信号フレームメモリ 16 色差信号フレームメモリ 17 フォーマット変換回路 18 エンコーダ 21 プリフィルタ 22 ポストフィルタ 31 デコーダ 32 フォーマット変換回路 33 フレームメモリ 34 輝度信号フレームメモリ 35 色差信号フレームメモリ 36,37 D/A変換器 49 ピクチャ判定回路 50 動きベクトル検出回路 51 フレームメモリ 52 予測モード切り替え回路 53 演算部 54 予測判定回路 55 DCTモード切り替え回路 56 DCT回路 57 量子化回路 58 可変長符号化回路 59 送信バッファ 60 逆量子化回路 61 IDCT回路 63 演算器 64 フレームメモリ 65 動き補償回路 81 受信バッファ 82 可変長復号化回路 83 逆量子化回路 84 IDCT回路 86 演算器 87 フレームメモリ 88 動き補償回路 100(1)〜100(N) フィルタ1〜フィルタN 101、102 スイッチ 121 3×3画素抽出回路 122 並べ変え回路 123 Median検出回路 140 ポストフィルタ検出回路 150 平均回路 151 PST決定回路 1 Encoding Device 2 Decoding Device 3 Recording Medium 12, 13 A / D Converter 14 Frame Memory 15 Luminance Signal Frame Memory 16 Color Difference Signal Frame Memory 17 Format Conversion Circuit 18 Encoder 21 Prefilter 22 Post Filter 31 Decoder 32 Format Conversion Circuit 33 frame memory 34 luminance signal frame memory 35 color difference signal frame memory 36, 37 D / A converter 49 picture determination circuit 50 motion vector detection circuit 51 frame memory 52 prediction mode switching circuit 53 arithmetic unit 54 prediction determination circuit 55 DCT mode switching circuit 56 DCT circuit 57 Quantization circuit 58 Variable length coding circuit 59 Transmission buffer 60 Inverse quantization circuit 61 IDCT circuit 63 Operator 64 Frame memory 65 Motion compensation circuit 81 Reception buffer 82 variable length decoding circuit 83 inverse quantization circuit 84 IDCT circuit 86 arithmetic unit 87 frame memory 88 motion compensation circuit 100 (1) to 100 (N) filter 1 to filter N 101, 102 switch 121 3 × 3 pixel extraction circuit 122 Rearrangement circuit 123 Median detection circuit 140 Post filter detection circuit 150 Averaging circuit 151 PST determination circuit

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 画像信号を所定の予測画像信号に基づい
て符号化する符号化手段を備えた画像信号符号化装置に
おいて、 前記符号化手段は、前記予測画像信号に基づいて前記画
像信号を符号化する際に、前記画像信号の符号化条件を
示す符号化条件フラグを符号化することを特徴とする画
像信号符号化装置。
1. An image signal coding apparatus comprising a coding means for coding an image signal on the basis of a predetermined predicted image signal, wherein the coding means codes the image signal on the basis of the predicted image signal. An image signal coding apparatus, wherein a coding condition flag indicating a coding condition of the image signal is coded at the time of coding.
【請求項2】 前記画像信号は、ビットストリームの画
像情報であり、 前記符号化フラグは、ビットストリームの前記画像情報
のユーザエリア中に存在することを特徴とする請求項1
に記載の画像信号符号化装置。
2. The image signal is image information of a bitstream, and the encoding flag is present in a user area of the image information of the bitstream.
The image signal encoding device according to.
【請求項3】 前記符号化手段が符号化するビットスト
リームの前記画像情報の符号化ビットレートに基づき、
前記符号化フラグを設定するフラグ設定手段をさらに備
えたことを特徴とする請求項2に記載の画像信号符号化
装置。
3. Based on a coding bit rate of the image information of the bit stream coded by the coding means,
The image signal encoding apparatus according to claim 2, further comprising flag setting means for setting the encoding flag.
【請求項4】 所定の予測画像信号に基づき画像信号を
符号化した符号化画像信号を復号化する画像信号復号化
装置において、 前記符号化画像信号は、前記画像信号及び前記画像信号
の符号化条件を示す符号化条件フラグとからなり、 前記符号化条件フラグに基づいて、復号化された前記画
像信号を補正する画像補正手段を具備したことを特徴と
する画像信号復号化装置。
4. An image signal decoding apparatus for decoding an encoded image signal, which is an image signal encoded based on a predetermined predicted image signal, wherein the encoded image signal is the image signal and the encoding of the image signal. An image signal decoding apparatus comprising: an encoding condition flag indicating a condition, the image signal decoding device comprising an image correction unit that corrects the decoded image signal based on the encoding condition flag.
【請求項5】 前記画像信号は、ビットストリームの画
像情報であり、 前記符号化フラグは、前記画像情報のユーザエリア中に
存在することを特徴とする請求項4に記載の画像信号復
号化装置。
5. The image signal decoding apparatus according to claim 4, wherein the image signal is image information of a bit stream, and the encoding flag exists in a user area of the image information. .
【請求項6】 前記符号化フラグは、符号化されたビッ
トストリームの前記画像情報の符号化ビットレートに基
づき設定されることを特徴とする請求項5に記載の画像
信号復号化装置。
6. The image signal decoding apparatus according to claim 5, wherein the encoding flag is set based on an encoding bit rate of the image information of the encoded bit stream.
【請求項7】 前記画像補正手段は、複数のフィルタか
らなり、前記フラグに基づいて複数の前記フィルタを選
択して前記画像信号を補正することを特徴とする請求項
4乃至6のいずれか1つに記載の画像信号復号化装置。
7. The image correction means comprises a plurality of filters, and selects the plurality of filters based on the flag to correct the image signal. The image signal decoding device according to item 1.
【請求項8】 前記フィルタは、メディアンフィルタで
あることを特徴とする請求項4乃至7のいずれか1つに
記載の画像信号復号化装置。
8. The image signal decoding apparatus according to claim 4, wherein the filter is a median filter.
JP2165894A 1994-02-21 1994-02-21 Encoder and decoder for picture signal Pending JPH07231449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2165894A JPH07231449A (en) 1994-02-21 1994-02-21 Encoder and decoder for picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2165894A JPH07231449A (en) 1994-02-21 1994-02-21 Encoder and decoder for picture signal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2005225243A Division JP2006020353A (en) 2005-08-03 2005-08-03 Image signal encoding apparatus and method, and image signal decoding apparatus and method

Publications (1)

Publication Number Publication Date
JPH07231449A true JPH07231449A (en) 1995-08-29

Family

ID=12061151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2165894A Pending JPH07231449A (en) 1994-02-21 1994-02-21 Encoder and decoder for picture signal

Country Status (1)

Country Link
JP (1) JPH07231449A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002209209A (en) * 2001-01-04 2002-07-26 Nec Corp Image companding system
JP2002223445A (en) * 2001-01-26 2002-08-09 Nippon Telegr & Teleph Corp <Ntt> Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, recording medium recording image encoding program, recording medium recording image decoding program, image encoding program, and image decoding program
WO2007049049A1 (en) * 2005-10-28 2007-05-03 Imagination Technologies Limited Full screen anti-aliasing with dynamic filters
JP2007129318A (en) * 2005-11-01 2007-05-24 Sharp Corp Image decoder
JP2012016048A (en) * 2001-09-12 2012-01-19 Panasonic Corp Image encoding device and encoded image stream
JP2012165224A (en) * 2011-02-08 2012-08-30 Nikon Corp Image processing apparatus, electronic camera and image processing program
US8625680B2 (en) 2003-09-07 2014-01-07 Microsoft Corporation Bitstream-controlled post-processing filtering

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002209209A (en) * 2001-01-04 2002-07-26 Nec Corp Image companding system
JP2002223445A (en) * 2001-01-26 2002-08-09 Nippon Telegr & Teleph Corp <Ntt> Image encoding apparatus, image decoding apparatus, image encoding method, image decoding method, recording medium recording image encoding program, recording medium recording image decoding program, image encoding program, and image decoding program
JP2012016048A (en) * 2001-09-12 2012-01-19 Panasonic Corp Image encoding device and encoded image stream
US8625680B2 (en) 2003-09-07 2014-01-07 Microsoft Corporation Bitstream-controlled post-processing filtering
WO2007049049A1 (en) * 2005-10-28 2007-05-03 Imagination Technologies Limited Full screen anti-aliasing with dynamic filters
US7825923B2 (en) 2005-10-28 2010-11-02 Imagination Technologies Limited Full screen anti-aliasing with dynamic filters
JP2007129318A (en) * 2005-11-01 2007-05-24 Sharp Corp Image decoder
JP2012165224A (en) * 2011-02-08 2012-08-30 Nikon Corp Image processing apparatus, electronic camera and image processing program

Similar Documents

Publication Publication Date Title
JP3163830B2 (en) Image signal transmission method and apparatus
US6587509B1 (en) Reducing undesirable effects of an emphasis processing operation performed on a moving image by adding a noise signal to a decoded uncompressed signal
US6301304B1 (en) Architecture and method for inverse quantization of discrete cosine transform coefficients in MPEG decoders
JPH08237669A (en) Picture signal processor, picture signal processing method and picture signal decoder
JPH0998429A (en) Digital video signal encoding device and decoding device therefor
JP3911035B2 (en) Moving picture coding method and moving picture coding apparatus
US6795498B1 (en) Decoding apparatus, decoding method, encoding apparatus, encoding method, image processing system, and image processing method
WO1995013682A1 (en) Animation encoding method, animation decoding method, animation recording medium and animation encoder
JP3980659B2 (en) Video encoding method and apparatus, video decoding method and apparatus.
JPH0818979A (en) Image processing device
JP3599942B2 (en) Moving picture coding method and moving picture coding apparatus
JP3240024B2 (en) Image processing method
JPH07231449A (en) Encoder and decoder for picture signal
JP3240737B2 (en) Image signal encoding method and apparatus, decoding method and apparatus
JPH0951538A (en) Image signal encoding method
JP3516622B2 (en) Decoding apparatus and method
JP3271091B2 (en) Image signal encoding method and apparatus, decoding method and apparatus
JP4121567B2 (en) Moving picture encoding method, moving picture decoding method, moving picture encoding apparatus, and moving picture decoding apparatus
JP3516621B2 (en) Encoding device and method
JP3307379B2 (en) Decoding apparatus and method
JP3500340B2 (en) Coding apparatus and method
JP3164110B2 (en) Encoding device and method
JP3322376B2 (en) Moving image decoding method and moving image decoding device
JPH10126749A (en) Sequential scanning conversion device
JP4596277B2 (en) Encoding device, encoding method, decoding device, and decoding method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040830

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041029

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050803

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050809

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20050930

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载