JP2952603B2 - Video coding control method - Google Patents

Video coding control method

Info

Publication number
JP2952603B2
JP2952603B2 JP9749490A JP9749490A JP2952603B2 JP 2952603 B2 JP2952603 B2 JP 2952603B2 JP 9749490 A JP9749490 A JP 9749490A JP 9749490 A JP9749490 A JP 9749490A JP 2952603 B2 JP2952603 B2 JP 2952603B2
Authority
JP
Japan
Prior art keywords
frame
block
unit
intra
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP9749490A
Other languages
Japanese (ja)
Other versions
JPH03296379A (en
Inventor
真喜子 此島
修 川井
喜一 松田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP9749490A priority Critical patent/JP2952603B2/en
Publication of JPH03296379A publication Critical patent/JPH03296379A/en
Application granted granted Critical
Publication of JP2952603B2 publication Critical patent/JP2952603B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Television Signal Processing For Recording (AREA)
  • Color Television Systems (AREA)

Description

【発明の詳細な説明】 〔概要〕 動画像を高能率符号化して記録し、且つ容易に逆方向
再生も可能とした動画像符号化制御方式に関し、 1画面の複数のブロックを一定周期でフレーム内符号
化を行うと共に、動き補償による高能率符号化を可能と
することを目的とし、 入力動画像信号の1画面を複数のブロックに分割し、
各ブロック対応に変換符号化を行ってフレーム間符号化
を行う第1の符号化部と、前記ブロック対応の変換符号
化を行ってフレーム内符号化を行う第2の符号化部と、
フレーム間のブロック対応の動き補償処理を行う動き補
償部と、前記第1,第2の符号化部の切替制御を行う制御
部と、符号化された動画像信号の記録,再生を行う画像
記録部とを備え、前記制御部により、前記1画面を構成
する複数のブロック中の一定周期のブロックと、前記動
き補償部による動き補償サーチ範囲のブロックとに対し
て、前記動2の符号化部によるフレーム内符号化を行わ
せ、且つ前記動き補償部による動きベクトルが検出され
ない時に、前記動き補償サーチ範囲のブロックを、前記
一定周期のブロックと見做して、次フレームの於ける一
定周期のブロックを設定するように構成した。
DETAILED DESCRIPTION OF THE INVENTION [Summary] A moving picture coding control system that records moving pictures with high efficiency coding and also enables easy reverse playback is provided. For the purpose of performing inner coding and enabling high efficiency coding by motion compensation, one screen of an input moving image signal is divided into a plurality of blocks,
A first encoding unit that performs inter-frame encoding by performing transform encoding for each block, and a second encoding unit that performs intra-frame encoding by performing transform encoding corresponding to the block,
A motion compensator for performing motion compensation processing corresponding to blocks between frames, a controller for controlling switching between the first and second encoders, and an image recorder for recording and reproducing encoded video signals And a control unit configured to control the coding unit of the motion 2 with respect to a block having a fixed period in a plurality of blocks configuring the one screen and a block in a motion compensation search range by the motion compensation unit. Is performed, and when a motion vector is not detected by the motion compensating unit, the block in the motion compensation search range is regarded as the block of the fixed cycle, and the block of the fixed cycle in the next frame is It was configured to set a block.

〔産業上の利用分野〕[Industrial applications]

本発明は、動画像を高能率符号化して記録し、且つ容
易に逆方向再生も可能とした動画像符号化制御方式に関
するものである。
The present invention relates to a moving picture coding control system which records a moving picture with high efficiency coding, and also enables easy reverse reproduction.

動画像を磁気テープ,磁気ディスク,光ディスク等の
記録媒体に記録し、必要に応じてこれを再生して動画像
を表示するシステムに於いては、1画面を複数ブロック
に分割し、ブロック対応に変換符号化及びフレーム間符
号化により高能率符号化することにより記録情報量の削
減が図られている。
In a system that records a moving image on a recording medium such as a magnetic tape, a magnetic disk, or an optical disk, and reproduces the moving image when necessary, a moving image is displayed on a screen. The amount of recorded information is reduced by performing high-efficiency coding by transform coding and inter-frame coding.

このような動画像の記録再生方式に於いて、動き補償
により更に動画像の圧縮符号化を図り、且つ任意の位置
からの逆方向再生或いは頭出しを容易にすることが要望
されている。
In such a moving image recording / reproducing method, there is a demand to further compress and encode the moving image by motion compensation and to facilitate reverse reproduction or cueing from an arbitrary position.

〔従来の技術〕[Conventional technology]

動画像を高能率符号化して磁気記録或いは光学記録を
行う従来例の符号化方式は、例えば、次のような方式が
知られている。
For example, the following method is known as a conventional coding method for performing magnetic recording or optical recording by encoding a moving image with high efficiency.

(1).動画像のシーケンスの1フレーム目をフレーム
内符号化し、2フレーム以降をフレーム間符号化する方
式。
(1). A method in which the first frame of a moving image sequence is intra-frame encoded, and the second and subsequent frames are inter-frame encoded.

(2).動画像のシーケンスの1フレーム目をフレーム
内符号化し、2フレーム以降をフレーム間符号化すると
共に、或る一定フレーム周期毎にフレーム単位でフレー
ム内符号化を行う方式。
(2). A method in which the first frame of a moving image sequence is intra-frame encoded, the second and subsequent frames are inter-frame encoded, and intra-frame encoding is performed on a frame-by-frame basis at a certain fixed frame period.

(3).動画像のシーケンスの1フレーム目をフレーム
内符号化し、2フレーム以降をフレーム間符号化すると
共に、1画面を複数のブロックに分割し、一定ブロック
周期毎にブロック単位でフレーム内符号化を行う方式。
(3). A method in which the first frame of a moving image sequence is intra-frame encoded, the second and subsequent frames are inter-frame encoded, one screen is divided into a plurality of blocks, and intra-frame encoding is performed in block units at a fixed block cycle. .

第14図は前記(3)の方式による従来例のブロック図
であり、41は加算器、42,52は離散コサイン変換器(DC
T)、43は量子化器(Q)、44は逆量子化器()、45
は逆離散コサイン変換器(IDCT)、46は加算器、47はフ
レームメモリ(FM)、48は制御部、49はカウンタ、50は
メモリ、51はフレーム間符号化を行うかフレーム内符号
化を行うかを判定する判定回路、53は可変長符号化器、
54,55は切替スイッチ、56は記録装置である。
FIG. 14 is a block diagram of a conventional example according to the method (3), wherein 41 is an adder, and 42 and 52 are discrete cosine converters (DC
T), 43 is a quantizer (Q), 44 is an inverse quantizer (), 45
Is an inverse discrete cosine transformer (IDCT), 46 is an adder, 47 is a frame memory (FM), 48 is a control unit, 49 is a counter, 50 is a memory, and 51 is an interframe coding or an intraframe coding. A determination circuit for determining whether to perform, 53 is a variable length encoder,
54 and 55 are changeover switches, and 56 is a recording device.

入力動画像信号は、加算器41と、離散コサイン変換器
52と、判定回路51とに加えられる。切替スイッチ54,55
は制御部48により制御され、切替スイッチ54がオフで、
切替スイッチ55がオンの時にフレーム間符号化となり、
反対に切替スイッチ54がオンで、切替スイッチ55がオフ
の時にフレーム内符号化となる。
The input video signal is added to an adder 41 and a discrete cosine converter.
52 and a judgment circuit 51. Selector switch 54, 55
Is controlled by the control unit 48, the changeover switch 54 is off,
When the changeover switch 55 is turned on, inter-frame encoding is performed,
Conversely, when the changeover switch 54 is on and the changeover switch 55 is off, intra-frame encoding is performed.

フレーム間符号化の場合は、加算器41に於いてフレー
ムメモリ47からの前フレームの動画像信号との差が求め
られ、離散コサイン変換器42により離散コサイン変換さ
れ、それにより得られたDCT係数が量子化器43により量
子化され、可変長符号化器53により可変長符号化されて
記録装置56に加えられる。又量子化器43の出力信号は逆
量子化器44により逆量子化され、逆離散コサイン変換器
45により逆離散コサイン変換され、フレームメモリ47か
らの前フレームの動画像信号と加算器46により加算され
て、現フレームの動画像信号としてフレームメモリ47に
加えられる。
In the case of inter-frame coding, the difference from the moving image signal of the previous frame from the frame memory 47 is obtained in the adder 41, and the discrete cosine transform is performed by the discrete cosine transformer 42, and the DCT coefficient obtained thereby is obtained. Are quantized by the quantizer 43, are variable-length coded by the variable-length encoder 53, and are added to the recording device 56. The output signal of the quantizer 43 is inversely quantized by an inverse quantizer 44, and is output by an inverse discrete cosine transformer.
An inverse discrete cosine transform is performed by 45, the moving image signal of the previous frame from the frame memory 47 is added by the adder 46, and the result is added to the frame memory 47 as a moving image signal of the current frame.

又フレーム内符号化の場合は、離散コサイン変換器52
により離散コサイン変換され、それにより得られたDCT
係数が量子化器43により量子化され、可変長符号化器53
により可変長符号化されて記録装置56に加えられる。
In the case of intra-frame encoding, the discrete cosine transformer 52
DCT, and the resulting DCT
The coefficients are quantized by the quantizer 43, and the variable length encoder 53
, And is added to the recording device 56.

又記録装置56には、フレーム間符号化とフレーム内符
号化との何れの符号化であるかを示す補助情報も、符号
化動画像信号と共に記録されるものである。
The recording device 56 also records auxiliary information indicating whether the encoding is inter-frame encoding or intra-frame encoding, together with the encoded moving image signal.

又制御部48は、カウンタ49とメモリ50とを備え、1画
面を複数のブロックに分割し、一定ブロック周期毎にブ
ロック単位でフレーム内符号化を行うブロック位置をメ
モリ50によって表示し、フレーム毎にそのブロック位置
をシフトし、そのメモリ50の内容を基に切替スイッチ5
4,55を制御して、前述のようにブロック対応でフレーム
間符号化とフレーム内符号化との切替えを行うものであ
る。
Further, the control unit 48 includes a counter 49 and a memory 50, divides one screen into a plurality of blocks, and displays, by the memory 50, a block position where intra-frame encoding is performed on a block basis at a constant block cycle. The block position is shifted to
4, 55, and switches between inter-frame coding and intra-frame coding for each block as described above.

又判定回路51は、フレーム間符号化よりもフレーム内
符号化の方が情報量が少なくなる場合を判定し、その判
定信号を制御部48に加えることにより、一定ブロック周
期のブロックでない場合でも、強制的にフレーム内符号
化を行わせるものである。
Further, the determination circuit 51 determines whether the amount of information is smaller in intra-frame encoding than in inter-frame encoding, and by adding the determination signal to the control unit 48, even if the block is not a block with a fixed block cycle, Intra-frame coding is forcibly performed.

第15図は従来例のフローチャートであり、第14図に於
ける制御部48の動作を示すものである。先ず、メモリ50
をM(M1,M2)、周期をS、カウンタ59の値をaとし
、以下ステップ〜によりメモリ50の初期値を設定
する。即ち、a=0とし、M(I,J)(1画面のブロ
ック位置をX,Y座標のI,Jにより示す)として、I=1
,J=1とし、カウント内容の値aをモジュロSによ
り加算し、その結果をメモリ50の内容M(I,J)とする
,。そして、J=J+1とし、J>M2か否か判定
し、J>M2でない時はステップに移行し、J>M2の
時は、I=I+Iとし、I>M1か否か判定し、I>
M1ではない時はステップに移行し、I>M1の時はステ
ップに移行する。この時、メモリ50の内容が初期設定
されたことになる。
FIG. 15 is a flowchart of a conventional example, and shows the operation of the control unit 48 in FIG. First, the memory 50
Is M (M1, M2), the cycle is S, the value of the counter 59 is a, and the initial values of the memory 50 are set by the following steps. That is, a = 0, M (I, J) (the block position of one screen is indicated by I, J of X and Y coordinates), and I = 1
, J = 1, the value a of the count content is added by modulo S, and the result is used as the content M (I, J) of the memory 50. Then, J = J + 1, it is determined whether or not J> M2. If J> M2, the process proceeds to a step. If J> M2, I = I + I, and it is determined whether I> M1.
When it is not M1, the process proceeds to the step, and when I> M1, the process proceeds to the step. At this time, the contents of the memory 50 are initialized.

そして、入力動画像信号についてのブロックNo.U,V
(1画面のX,Y座標により示すブロック番号)の処理が
行われ、判定回路51によりフレーム内符号化を行うか
否か判定され、フレーム内符号化を行う判定結果の場
合は、メモリ50の該当ブロック番号についてM(U,V)
=1とし、「1」のブロックに対してフレーム内符号化
が行われ、又予測結果がフレーム内符号化でない場合
は、フレーム間符号化が行われ、ブロックNo.U,Vの処理
が終了すると、1フレーム終了か否か判定され、1
フレームの終了の場合は、メモリ50の内容に、モジュロ
Sにより1加算される。それによって、周期S分の各フ
レームに於ける各ブロックについて、フレーム内符号化
が行われることになる。
Then, the block No. U, V for the input video signal
(The block number indicated by the X and Y coordinates of one screen) is performed, and it is determined by the determination circuit 51 whether or not to perform the intra-frame coding. M (U, V) for the corresponding block number
= 1 and intra-frame encoding is performed on the block of "1", and if the prediction result is not intra-frame encoding, inter-frame encoding is performed and the processing of block Nos. U and V ends. Then, it is determined whether or not one frame is completed.
At the end of the frame, 1 is added to the contents of the memory 50 by modulo S. Thus, intra-frame encoding is performed for each block in each frame of the period S.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

前述の従来例に於いて、(1)の方式は、最初のフレ
ームがフレーム内符号化となることから、最初のフレー
ムに戻ってから再生処理を行う必要がある為、途中のフ
レームからの再生及び逆方向再生は困難である。
In the above-mentioned conventional example, in the method (1), since the first frame is intra-frame coded, it is necessary to perform the reproduction process after returning to the first frame. And reverse playback is difficult.

又(2)の方式は、フレーム単位でフレーム内符号化
を周期的に行うことになるから、このフレーム内符号化
を行ったフレームをスタート点として、順方向再生及び
逆方向再生が可能となる。しかし、このような途中から
の再生開始或いは逆方向再生開始を容易とする為には、
フレーム内符号化を行うフレーム数を多くしなければな
らず、動画像信号の高能率符号化ができないことにな
る。
In the method (2), intra-frame encoding is performed periodically on a frame basis, so that forward reproduction and reverse reproduction can be performed with the frame subjected to intra-frame encoding as a start point. . However, in order to facilitate the reproduction start or the reverse reproduction start from such a midway,
The number of frames to be subjected to intra-frame encoding must be increased, and high-efficiency encoding of a moving image signal cannot be performed.

又(3)の方式は、フレーム内符号化を各ブロックに
分散させて行うものであるから、周期S数のフレーム数
を再生した時に、フレーム内符号化ブロックにより1画
面を構成することができることになり、従って、途中か
らの再生及び逆方向再生が容易となる。
In the method (3), intra-frame coding is performed by dispersing the blocks into blocks. Therefore, when the number of frames of the period S is reproduced, one screen can be constituted by the intra-frame coded blocks. Therefore, reproduction from the middle and reproduction in the reverse direction become easy.

しかし、動き補償予測を導入することが不可能となる
欠点がある。即ち、第16図に於いて、斜線を施したブロ
ックAをフレーム内符号化ブロックとし、白のブロック
Cをフレーム間符号化ブロック又は再生時に於ける画像
情報のないブロックとすると、nフレームからn+4フ
レームについて動きベクトルがない場合、nフレームか
らn+3フレームまでの4フレームの再生により、1画
面の全ブロックについてフレーム内符号化動画像信号が
読出されて、フレーム内符号化による1画面が構成され
ることになる。又逆方向再生時に於いても、4フレーム
の再生により、1画面の全ブロックについてフレーム内
符号化動画像信号が読出されるから、その時点から逆方
向の再生処理が可能となる。
However, there is a disadvantage that it is impossible to introduce motion compensation prediction. That is, in FIG. 16, if the hatched block A is an intra-frame coded block and the white block C is an inter-frame coded block or a block having no image information at the time of reproduction, n frames to n + 4 When there is no motion vector for a frame, by reproducing four frames from frame n to frame n + 3, intra-frame coded video signals are read out for all blocks of one frame, and one frame is formed by intra-frame coding. Will be. Also in the reverse reproduction, the intra-frame coded video signal is read for all the blocks of one screen by reproducing four frames, so that the reproduction processing in the reverse direction can be performed from that point.

しかし、動きベクトルがある場合、例えばn+1フレ
ームの再生時に矢印で示す動きベクトルが検出された場
合、ブロックBを既に処理済みのブロックとすると、前
述のように、n+3フレームに於いて全ブロックについ
てのフレーム内復号化が行われたことになり、その時
に、動きベクトルに対応して、既に処理済みのブロック
に対して復号化された画像情報が書込まれることにな
る。即ち、正常な再生動画像を得ることができないこと
になる。
However, when there is a motion vector, for example, when a motion vector indicated by an arrow is detected during reproduction of the (n + 1) -th frame, assuming that the block B has already been processed, as described above, all the blocks in the (n + 3) -th frame are processed. This means that the intra-frame decoding has been performed, and at that time, the decoded image information is written to the already processed block corresponding to the motion vector. That is, a normal reproduced moving image cannot be obtained.

本発明は、1画面の複数のブロックを一定周期でフレ
ーム内符号化を行うと共に、銅き補償による高能率符号
化を可能とすることを目的とするものである。
SUMMARY OF THE INVENTION It is an object of the present invention to perform intra-frame encoding of a plurality of blocks of one screen at a fixed period and enable highly efficient encoding by copper compensation.

〔課題を解決するための手段〕[Means for solving the problem]

本発明の動画像符号化制御方式は、ブロック対応にフ
レーム間符号化とフレーム内符号化との切替えを行うと
共に、動き補償処理を行うものであり、第1図を参照し
て説明する。
The moving image coding control method of the present invention performs switching between inter-frame coding and intra-frame coding for each block and performs motion compensation processing, and will be described with reference to FIG.

入力動画像信号の1画面を複数のブロックに分割し、
各ブロック対応に離散コサイン変換等の変換符号化を行
ってフレーム間符号化を行う第1の符号化部1と、各ブ
ロック対応に離散コサイン変換等の変換符号化を行って
フレーム内符号化を行う第2の符号化部2と、フレーム
間のブロック対応の動き補償処理を行う動き補償部3
と、符号化動画像信号の記録,再生を行う画像記録部5
とを備えて、制御部4により、1画面を構成する複数の
ブロックの中の一定周期のブロックと、動き補償部3に
よる動き補償サーチ範囲のブロックとに対して、第2の
符号化部2によるフレーム内符号化を行わせ、且つ動き
補償部3による動きベクトルが検出されない時に、動き
補償サーチ範囲のブロックを、次フレームに於ける一定
周期のブロックと見做して、次フレームに於ける一定周
期のブロックの設定を省略するものである。
One screen of the input video signal is divided into a plurality of blocks,
A first encoding unit 1 that performs interframe coding by performing transform coding such as discrete cosine transform for each block, and performs intraframe coding by performing transform coding such as discrete cosine transform for each block. A second encoding unit 2 for performing the motion compensation and a motion compensation unit 3 for performing a motion compensation process corresponding to a block between frames
And an image recording unit 5 for recording and reproducing encoded moving image signals
The control unit 4 controls the second encoding unit 2 for a block having a fixed period in a plurality of blocks constituting one screen and a block in a motion compensation search range by the motion compensation unit 3. , And when a motion vector is not detected by the motion compensating unit 3, the block in the motion compensation search range is regarded as a block having a fixed period in the next frame, and This is to omit setting of a block having a constant cycle.

又画像記録部5から再生した符号化動画像信号を復号
する復号化部6を設け、一定周期でフレーム内符号化を
行うブロックを、1画面の縦方向又は横方向に直線状と
なるように設定し、このブロック列が1画面の端部に位
置する情報を付加して画像記録部5に記録し、この画像
記録部5から再生して復号化部6により復号する時に、
フレーム内符号化のブロック列が1画面の端部に位置す
るフレームから復号を開始するものである。
Further, a decoding unit 6 for decoding the encoded moving image signal reproduced from the image recording unit 5 is provided so that the blocks for performing intra-frame encoding at a constant period are linearly formed in the vertical or horizontal direction of one screen. When the information is added to the block sequence and added to the information located at the end of one screen, the information is recorded in the image recording unit 5, and when the image data is reproduced from the image recording unit 5 and decoded by the decoding unit 6,
The decoding starts from a frame in which the block sequence of the intra-frame coding is located at the end of one screen.

〔作用〕[Action]

入力動画像信号の1画面は、画像記録部5の中に示す
ように、複数のブロックに分割され、制御ブロック4に
より第1,第2の符号化部1,2が切替えられて、ブロック
対応にフレーム間符号化及びフレーム内符号化が行わ
れ、フレーム内符号化は、一定周期のブロックと、動き
補償部3による動き補償サーチ範囲のブロックとに対し
て行われる。例えば、動き補償サーチ範囲を1ブロック
とすると、画像記録部5の中に示す斜線を施したブロッ
クが一定周期のブロックとすると、そのブロックとその
両側で実線で示すブロックとがフレーム内符号化ブロッ
クとなり、点線で示すブロックがフレーム間符号化ブロ
ックとなる。
One screen of the input moving image signal is divided into a plurality of blocks as shown in the image recording unit 5, and the control block 4 switches the first and second encoding units 1 and 2 to correspond to the block. The intra-frame coding and the intra-frame coding are performed on the block, and the intra-frame coding is performed on the block having a fixed period and the blocks in the motion compensation search range by the motion compensation unit 3. For example, assuming that the motion compensation search range is one block, if a hatched block shown in the image recording unit 5 is a block having a constant period, the block and the blocks shown by solid lines on both sides thereof are intra-coded blocks. And the block indicated by the dotted line is the inter-frame coded block.

そして、動き補償部4による動きベクトルが検出され
ない時は、再生時に於ける隣接ブロックへの影響がない
から、動き補償サーチ範囲のブロック(実線で示すブロ
ック)を一定周期のブロックと見做して、次のフレーム
に於ける一定周期のブロックを設定する。
When a motion vector is not detected by the motion compensating unit 4, there is no effect on adjacent blocks at the time of reproduction. Therefore, blocks in the motion compensation search range (blocks indicated by solid lines) are regarded as blocks having a fixed period. , A block having a fixed period in the next frame is set.

又一定周期のブロックが図示のように縦方向に配列さ
れている場合、このブロック列が左端或いは右端に位置
する補助情報を付加して画像記録部5に記録し、再生時
には、この補助情報によりフレーム内符号化ブロック列
が左端或いは右端に位置するフレームから復号を開始さ
せ、復号化部6から出力される動画像信号により表示し
た時の画像の乱れを防止することができる。又ブロック
列が横方向に配列された場合も同様である。
When blocks with a fixed period are arranged in the vertical direction as shown in the figure, this block row is recorded in the image recording unit 5 with auxiliary information positioned at the left end or the right end. It is possible to start decoding from a frame in which the intra-frame coded block sequence is located at the left end or the right end, and to prevent image disturbance when displayed by a moving image signal output from the decoding unit 6. The same applies to the case where the block rows are arranged in the horizontal direction.

〔実施例〕〔Example〕

以下図面を参照して本発明の実施例について詳細に説
明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第2図は本発明の実施例のブロック図であり、11,17
は加算器、12,13は離散コサイン変換器(DCT)、14は量
子化器(Q)、15,31は逆量子化器()、16,32は逆離
散コサイン変換器(IDCT)、18,33はフレームメモリ(F
M)、19は可変遅延回路(VDLY)、20は動き補償器、21
は制御部、22はカウンタ、23は領域M,MX,MV,VXを有する
メモリ、24,25は切替スイッチ、26は方向情報処理部、2
7はハフマン符号化等を行う可変長符号化器(VLC)、28
は磁気記録や光学記録を行う記録装置、29は可変長復号
化器、30は復号部、34は表示装置である。
FIG. 2 is a block diagram of an embodiment of the present invention.
Is an adder, 12, 13 is a discrete cosine transformer (DCT), 14 is a quantizer (Q), 15, 31 is an inverse quantizer (), 16, 32 is an inverse discrete cosine transformer (IDCT), 18 , 33 is the frame memory (F
M), 19 is a variable delay circuit (VDLY), 20 is a motion compensator, 21
Is a control unit, 22 is a counter, 23 is a memory having areas M, MX, MV, and VX, 24 and 25 are changeover switches, 26 is a direction information processing unit, 2
7 is a variable length coder (VLC) that performs Huffman coding, etc., 28
Denotes a recording device for performing magnetic or optical recording, 29 denotes a variable length decoder, 30 denotes a decoding unit, and 34 denotes a display device.

加算器11と離散コサイン変換器12と量子化器14と逆量
子化器15と逆離散コサイン変換器16と加算器17とフレー
ムメモリ18と可変長符号化器27とにより、フレーム間符
号化を行う第1の符号化部1が構成され、離散コサイン
変換器13と量子化器14と可変長符号化器27とによりフレ
ーム内符号化を行う第2の符号化器2が構成され、動き
補償器20と可変遅延回路19とにより動き補償部3が構成
されている。又制御部21は、カウンタ22とメモリ23とを
備え,メモリ23は、1画面を複数ブロックに分割したブ
ロック対応の各領域M,MX,MV,VXの内容に従ってフレーム
内符号化が制御され、その内容はカウンタ22や動き補償
器20によって更新される。
The adder 11, the discrete cosine transformer 12, the quantizer 14, the inverse quantizer 15, the inverse discrete cosine transformer 16, the adder 17, the frame memory 18, and the variable length encoder 27 perform inter-frame encoding. A first encoder 1 for performing intra-frame encoding is configured by the discrete cosine transformer 13, the quantizer 14, and the variable-length encoder 27, and a motion compensation is performed. The motion compensator 3 is composed of the device 20 and the variable delay circuit 19. The control unit 21 includes a counter 22 and a memory 23. In the memory 23, intra-frame encoding is controlled according to the contents of each area M, MX, MV, VX corresponding to a block obtained by dividing one screen into a plurality of blocks. The content is updated by the counter 22 and the motion compensator 20.

又復号化部30は、逆量子化器31と、逆離散コサイン変
換器32と、フレームメモリ33とを備えており、記録装置
28から読出した補助情報に従ってフレーム間復号化フレ
ーム内復号化とが切替えられるものであり、復号された
動画像信号が表示装置34に加えられて表示される。
The decoding unit 30 includes an inverse quantizer 31, an inverse discrete cosine transformer 32, and a frame memory 33.
Switching between inter-frame decoding and intra-frame decoding is performed in accordance with the auxiliary information read from 28, and the decoded video signal is added to the display device 34 and displayed.

入力動画像信号は、加算器11,離散コサイン変換器13,
動き補償器20及び方向情報処理部21に加えられ、切替ス
イッチ24がオフ、切替スイッチ25がオンの時はフレーム
間符号化が行われるもので、動き補償器20による動きベ
クトルに従って可変遅延回路19が制御され、フレームメ
モリ18から読出された前フレームの動画像信号が動きベ
クトル方向に遅延されて、入力動画像信号との差分が加
算器11によって求められ、離散コサイン変換器12により
離散コサイン変換され、それによるDCT係数が量子化器1
4により量子化され、可変長符号化器27により可変長符
号化されて記録装置28に記録される。
The input video signal is added to an adder 11, a discrete cosine converter 13,
In addition to the motion compensator 20 and the direction information processing unit 21, when the changeover switch 24 is off and the changeover switch 25 is on, inter-frame encoding is performed. Is controlled, the moving image signal of the previous frame read from the frame memory 18 is delayed in the direction of the motion vector, the difference from the input moving image signal is obtained by the adder 11, and the discrete cosine transform is performed by the discrete cosine transformer 12. And the resulting DCT coefficients are quantized by the quantizer 1.
4, quantized by a variable-length encoder 27, and recorded in a recording device 28.

又方向情報処理部26は、動き補償器20による動きベク
トルの方向を示す情報を補助情報として、可変長符号化
器27を介して記録装置28に記録させるものである。
Further, the direction information processing unit 26 causes the recording device 28 to record the information indicating the direction of the motion vector by the motion compensator 20 as auxiliary information via the variable length encoder 27.

又量子化器14の出力信号は逆量子化器15により逆量子
化されてDCT係数となり、逆離散コサイン変換器16によ
り元のフレーム間差分信号となり、加算器17により前フ
レームの動画像信号と加算されて、現フレームの動画像
信号としてフレームメモリ18に加えられる。
The output signal of the quantizer 14 is inversely quantized by the inverse quantizer 15 to become a DCT coefficient, becomes the original inter-frame difference signal by the inverse discrete cosine transformer 16, and is added to the moving image signal of the previous frame by the adder 17. The sum is added to the frame memory 18 as a moving image signal of the current frame.

又切替スイッチ24がオン、切替スイッチ25がオフの時
はフレーム内符号化が行われるもので、入力動画像信号
は離散コサイン変換器13により離散コサイン変換それ、
それによるDCT係数が量子化器14により量子化され、可
変長符号化器27により可変長符号化されて記録装置28に
加えられる。
When the changeover switch 24 is on and the changeover switch 25 is off, intra-frame encoding is performed, and the input video signal is subjected to discrete cosine transform by the discrete cosine transformer 13,
The resulting DCT coefficient is quantized by the quantizer 14, is variable-length coded by the variable-length encoder 27, and is added to the recording device 28.

第3図及び第4図は本発明の実施例の動作説明図であ
り、一定周期Sのフレーム内符号化ブロックが縦方向に
配列される場合を示す。第3図(a)は、10×8ブロッ
クの場合に、周期S=10とし、ブロックの番号10〜1を
最初のフレームF1に示すように初期設定し、番号1のブ
ロックをフレーム内符号化ブロック(斜線を施したブロ
ック)とし、次のフレームF2では、各ブロックの番号を
モジュロS=10で+1し、その結果、番号が1となった
ブロックをフレーム内符号化ブロックとするものであ
り、縦方向のフレーム内符号化ブロック列は順次右方向
にシフトすることになり、第1フレームF1に於いて左端
にフレーム内符号化ブロック列がある場合に、第Sフレ
ームFSに於いて右端にシフトすることになる。この場
合、前述のように動き補償を適用することができないも
のである。
FIG. 3 and FIG. 4 are explanatory diagrams of the operation of the embodiment of the present invention, and show a case where intra-frame coded blocks having a constant period S are arranged in the vertical direction. FIG. 3 (a) shows that in the case of a 10 × 8 block, the period S = 10, the block numbers 10 to 1 are initialized as shown in the first frame F1, and the block with the number 1 is subjected to intra-frame coding. In the next frame F2, the number of each block is incremented by 1 with modulo S = 10, and as a result, the block with the number 1 is set as an intra-frame coded block. The intra-frame coded block sequence in the vertical direction is sequentially shifted rightward, and when the intra-frame coded block sequence is at the left end in the first frame F1, the right-end position is determined in the S-th frame FS. Will shift. In this case, motion compensation cannot be applied as described above.

又(b)は、動き補償を適用できるように、フレーム
内符号化ブロック列の両側のブロックについてもフレー
ム内符号化を行わせるものであり、斜線を施して示す本
来フレーム内符号化を行うブロックの両側のブロックに
ついても、ブロックの番号を1としてフレーム内符号化
を行うものである。
(B) is a block for performing intra-frame encoding on the blocks on both sides of the intra-frame coded block sequence so that motion compensation can be applied. Intra-frame coding is performed with the block number being set to 1 for both blocks on both sides.

又(c)は、本発明の一実施例の動作を示し、動きベ
クトルが検出された時は、(b)に示すように、本来の
フレーム内符号化ブロック列の両側のブロックもフレー
ム内符号化し、動きブロックが検出されない時は、本来
のフレーム内符号化ブロック列の両側のフレーム内符号
化ブロックを、次のフレームに於ける本来のフレーム内
符号化ブロック列と見做すものである。
(C) shows the operation of the embodiment of the present invention. When a motion vector is detected, as shown in (b), the blocks on both sides of the original intra-frame coded block sequence are also converted to the intra-frame code. When the motion block is not detected, the intra-frame coded blocks on both sides of the original intra-frame coded block sequence are regarded as the original intra-frame coded block sequence in the next frame.

例えば、第1フレームF1の第1列が本来のフレーム内
符号化ブロック列で、第2列もフレーム内符号化されて
いるから、動きベクトルが検出されない時、第2フレー
ムF2では第2列のフレーム内符号化ブロック列は既に処
理されたものと見做してフレーム内符号化を省略し、総
てのブロックをフレーム間符号化とするものである。そ
れによって、符号化効率を向上させることができる。
For example, since the first column of the first frame F1 is the original intra-frame coded block sequence and the second column is also intra-frame coded, when no motion vector is detected, the second column of the second frame F2 The intra-frame coded block sequence is assumed to be already processed and the intra-frame coding is omitted, and all blocks are inter-frame coded. Thereby, coding efficiency can be improved.

又第4図の(e)は第3図の(a)に対応し、(d)
は本発明の他の実施例の動作を示し、第1フレームF1に
於いて動きベクトルが検出されない時は、第2フレーム
F2に於ける第2列のフレーム内符号化ブロック列は既に
処理されたものと見做して、第3列を本来のフレーム内
符号化ブロック列とし、その両側のブロックについても
フレーム内符号化を行わせるものである。従って、第1
フレームF1の状態に戻るのは、S′(<S)フレーム後
となり、動きベクトルが検出されない場合のフレーム内
符号化ブロックによる1画面を短いフレーム数(FS>F
S′)で構成することができる。
FIG. 4E corresponds to FIG. 3A and FIG.
Shows the operation of another embodiment of the present invention. When no motion vector is detected in the first frame F1, the second frame
The intra-frame coded block sequence of the second column in F2 is regarded as already processed, and the third column is regarded as the original intra-frame coded block sequence. Is performed. Therefore, the first
After returning to the state of the frame F1 after the frame S '(<S), one screen by the intra-frame coded block when the motion vector is not detected is reduced by a short frame number (FS> F).
S ′).

又第フレームF1に於けるフレーム内符号化ブロック列
については、1画面の端部に位置することを示す補助情
報を付加して、再生時に於ける復号開始の識別を容易に
するものである。
Further, with respect to the intra-frame coded block sequence in the first frame F1, auxiliary information indicating that it is located at the end of one screen is added to facilitate identification of decoding start at the time of reproduction.

第5図及び第6図は本発明の一実施例のフローチャー
トであり、メモリ23の各領域M,MX,VX,MVに於けるM3,M2
(M3は1画面を構成するブロックの横方向の数、M2は縦
方向の数)を設定し、周期をSとし、カウンタ22の値を
aとし(1)。次に、カウンタ22の値をa=0とし
(2)、メモリ23の各領域の横方向ブロック位置IをI
=1とし(3)、MX(I)=a,M(I)=a,MV(I)=
aとし(4)、カウンタ22の値aをモジュロSにより+
1する(5)。
5 and 6 are flowcharts of one embodiment of the present invention, in which M3, M2 in each area M, MX, VX, MV of the memory 23.
(M3 is the number of blocks constituting one screen in the horizontal direction, M2 is the number of blocks in the vertical direction), the cycle is S, and the value of the counter 22 is a (1). Next, the value of the counter 22 is set to a = 0 (2), and the horizontal block position I of each area of the memory 23 is set to I
= 1 (3), MX (I) = a, M (I) = a, MV (I) =
(4), and the value a of the counter 22 is +
Do one (5).

次にI=I+1とし(6)、I>M3か否か判定し
(7)、IがM3より大きくない時はステップ(4)に移
行し、大きい時は、1画面分について処理が終了し、領
域MXに一定周期のブロック毎に「1」が書込まれること
になる。次に、I=1とし(8)、MX(I)=1である
か否か判定する(9)。即ち、領域MXの中のブロックの
番号がフレーム内符号化を行うことを示す「1」である
か否か判定する。「1」でなければステップ(11)に移
行し、「1」の場合は、M(I−1)=1,M(I+1)
=1とする(10)。即ち、本来のフレーム内符号化を行
うブロックの両側のブロックもフレーム内符号化を行う
ブロックとする為に、番号を「1」とする。
Next, I = I + 1 (6), it is determined whether I> M3 or not (7). If I is not larger than M3, the process proceeds to step (4). If I is larger than I, the process is completed for one screen. , "1" is written to the area MX for each block having a constant period. Next, I = 1 (8), and it is determined whether MX (I) = 1 (9). That is, it is determined whether or not the number of the block in the area MX is “1” indicating that intra-frame encoding is performed. If not "1", the process proceeds to step (11). If "1", M (I-1) = 1, M (I + 1)
= 1 (10). That is, the number is set to "1" in order to make the blocks on both sides of the block for performing the original intra-frame coding also the blocks for performing the intra-frame coding.

そして、I=I+1とし(11)、I>M3か否か判定し
(12)、IがM3より大きくない時はステップ(9)に移
行し、大きい時は、1フレームについての処理が終了す
る(13)。
Then, I = I + 1 is set (11), and it is determined whether I> M3 (12). If I is not larger than M3, the process goes to step (9). If I is larger than M3, the process for one frame is ended. (13).

以上の処理により、本来のフレームに内符号化ブロッ
クとその両側の動き補償サーチ範囲のブロックとについ
て、領域Mに「1」を設定したことになる。
With the above processing, "1" is set in the area M for the inner coded block in the original frame and the blocks in the motion compensation search range on both sides of the inner coded block.

そして、次フレームとの動き補償処理を行い、動きベ
クトルの値をメモリ23の領域VXに記憶する(14)。その
場合、横方向のブロックにかかる動きベクトルについ
て、右向きベクトルの値を1、左向きベクトルの値を−
1とし、横方向のブロックにかからない動きベクトル、
即ち、0ベクトルの値を0とするものである。そして、
I=1とし(15),MX(I)=1か否か判定し(16)、
1でなければステップ(22)に移行し、1の場合はJ=
1として(17)、VX(I−1,J)=1か否か判定し(1
8)、且つVX(I+1,J)=−1か否か判定する(20)。
即ち、右向きベクトルか左向きブロックかを判定する。
このステップ(18),(20)は、一部ステップを省略し
て示しており、J=1〜M2の範囲について行うものであ
る。又VX(I−1,J)=1の時、即ち、右向きベクトル
の時、MV(I−1)=1とし(19)、又VX(I+1,L)
=−1でない時、即ち、左向きベクトルでない時、MV
(I+1)=1とし(21)、ステップ(22)に移行す
る。
Then, a motion compensation process with the next frame is performed, and the value of the motion vector is stored in the area VX of the memory 23 (14). In this case, the value of the rightward vector is 1 and the value of the leftward vector is −
1 and a motion vector that does not span the horizontal block,
That is, the value of the 0 vector is set to 0. And
I = 1 (15), it is determined whether MX (I) = 1 (16),
If not 1, proceed to step (22). If 1, J =
As 1 (17), it is determined whether or not VX (I−1, J) = 1 (1
8) It is determined whether VX (I + 1, J) =-1 (20).
That is, it is determined whether the block is a rightward vector or a leftward block.
Steps (18) and (20) are partially omitted, and are performed in the range of J = 1 to M2. When VX (I-1, J) = 1, that is, when the vector is rightward, MV (I-1) = 1 (19), and VX (I + 1, L)
= −1, that is, not a leftward vector, MV
(I + 1) = 1 is set (21), and the process proceeds to step (22).

そして、メモリ23の領域MVの内容の「1」によりフレ
ーム内符号化を行うブロックが設定されることになり、
この領域MVの内容に従って切替スイッチ24,25が制御さ
れ、フレーム間符号化とフレーム内符号化とがブロック
対応に切替えられることになる。
Then, a block for performing intra-frame encoding is set by “1” of the content of the area MV of the memory 23,
The changeover switches 24 and 25 are controlled in accordance with the contents of this area MV, so that inter-frame coding and intra-frame coding are switched corresponding to blocks.

次に、I=I+1とし(22)、I>M3か否か判定し
(23)、IがM3より大きくない時はステップ(16)に移
行し、大きい時は1フレームの処理が終了したことにな
るから、MX(*)=MV(*)及びMX(*)=MX(*)+
1の演算をモジュロSにより行い(24)、ステップ
(6)に移行して、次のフレームについてのフレーム内
符号化ブロックが設定されるから、MV(*)の内容がス
テップ(19),(21)により更新され、次のフレームに
於いては、本来の一定周期のブロックに対する動き補償
サーチ範囲のブロックを、一定周期のブロックと見做し
て、フレーム内符号化を行うブロックを設定することに
なる。
Next, I = I + 1 (22), it is determined whether I> M3 or not (23). If I is not larger than M3, the process proceeds to step (16). MX (*) = MV (*) and MX (*) = MX (*) +
1 is performed by modulo S (24), and the process goes to step (6) to set the intra-frame coded block for the next frame. Therefore, the contents of MV (*) are changed to steps (19), ( In the next frame, the block in the motion compensation search range for the original fixed cycle block is regarded as a fixed cycle block, and a block to be subjected to intra-frame encoding is set in the next frame. become.

第7図,第8図,第9図及び第10図は本発明の他の実
施例のフローチャートであり、第4図の(d)に示す動
作を行わせる場合を示す。第5図のステップ(1)と同
様に、メモリ23の各領域M,MX,VX,MVに於けるM3,M2(M3
は1画面を構成するブロックの横方向の数、M2は縦方向
の数)を設定し、周期をSとし、カウンタ22の値をaと
し(31)、次に、第5図のステップ(2)〜(5)と同
様に、カウンタ22の値をa=0とし(31)、メモリ23の
各領域の横方向ブロック位置IをI=1とし(32)、MX
(I)=a,M(I)=a,MV(I)=aとし(33)、カウ
ンタ22の値aをモジュロSにより+1する(35)。
FIGS. 7, 8, 9 and 10 are flowcharts of another embodiment of the present invention, in which the operation shown in FIG. 4 (d) is performed. Similar to step (1) in FIG. 5, M3, M2 (M3, M2) in each area M, MX, VX, MV of the memory 23
Is the number of blocks forming one screen in the horizontal direction, M2 is the number in the vertical direction), the cycle is S, the value of the counter 22 is a (31), and then the step (2) in FIG. ) To (5), the value of the counter 22 is set to a = 0 (31), the horizontal block position I of each area of the memory 23 is set to I = 1 (32), MX
(I) = a, M (I) = a, MV (I) = a (33), and the value a of the counter 22 is incremented by 1 by modulo S (35).

次にI=I+1とし(36)、I>M3か否か判定し(3
7)、横方向ブロック位置Iが横方向のブロック数M3よ
り大きくない時はステップ(34)に移行し、大きい時
は、メモリ23の領域M,MX,MVについてモジュロSによる
カウンタの値aがブロック対応にセットされたことにな
る。そして、I=1とし(38)、MX(I)=1か否か判
定する(39)。
Next, I = I + 1 is set (36), and it is determined whether I> M3 (3
7) When the horizontal block position I is not larger than the number M3 of blocks in the horizontal direction, the process proceeds to step (34). When the block position I is larger, the counter value a of the area M, MX, MV of the memory 23 by the modulo S is changed. This means that the block has been set. Then, I = 1 (38), and it is determined whether MX (I) = 1 (39).

MX(I)=1の場合はステップ(46)に移行し、MX
(I)≠1の場合は次のブロックに移行する為にI=I
+1とし(40)、I>M3か否か判定し(41)、I>M3で
ない場合は、ステップ(39)〜(41)を繰り返す。即
ち、フレーム符号化を示す「1」が領域MX内に存在する
か否かステップ(39)により判定する。そして、I>M3
となっても「1」がない場合は、例えば、第3図の
(C)の第2フレーム,第4フレームのように、フレー
ム内符号化を示す「1」のブロックが存在しないので、
I=1とし(42)、MX(I)=MX(I)+1をモジュロ
Sにより演算し(43)、I=I+1として(44)、ステ
ップ(45)の判定により、I>M3となるまでステップ
(43),(44)を繰り返す。それよって、フレーム内符
号化を示す「1」のブロックが存在することになる。
If MX (I) = 1, go to step (46)
(I) In the case of ≠ 1, I = I to shift to the next block
It is set to +1 (40), it is determined whether I> M3 or not (41). If not I> M3, steps (39) to (41) are repeated. That is, it is determined in step (39) whether or not “1” indicating frame encoding exists in the area MX. And I> M3
If there is no “1” even if “1” does not exist, there is no “1” block indicating intra-frame coding, for example, as in the second and fourth frames in FIG. 3 (C).
I = 1 (42), MX (I) = MX (I) +1 is calculated by modulo S (43), I = I + 1 (44), and until I> M3 by the determination in step (45). Steps (43) and (44) are repeated. Therefore, there is a block of “1” indicating the intra-frame encoding.

そして、I=1とし(46)、MX(I)=1か否か判定
し(47)、MX(I)≠1の場合はステップ(49)に移行
し、MX(I)=1の場合はM(I−1)=1,M(I+
1)=1とする(48)。即ち、フレーム内符号化を行う
ブロックの両側のブロックについてもフレーム内符号化
を行うことを示す「1」とする。
Then, I = 1 (46), it is determined whether MX (I) = 1 or not (47). If MX (I) ≠ 1, the process proceeds to step (49), and if MX (I) = 1, Is M (I-1) = 1, M (I +
1) = 1 is set (48). That is, it is set to “1” indicating that the intra-frame encoding is also performed on the blocks on both sides of the block on which the intra-frame encoding is performed.

そして、I=I+1とし(49)、I>M3か否か判定し
(50)、I>M3でない時は、ステップ(47)に移行し、
I>M3の時は、1フレームの処理終了となる(51)。
Then, I = I + 1 is set (49), it is determined whether I> M3 or not (50). If not I> M3, the process proceeds to step (47),
When I> M3, processing for one frame is completed (51).

そして、次フレームとの動き補償を行い、動きベクト
ルの値を記憶し、VX(M3,M2)は、右向きベクトルの値
を1、左向きのベクトルの値を−1、0ベクトルの値を
0とする(52)。次にI=1とし(53)、MX(I)=1
か否か判定し(54)、MX(I)≠1の時はステップ(6
5)に移行し、又MX(I)=1の時は、縦方向にブロッ
クを調べる為にJ=1とし(55)、MX(I−1,J)=1
か否か判定し(56)、1でない時はステップ(58)に移
行し、1の時は、MV(I−1)=1とする(57)。
Then, motion compensation with the next frame is performed, and the value of the motion vector is stored. VX (M3, M2) sets the value of the rightward vector to 1, the value of the leftward vector to -1, and the value of the 0 vector to 0. (52). Next, I = 1 (53), and MX (I) = 1
Is determined (54), and if MX (I) ス テ ッ プ 1, step (6)
5) When MX (I) = 1, J = 1 is set to check blocks in the vertical direction (55), and MX (I−1, J) = 1.
It is determined whether or not (56). If it is not 1, the process proceeds to step (58). If it is 1, MV (I-1) = 1 is set (57).

次にJ=J+1とし(58)、J>M2か否か判定し(5
9)、J>M2でない時はステップ(56)に移行し、J>M
2の時は再びJ=1とし、VX(I+1,J)=−1か否か判
定し(61)、−1でない時はステップ(63)に移行し、
−1の時はMV(I+1)=1とする(62)。そして、J
=J+1とし(63)、J>M2か否か判定し(64)、J>
M2でない時はステップ(61)に移行し、縦方向にブロッ
ク対応の動きベクトルの向きを調べて、フレーム内符号
化を行うブロックを設定する。又J>M2の時はI=I+
1とし(65)、I>M3か否か判定し(66)、I>M3でな
い時ステップ(54)に移行し、I>M3の時は、I=1と
し(67)、MX(I)=MV(I)とし(68)、MX(I)=
MX(I)+1をモジュロSにより演算し(69)、I=I
+1とし(70)、I>M3か否か判定し(71)、I>M3で
ない時はステップ(68)に移行し、I>M3の時は再びス
テップ(38)に戻ることになる。
Next, J = J + 1 is set (58), and it is determined whether J> M2 (5).
9) If not J> M2, go to step (56) and J> M
In the case of 2, J is set to 1 again, and it is determined whether or not VX (I + 1, J) =-1 (61). If not, the flow proceeds to step (63).
When it is -1, MV (I + 1) = 1 is set (62). And J
= J + 1 (63), it is determined whether J> M2 (64), and J>
If it is not M2, the flow goes to step (61) to check the direction of the motion vector corresponding to the block in the vertical direction, and to set a block to be subjected to intra-frame encoding. When J> M2, I = I +
1 (65), it is determined whether I> M3 or not (66). If not I> M3, the process proceeds to step (54). If I> M3, I = 1 (67) and MX (I) = MV (I) (68), MX (I) =
MX (I) +1 is calculated by modulo S (69), and I = I
+1 is set (70), it is determined whether I> M3 or not (71). If not I> M3, the process proceeds to step (68), and if I> M3, the process returns to step (38) again.

この実施例に於いては、第8図に於けるステップ(4
2)〜(45)により、動きベクトルが入り込まない場合
に、本来フレーム内符号化を行うブロックの周囲ブロッ
クを、本来フレーム内符号化を行うブロックと見做し
て、次の処理に移行できるようにしたものである。又第
9図及び第10図のステップ(52)〜(71)は、第6図の
ステップ(14)〜(23)を詳細に示している。
In this embodiment, step (4) in FIG.
According to 2) to (45), when a motion vector does not enter, a block around a block to be originally subjected to intra-frame encoding is regarded as a block to be originally subjected to intra-frame encoding, and the processing can be shifted to the next processing. It was made. Steps (52) to (71) in FIGS. 9 and 10 show the steps (14) to (23) in FIG. 6 in detail.

又記録装置28から再生して表示装置34で動画像を表示
する場合、記録装置28から読出された符号化画像信号
は、可変長復号化器29により可変長符号が復号される。
この時、補助情報も可変長符号化されて記録されるもの
であるから、補助情報も可変長復号化される。
When a moving image is displayed on the display device 34 after being reproduced from the recording device 28, the variable-length decoder 29 decodes a variable-length code from the encoded image signal read from the recording device 28.
At this time, the auxiliary information is also variable-length encoded and recorded, so that the auxiliary information is also variable-length decoded.

復号部30は、逆量子化器31と逆離散コサイン変換器32
とフレームメモリ33等から構成されており、補助情報を
基に可変長復号化された量子化動画像信号の復号化が行
われる。この場合、符号化を行う場合の逆量子化器15と
逆離散コサイン変換器16とフレームメモリ18とを共用化
する構成とすることができる。そして、復号化された動
画像信号は、表示装置34に加えられて表示される。
The decoding unit 30 includes an inverse quantizer 31 and an inverse discrete cosine transformer 32
And a frame memory 33 and the like, and decodes a quantized moving image signal that has been subjected to variable-length decoding based on auxiliary information. In this case, it is possible to adopt a configuration in which the inverse quantizer 15, the inverse discrete cosine transformer 16, and the frame memory 18 for encoding are shared. Then, the decoded moving image signal is added to the display device 34 and displayed.

1画面を複数ブロックに分割して一定周期Sでフレー
ム内符号化を行うことにより、任意のフレーム位置から
再生することが可能であるが、動き補償を行う関係か
ら、例えば、第3図及び第4図に於ける本来フレーム内
符号化を行うブロック列が第1フレームF1のように左端
に位置するフレームから復号を開始するものである。即
ち、第1フレームF1の左端のブロック列の左側にはブロ
ック例が存在しないので、そのブロック列からの動き補
償による影響が及ぼされないから、このブロック列から
フレーム内復号化を開始するものである。この場合、前
述のように、補助情報が付加されて記憶装置28に記録さ
れるから、再生時には、この補助情報を読出したフレー
ムに於ける左端ブロック列のフレーム内復号化を開始す
れば良いことになる。又逆方向再生時には、本来のフレ
ーム内符号化ブロック列が右端に位置するフレームから
復号化を開始することになる。
By dividing one screen into a plurality of blocks and performing intra-frame encoding at a fixed period S, it is possible to reproduce from an arbitrary frame position. However, from the viewpoint of performing motion compensation, for example, FIG. In FIG. 4, decoding is started from the frame located at the left end, such as the first frame F1, in which the block sequence to be originally subjected to intra-frame encoding is performed. That is, since there is no block example on the left side of the block sequence at the left end of the first frame F1, the effect of motion compensation from that block sequence is not exerted, so that intra-frame decoding is started from this block sequence. . In this case, as described above, the auxiliary information is added and recorded in the storage device 28. Therefore, at the time of reproduction, it is sufficient to start the intra-frame decoding of the left end block column in the frame from which the auxiliary information has been read. become. At the time of reverse reproduction, decoding is started from the frame where the original intra-frame coded block sequence is located at the right end.

前述の実施例は、一定周期Sのブロックが第3図及び
第4図に示すように縦方向に直線状に配列された場合で
あるが、横方向に配列される場合の再生時には、本来の
フレーム内符号化ブロック列が上端に位置するフレーム
から復号化を開始することになり、又逆方向再生時には
下端に位置するフレームから復号化を開始することにな
る。
In the above-described embodiment, the blocks having the fixed period S are arranged linearly in the vertical direction as shown in FIGS. 3 and 4. However, when the blocks are arranged in the horizontal direction, the original Decoding starts from the frame at the upper end of the intra-frame coded block sequence, and starts decoding from the frame at the lower end during reverse reproduction.

第11図及び第12図は動き補償の為のフレーム内符号化
ブロックの説明図であり、斜線を施したブロックBL1が
周期的にフレーム内符号化を行うブロックとすると、動
き補償サーチ範囲を1ブロック分とした時、フレーム内
符号化ブロックを周囲のブロックBL2についてもフレー
ム内符号化を行うものである。従って、矢印のような動
きベクトルの場合に於いても、フレーム内復号化により
正しい動画像を復号することができる。
FIG. 11 and FIG. 12 are explanatory diagrams of intra-frame coding blocks for motion compensation. Assuming that a hatched block BL1 is a block for which intra-frame coding is performed periodically, the motion compensation search range is set to one. When the number of blocks is equal to one, the intra-frame coding block is also subjected to intra-frame coding for the surrounding block BL2. Therefore, even in the case of a motion vector as indicated by an arrow, a correct moving image can be decoded by intra-frame decoding.

又周期的にフレーム内符号化を行うブロックBL1が第1
2図のように縦方向に配列される場合は、前述のよう
に、その両側ブロックBL2をフレーム内符号化ブロック
とするもので、3列のフレーム内符号化ブロック列が形
成されることになる。このようなフレーム内符号化を行
うブロックについては、そのフレームの符号化開始時
に、メモリ23の領域MVのブロック対応のアドレスに
「1」が設定され、その領域MVの内容に従ってフレーム
内符号化ブロックとフレーム間符号化ブロックとの制御
が行われる。
The block BL1 for periodically performing intra-frame encoding is the first block.
In the case of arrangement in the vertical direction as shown in FIG. 2, as described above, both side blocks BL2 are used as intra-frame coded blocks, and three columns of intra-frame coded blocks are formed. . For a block that performs such intra-frame encoding, at the start of encoding of the frame, “1” is set to the address corresponding to the block in the area MV of the memory 23, and the intra-frame encoded block is set in accordance with the contents of the area MV. And the inter-frame coded block are controlled.

又8×8画素のブロックのDCT係数についてみると、
第13図に示すように、隣接ブロックのX,Y座標の(1,1)
(黒丸で示す)の係数は直流分を示すことになり、ブロ
ック間で差分を求めて符号化することもできる。即ち、
一種のDPCM処理となり、符号化効率を向上することがで
きる。
Looking at the DCT coefficient of an 8 × 8 pixel block,
As shown in FIG. 13, (1,1) of the X and Y coordinates of the adjacent block
The coefficient (indicated by a black circle) indicates a DC component, and a difference between blocks can be obtained and encoded. That is,
This is a kind of DPCM processing, and the coding efficiency can be improved.

本発明は、前述の各実施例にのみ限定されるものでは
なく、種々付加変更することが可能であり、例えば、離
散コサイン変換以外の変換符号化を行うことも可能であ
る。
The present invention is not limited to the above-described embodiments, and various additions and changes are possible. For example, it is possible to perform transform coding other than discrete cosine transform.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明は、1画面を構成する複
数のブロック中の一定周期Sのブロックと、動き補償部
3による動き補償サーチ範囲のブロックとに対して、第
2の符号化部2によるフレーム内符号化を行わせ、この
動き補償部3による動きベクトルが検出されない時に、
動き補償サーチ範囲のブロックがフレーム内符号化を行
わせているので、一定周期Sのブロックと見做して、第
3図の(c)又は第4図の(d)に示すように、次のフ
レームに於ける一定周期Sのブロックを設定するもので
あり、動き補償を適用して高能率符号化を行わせると共
に、途中から順方向再生及び逆方向再生が可能となる。
As described above, the present invention applies the second encoding unit 2 to a block having a fixed period S in a plurality of blocks constituting one screen and a block in a motion compensation search range by the motion compensation unit 3. , And when no motion vector is detected by the motion compensation unit 3,
Since the blocks in the motion compensation search range are subjected to intra-frame encoding, they are regarded as blocks having a fixed period S, and as shown in FIG. 3 (c) or FIG. In this frame, a block having a fixed period S in the frame is set, high-efficiency encoding is performed by applying motion compensation, and forward reproduction and reverse reproduction can be performed from the middle.

又画像記録部5から再生して動画像を表示する場合、
第3図及び第4図に於ける第1フレームF1のように、1
画面の端部に位置するフレーム内符号化ブロック列に補
助情報を付加して記録しておくことより、この補助情報
を有するフレーム内符号化ブロック列からフレーム内復
号化を開始することにより、動き補償を行った場合で
も、正しい動画像を再生することが可能となる。
When a moving image is displayed by reproducing from the image recording unit 5,
As in the first frame F1 in FIGS.
By adding and recording auxiliary information to the intra-frame coded block sequence located at the end of the screen, starting intra-frame decoding from the intra-frame coded block sequence having this auxiliary information allows motion Even when compensation is performed, a correct moving image can be reproduced.

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

第1図は本発明の原理説明図、第2図は本発明の実施例
のブロック図、第3図及び第4図は本発明の実施例の動
作説明図、第5図及び第6図は本発明の一実施例のフロ
ーチャート、第7図,第8図,第9図及び第10図は本発
明の他の実施例のフローチャート、第11図及び第12図は
動き補償の為のフレーム内符号化ブロックの説明図、第
13図は直流成分の差分の説明図、第14図は従来例のブロ
ック図、第15図は従来例のフローチャート、第16図は動
き補償を適用した場合の説明図である。 1,2は第1,第2の符号化部、3は動き補償部、4は制御
部、5は画像記録部、6は復号化部である。
1 is a diagram for explaining the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIGS. 3 and 4 are diagrams for explaining the operation of the embodiment of the present invention, and FIGS. FIG. 7, FIG. 8, FIG. 9, and FIG. 10 are flow charts of another embodiment of the present invention, and FIG. 11 and FIG. Explanatory diagram of an encoding block,
FIG. 13 is an explanatory diagram of a difference between DC components, FIG. 14 is a block diagram of a conventional example, FIG. 15 is a flowchart of a conventional example, and FIG. 16 is an explanatory diagram when motion compensation is applied. Reference numerals 1 and 2 denote first and second encoding units, 3 denotes a motion compensation unit, 4 denotes a control unit, 5 denotes an image recording unit, and 6 denotes a decoding unit.

フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04N 1/41,5/92 H04N 7/24,11/04 Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04N 1 / 41,5 / 92 H04N 7 / 24,11 / 04

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力動画像信号の1画面を複数のブロック
に分割し、各ブロック対応に変換符号化を行ってフレー
ム間符号化を行う第1の符号化部(1)と、 前記ブロック対応の変換符号化を行ってフレーム内符号
化を行う第2の符号化部(2)と、 フレーム間のブロック対応の動き補償処理を行う動き補
償部(3)と、 前記第1,第2の部号化部(1,2)の切替制御を行う制御
部(4)と、 符号化された動画像信号の記録,再生を行う画像記録部
(5)とを備え、 前記制御部(4)により、前記1画面を構成する複数の
ブロック中の一定周期のブロックと、前記動き補償部
(3)による動き補償サーチ範囲のブロックとに対し
て、前記第2の符号化部(2)によるフレーム内符号化
を行わせ、且つ前記動き補償部(3)による動きベルト
ルが検出されない時に、前記動き補償サーチ範囲のブロ
ックを、次フレームに於ける前記一定周期のブロックと
見做して、該次フレームに於ける前記一定周期のブロッ
クの設定を省略する ことを特徴とする動画像符号化制御方式。
1. A first encoding unit (1) for dividing one screen of an input moving image signal into a plurality of blocks, performing transform coding for each block, and performing inter-frame coding, A second encoding unit (2) for performing intra-frame encoding by performing transform encoding of: a motion compensation unit (3) for performing motion compensation processing corresponding to blocks between frames; A control unit (4) that controls switching of the decoding units (1, 2); and an image recording unit (5) that records and reproduces encoded moving image signals. Accordingly, a frame by the second encoding unit (2) is used for a block having a fixed period in a plurality of blocks constituting one screen and a block in a motion compensation search range by the motion compensation unit (3). Inner coding is performed, and the motion compensator (3) detects the motion vector. When the block is not output, the block of the motion compensation search range is regarded as the block of the fixed cycle in the next frame, and the setting of the block of the fixed cycle in the next frame is omitted. Video coding control method.
【請求項2】入力画像信号の1画面を複数のブロックに
分割し、各ブロック対応に変換符号化を行ってフレーム
間符号化を行う第1の符号化部(1)と、 前記ブロック対応の変換符号化を行ってフレーム内符号
化を行う第2の符号化部(2)と、 フレーム間のブロック対応の動き補償処理を行う動き補
償部(3)と、 前記第1,第2の符号化部(1,2)の切替制御を行う制御
部(4)と、 符号化された動画像信号の記録,再生を行う画像記録部
(5)と、 該画像記録部(5)から再生した符号化動画像信号を復
号する復号化部(6)とを備え、 前記制御部(4)により、前記1画面を構成する複数の
ブロック中の一定周期のブロックと、前記動き補償部
(3)による動き補償サーチ範囲のブロックとに対し
て、前記第2の符号化部(2)によるフレーム内符号化
を行わせ、該フレーム内符号化によるブロック列が1画
面の縦方向又は横方向に直線状となるように設定し、該
ブロック列が1画面の端部に位置する情報を付加して前
記画像記録部(5)に記録し、 該画像記録部(5)から再生して前記復号化部(6)に
よる復号を、前記フレーム内部号化によるブロック列が
1画面の端部に位置するフレームから開始する ことを特徴とする動画像符号化制御方式。
2. A first encoding unit (1) for dividing one screen of an input image signal into a plurality of blocks, performing transform coding for each block and performing inter-frame coding, A second encoding unit (2) that performs transformation encoding to perform intra-frame encoding; a motion compensation unit (3) that performs motion compensation processing corresponding to blocks between frames; and the first and second codes. Control unit (4) for controlling the switching of the encoding unit (1, 2); an image recording unit (5) for recording and reproducing the encoded moving image signal; and reproduction from the image recording unit (5). A decoding unit (6) for decoding an encoded moving image signal, wherein the control unit (4) controls the motion compensation unit (3); And the block in the motion compensation search range by the second encoding unit (2). Intra-frame encoding is performed, and a block sequence by the intra-frame encoding is set to be linear in the vertical or horizontal direction of one screen, and information that the block sequence is located at an end of one screen is added. Then, the image data is recorded in the image recording unit (5), reproduced from the image recording unit (5), and decoded by the decoding unit (6). A moving picture coding control method characterized by starting from a positioned frame.
JP9749490A 1990-04-16 1990-04-16 Video coding control method Expired - Fee Related JP2952603B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9749490A JP2952603B2 (en) 1990-04-16 1990-04-16 Video coding control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9749490A JP2952603B2 (en) 1990-04-16 1990-04-16 Video coding control method

Publications (2)

Publication Number Publication Date
JPH03296379A JPH03296379A (en) 1991-12-27
JP2952603B2 true JP2952603B2 (en) 1999-09-27

Family

ID=14193824

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9749490A Expired - Fee Related JP2952603B2 (en) 1990-04-16 1990-04-16 Video coding control method

Country Status (1)

Country Link
JP (1) JP2952603B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2283876B (en) * 1993-11-09 1998-06-24 Matsushita Electric Ind Co Ltd Encoding and decoding code sequences and frames

Also Published As

Publication number Publication date
JPH03296379A (en) 1991-12-27

Similar Documents

Publication Publication Date Title
KR100350335B1 (en) Image information processing method and apparatus
JP2699703B2 (en) Motion compensation prediction method and image signal encoding method using the same
JP2570384B2 (en) Video signal encoding / decoding method
EP0551599A1 (en) Motion picture data decoding system
JPH10191259A (en) Inversion reproduction method for mpeg video
KR100260475B1 (en) Methods and devices for encoding and decoding frame signals and recording medium therefor
KR101194952B1 (en) Method and apparatus for variable accuracy inter-picture timing specification for digital video encoding
US5291283A (en) Decoding apparatus of a compressed digital video signal
US6882687B2 (en) Compressed image data reproducing apparatus and method thereof
JP2952603B2 (en) Video coding control method
JP3128393B2 (en) Compressed video playback device
JP2897035B2 (en) Video coding control method
JPH11155129A (en) Mpeg picture reproduction device and mpeg picture reproducing method
US5774624A (en) Image signal recording apparatus having intrapicture and interpicture coding modes
JP2897056B2 (en) Video coding control method
US6038345A (en) Apparatus for encoding/decoding image data
JP3134672B2 (en) Frame-by-frame playback processor for video signals
JP3449370B2 (en) Image data decoding method and apparatus
JP3235917B2 (en) Image recording and playback device
JP2947581B2 (en) Recording / playback method of DCT compressed video data
KR100373602B1 (en) Video decoder and corresponding process
JP2695465B2 (en) Video coding / decoding method
JPH06339113A (en) Moving picture recording and reproducing device
JPH0898142A (en) Picture reproduction device
JPH0472976A (en) Recording and reproducing system for dct compression moving picture data

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees