JP2720717B2 - Video signal processing device - Google Patents

Video signal processing device

Info

Publication number
JP2720717B2
JP2720717B2 JP20484992A JP20484992A JP2720717B2 JP 2720717 B2 JP2720717 B2 JP 2720717B2 JP 20484992 A JP20484992 A JP 20484992A JP 20484992 A JP20484992 A JP 20484992A JP 2720717 B2 JP2720717 B2 JP 2720717B2
Authority
JP
Japan
Prior art keywords
signal
output
input
block
error
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
JP20484992A
Other languages
Japanese (ja)
Other versions
JPH0654294A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP20484992A priority Critical patent/JP2720717B2/en
Publication of JPH0654294A publication Critical patent/JPH0654294A/en
Application granted granted Critical
Publication of JP2720717B2 publication Critical patent/JP2720717B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はディジタル映像信号を圧
縮し記録媒体に記録再生する映像信号処理装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a video signal processing apparatus for compressing a digital video signal and recording and reproducing it on a recording medium.

【0002】[0002]

【従来の技術】近年、映像信号をディジタル化して記録
再生するD1,D2ビデオテープレコーダ(以下、VT
Rと略す。)が開発されている。また民生用機器とし
て、ディジタル静止画を記録再生できるビデオフロッピ
ーやディジタル動画を記録できるVTRの開発が進んで
いる。民生用ディジタルVTRの開発例としてはテレビ
ジョン学会誌(Vol.45,No.7,pp813〜
819,1991)に記載された数例がある。この民生
用ディジタルVTRは映像信号の持つ冗度を幾多の手法
を用い、データ量を1/5程度に圧縮して記録してい
る。
2. Description of the Related Art In recent years, D1, D2 video tape recorders (hereinafter referred to as VT) for digitizing and recording / reproducing video signals.
Abbreviated as R. ) Has been developed. As consumer devices, video floppy capable of recording and reproducing digital still images and VTR capable of recording digital moving images have been developed. Examples of development of consumer digital VTRs include the Journal of the Institute of Television Engineers of Japan (Vol.45, No.7, pp813-
819, 1991). In this consumer digital VTR, the degree of redundancy of the video signal is recorded by compressing the data amount to about 1/5 using various methods.

【0003】以下に、従来の映像信号処理装置について
説明する。図4は従来の映像信号処理装置のブロック図
である。図5は図4で処理される映像信号のフォーマッ
ト説明図、図6は1ブロックの構成の説明図、図7はテ
ープの1トラック分の信号の構成図である。
[0003] A conventional video signal processing apparatus will be described below. FIG. 4 is a block diagram of a conventional video signal processing device. 5 is an explanatory diagram of the format of the video signal processed in FIG. 4, FIG. 6 is an explanatory diagram of a configuration of one block, and FIG. 7 is a configuration diagram of a signal for one track of a tape.

【0004】図4において、1はディジタル化された映
像信号が入力される入力端子、2は入力端子1に入力さ
れた映像信号を輝度信号(以下Y信号と略す。)及び色
差信号(R−Y信号,B−Y信号)を各々8×8画素の
信号にブロック化するシャフリング部、3はシャフリン
グ部2の出力信号を2次元離散コサイン変換(以下DC
Tと略す。)するDCT部、4は入力信号を9種類の量
子化ステップを用いて量子化した場合、予め定めたデー
タ量以下でかつ最小の量子化ステップを求める量子化制
御器、5は量子化制御器4で求めた量子化ステップでD
CT部3から出力された信号を量子化する量子化器、6
は量子化器5から出力された信号をハフマン符号を用い
て3〜16ビットの符号後に変換する可変長符号化器、
7はシャフリング部2,DCT部3,量子化制御器4,
量子化器5,可変長符号化器6で構成された圧縮器であ
る。圧縮器7で圧縮された映像信号はフォーマッタ8で
所定の形式にフォーマットされた後、第1の誤り訂正部
(以下ECC部と略す。)9で誤り訂正符号を付加され
る。10は変調器で、変調出力は増幅器11で増幅され
た後、第1の磁気ヘッド12でテープ13に記録され
る。14は第2の磁気ヘッド15で再生された信号を増
幅する第2の増幅器、16は復調器、17はでメモリ1
8を介して誤り訂正処理を行う第2のECC部、19は
記録時フォーマッタ8で施した配置転換処理を戻すデフ
ォーマッタ、20はデフォーマッタ19の出力信号であ
る可変長符号を復号する可変長復号器、21は可変長復
号器20の出力信号を記録時の量子化ステップの逆数で
乗算する逆量子化器、22は逆量子化器21から出力さ
れた8×8単位の信号で2次元逆DCTを演算するID
CT部、23はIDCT部の出力信号をY信号,R−Y
信号,B−Y信号の並列信号に変換するデシャフリング
部で、変換されたディジタル映像信号信号は出力端子2
4に出力される。25は可変長復号器20,逆量子化器
21,IDCT部22,デシャフリング部23で構成さ
れた伸張器である。
In FIG. 1, reference numeral 1 denotes an input terminal to which a digitized video signal is input, and 2 denotes a video signal input to the input terminal 1 as a luminance signal (hereinafter abbreviated as a Y signal) and a color difference signal (R-signal). A shuffling unit 3 for blocking each of the Y signal and the BY signal into a signal of 8 × 8 pixels, and 3 a two-dimensional discrete cosine transform (hereinafter DC) of an output signal of the shuffling unit 2.
Abbreviated as T. ), A DCT unit for quantizing an input signal using nine types of quantization steps, a quantization controller for obtaining a minimum quantization step with a data amount equal to or less than a predetermined data amount, and a quantization controller for 5 In the quantization step obtained in step 4, D
A quantizer for quantizing the signal output from the CT unit 3;
Is a variable-length encoder that converts a signal output from the quantizer 5 into a code of 3 to 16 bits using a Huffman code,
7 is a shuffling unit 2, a DCT unit 3, a quantization controller 4,
This is a compressor composed of a quantizer 5 and a variable length encoder 6. The video signal compressed by the compressor 7 is formatted into a predetermined format by a formatter 8, and an error correction code is added by a first error correction unit (hereinafter abbreviated as an ECC unit) 9. Reference numeral 10 denotes a modulator. The modulated output is amplified by an amplifier 11 and then recorded on a tape 13 by a first magnetic head 12. 14, a second amplifier for amplifying the signal reproduced by the second magnetic head 15, 16 a demodulator, 17 a memory 1
8 is a second ECC unit for performing error correction processing via the reference numeral 8, 19 is a deformatter for returning the rearrangement processing performed by the formatter 8 during recording, and 20 is a variable length for decoding a variable length code which is an output signal of the deformatter 19. A decoder 21 is an inverse quantizer which multiplies the output signal of the variable length decoder 20 by the reciprocal of the quantization step at the time of recording. A decoder 22 is a signal of 8 × 8 unit output from the inverse quantizer 21 and is two-dimensional. ID for calculating inverse DCT
The CT unit 23 outputs the output signal of the IDCT unit as a Y signal, RY
Signal and a BY signal, which are converted into parallel signals.
4 is output. Reference numeral 25 denotes an expander including a variable length decoder 20, an inverse quantizer 21, an IDCT unit 22, and a deshuffling unit 23.

【0005】以上のように構成された従来の映像信号処
理装置について、以下その動作を説明する。
The operation of the conventional video signal processing device configured as described above will be described below.

【0006】初めに記録時の動作について説明する。入
力端子1に入力された映像信号(1フレームがY信号7
20×480画素、R−Y及びB−Y信号の色差信号が
各180×480画素で構成され各画素が8ビットの
値)は圧縮器7に入力され圧縮される。圧縮器7ではま
ずシャフリング部2で入力信号はY信号、R−Y信号、
B−Y信号が各々8×8画素単位にブロック化される。
ブロック化された各信号はDCT部3に出力され2次元
DCT演算が行われる。DCT部3は2次元DCT演算
した演算結果を水平及び垂直周波数成分の低いDC値か
ら周波数の高いAC値へと量子化器5及び量子化制御器
4に出力する。量子化制御器4はDCT部3から出力さ
れたY信号20ブロック分とR−Y信号5ブロック分、
B−Y信号5ブロック分の計30ブロックを一単位とし
てデータ量を演算する。ここで用いる9種類の量子化ス
テップは、入力信号に1,1/2,1/4,1/8等を
乗算することで行われる。量子化制御器4は量子化後の
信号に対し可変長符号化した時の累積符号語数と予め定
めてある目標値を比較し、目標を越えない最小の量子化
値Brnを量子化器5に出力する。量子化器5は量子化
制御器4から供給された量子化ステップ値Brnに基づ
き量子化を行う。可変長符号化器5は入力信号のゼロ値
の連続する回数とその後に続く値の組み合わせを発生確
率順に短ビット長に割り付けたハフマン符号を用いて可
変長符号化を行う。各ブロックのAC成分はDC値を除
き3〜16ビットの符号語に可変長符号化される。可変
長符号化された各ブロックは9ビットのDC値と可変長
符号化されたAC成分及びブロックの最後を示すエンド
フラグ(以下EOBと略す。)で構成される。
First, the operation at the time of recording will be described. The video signal input to the input terminal 1 (one frame is a Y signal 7
20 × 480 pixels, the color difference signals of the RY and BY signals are each composed of 180 × 480 pixels, and each pixel is an 8-bit value) is input to the compressor 7 and compressed. In the compressor 7, first, the input signal is a Y signal, an RY signal,
Each of the BY signals is divided into 8 × 8 pixel units.
Each of the blocked signals is output to the DCT unit 3 where a two-dimensional DCT operation is performed. The DCT unit 3 outputs the operation result of the two-dimensional DCT operation from the DC value having low horizontal and vertical frequency components to the AC value having high frequency to the quantizer 5 and the quantization controller 4. The quantization controller 4 is for 20 blocks of the Y signal output from the DCT unit 3 and for 5 blocks of the RY signal,
The data amount is calculated using a total of 30 blocks for 5 blocks of the BY signal as one unit. The nine types of quantization steps used here are performed by multiplying the input signal by 1, 1/2, 1/4, 1/8, or the like. The quantization controller 4 compares the number of accumulated codewords when performing variable length coding on the signal after quantization with a predetermined target value, and sends the minimum quantized value Brn not exceeding the target to the quantizer 5. Output. The quantizer 5 performs quantization based on the quantization step value Brn supplied from the quantization controller 4. The variable-length encoder 5 performs variable-length encoding using a Huffman code in which a combination of the number of consecutive zero values of the input signal and the subsequent value is assigned to a short bit length in the order of occurrence probability. The AC component of each block is variable-length coded into a code word of 3 to 16 bits excluding the DC value. Each variable-length coded block includes a 9-bit DC value, a variable-length coded AC component, and an end flag (hereinafter abbreviated as EOB) indicating the end of the block.

【0007】圧縮器7の出力信号は、フォーマッタ8に
供給され低周波数成分と高周波数成分に分けられフォー
マットされる。図5に30ブロックのフォーマット形式
を示す。30ブロックは3シンクにフォーマットされ
る。シンク0及びシンク1には各Y信号の為に10バイ
トの領域が10個、R−Y又はB−Y信号の色差信号の
為に5バイトの領域が5個用意されている。圧縮器7か
ら出力された信号はまずこの領域にDC値から順に低周
波数成分の符号語から符号語単位で隙間無く詰め込まれ
る。そしてY信号のブロックの場合、符号語の合計のビ
ット数が65以上になるまで詰め込まれる。つまり符号
語が欠けない最大の語数まで書き込む(最大符号語長は
16ビットであるのでY信号ブロックでは64ビット以
上になった時、中止される。同様に色差信号ブロックの
場合は25ビット以上で中止される。)。この処理が3
0ブロックの信号に対して行われる。この処理で詰め込
まれた信号が低域信号(LACと略す。)であり、処理
できなくあふれた信号が高域信号(HACと略す。)で
ある。
[0007] The output signal of the compressor 7 is supplied to a formatter 8 where it is divided into a low frequency component and a high frequency component and formatted. FIG. 5 shows a format of 30 blocks. Thirty blocks are formatted into three syncs. Sink 0 and Sink 1 are provided with ten 10-byte areas for each Y signal, and five five-byte areas for color difference signals of RY or BY signals. The signal output from the compressor 7 is first packed in this area without gaps in code word units from low frequency component code words in order from the DC value. Then, in the case of the block of the Y signal, the blocks are packed until the total number of bits of the code word becomes 65 or more. In other words, writing is performed up to the maximum number of words in which the code word is not missing (the maximum code word length is 16 bits, so that the process is stopped when the Y signal block becomes 64 bits or more. Will be discontinued.) This process is 3
This is performed on the signal of block 0. The signal packed in this process is a low-frequency signal (abbreviated as LAC), and the overflow signal that cannot be processed is a high-frequency signal (abbreviated as HAC).

【0008】フォーマッタ8は30ブロックの信号の各
LACを所定の位置に詰め込んだ後、残ったHACの詰
め込み処理を行う。この動作を図6を用いて説明する。
LACを詰め込んだY信号用の10バイト又はR−Y信
号又はB−Y信号用の5バイトの領域はEOBが詰め込
まれなかった場合は、0〜15ビットの空き領域が存在
する。この空いた領域に隙間無くHACを詰め込んでい
く。この時初めにシンク0で発生したHACはシンク0
の空き領域に、シンク1で発生したHACはシンク1の
空き領域に詰め込まれる。詰め込みは空き領域を完全に
埋める様に行われる為、符号語は最悪1ビット単位に分
割され幾多の領域にまたがって詰め込まれることもあ
る。シンク0及びシンク1のHACが各シンクの空き領
域が詰め込み不可能であった場合、シンク2に残りのH
ACが詰め込まれる。そして高域を詰め込んだ後、第1
のECC部9に出力される。同時にシンク2でのシンク
0及びシンク1のHACの境目の位置を示すTOPも出
力される。第1のECC部9はフォーマッタ8から出力
された81個のシンクに対し2重誤り訂正符号(ER0
及びER1)を付加し、変調器10に出力する。変調器
10は入力信号を8/10変換し、第1の増幅器11に
出力する。第1の増幅器11は入力信号を増幅し、第1
の磁気ヘッド60に供給することでテープ13に信号を
記録する。図7にテープに記録される1トラック分の信
号の構成を示す。1トラックは81シンク(Y信号54
0ブロック、R−Y信号135ブロック、B−Y信号1
35ブロック)であるので、10トラックで1フレーム
の映像信号が記録される事となる。
[0008] After the formatter 8 packs each LAC of the signal of 30 blocks into a predetermined position, it performs a process of packing the remaining HAC. This operation will be described with reference to FIG.
If the EOB is not packed, a 10-byte area for the Y signal packed with the LAC or a 5-byte area for the RY signal or the BY signal has a free area of 0 to 15 bits. The HAC is packed into this empty area without any gap. At this time, the HAC generated in the first sync 0 is the sync 0
The HAC generated in the sink 1 is packed into the empty area of the sink 1. Since the stuffing is performed so as to completely fill the empty area, the codeword may be divided in units of one bit at the worst and stuffed over many areas. If the HACs of the sinks 0 and 1 cannot fill the free area of each sink, the remaining H
AC is packed. And after packing the highs,
Is output to the ECC unit 9. At the same time, a TOP indicating the position of the boundary of the HAC between the sink 0 and the sink 1 in the sink 2 is also output. The first ECC unit 9 applies a double error correction code (ER0) to the 81 syncs output from the formatter 8.
And ER1), and outputs the result to the modulator 10. The modulator 10 converts the input signal into 8/10 and outputs the converted signal to the first amplifier 11. The first amplifier 11 amplifies the input signal,
The signal is recorded on the tape 13 by supplying the signal to the magnetic head 60. FIG. 7 shows the structure of a signal for one track recorded on a tape. One track has 81 syncs (Y signal 54
0 block, 135 blocks of RY signal, 1 block of BY signal
35 blocks), one frame of video signal is recorded on 10 tracks.

【0009】次に再生時の動作について述べる。第2の
磁気ヘッド15で再生された信号は、第2の増幅器14
に加えられる。第2の増幅器14で増幅された信号は、
復調器24で復調され第2のECC部17に出力され
る。第2のECC部17は記録時に付加した誤り訂正符
号ER0,ER1を用いて誤り位置を検出し、誤りの訂
正できる場合は訂正し、メモリ18に書き込む。ここ
で、3シンクの内で1ビットでも訂正出来ない箇所の存
在した場合は、メモリ18には書き込まない。メモリ1
8は1フレーム分、810シンクの容量を有しているの
で、訂正出来ない誤りが記録再生系で発生した時はデフ
ォーマッタ19には1フレーム前の同一位置の3シンク
の信号が供給される。デフォーマッタ19は第2のEC
C部17から出力された信号を再構成し、別々の位置に
フォーマットされた同一ブロックのLACとHACをつ
なぎ合わせ可変長復号器20に出力する。可変長復号器
20は入力された信号から符号語を検出し、復号する。
復号する場合1ビットでも誤りがあるとその誤りが伝搬
し、大きな画質劣化の要因となるが第2のECC部17
で誤りが発生した時は正しい1フレーム前の3シンクの
信号に置き換えが行われている為、可変長復号器20で
の誤動作はない。可変長復号器20の出力信号は逆量子
化器21に供給され、記録時の量子化で用いた値の逆数
が乗算され、IDCT部22に出力される。IDCT2
2は入力された信号に対し2次元IDCT演算を行い、
デシャフリング部23に出力する。デシャフリング部2
3は入力信号を並列にY信号,R−Y信号,B−Y信号
と並べ換え出力端子24に出力する。
Next, the operation at the time of reproduction will be described. The signal reproduced by the second magnetic head 15 is supplied to the second amplifier 14.
Is added to The signal amplified by the second amplifier 14 is
The signal is demodulated by the demodulator 24 and output to the second ECC unit 17. The second ECC unit 17 detects an error position using the error correction codes ER0 and ER1 added at the time of recording, and if an error can be corrected, corrects the error and writes it to the memory 18. Here, when there is a portion where even one bit cannot be corrected among the three syncs, it is not written into the memory 18. Memory 1
Since 8 has a capacity of 810 syncs for one frame, when an uncorrectable error occurs in the recording / reproducing system, signals of three syncs at the same position one frame before are supplied to the deformatter 19. . The deformatter 19 is the second EC
The signal output from the C unit 17 is reconstructed, and the LAC and HAC of the same block formatted at different positions are connected and output to the variable length decoder 20. The variable length decoder 20 detects and decodes a codeword from the input signal.
In the case of decoding, if there is an error even in one bit, the error propagates and causes a great deterioration in image quality.
When an error has occurred in the variable length decoder 20, there is no malfunction in the variable length decoder 20 because the signal has been replaced with the correct signal of three syncs one frame before. The output signal of the variable length decoder 20 is supplied to an inverse quantizer 21 where the output signal is multiplied by a reciprocal of a value used for quantization at the time of recording and output to an IDCT unit 22. IDCT2
2 performs a two-dimensional IDCT operation on the input signal,
Output to the deshuffling unit 23. Deshuffling part 2
Reference numeral 3 rearranges the input signal in parallel with the Y signal, the RY signal, and the BY signal, and outputs the rearranged signal to the output terminal 24.

【0010】[0010]

【発明が解決しようとする課題】しかしながら上記の構
成では、可変長復号器での誤動作を防止するため、3シ
ンクの内に1ビットでも訂正不可能な誤りが発生した場
合、1フレーム前の3シンクブロックで置き換えを行
う。その為、動きの激しい画像信号では1フレーム前の
情報と大きく異なる信号で補間されることになり、画質
劣化が大きい。また高速再生時はテープに形成された1
トラックを再生の磁気ヘッドが斜めに横切り再生する
為、3シンクの信号が完全に再生される確率が低下す
る。この場合、メモリに蓄えられた以前の正しい信号を
出力するとこの信号は数フレーム以上前の信号である為
大きな画質劣化要因となる。
However, in the above-described configuration, in order to prevent a malfunction in the variable length decoder, when an error that cannot be corrected even in one bit is generated in three syncs, three bits before one frame are used. Replace with sync block. Therefore, in the case of an image signal having a sharp movement, interpolation is performed using a signal that is significantly different from the information one frame before, and the image quality is greatly deteriorated. During high-speed playback, 1
Since the magnetic head for reproducing the track obliquely crosses and reproduces the track, the probability that the signals of three syncs are completely reproduced is reduced. In this case, if a previous correct signal stored in the memory is output, this signal is a signal several frames or more before, and this causes a great deterioration in image quality.

【0011】本発明は上記従来の問題点を解決するもの
で、3シンク内に誤りが発生した場合、誤りが発生して
いないシンクの低域成分だけでの可変長信号復号を可能
とすることで、以前のフレーム情報を用いた補間箇所を
削減する。その結果、画質劣化を軽減する映像信号処理
装置を提供することを目的とする。
The present invention solves the above-mentioned conventional problems. When an error occurs in three syncs, it is possible to decode a variable-length signal using only low-frequency components of a sink where no error occurs. Then, the number of interpolation points using the previous frame information is reduced. As a result, it is an object of the present invention to provide a video signal processing device that reduces image quality deterioration.

【0012】[0012]

【課題を解決するための手段】この目的を達成するため
本発明の映像信号処理装置は、m×n画素で構成された
1叉は複数個のブロックを離散コサイン変換及び可変長
符号化を用いて圧縮する圧縮器と、圧縮器から出力され
た各ブロックの圧縮信号を周波数成分の低い方から予め
定められたデータ量以下だけ分割した低周波数成分とそ
れを越える高周波数成分に分けて、両成分を異なる領域
にフォーマットするフォーマッタと、フォーマッタの出
力信号に誤り訂正符号を付加する誤り訂正器と、誤り訂
正器の出力信号を記録及び再生する記録再生器と、記録
再生器から再生された信号を入力し、付加された誤り訂
正符号から訂正不可能な位置を示す修整フラグを出力す
る誤り訂正器と、誤り訂正器から出力された信号及び修
整フラグを入力し、修整フラグに基づき、各ブロックの
低周波数成分にエンドフラグを付加するデフォーマッタ
と、デフォーマッタの出力信号を入力とし、入力信号を
伸張する伸張器とを持つ構成を有している。
In order to achieve this object, a video signal processing apparatus according to the present invention uses a discrete cosine transform and a variable length coding for one or a plurality of blocks each composed of m × n pixels. A low-frequency component obtained by dividing the compressed signal of each block output from the compressor by a predetermined data amount or less from a lower frequency component, and a high-frequency component exceeding the predetermined data amount. A formatter for formatting components into different regions, an error corrector for adding an error correction code to the output signal of the formatter, a recording / reproducing device for recording and reproducing the output signal of the error correcting device, and a signal reproduced from the recording / reproducing device And an error corrector that outputs a correction flag indicating an uncorrectable position from the added error correction code, and a signal output from the error corrector and a correction flag. Based on the modification flag has a deformatter for adding end flag to low frequency components of each block, and inputs the output signal of the deformatter, the structure having a decompressor for decompressing an input signal.

【0013】[0013]

【作用】本発明は上記した構成により記録再生した信号
に訂正不可能な誤りが発生した場合、誤り訂正回路は記
録時に付加した誤り訂正符号からその誤りがどのブロッ
クで発生したかを検出する。そして誤りが発生していな
いブロックの低域信号にエンドフラグを付加し、可変長
信号の復号を可能にする。その結果、可変長復号器での
誤動作は防止され、動きの激しい画像信号の再生画質や
高速再生等の特殊再生時の画質劣化が低減可能となる。
According to the present invention, when an uncorrectable error occurs in a signal recorded and reproduced by the above configuration, the error correction circuit detects in which block the error has occurred from the error correction code added during recording. Then, an end flag is added to the low-frequency signal of the block in which no error has occurred to enable decoding of the variable-length signal. As a result, a malfunction in the variable length decoder is prevented, and it is possible to reduce the reproduction quality of an image signal with a sharp movement and the deterioration of the image quality at the time of special reproduction such as high-speed reproduction.

【0014】[0014]

【実施例】以下、本発明の一実施例について、図面を参
照しながら説明する。図1は本発明の映像信号処理装置
のブロック図である。図2は誤り位置の説明図、図3は
デフォーマッタの動作を説明する為の図である。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a video signal processing device according to the present invention. FIG. 2 is a diagram for explaining an error position, and FIG. 3 is a diagram for explaining the operation of a deformatter.

【0015】図1において、50はディジタル化された
映像信号が入力される入力端子、51は入力端子50に
入力された映像信号をY信号及びR−Y信号,B−Y信
号の各々8×8画素の信号にブロック化するシャフリン
グ部、52はシャフリング部51の出力信号を2次元D
CTするDCT部、53はDCT部52から入力された
信号を9種類の量子化ステップで量子化し、予め定めた
データ量以下になる最小の量子化ステップを求める量子
化制御器、54は量子化制御器53で求めた量子化ステ
ップでDCT部52から出力された信号を量子化する量
子化器、55は量子化器54から出力された信号をハフ
マン符号を用いて3〜16ビットの符号後に変換する可
変長符号化器、56はシャフリング部51,DCT部5
2,量子化制御器53,量子化器54,可変長符号化器
55で構成された圧縮器である。57は圧縮器56で圧
縮された映像信号をフォーマッタ57で所定の形式にフ
ォーマットした後、この信号に誤り訂正符号を付加する
第1のECC部、59は変調器、変調器59の変調出力
は増幅器60で増幅された後、第1の磁気ヘッド61で
テープ62に記録される。63は第2の磁気ヘッド64
で再生された信号を増幅する第2の増幅器、65は復調
器、66は第1のメモリ67を介して誤り訂正を行う第
2のECC部、68は第2のECC部66の出力信号を
記憶する第2のメモリ、69は第2のメモリ68に記憶
された符号語の語長を検出しつつ、各ブロックの低域及
び高域を結合する符号長検出器、70は第2のECC部
66の出力する修整フラグに基づき符号長検出器69の
出力信号にエンドフラグを付加するエンドフラグ挿入
器、71はエンドフラグ挿入器70の出力信号を記憶す
る第3のメモリ、72は第2のメモリ68,符号長検出
器69,エンドフラグ挿入器70,第3のメモリ71で
構成されたデフォーマッタである。73はデフォーマッ
タ72の出力信号である可変長符号を復号する可変長復
号器、74は可変長復号器73の出力信号に記録時の量
子化ステップの逆数を乗算する逆量子化器、75は逆量
子化器74から出力された8×8単位の信号を2次元逆
DCT演算するIDCT部、76はIDCT部75の出
力信号を並べ換えるデシャフリング部で、並べ換えられ
たディジタル映像信号は出力端子77に出力される。7
8は可変長復号器73,逆量子化器74,IDCT部7
5,デシャフリング部76で構成された伸張器である。
In FIG. 1, reference numeral 50 denotes an input terminal to which a digitized video signal is input, and reference numeral 51 denotes a video signal input to the input terminal 50 by converting a Y signal, an RY signal, and a BY signal into 8 × each. A shuffling unit 52 that blocks the signal into eight pixels, and 52 outputs a two-dimensional D
A DCT unit that performs CT, a quantization controller 53 quantizes the signal input from the DCT unit 52 in nine types of quantization steps, and obtains a minimum quantization step that is equal to or less than a predetermined data amount. A quantizer that quantizes the signal output from the DCT unit 52 in the quantization step obtained by the controller 53. A signal 55 is output from the quantizer 54 using a Huffman code to generate a code of 3 to 16 bits. A variable length encoder for conversion, 56 is a shuffling unit 51, a DCT unit 5
2, a compressor including a quantization controller 53, a quantizer 54, and a variable length encoder 55. Reference numeral 57 denotes a first ECC unit which formats the video signal compressed by the compressor 56 into a predetermined format by the formatter 57, and adds an error correction code to the signal, 59 denotes a modulator, and the modulation output of the modulator 59 is After being amplified by the amplifier 60, it is recorded on the tape 62 by the first magnetic head 61. 63 is a second magnetic head 64
, A second amplifier 65 for amplifying the signal reproduced by the above, a demodulator 65, a second ECC unit 66 for performing error correction via a first memory 67, and 68 an output signal of the second ECC unit 66. A second memory 69 for storing a code length detector for combining the low band and the high band of each block while detecting the word length of the code word stored in the second memory 68, and 70 is a second ECC An end flag inserter that adds an end flag to the output signal of the code length detector 69 based on the modification flag output from the unit 66, 71 is a third memory that stores the output signal of the end flag inserter 70, and 72 is a second memory. , A code length detector 69, an end flag inserter 70, and a third memory 71. 73 is a variable length decoder that decodes a variable length code that is an output signal of the deformatter 72, 74 is an inverse quantizer that multiplies the output signal of the variable length decoder 73 by the reciprocal of the quantization step at the time of recording, and 75 is An IDCT unit that performs a two-dimensional inverse DCT operation on the 8 × 8 unit signal output from the inverse quantizer 74 is a deshuffling unit that rearranges the output signal of the IDCT unit 75. The rearranged digital video signal is output to an output terminal 77. Is output to 7
Reference numeral 8 denotes a variable length decoder 73, an inverse quantizer 74, and an IDCT unit 7.
5, an expander configured by the deshuffling unit 76.

【0016】以上のように構成された実施例における映
像信号処理装置の動作について以下説明する。
The operation of the video signal processing apparatus according to the embodiment configured as described above will be described below.

【0017】初めに記録時の動作について説明する。入
力端子50に入力されたディジタル映像信号(1フレー
ムがY信号720×480画素、R−Y及びB−Y信号
の色差信号が各180×480画素で構成され各画素は
8ビット)は圧縮器56に入力されデータ量が圧縮され
る。圧縮器56のシャフリング部51は入力信号をY信
号,R−Y信号,B−Y信号を各々8×8画素単位にブ
ロック化する。ブロック化された各信号はDCT部52
に出力され2次元DCT演算が行われる。DCT部52
は2次元DCT演算した結果をDC値から水平及び垂直
の周波数の高い成分AC成分へと量子化器54及び量子
化制御器53に出力する。量子化制御器53はDCT部
52から出力されたY信号20ブロック分とR−Y信号
5ブロック分、B−Y信号5ブロック分の計30ブロッ
クを一単位として、9種類の量子化ステップを用いた場
合のデータ量を演算する。ここで9種類の量子化は、入
力信号に1,1/2,1/4,1/8等を乗算すること
で行われる。量子化制御器53は量子化後の30ブロッ
ク分の信号に対し可変長符号化処理した符号語の累積加
算値と予め定めてある目標値を比較し、目標を越えない
最小の量子化値Brnを量子化器54に出力する。量子
化器54は量子化制御器53から供給された量子化ステ
ップ値Brnに基づき量子化を行う。なお、最大の量子
化値を用いても目標値を越えてしまう場合(オーバーフ
ロー)は、最大の量子化値を量子化器54に出力する。
First, the operation at the time of recording will be described. The digital video signal input to the input terminal 50 (one frame is composed of 720 × 480 pixels of a Y signal, the color difference signals of RY and BY signals are each composed of 180 × 480 pixels, and each pixel is 8 bits) is a compressor. 56, and the data amount is compressed. The shuffling unit 51 of the compressor 56 blocks the input signal into the Y signal, the RY signal, and the BY signal in units of 8 × 8 pixels. Each of the blocked signals is supplied to the DCT unit 52.
And a two-dimensional DCT operation is performed. DCT unit 52
Outputs the result of the two-dimensional DCT operation from the DC value to the AC component having higher horizontal and vertical frequencies to the quantizer 54 and the quantization controller 53. The quantization controller 53 performs nine types of quantization steps using a total of 30 blocks of 20 blocks for the Y signal, 5 blocks for the RY signal, and 5 blocks for the BY signal output from the DCT unit 52 as one unit. Calculate the data amount when used. Here, the nine types of quantization are performed by multiplying the input signal by 1, 1/2, 1/4, 1/8, or the like. The quantization controller 53 compares the cumulative addition value of the codewords subjected to the variable length coding with respect to the signal of 30 blocks after the quantization with a predetermined target value, and obtains the minimum quantization value Brn that does not exceed the target. Is output to the quantizer 54. The quantizer 54 performs quantization based on the quantization step value Brn supplied from the quantization controller 53. If the target value is exceeded even if the maximum quantization value is used (overflow), the maximum quantization value is output to the quantizer 54.

【0018】可変長符号化器55は入力信号のゼロ値の
連続する回数とその後に続く値の組み合わせを発生確率
順に短ビット長に割り付けたハフマン符号を用いて可変
長符号化を行う。各ブロックの成分はDC値を除き3〜
16ビットの符号語に可変長符号化される。可変長符号
化された各ブロックは9ビットのDC値と可変長符号化
されたAC成分及びブロックの最後を示すEOBで構成
される。
The variable-length encoder 55 performs variable-length encoding using a Huffman code in which a combination of the number of consecutive zero values of the input signal and the following value is assigned to a short bit length in order of occurrence probability. The components of each block are 3 to
It is variable-length coded into a 16-bit codeword. Each variable-length coded block includes a 9-bit DC value, a variable-length coded AC component, and an EOB indicating the end of the block.

【0019】圧縮器56の出力信号は、フォーマッタ5
7に供給され低周波数成分と高周波数成分に分けられフ
ォーマットされる。図5に30ブロックのフォーマット
形式を示す。30ブロックをフォーマットする時、3シ
ンクを形成する。シンク0及びシンク1には各Y信号の
為に10バイトの領域が10個、R−Y又はB−Y信号
の色差信号の為に5バイトの領域が5個用意されてい
る。圧縮器56から出力された信号はまずこの領域にD
C成分から順に周波数の低い成分の符号語から符号語単
位で隙間無く詰め込まれる。そしてY信号のブロックの
場合、合計のビット数が64以上になるまで詰め込まれ
る。つまり、符号語が欠けない最大の語数まで書き込む
(最大符号語長は16ビットであるのでY信号ブロック
では65ビット以上で次の符号語を詰め込んだ場合、8
0ビットの領域を越える可能性がある。よって65以上
のとき、中止される。同様に色差信号ブロックの場合は
25ビット以上で中止される。)。この処理が30ブロ
ックの信号に対して行われる。この処理で詰め込まれた
信号がLACであり、処理できなくあふれた信号が高域
信号HACである。
The output signal of the compressor 56 is output to the formatter 5
7 and is divided into low frequency components and high frequency components and formatted. FIG. 5 shows a format of 30 blocks. When formatting 30 blocks, 3 syncs are formed. Sink 0 and Sink 1 are provided with ten 10-byte areas for each Y signal, and five five-byte areas for color difference signals of RY or BY signals. The signal output from the compressor 56 first has a D
The code words of components having lower frequencies are packed without gaps in code word units in order from the C component. In the case of a Y signal block, the blocks are packed until the total number of bits becomes 64 or more. In other words, writing is performed up to the maximum number of words in which a code word is not missing (the maximum code word length is 16 bits, so if the next code word is packed with 65 bits or more in the Y signal block,
There is a possibility of exceeding the 0-bit area. Therefore, when it is 65 or more, it is stopped. Similarly, in the case of a color difference signal block, the operation is stopped at 25 bits or more. ). This process is performed on the signals of 30 blocks. The signal packed in this processing is the LAC, and the signal that cannot be processed and overflows is the high-frequency signal HAC.

【0020】フォーマッタ57では30ブロックの信号
の各LACを所定の位置に詰め込んだ後、残ったHAC
の詰め込み処理を行う。この動作を図6を用いて説明す
る。LACを詰め込んだ各10バイト叉は5バイトの領
域はEOBが詰め込まれなかった場合は、0〜16ビッ
トの空き領域が存在する。この空いた領域に隙間無くH
ACを詰め込んでいく。この時初めにシンク0で発生し
たHACはシンク0の空き領域に、シンク1で発生した
HACはシンク1の空き領域に詰め込まれる。詰め込み
は空き領域を完全に埋める様に行われる為、符号語は最
悪1ビット単位に分割され幾多の領域にまたがって詰め
込まれることもある。シンク0及びシンク1のHACが
各シンクの空き領域では詰め込み不可能であった場合、
シンク2に残りのHACが詰め込まれる。シンク2には
シンク0のHACをつめこんだ後、シンク1のHACが
詰め込まれる。ここで量子化制御器53において目標の
値を越えた為、最大の量子化で圧縮された信号が入力さ
れた場合、シンク2にすべてのHACは詰め込めない。
残ったHAC及びEOBは破棄される。詰め込める分の
HACを詰め込み、フォーマット処理の終了した信号は
第1のECC部58に出力される。同時に、シンク2で
のシンク0及びシンク1のHACの境目の位置を示すT
OP信号も出力される。第1のECC部58はフォーマ
ッタ57から出力された81個のシンクに対し2重誤り
訂正符号(ER0及びER1)及び各種制御信号(同期
信号SYNC,ID,Brn,TOP等)を付加し、変
調器59に出力する。変調器59は入力信号を8/10
変換し、第1の増幅器60に出力する。第1の増幅器6
0は入力信号を増幅し、第1の磁気ヘッド61に供給す
ることでテープ62に信号を記録する。図7にテープに
記録される1トラック分の信号の構成を示す。1トラッ
クは81個のシンク(Y信号540ブロック、R−Y信
号135ブロック、B−Y信号135ブロック)である
ので、10トラックで1フレームの映像信号が記録され
る事となる。
The formatter 57 packs each LAC of the 30-block signal into a predetermined position, and then stores the remaining HAC.
Is performed. This operation will be described with reference to FIG. If the EOB is not packed in the 10-byte or 5-byte area packed with the LAC, a free area of 0 to 16 bits exists. In this vacant area, H
Pack AC. At this time, the HAC generated in the first sink 0 is packed in the free area of the sink 0, and the HAC generated in the first sink is packed in the free area of the sink 1. Since the stuffing is performed so as to completely fill the empty area, the codeword may be divided in units of one bit at the worst and stuffed over many areas. When the HACs of the sinks 0 and 1 cannot be packed in the empty area of each sink,
Sink 2 is packed with the remaining HAC. After the sink 2 is filled with the HAC of the sink 0, the HAC of the sink 1 is packed. Here, since the quantization controller 53 exceeds the target value, when a signal compressed by the maximum quantization is input, all the HACs cannot be packed in the sink 2.
The remaining HAC and EOB are discarded. The packed HAC is packed, and the signal after the format processing is output to the first ECC unit 58. At the same time, T indicating the position of the boundary of the HAC between sink 0 and sink 1 at sink 2
An OP signal is also output. The first ECC unit 58 adds a double error correction code (ER0 and ER1) and various control signals (synchronization signals SYNC, ID, Brn, TOP, etc.) to the 81 syncs output from the formatter 57, and modulates them. Output to the container 59. Modulator 59 converts the input signal to 8/10
The signal is converted and output to the first amplifier 60. First amplifier 6
0 amplifies an input signal and supplies it to the first magnetic head 61 to record the signal on the tape 62. FIG. 7 shows the structure of a signal for one track recorded on a tape. One track is composed of 81 syncs (540 blocks for the Y signal, 135 blocks for the RY signal, and 135 blocks for the BY signal), so that one frame of the video signal is recorded on 10 tracks.

【0021】次に再生時の動作について述べる。第2の
磁気ヘッド64で再生された信号は、第2の増幅器63
に加えられる。第2の増幅器63で増幅された信号は、
復調器65で復調され第2のECC部66に出力され
る。第2のECC部66は記録時に付加した誤り訂正符
号ER0,ER1を用いて誤り位置を検出し、誤りの訂
正できる位置は訂正し、第1のメモリ67に書き込む。
ここで3シンクの内、シンク0及びシンク1に1ビット
でも訂正出来ない箇所の存在した場合、第1のメモリ6
7にはそのシンク内容は書き込まれない。第1のメモリ
67は1フレーム分、810シンクの容量を有している
ので、訂正出来ない誤りが記録再生系で発生した時、デ
フォーマッタ19に1フレーム前の同一位置のシンクの
信号を供給する。
Next, the operation at the time of reproduction will be described. The signal reproduced by the second magnetic head 64 is supplied to the second amplifier 63
Is added to The signal amplified by the second amplifier 63 is
The signal is demodulated by the demodulator 65 and output to the second ECC unit 66. The second ECC unit 66 detects an error position using the error correction codes ER0 and ER1 added at the time of recording, corrects a position where the error can be corrected, and writes the corrected position into the first memory 67.
In this case, if there is a portion where even one bit cannot be corrected in the sync 0 and the sync 1 out of the three syncs, the first memory 6
7 is not written with the contents of the sink. Since the first memory 67 has a capacity of 810 syncs for one frame, when an uncorrectable error occurs in the recording / reproducing system, the signal of the sync at the same position one frame before is supplied to the deformatter 19. I do.

【0022】図2に示す様に、3シンクの内でシンク2
に訂正出来ない誤りがあるパターン1の場合、第2のE
CC部66はデフォーマッタ72に修整フラグF2を出
力すると共に、第1のメモリ67にシンク0,シンク1
のデータを書き込む。3シンクの内でシンク0かシンク
1のどちらか一方に訂正出来ない誤りがあるパターン1
の場合は、第2のECC部66はデフォーマッタ72に
修整フラグF0(誤りがシンク0に存在する場合)叉は
F1(誤りがシンク1に存在する場合)を出力すると共
に誤りのないシンクを第1のメモリ67に書き込む。第
2のECC部66は第1のメモリ67に書き込まれた1
フレーム(810シンク)の信号を順次デフォーマッタ
72に出力する。デフォーマッタ72は第2のECC部
66から出力された信号を3シンク単位で第2のメモリ
68に記憶する。
As shown in FIG. 2, of the three sinks, the sink 2
In the case of pattern 1 having an uncorrectable error, the second E
The CC unit 66 outputs the modification flag F2 to the deformatter 72 and stores the sync 0 and the sync 1 in the first memory 67.
Write the data of Pattern 1 with uncorrectable error in either sync 0 or sync 1 of 3 syncs
In the case of (2), the second ECC unit 66 outputs a modification flag F0 (when an error exists in the sink 0) or F1 (when an error exists in the sink 1) to the deformatter 72, and outputs an error-free sink. Write to the first memory 67. The second ECC unit 66 stores the 1 written in the first memory 67.
The frame (810 sync) signals are sequentially output to the deformatter 72. The deformatter 72 stores the signal output from the second ECC unit 66 in the second memory 68 in units of three syncs.

【0023】第2のECC部66から修整フラグがデフ
ォーマッタ72に出力されない場合(3シンクとも訂正
可能な場合)についてデフォーマッタ72の動作につい
て説明する。符号長検出器69はまずシンク0及びシン
ク1のLACを1符号語ずつ検出してエンドフラグ挿入
器70に出力する。エンドフラグ挿入器70はこのLA
Cをそのまま第3のメモリ71に記憶する。符号長検出
器69は1ブロックのLACに割り当てられた領域の符
号語の語長を累積加算し、この値がY信号の場合65、
R−Y信号またはB−Y信号の場合25以上になった
時、LACが終了したことを検出する。そして、今度は
シンク0,シンク1,シンク2の残されたHACを順番
につなぎ合わせ符号長検出器69に出力する。この場
合、符号長検出器69はEOBを検出することで1ブロ
ックの符号語が終了したことを知る。各ブロックのHA
C及びEOBはエンドフラグ挿入器70を経由して第3
のメモリ71に、同一ブロックのLACに結合される形
で記憶される。図3のAに第3のメモリ71に記憶され
る各ブロックの信号形式の一例を示す。なお、符号長検
出器69は1ブロックのLACの符号語数の累積加算演
算と同時に、30ブロックの合計語数TC及び検出でき
たEOBの個数のカウントも行う。TCが3シンクの領
域のデータ値より越えたにも関わらず、検出されたEO
Bの個数が30以下の場合、量子化に於けるオーバーフ
ローと判断し、現在処理中のHACにEOBを付加す
る。そして、以後のブロックのLACにもEOBを付加
することで、可変長復号器73の誤動作を防止する。
The operation of the deformatter 72 when the modification flag is not output from the second ECC unit 66 to the deformatter 72 (when all three syncs can be corrected) will be described. The code length detector 69 first detects the LACs of the sink 0 and the sink 1 one codeword at a time and outputs the codewords to the end flag inserter 70. The end flag inserter 70 uses this LA
C is stored in the third memory 71 as it is. The code length detector 69 accumulatively adds the word lengths of the codewords in the area allocated to one block of LAC, and when this value is a Y signal, 65,
In the case of the RY signal or the BY signal, when it becomes 25 or more, it is detected that the LAC has ended. Then, the remaining HACs of the sink 0, the sink 1, and the sink 2 are sequentially connected and output to the code length detector 69. In this case, the code length detector 69 detects that the code word of one block is completed by detecting the EOB. HA of each block
C and EOB are sent through the end flag inserter 70 to the third
In the same block as the LAC of the same block. FIG. 3A shows an example of the signal format of each block stored in the third memory 71. The code length detector 69 counts the total word number TC of 30 blocks and the number of detected EOBs simultaneously with the cumulative addition operation of the number of LAC code words of one block. Despite the TC exceeding the data value in the area of 3 syncs, the detected EO
If the number of B is 30 or less, it is determined that an overflow occurs in the quantization, and EOB is added to the currently processed HAC. Then, the EOB is also added to the LACs of the subsequent blocks, thereby preventing a malfunction of the variable length decoder 73.

【0024】図2のパターン2の様にシンク0に誤りが
発生し、第2のECC部66からデフーマッタ72に修
整フラグF0が入力される場合について述べる。符号長
検出器69はまずシンク0及びシンク1のLAC信号を
1符号語ずつ検出してエンドフラグ挿入器70に出力す
る。エンドフラグ挿入器70はシンク0の各ブロックの
LACの最後にEOBを付加して第3のメモリ71に記
憶する。シンク1のLACはそのまま第3のメモリ71
に記憶する。次にシンク1の各ブロックにつながるHA
Cだけを第2のメモリ68から読み出し第3のメモリ7
1のLACに結合する形で記憶する。シンク0は誤りが
あった為、第2のECC部66により以前のフレームの
シンクで置き換えられているのでシンク2のHACと接
続すると可変長複号器73で誤動作を起こす。EOBを
挿入する事でシンク0のLACの可変長信号の復号を可
能にする。図3のBに第3のメモリ71に記憶される各
ブロックの信号形式の一例を示す。以上のことで3シン
クに誤りがあった場合でも半分の15ブロック分を前フ
レームの信号で補間する事無く復号できる。
The case where an error occurs in the sink 0 as in the pattern 2 in FIG. 2 and the modification flag F0 is input from the second ECC unit 66 to the defo-matter 72 will be described. The code length detector 69 first detects the LAC signals of sync 0 and sync 1 one codeword at a time, and outputs them to the end flag inserter 70. The end flag inserter 70 adds EOB to the end of the LAC of each block of the sink 0 and stores it in the third memory 71. The LAC of the sink 1 is stored in the third memory 71 as it is.
To memorize. Next, HA connected to each block of sink 1
Only C is read from the second memory 68 and the third memory 7
One LAC is stored in a coupled form. Since the sync 0 has an error, it has been replaced by the sync of the previous frame by the second ECC unit 66. Therefore, when the sink 0 is connected to the HAC of the sync 2, a malfunction occurs in the variable length decoder 73. The insertion of the EOB enables decoding of the variable length signal of the LAC of the sink 0. FIG. 3B shows an example of the signal format of each block stored in the third memory 71. As described above, even when there is an error in three syncs, half of the 15 blocks can be decoded without interpolating with the signal of the previous frame.

【0025】次に、図2のパターン1の様にシンク2に
誤りが発生し、第2のECC部66からデフォーマッタ
72に修整フラグF2が入力される場合について述べ
る。符号長検出器69は第2のメモリ68に記憶された
シンク0及びシンク1のLACを検出し、エンドフラグ
挿入器70に出力する。エンドフラグ挿入器70は各ブ
ロックのLACの最後のエンドフラグを付加し、第3の
メモリ71に記憶する。この時各シンクのHACは破棄
される。以上の事で3シンクで記録され30ブロックの
信号はLACだけで可変長信号の復号が可能になる。
Next, a case where an error occurs in the sink 2 as in the pattern 1 in FIG. 2 and the modification flag F2 is input from the second ECC unit 66 to the deformatter 72 will be described. The code length detector 69 detects the LACs of the sink 0 and the sink 1 stored in the second memory 68 and outputs them to the end flag inserter 70. The end flag inserter 70 adds the last end flag of the LAC of each block and stores it in the third memory 71. At this time, the HAC of each sink is discarded. As described above, a signal of 30 blocks recorded by 3 syncs can be decoded into a variable length signal only by the LAC.

【0026】第3のメモリ71に記憶された信号は、可
変長復号器73に出力される。可変長復号器73は入力
された信号から符号語を検出し、復号する。可変長復号
器73の出力信号は逆量子化器74に供給され、記録時
の量子化の逆数が乗算され、IDCT部75に出力され
る。IDCT部75は入力された信号に対し2次元ID
CT演算を行い、デシャフリング部76に出力する。デ
シャフリング部76は入力信号をY信号,R−Y信号,
B−Y信号の並列信号に並べ換え出力端子77に出力す
る。78は可変長復号器73,逆量子化器74,IDC
T部75,デシャフリング部76で構成された伸張器で
ある。
The signal stored in the third memory 71 is output to the variable length decoder 73. The variable length decoder 73 detects and decodes a codeword from the input signal. The output signal of the variable length decoder 73 is supplied to an inverse quantizer 74, where the output signal is multiplied by a reciprocal of quantization at the time of recording, and output to an IDCT unit 75. The IDCT unit 75 applies a two-dimensional ID to the input signal.
It performs a CT operation and outputs the result to the deshuffling unit 76. The deshuffling unit 76 converts the input signal into a Y signal, an RY signal,
The signals are rearranged into parallel signals of BY signals and output to the output terminal 77. Reference numeral 78 denotes a variable length decoder 73, an inverse quantizer 74, and an IDC
This is an expander including a T section 75 and a deshuffling section 76.

【0027】以上のように本実施例によれば、m×n画
素で構成された1叉は複数個のブロックを離散コサイン
変換及び可変長符号化を用いて圧縮する圧縮器(56)
と、圧縮器から出力された各ブロックの圧縮信号を周波
数成分の低い方から予め定められたデータ量以下だけ分
割した低周波数成分とそれを越える高周波数成分に分け
て、両成分を異なる領域にフォーマットするフォーマッ
タ(57)と、フォーマッタの出力信号に誤り訂正符号
を付加する誤り訂正器(58)と、誤り訂正器の出力信
号を記録及び再生する記録再生器(60〜64)と、記
録再生器から再生された信号を入力し、付加された誤り
訂正符号から訂正不可能な位置を示す修整フラグを出力
する誤り訂正器(66)と、誤り訂正器から出力された
信号及び修整フラグを入力し、修整フラグに基づき、各
ブロックの低周波数成分にエンドフラグを付加するデフ
ォーマッタ(72)と、デフォーマッタの出力信号を入
力とし、入力信号を伸張する伸張器(78)とを設ける
ことで、3シンク内に誤りが発生した場合、誤りの発生
していないシンクに記録された各ブロックの低域成分だ
けでの可変長信号復号を可能とすることで、以前のフレ
ームの情報を用いた補間を削減でき画質劣化を軽減する
ことを可能にする。
As described above, according to the present embodiment, the compressor (56) for compressing one or a plurality of blocks composed of m × n pixels using discrete cosine transform and variable length coding.
And, the compressed signal of each block output from the compressor is divided into a low frequency component divided by a predetermined data amount or less from a lower frequency component and a high frequency component exceeding the same, and both components are divided into different regions. A formatter (57) for formatting, an error corrector (58) for adding an error correction code to an output signal of the formatter, a recording / reproducing device (60-64) for recording and reproducing an output signal of the error correcting device, and a recording / reproducing device Error corrector (66) for inputting a signal reproduced from the error corrector and outputting a correction flag indicating an uncorrectable position from the added error correction code, and a signal output from the error corrector and a correction flag. A deformatter (72) for adding an end flag to the low-frequency component of each block based on the modification flag, and an output signal of the deformatter, By providing the decompressor (78), when an error occurs in three syncs, it is possible to decode a variable-length signal using only low-frequency components of each block recorded in a sink where no error occurs. By doing so, it is possible to reduce the interpolation using the information of the previous frame and to reduce the image quality deterioration.

【0028】なお、本実施例において30ブロックを3
シンクに分けフォーマットしたが異なる値でも良い。
In this embodiment, 30 blocks are replaced by 3
Although the format is divided into sinks, different values may be used.

【0029】[0029]

【発明の効果】以上のように本発明は、3シンク内に誤
りが発生した場合、誤りの発生していないシンクに記録
された各ブロックの低域成分だけでの可変長信号復号を
可能とする。その結果、以前のフレームの情報を用いた
補間を削減でき動きの激しい映像信号の補間や高速再生
等の様に数フレームに1度しか画面の同一箇所を再生出
来ないような場合の画質劣化を軽減することが可能とな
り、その実用的効果は大きい。
As described above, according to the present invention, when an error occurs in three syncs, it is possible to decode a variable-length signal using only the low-frequency component of each block recorded in the sink where no error has occurred. I do. As a result, it is possible to reduce the interpolation using the information of the previous frame and to reduce the image quality when the same portion of the screen can be reproduced only once in several frames, such as interpolation of a video signal with high motion or high-speed reproduction. It can be reduced, and the practical effect is great.

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

【図1】本発明の実施例における映像信号処理装置の構
成を示すブロック図
FIG. 1 is a block diagram illustrating a configuration of a video signal processing device according to an embodiment of the present invention.

【図2】同実施例における誤り状態を説明するための説
明図
FIG. 2 is an explanatory diagram for explaining an error state in the embodiment;

【図3】同実施例におけるデフォーマッタ動作を説明す
るための説明図
FIG. 3 is an explanatory diagram for explaining a deformatter operation in the embodiment.

【図4】従来の映像信号処理装置の構成を示すブロック
FIG. 4 is a block diagram showing a configuration of a conventional video signal processing device.

【図5】同従来例の映像信号のフォーマットを説明する
ための模式図
FIG. 5 is a schematic diagram for explaining a format of a video signal of the conventional example.

【図6】同従来例における1ブロックの構成を示す模式
FIG. 6 is a schematic diagram showing a configuration of one block in the conventional example.

【図7】同従来例における1トラックに記録される信号
の構成を示す模式図
FIG. 7 is a schematic diagram showing a configuration of a signal recorded on one track in the conventional example.

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

50 入力端子 51 シャフリング部 52 DCT部 53 量子化制御器 54 量子化器 55 可変長符号化器 56 圧縮器 57 フォーマッタ 58,66 ECC部 59 変調器 60,63 増幅器 61,64 磁気ヘッド 67,68,71 メモリ 62 テープ 69 符号長検出器 70 エンドフラグ挿入器 72 デフォーマッタ 73 可変長復号器 74 逆量子化器 75 IDCT部 76 デシャフリング部 77 出力端子 78 伸張器 Reference Signs List 50 input terminal 51 shuffling unit 52 DCT unit 53 quantization controller 54 quantizer 55 variable length encoder 56 compressor 57 formatter 58, 66 ECC unit 59 modulator 60, 63 amplifier 61, 64 magnetic head 67, 68 , 71 Memory 62 Tape 69 Code Length Detector 70 End Flag Inserter 72 Deformatter 73 Variable Length Decoder 74 Dequantizer 75 IDCT Unit 76 Deshuffling Unit 77 Output Terminal 78 Expander

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】m×n画素で構成された1叉は複数個のブ
ロックを離散コサイン変換及び可変長符号化を用いて圧
縮する圧縮器と、 前記圧縮器から出力された各ブロックの圧縮信号を周波
数成分の低い方から予め定められたデータ量以下だけ分
割した低周波数成分とそれを越える高周波数成分に分け
て、両成分を異なる領域にフォーマットするフォーマッ
タと、 前記フォーマッタの出力信号に誤り訂正符号を付加する
誤り訂正器と、 前記誤り訂正器の出力信号を記録及び再生する記録再生
器と、 前記記録再生器から再生された信号を入力し、付加され
た誤り訂正符号から訂正不可能な位置を示す修整フラグ
を出力する誤り訂正器と、 前記誤り訂正器から出力された信号及び修整フラグを入
力し、修整フラグに基づき、各ブロックの低周波数成分
にエンドフラグを付加するデフォーマッタと、 前記デフォーマッタの出力信号を入力とし、入力信号を
伸張する伸張器とを備えた映像信号処理装置。
1. A compressor for compressing one or more blocks composed of m × n pixels using discrete cosine transform and variable length coding, and a compressed signal of each block output from the compressor. Is divided into a low frequency component divided by a predetermined data amount or less from a lower frequency component and a high frequency component exceeding it, and a formatter that formats both components into different regions, and an error correction to an output signal of the formatter. An error corrector that adds a code, a recording / reproducing device that records and reproduces an output signal of the error corrector, and a signal that is reproduced from the recording / reproducing device is input and cannot be corrected from the added error correction code. An error corrector that outputs a modification flag indicating a position; a signal output from the error corrector and a modification flag are input; and a low-frequency component of each block is input based on the modification flag. A video signal processing device comprising: a deformatter for adding an end flag to a minute; and a decompressor that receives an output signal of the deformatter as input and decompresses the input signal.
【請求項2】デフォーマッタに入力されたa個のブロッ
ク分の入力信号に、エンドフラグがb個(a>b)しか
含まれていない場合、(a+1)番目以降のブロックの
信号にエンドフラグを付加することを特徴とする請求項
1記載の映像信号処理装置。
2. An end signal is input to a (a + 1) -th block if the input signals of a blocks input to the deformatter include only b (a> b) end flags. The video signal processing device according to claim 1, wherein
JP20484992A 1992-07-31 1992-07-31 Video signal processing device Expired - Fee Related JP2720717B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20484992A JP2720717B2 (en) 1992-07-31 1992-07-31 Video signal processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20484992A JP2720717B2 (en) 1992-07-31 1992-07-31 Video signal processing device

Publications (2)

Publication Number Publication Date
JPH0654294A JPH0654294A (en) 1994-02-25
JP2720717B2 true JP2720717B2 (en) 1998-03-04

Family

ID=16497417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20484992A Expired - Fee Related JP2720717B2 (en) 1992-07-31 1992-07-31 Video signal processing device

Country Status (1)

Country Link
JP (1) JP2720717B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3355888B2 (en) * 1995-09-19 2002-12-09 松下電器産業株式会社 Image coding recording and playback device
JP4674593B2 (en) * 2007-04-03 2011-04-20 ソニー株式会社 Image encoding device
JP4674613B2 (en) * 2008-04-15 2011-04-20 ソニー株式会社 ISDB transmission device, ISDB transmission method, ISDB reception device, and ISDB reception method

Also Published As

Publication number Publication date
JPH0654294A (en) 1994-02-25

Similar Documents

Publication Publication Date Title
US7075983B2 (en) Image processing apparatus
US5349384A (en) Apparatus and methods for transmitting compressed digital image signals
US5532837A (en) Digital video signal processing apparatus
US5587803A (en) Digital signal recording and reproducing apparatus and error-correcting apparatus
JP3385623B2 (en) Transmission equipment for digital information signals
JP3046226B2 (en) Bit stream arrangement / restoration method for digital video tape recorder and data compression apparatus and decompression apparatus suitable for the method
JPH05260438A (en) Digital magnetic tape recording and reproducing method for variable speed reproducing
JP2720717B2 (en) Video signal processing device
JPH0324887A (en) Encoder for digital image signal
JP3248640B2 (en) Video recording device and video recording method
EP0508606B1 (en) Video-audio digital recording/reproducing apparatus
JP3034172B2 (en) Image data recording and playback device
JPH066757A (en) Image data recorder and image data reproducing device
US6192182B1 (en) Digital information signal recording apparatus and method thereof
EP0772366A2 (en) A digital recording/reproducing apparatus
JP3206481B2 (en) Digital image signal recording device
JP3125471B2 (en) Framer for digital video signal recorder
JP2985586B2 (en) Recording and playback device
KR0155736B1 (en) Digital recording/reproducing method and apparatus
JP3139242B2 (en) Video signal processing device
JP4281396B2 (en) Image compression encoding apparatus and method
KR0147621B1 (en) Digital video cassette tape recording method and device for trick play at limited fast speeds
JP3397777B2 (en) Video playback device and video playback method
JP3070336B2 (en) Video signal modification device
JPH0686259A (en) Transmitter for block conversion encoded data

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071121

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101121

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees