Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3332220B2 - Digital signal reproducing apparatus and reproducing method - Google Patents
[go: Go Back, main page]

JP3332220B2 - Digital signal reproducing apparatus and reproducing method - Google Patents

Digital signal reproducing apparatus and reproducing method

Info

Publication number
JP3332220B2
JP3332220B2 JP03244599A JP3244599A JP3332220B2 JP 3332220 B2 JP3332220 B2 JP 3332220B2 JP 03244599 A JP03244599 A JP 03244599A JP 3244599 A JP3244599 A JP 3244599A JP 3332220 B2 JP3332220 B2 JP 3332220B2
Authority
JP
Japan
Prior art keywords
data
block
decoding
digital
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03244599A
Other languages
Japanese (ja)
Other versions
JP2000232626A (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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP03244599A priority Critical patent/JP3332220B2/en
Publication of JP2000232626A publication Critical patent/JP2000232626A/en
Application granted granted Critical
Publication of JP3332220B2 publication Critical patent/JP3332220B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、可変長符号化方式
を用いて圧縮符号化された信号を再生するディジタル信
号再生装置及び再生方法に関し、再生時に異常データを
検出することにより良好な再生信号が得られるようにし
たことを特徴とするものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal reproducing apparatus and a reproducing method for reproducing a signal which has been compressed and coded by using a variable length coding method. Is obtained.

【0002】[0002]

【従来の技術】民生用デジタルビデオ装置の規格とし
て、DVと呼ばれる規格が提案され、実用化されてい
る。このDV規格によるデジタル信号記録再生装置で
は、「図解デジタルビデオ読本」P41〜P60(久保
田 幸雄 編著、オーム社、1995年)に記載される
如くフレーム内の画素データの相関を利用してデジタル
情報信号の帯域圧縮を行い、25Mbpsの記録レート
によりデジタル情報信号を記録している。
2. Description of the Related Art As a standard for consumer digital video devices, a standard called DV has been proposed and put into practical use. In the digital signal recording / reproducing apparatus according to the DV standard, as described in "Illustrated Digital Video Readers" P41 to P60 (edited by Yukio Kubota, Ohmsha, 1995), a digital information signal is utilized by utilizing the correlation of pixel data in a frame. , And a digital information signal is recorded at a recording rate of 25 Mbps.

【0003】DV規格によるデジタル信号記録再生装置で
は、1フレーム分の画像情報をまず水平方向8画素×垂
直方向8画素よりなるブロックに分割してDCT(離散
コサイン変換)を行い、DCTを終えた画像情報に、量
子化、可変長符号化の処理を施して磁気テープに記録し
ている。そして、磁気テープ記録される信号を再生する
際には、記録時のDCT、量子化、可変長符号化に対応
した可変長復号化、逆量子化、逆DCTの処理を行って
画像情報を復元している。
[0003] In a digital signal recording / reproducing apparatus based on the DV standard, one frame of image information is first divided into blocks each consisting of 8 pixels in the horizontal direction and 8 pixels in the vertical direction, and DCT (discrete cosine transform) is performed. The image information is subjected to quantization and variable-length coding, and is recorded on a magnetic tape. When reproducing a signal recorded on a magnetic tape, image information is restored by performing DCT, quantization, variable-length decoding corresponding to variable-length encoding, inverse quantization, and inverse DCT at the time of recording. are doing.

【0004】また、上記装置では、記録時に所定の誤り訂正
符号を付与した後に記録信号を磁気テープに記録すると
共に、再生時には、この誤り訂正符号を用いて誤り訂正
処理を施して再生信号を復元している。
In the above apparatus, a recording signal is recorded on a magnetic tape after a predetermined error correction code is added at the time of recording, and at the time of reproduction, an error correction process is performed using the error correction code to restore a reproduction signal. are doing.

【0005】[0005]

【発明が解決しようとする課題】ところが、以上のよう
な圧縮符号化を施すディジタル信号記録再生装置では、
再生時に異常なデータがあると再生データが破綻するこ
とがある。特に、DCTを行ったデータに対して可変長
符号化を行い、これを復号化する際に異常なデータがあ
ると、逆DCTした再生信号は市松模様の不自然な画像
となることが多い。即ち、このような異常データにより
エラーが発生してしまうと、画面上で目につきやすくな
る。
However, in the digital signal recording / reproducing apparatus for performing the above-mentioned compression encoding,
If there is abnormal data during reproduction, the reproduced data may be broken. In particular, if the data subjected to DCT is subjected to variable-length coding and there is abnormal data when decoding the data, the reproduced signal subjected to inverse DCT often becomes an unnatural image with a checkerboard pattern. That is, if an error occurs due to such abnormal data, the error data becomes more noticeable on the screen.

【0006】このようなデータ再生時のエラーは、通常、誤
り訂正処理によりエラーデータが訂正された後に出力さ
れるためエラーは発生しないが、記録再生時にテープ/
ヘッド系のトラブルが発生した場合、テープの繰り返し
再生を行った場合、テープの損傷により再生信号が欠落
した場合、データを記録した装置と再生する装置とが異
なる場合などで、特に再生信号の品質が劣化した場合に
は、誤り訂正処理で訂正しきれないデータが再生されて
しまうため、このような問題が発生することがある。
[0006] Such an error during data reproduction is normally output after error data has been corrected by error correction processing, so that no error occurs.
The quality of the playback signal is particularly high when a head-related trouble occurs, when the tape is repeatedly played, when the playback signal is lost due to damage to the tape, or when the device that recorded the data is different from the device that plays the data. Is deteriorated, data that cannot be completely corrected by the error correction processing is reproduced, so that such a problem may occur.

【0007】また、ディジタルインターフェースを介して外
部から入力される圧縮信号を復号する場合、あるいは、
ダビングや伝送を繰り返した信号を復号する場合、ディ
ジタルインターフェースの回線品質、ダビングや伝送に
伴う信号の劣化等により正しい再生データが得られなく
なり、同様の問題が発生することがある。また、ダビン
グや伝送を繰り返した場合には、この市松模様の如く不
自然に再生されたデータを記録側では正常なデータとし
て記録してしまうことも考えられる。
[0007] When decoding a compressed signal input from the outside via a digital interface, or
When decoding a signal that has been repeatedly dubbed or transmitted, correct reproduction data cannot be obtained due to the line quality of the digital interface, signal deterioration due to dubbing or transmission, and the same problem may occur. Further, when dubbing and transmission are repeated, data reproduced unnaturally like a checkered pattern may be recorded as normal data on the recording side.

【0008】本発明は、このような再生データの破綻を回避
することを目的としており、信号再生時に異常なデータ
が検出された場合には、正常なデータのみを出力するこ
とにより再生データの破綻を回避しようとするものであ
る。
[0008] An object of the present invention is to avoid such a failure of reproduced data. When abnormal data is detected during signal reproduction, only normal data is output to output the reproduced data. Is to try to avoid.

【0009】[0009]

【課題を解決するための手段】以上の課題を解決するた
めに、本発明に係るディジタル信号再生装置は、1画面
を水平方向及び垂直方向に分割して得た矩形ブロックに
直交変換処理及び可変長符号化処理を施し、更に、複数
個の矩形ブロックを1つの圧縮ブロックとして前記圧縮
ブロックにおける符号量が所定値以下となるよう圧縮符
号化したデータを矩形ブロック毎に設けられる所定量の
格納領域に第1のデータとして順次格納すると共に、格
納しきれずにあふれたデータを前記圧縮ブロックの他の
矩形ブロックを格納するための格納領域に第2のデータ
として格納したディジタルデータを復号化して、画像デ
ータを復元するディジタル信号再生装置であり、前記デ
ィジタルデータの復号化の際に異常があった場合に、前
記第1及び第2のデータのうちの何れのデータに異常が
あったかを識別する識別手段と、 復号化を終えたディジ
タルデータの使用を制限する使用制限手段とを備え、
記識別手段の識別結果に応じて、前記使用制限手段にお
ける使用制限の条件を変更することを特徴とするもので
ある。
In order to solve the above-mentioned problems, a digital signal reproducing apparatus according to the present invention performs orthogonal transformation processing and variable conversion into rectangular blocks obtained by dividing one screen in a horizontal direction and a vertical direction. A storage area of a predetermined amount provided for each rectangular block, which is subjected to a long encoding process, and is further provided with data obtained by compressing and encoding a plurality of rectangular blocks into one compressed block so that the code amount in the compressed block becomes a predetermined value or less. And digital data in which data which is not completely stored and which is stored as second data in a storage area for storing another rectangular block of the compressed block is decoded, and a digital signal reproducing apparatus for restoring data, the de
If there is an error while decoding the digital data,
An abnormality is found in any of the first and second data.
Identification means for identifying the presence of
And a use restriction means for restricting the use of the barrel data, before
In accordance with the identification result of the identification means,
It is characterized in that the condition of the use restriction is changed .

【0010】また、本発明に係るディジタル信号再生方
法は、1画面を水平方向及び垂直方向に分割して得た矩
形ブロックに直交変換処理及び可変長符号化処理を施
し、更に、複数個の矩形ブロックを1つの圧縮ブロック
として前記圧縮ブロックにおける符号量が所定値以下と
なるよう圧縮符号化したデータを矩形ブロック毎に設け
られる所定量の格納領域に第1のデータとして順次格納
すると共に、格納しきれずにあふれたデータを前記圧縮
ブロックの他の矩形ブロックを格納するための格納領域
に第2のデータとして格納したディジタルデータを復号
化して、画像データを復元するディジタル信号再生方法
であり、前記ディジタルデータの復号化の際に異常があ
った場合に、前記第1及び第2のデータのうちの何れの
データに異常があったかを識別すると共に、復号化を終
えたディジタルデータの使用を制限し、前記識別結果に
応じて、前記復号化を終えたディジタルデータの使用制
限の条件を変更することを特徴とするものである。
A digital signal reproducing method according to the present invention performs an orthogonal transformation process and a variable length encoding process on a rectangular block obtained by dividing one screen in a horizontal direction and a vertical direction. The data obtained by compression-encoding the blocks as one compression block so that the code amount in the compression block is equal to or less than a predetermined value is sequentially stored as first data in a predetermined amount of storage area provided for each rectangular block, and is stored. the overflow data without decodes the digital data stored as the second data storage area for storing the other of the rectangular block of the compressed block, a digital signal reproduction method for restoring the image data, the digital An error occurred during data decryption
The first data and the second data.
Identify any abnormal data and terminate decoding.
Limits the use of digital data obtained
The use of digital data after the decoding
It is characterized in that the limit conditions are changed .

【0011】そして、前記ディジタルデータの復号化の
際に異常があった場合に、前記異常があった圧縮ブロッ
ク内の第2のデータの全部または一部を使用せずに0符
号で置き換えることを特徴とするものであり、また、
記ディジタルデータの復号化の際に異常があった場合
に、前記異常があった圧縮ブロックのデータを既に復号
化を終えた同一画面位置の圧縮ブロックのデータで置き
換えることを特徴とするものである。
[0011] The digital data is decoded.
If there is abnormal when, are those wherein the replaced without the use of all or a portion of the second data in the compression block the had abnormality in 0 code, also, before
When there is an error in decoding digital data
Further, the data of the compressed block having the abnormality is replaced with the data of the compressed block at the same screen position which has already been decoded.

【0012】また、本発明に係るディジタル信号再生装
置及び再生方法は、 1画面を水平方向及び垂直方向に分
割して得た矩形ブロックに直交変換処理及び可変長符号
化処理を施し、更に、複数個の矩形ブロックを1つの圧
縮ブロックとして前記圧縮ブロックにおける符号量が所
定値以下となるよう圧縮符号化したデータを矩形ブロッ
ク毎に設けられる所定量の格納領域に第1のデータとし
て順次格納すると共に、格納しきれずにあふれたデータ
を前記圧縮ブロックの他の矩形ブロックを格納するため
の格納領域に第2のデータとして格納したディジタルデ
ータを復号化して、画像データを復元するディジタル信
号再生装置及び再生方法であり、 前記ディジタルデータ
は、前記直交変換処理を施すことにより得られた1つの
DC係数と所定個数のAC係数とを前記矩形ブロック毎
に有し、 前記ディジタルデータの復号化の際に異常が検
出された場合には、異常が検出された異常データの存在
する圧縮ブロック内の第2のデータの使用を制限し、前
記所定個数のAC係数より多数のAC係数が得られた場
合に、前記所定個数のAC係数を越えて得られたAC係
数を成す可変長符号に係るデータを全て異常データとみ
なすことを特徴とするものである。
A digital signal reproducing apparatus according to the present invention
The position and playback method is to divide one screen horizontally and vertically.
Orthogonal transformation processing and variable-length code for rectangular blocks obtained by dividing
And a plurality of rectangular blocks are compressed
The amount of code in the compressed block is
Compression-encoded data that is less than the
The first data is stored in a predetermined amount of storage area provided for each
And store them sequentially, and overflow data that cannot be stored.
To store another rectangular block of the compressed block
Digital data stored as the second data in the storage area of
Digital signal to decode data and restore image data
Signal reproducing apparatus and reproducing method, wherein the digital data
Is the one obtained by performing the orthogonal transformation
DC coefficients and a predetermined number of AC coefficients are assigned to each rectangular block.
Has to, abnormality detection during decoding of the digital data
If issued, the existence of abnormal data where the abnormality was detected
The use of the second data in the compressed block to be performed is restricted, and when a larger number of AC coefficients than the predetermined number of AC coefficients are obtained, the variable that constitutes the AC coefficient obtained beyond the predetermined number of AC coefficients is restricted. It is characterized in that all data related to long codes is regarded as abnormal data.

【0013】[0013]

【発明の実施の形態】図1は、ディジタル信号再生装置
の主な構成を説明するためのブロック部であり、図1
(a)はDV規格によるディジタル信号記録装置の主な
構成、図1(b)は、このようにして記録された磁気テ
ープから信号を再生するディジタル信号再生装置の主な
構成を示すブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram for explaining a main configuration of a digital signal reproducing apparatus.
FIG. 1A is a block diagram showing a main configuration of a digital signal recording device conforming to the DV standard, and FIG. 1B is a block diagram showing a main configuration of a digital signal reproducing device for reproducing a signal from a magnetic tape recorded in this way. is there.

【0014】なお、ここでは、まずDV規格のディジタル信
号記録装置における信号記録系の処理について説明す
る。図1(a)において1フレーム分の画像データがフ
レームメモリ1(FM)に蓄えられると、フレームメモ
リ1(FM)からは水平方向8画素×垂直方向8画素よ
りなるDCTブロックが順次DCT回路2(DCT)に
出力される。
Here, the processing of the signal recording system in the DV standard digital signal recording apparatus will be described first. In FIG. 1A, when one frame of image data is stored in the frame memory 1 (FM), a DCT block consisting of 8 pixels in the horizontal direction × 8 pixels in the vertical direction is sequentially output from the frame memory 1 (FM). (DCT).

【0015】DCT回路2は、フレームメモリ1から出力さ
れた画像データをDCTブロック単位でDCT(離散コ
サイン変換)し、図2に示す如く1個のDC係数と、6
3個のAC係数とを得る。そして、この63個のAC係
数は、同図矢印で示す如く周波数成分の低いものから高
いものへと順に並べ替えが行われた後(ジグザグスキャ
ン)、量子化回路3にて所定の量子化テーブルにて量子
化される。
The DCT circuit 2 performs DCT (Discrete Cosine Transform) on the image data output from the frame memory 1 in units of DCT blocks, and as shown in FIG.
And three AC coefficients. The 63 AC coefficients are rearranged in order from the lowest frequency component to the highest frequency component (zigzag scan) as indicated by the arrow in FIG. Is quantized.

【0016】量子化を終えた画像データは、次にランレング
ス符号化回路4(RLC)に入力され、量子化によりそ
の値が小さくされた63個のAC係数は、図3に示す如
く、連続する0の数であるゼロラン値(r)と0以外の
値であるバリュー(n)との組よりなるランレングス符
号に順次符号化される。即ち、量子化を終えたAC係数
において、連続する0の個数がカウントされ、この0の
カウント値とこの0に続く0以外のAC係数の値とが一
組で符号化される。なお、図示の如く、量子化を終えた
AC係数の高域部分において63個目のAC係数が0の
場合には、最後に連続する0の値は全てまとめてEOB
(End of Block)なる符号で置き換えられる。このよう
に、量子化を終えた画像データを順次符号化し、0以外
の値が存在しなくなったらEOB符号で符号化を終了す
る。
The quantized image data is then input to a run-length encoding circuit 4 (RLC), and the 63 AC coefficients whose values have been reduced by quantization are, as shown in FIG. Are sequentially encoded into a run-length code consisting of a set of a zero run value (r), which is the number of zeros, and a value (n), which is a value other than zero. In other words, the number of consecutive 0s is counted in the quantized AC coefficient, and the count value of the 0 and the value of the AC coefficient other than 0 following the 0 are encoded as a set. As shown in the figure, when the 63rd AC coefficient is 0 in the high-frequency portion of the quantized AC coefficient, all of the last consecutive 0 values are collectively EOB.
(End of Block). In this way, the quantized image data is sequentially encoded, and when there is no longer a value other than 0, the encoding is terminated with the EOB code.

【0017】そして、このランレングス符号よりなる画像デ
ータは、可変長符号化回路5(VLC)にて、所定の可
変長符号化テーブルに基づき、図3に示すV1乃至V6
如く可変長符号に変換される。
[0017] Then, the image data comprising run length code, in the variable-length coding circuit 5 (VLC), based on a predetermined variable length coding table, variable length as V 1 to V 6 shown in FIG. 3 Converted to sign.

【0018】なお、以上の圧縮符号化は、1フレームを構成
する水平走査線数が525本でフィールド周波数が60
HzであるNTSC方式等のテレビジョン信号では、図
4に示す如く画面上で水平方向に隣接する4個の輝度信
号のDCTブロック(DCT0乃至DCT3)と、これ
らのDCTブロックと画面上で同一位置を成す1個の色
差信号CRのDCTブロック(DCT4)及び1個の色
差信号CBのDCTブロック(DCT5)により形成さ
れるマクロブロックをシャフリングと呼ばれる画面上の
異なる位置から所定の規則に従い5つ集めた5マクロブ
ロックを1ビデオセグメントとして、このビデオセグメ
ントの可変長符号化後の符号量がビデオセグメントに割
り当れられる符号量にできるだけ近く、かつその割り当
て符号量を越えることがないように量子化テーブルが設
定される。
In the above-described compression coding, one frame has 525 horizontal scanning lines and a field frequency of 60.
As shown in FIG. 4, in the case of a television signal of the NTSC system or the like, four DCT blocks (DCT0 to DCT3) of four luminance signals adjacent to each other in the horizontal direction on the screen, and these DCT blocks have the same position on the screen. The macroblocks formed by one DCT block (DCT4) of one color difference signal CR and one DCT block (DCT5) of one color difference signal CB are formed from five different positions on the screen called shuffling according to a predetermined rule. The collected five macroblocks are regarded as one video segment, and the quantized code amount of this video segment after variable-length encoding is set as close as possible to the code amount allocated to the video segment so as not to exceed the allocated code amount. The conversion table is set.

【0019】そして、可変長符号に変換された画像データ
は、更にパッキング回路6に入力され、ここでは可変長
符号化された各DCTブロックのデータを周波数成分の
異なる複数のグループに分割して格納する。既に説明し
たように、5マクロブロックにより構成される1ビデオ
セグメントの符号量は、ほぼ一定となるよう圧縮符号化
がなされており、この5マクロブロックのデータが5シ
ンクブロックとして出力されることになる。
The image data converted into the variable length code is further input to the packing circuit 6, where the data of each variable length coded DCT block is divided into a plurality of groups having different frequency components and stored. I do. As described above, the code amount of one video segment composed of five macroblocks is compression-encoded so as to be substantially constant, and the data of the five macroblocks is output as five sync blocks. Become.

【0020】各シンクブロックのデータエリアに相当するユ
ニットは、1マクロブロックを構成するDCTブロック
数である6つの領域に分割されており、この6つの領域
には各DCTブロックのデータがその周波数成分の低い
ものから優先的に格納されていく。
The unit corresponding to the data area of each sync block is divided into six regions, which are the number of DCT blocks constituting one macro block. In each of the six regions, the data of each DCT block has its frequency component. Are stored in priority from the lowest one.

【0021】ここで、可変長符号化処理されたDCTブロッ
クの符号量がシンクブロック内で分割された領域のデー
タ格納量を越えている場合には、全てのDCTブロック
のデータを1つの領域に格納することができないが、格
納しきれずにあふれたデータは、その周波数成分の低い
ものから優先的に同一シンクブロック内の他の領域に格
納される。また、同一シンクブロック内の他の領域に格
納しきれずにあふれたデータは、同一ビデオセグメント
を成す他のシンクブロック内の領域に格納される。
If the code amount of the variable-length-encoded DCT block exceeds the data storage amount of the divided area in the sync block, the data of all DCT blocks is stored in one area. Data that cannot be stored but overflows without being stored is preferentially stored in another area in the same sync block from the one with the lowest frequency component. Also, data that cannot be stored in another area in the same sync block and is overflown is stored in an area in another sync block forming the same video segment.

【0022】そして、シンクブロック内の分割された領域に
そのまま格納された比較的低域のデータは、第1のグル
ープに属する第1のデータとして扱われ、シンクブロッ
ク内の分割された領域に格納できずに同一シンクブロッ
ク内の他の領域に格納された第1のデータより高域であ
るデータは、第2のグループに属する第2のデータとし
て扱われ、同一シンクブロック内の他の領域に格納でき
ずに同一ビデオセグメントを成す他のシンクブロック内
の領域に格納された最も高域であるデータは、第3のグ
ループに属する第3のデータとして扱われる。
[0022] Then, the relatively low-frequency data directly stored in the divided area in the sync block is treated as the first data belonging to the first group and stored in the divided area in the sync block. Data that cannot be stored and is higher in frequency than the first data stored in another area in the same sync block is treated as second data belonging to the second group, and is stored in another area in the same sync block. The highest-frequency data that cannot be stored and is stored in an area in another sync block that forms the same video segment is treated as third data belonging to a third group.

【0023】図5は、5つのシンクブロック(SB)に1ビ
デオセグメント分のデータを格納した例を示すものであ
り、図4で示す6つのDCTブロック(DCT0乃至D
CT5)のデータは、シンクブロックのデータエリアに
相当するユニットを分割して得た6つの分割領域(1−
1乃至1−6)にその周波数成分の低いものから優先的
に格納される。
FIG. 5 shows an example in which data of one video segment is stored in five sync blocks (SBs). The six DCT blocks (DCT0 to DTC) shown in FIG.
The data of CT5) includes six divided areas (1- 1) obtained by dividing a unit corresponding to the data area of the sync block.
1 to 1-6) are preferentially stored in ascending order of frequency components.

【0024】ここで、輝度信号Y0のDCTブロック(DC
T0)の符号量が分割された領域のデータ格納量に満た
ないとすると、全て第1のデータとして分割領域1−1
に格納されている。そして、輝度信号Y1のDCTブロ
ック(DCT1)の符号量が分割された領域のデータ格
納量を越えているとすると、その周波数成分の低いもの
から優先的に第1のデータとして分割領域1−2に格納
され、格納しきれずにあふれたデータは例えば分割領域
1−1に第2のデータとして格納される。また、他のシ
ンクブロック内(SB2乃至SB5等)に格納されるべ
きデータであるが、格納しきれずに分割領域1−6に格
納されたデータは第3のデータとして扱われる。
Here, the DCT block of the luminance signal Y0 (DCT block)
If the code amount of T0) is less than the data storage amount of the divided area, all of the divided areas 1-1 as the first data
Is stored in Assuming that the code amount of the DCT block (DCT1) of the luminance signal Y1 exceeds the data storage amount of the divided area, the data having the lower frequency component is preferentially set as the first data in the divided area 1-2. The data which is not completely stored and overflows is stored as the second data in the divided area 1-1, for example. Data to be stored in other sync blocks (SB2 to SB5, etc.), but data that cannot be completely stored and is stored in the divided area 1-6 is treated as third data.

【0025】そして、このパッキング処理では、各シンクブ
ロック内の所定領域にDCTブロックのDC係数の情
報、量子化を行った際の量子化テーブルの情報、またそ
の他の関連情報も格納され、パッキングデータとしてこ
れらのデータが出力される。
In the packing process, information of DC coefficients of the DCT block, information of a quantization table when quantization is performed, and other related information are also stored in a predetermined area in each sync block. Are output as these data.

【0026】このようなパッキング処理を終えたパッキング
データは、先程のシャフリングに対応したデシャフリン
グ処理によりデータ配列を元に戻す並び替えが行われた
後に記録処理部7で誤り訂正符号やその他の必要情報が
付加され、更に変調されて記録媒体に記録される。ま
た、この時記録媒体に記録することなく、誤り訂正符号
やその他の必要情報を付加した後に、ディジタルインタ
ーフェース等を介して出力されても良い。
The packing data having been subjected to such packing processing is subjected to an error correction code or other necessary data in the recording processing unit 7 after the data array is rearranged by the deshuffling processing corresponding to the above shuffling to restore the original data arrangement. Information is added, and further modulated and recorded on a recording medium. Further, at this time, the data may be output via a digital interface or the like after adding an error correction code or other necessary information without recording on the recording medium.

【0027】次に、図1(b)を用いてディジタル信号再生
装置における信号再生系処理について説明する。同図に
おいて、8は記録媒体から再生される再生データを復調
し、更に誤り訂正処理を施して記録時のパッキングデー
タを得る再生処理部である。なお、ディジタルインター
フェースを介して入力されるデータに対してもまた、誤
り訂正処理を施して記録時のパッキングデータを得るこ
とができる。そして、再生処理部8からのパッキングデ
ータが記録時のビデオセグメント単位でアンパッキング
回路9に入力される。
Next, a signal reproducing system process in the digital signal reproducing apparatus will be described with reference to FIG. In the figure, reference numeral 8 denotes a reproduction processing section for demodulating reproduction data reproduced from a recording medium and performing error correction processing to obtain packing data at the time of recording. Note that data input through the digital interface can also be subjected to error correction processing to obtain packing data at the time of recording. Then, the packing data from the reproduction processing unit 8 is input to the unpacking circuit 9 in video segment units at the time of recording.

【0028】そして、アンパッキング回路9の内部では、記
録時の第1乃至第3のデータが夫々分割され、DCTブ
ロック毎に元の可変長符号のデータ列に復元される。可
変長符号のデータ列は、可変長復号化回路10(VL
D)にて可変長符号化テーブルを参照しながら連続する
0の数と0以外の値との組よりなるランレングス符号に
復元され、更にランレングス復号化回路11(RLD)
では、必要な箇所に0を挿入することにより基のデータ
列に復元される。
Then, inside the unpacking circuit 9, the first to third data at the time of recording are each divided and restored to the original data stream of the variable length code for each DCT block. The data string of the variable length code is supplied to the variable length decoding circuit 10 (VL
In D), the run-length decoding circuit 11 (RLD) restores a run-length code consisting of a set of consecutive 0's and non-zero values with reference to the variable-length coding table.
Then, the data is restored to the original data string by inserting 0s at necessary places.

【0029】ランレングス復号化回路11で復元されたデー
タ列は、別途パッキングデータから取り出された量子化
テーブル情報を基に逆量子化回路12で逆量子化され、
記録時の各DCTブロックのAC係数が復元される。そ
して、復元されたAC係数は、逆ジグザグスキャンによ
り2次元データに戻されて逆DCT回路13で記録時の
水平方向8画素×垂直方向8画素よりなる1DCTブロ
ック分の画像データが復元される。
The data sequence restored by the run-length decoding circuit 11 is inversely quantized by the inverse quantization circuit 12 based on the quantization table information extracted separately from the packing data.
The AC coefficient of each DCT block at the time of recording is restored. The restored AC coefficient is returned to two-dimensional data by inverse zigzag scan, and the inverse DCT circuit 13 restores image data for one DCT block consisting of 8 pixels in the horizontal direction × 8 pixels in the vertical direction at the time of recording.

【0030】フレームメモリ14(FM)には、逆DCT回
路13からの画像データがDCTブロック毎に順次格納
され、1画面分の画像データの復元が完了すると画像信
号データとして出力される。
Image data from the inverse DCT circuit 13 is sequentially stored in the frame memory 14 (FM) for each DCT block, and is output as image signal data when the restoration of image data for one screen is completed.

【0031】次に、図6以降を用いて本発明に係るディジタ
ル信号再生装置及び再生方法について説明する。なお、
ここではまず、本発明に係るディジタル信号再生装置の
第1の実施の形態を図6を用いて説明する。
Next, a digital signal reproducing apparatus and a reproducing method according to the present invention will be described with reference to FIG. In addition,
Here, a first embodiment of the digital signal reproducing apparatus according to the present invention will be described with reference to FIG.

【0032】同図に示すように、図1(b)に示したアンパ
ッキング回路9は符号データ切り出し部9a、符号長テ
ーブル9b、グルーピングメモリ部9c、書込制御部9
d、第1のメモリ9e、第2のメモリ9f、読出制御部
9g、再生データ制限部9h、DCT・VLCカウンタ
9i、切替器9jにより構成され、再生処理部8からの
ビデオセグメント単位のパッキングデータは、まず符号
データ切り出し部9aに入力される。
As shown in FIG. 1, the unpacking circuit 9 shown in FIG. 1B includes a code data cutout unit 9a, a code length table 9b, a grouping memory unit 9c, and a write control unit 9.
d, a first memory 9e, a second memory 9f, a read control unit 9g, a reproduction data restriction unit 9h, a DCT / VLC counter 9i, and a switching unit 9j, and packing data in video segment units from the reproduction processing unit 8. Is first input to the code data cutout unit 9a.

【0033】符号データ切り出し部9aは、その内部に1ビ
デオセグメント分のメモリを備え、1ビデオセグメント
分のデータを蓄えた後に符号長テーブル9bを参照しな
がら記録時の第1乃至第3のデータの切り出しを行う。
例えば、図5に示すような1ビデオセグメント分のパッ
キングデータが再生処理部8から入力された場合、符号
データ切り出し部9aはこれらのデータを一旦その内部
に蓄え、まず各シンクブロック(SB1乃至SB5)に
おける第1のデータのみを切り出してグルーピングメモ
リ部9cに出力する。
The code data cutout unit 9a has a memory for one video segment therein, stores the data for one video segment, and then refers to the code length table 9b to record the first to third data at the time of recording. To cut out.
For example, when packing data for one video segment as shown in FIG. 5 is input from the reproduction processing unit 8, the code data cutout unit 9a temporarily stores these data therein, and first, the respective sync blocks (SB1 to SB5). ) Is cut out and output to the grouping memory unit 9c.

【0034】即ち、符号データ切り出し部9aは符号長テー
ブル9bを参照しながら、まず分割領域1−1における
第1のデータ、分割領域1−2における第1のデータ、
分割領域1−3における第1のデータの順に、分割領域
5−6における第1のデータまでを切り出す。
That is, the code data cutout unit 9a firstly refers to the code length table 9b to obtain first data in the divided area 1-1, first data in the divided area 1-2,
The first data in the divided area 5-6 are cut out in the order of the first data in the divided area 1-3.

【0035】そして、次に分割領域1−1における第2のデ
ータ、分割領域1−3における第2のデータ、分割領域
1−5における第2のデータの順に、第2のデータを全
て切り出し、最後に分割領域1−6及びその他の分割領
域に格納される第3のデータが全て切り出される。
Then, all the second data is cut out in the order of the second data in the divided area 1-1, the second data in the divided area 1-3, and the second data in the divided area 1-5. Finally, all the third data stored in the divided area 1-6 and the other divided areas are cut out.

【0036】ここで、符号データ切り出し部9aにより切り
出された可変長符号よりなる第1のデータはグルーピン
グメモリ部9c内の第1のメモリ領域、第2のデータは
第2のメモリ領域、第3のデータは第3のメモリ領域に
夫々書き込まれるよう符号データ切り出し部9aはグル
ーピング情報を出力し、書込制御部9dがこのグルーピ
ング情報に基づき書き込み制御を行う。
Here, the first data consisting of the variable length code cut out by the code data cutout unit 9a is the first memory area in the grouping memory unit 9c, the second data is the second memory area, and the third data is The code data cutout unit 9a outputs grouping information so that the data is written in the third memory area, and the write control unit 9d performs write control based on the grouping information.

【0037】このようにして、再生処理部8からの1ビデオ
セグメント分のパッキングデータは、夫々第1乃至第3
のデータに切り出され、切り出された第1乃至第3のデ
ータがグルーピングメモリ部9c内の第1乃至第3のメ
モリ領域に夫々書き込まれるが、符号データ切り出し部
9aから出力される1ビデオセグメント分のグルーピン
グ情報は第1のメモリ9eにも出力され、その内部に書
き込まれる。
As described above, the packing data for one video segment from the reproduction processing unit 8 is the first to third data, respectively.
And the extracted first to third data are written in the first to third memory areas in the grouping memory unit 9c, respectively, and are divided into one video segment output from the code data extraction unit 9a. Is also output to the first memory 9e and written therein.

【0038】また、再生処理部8からの可変長符号が定義外
の符号であったり、符号が途中で打ち切られているよう
な場合は、符号データ切り出し部9aはこのようにエラ
ーが発生している可変長符号がそのDCTブロック内で
先頭から何番目の符号であるかを示す可変長符号番号
(VLC No.)、そして、エラーが発生していたD
CTブロックがそのビデオセグメント内で先頭から何番
目のDCTブロックであるかを示すDCTブロック番号
(DCT No.)を第2のメモリ9fに出力する。な
お、可変長符号番号(VLC No.)は、図3に示し
た如く1を初期値としており、DCTブロック番号(D
CT No.)は、図5に示した如く0を初期値として
いる。
If the variable length code from the reproduction processing unit 8 is an undefined code or the code is truncated in the middle, the code data cutout unit 9a generates an error as described above. Variable-length code number (VLC No.) indicating the order of the variable-length code from the beginning in the DCT block, and D in which an error has occurred.
The DCT block number (DCT No.) indicating the number of the DCT block from the beginning of the video block in the video segment is output to the second memory 9f. The variable length code number (VLC No.) has 1 as an initial value as shown in FIG.
CT No. ) Has 0 as an initial value as shown in FIG.

【0039】1ビデオセグメント分のパッキングデータがグ
ルーピングメモリ9cに書き込まれると、次にこれらの
データの読み出しが行われるが、読出制御部9gは第1
のメモリ9e内に格納されている1ビデオセグメント分
のグルーピング情報に基づき各DCTブロックを構成す
る可変長符号を読み出す。
When the packing data for one video segment is written in the grouping memory 9c, the data is read out next.
The variable length codes constituting each DCT block are read based on the grouping information for one video segment stored in the memory 9e.

【0040】ここで、図7は第1のメモリ9e内に格納され
ている1ビデオセグメント分のグルーピング情報の一例
を示すものであり、DCTブロック番号0に関しては第
1のデータのみが存在し、この第1のデータの可変長符
号番号(VLC No.)は1乃至8であることが示さ
れる。また、DCTブロック番号1に関しては第1のデ
ータ及び第2のデータが存在し、第1のデータの可変長
符号番号(VLCNo.)は1乃至10、そして第2の
データの可変長符号番号(VLC No.)は11及び
12であることが示される。また、DCTブロック番号
29に関しては第1のデータ乃至第3のデータが存在
し、第1のデータの可変長符号番号(VLC No.)
は1乃至11、そして第2のデータの可変長符号番号
(VLC No.)は12、第3のデータの可変長符号
番号(VLC No.)は13及び14であることが示
される。
Here, FIG. 7 shows an example of grouping information for one video segment stored in the first memory 9e. For DCT block number 0, only the first data exists. The variable length code number (VLC No.) of the first data is shown to be 1 to 8. Also, DCT block number 1 has first data and second data, the first data has a variable length code number (VLC No.) of 1 to 10, and the second data has a variable length code number (VLC No.). VLC No.) are shown to be 11 and 12. The DCT block number 29 includes first data to third data, and the variable length code number (VLC No.) of the first data.
Indicates that the variable length code number (VLC No.) of the second data is 12, and that the variable length code number (VLC No.) of the third data is 13 and 14.

【0041】読出制御部9gは、DCT・VLCカウンタ9
iの示すDCTブロック番号(DCT No.)及び可
変長符号番号(VLC No.)の順に、第1のメモリ
9eに書き込まれているグルーピング情報を参照しなが
ら適切な読み出しアドレスを設定し、DCTブロック毎
の可変長符号を順次読み出す。
The reading control unit 9g includes a DCT / VLC counter 9
i, an appropriate read address is set in the order of the DCT block number (DCT No.) and the variable-length code number (VLC No.) while referring to the grouping information written in the first memory 9e. Each variable length code is sequentially read.

【0042】ここで、DCT・VLCカウンタ9iが出力す
るDCTブロック番号(DCTNo.)及び可変長符号
番号(VLC No.)は、読出制御部9gに出力され
ると同時に再生データ制限部9hにも出力され、再生デ
ータ制限部9hは第2のメモリ9f内に可変長符号番号
及びDCTブロック番号が書き込まれているか否かを確
認し、可変長符号番号及びDCTブロック番号が書き込
まれていない時には、再生データ制限部9hは切替器9
jを端子イ側に切り替え、グルーピングメモリ部9cか
ら読み出された1ビデオセグメント分のデータがDCT
ブロック毎に全て切替器9jから出力される。
Here, the DCT block number (DCT No.) and the variable length code number (VLC No.) output from the DCT / VLC counter 9i are output to the read control unit 9g and simultaneously to the reproduction data restriction unit 9h. The reproduced data restriction unit 9h checks whether the variable length code number and the DCT block number are written in the second memory 9f, and when the variable length code number and the DCT block number are not written, The reproduction data limiting unit 9h is provided with a switch 9
j is switched to the terminal A side, and the data of one video segment read out from the grouping
All are output from the switch 9j for each block.

【0043】ところが、第2のメモリ9f内に可変長符号番
号及びDCTブロック番号が書き込まれている時には、
再生データ制限部9hは切替器9jを必要に応じて端子
ロ側に切り替え、グルーピングメモリ部9cから読み出
された1ビデオセグメント分のデータにおける一部がE
OB符号を示す図3で示したV6のような可変長符号に
置き換えられて出力される。
However, when the variable length code number and the DCT block number are written in the second memory 9f,
The reproduction data restriction unit 9h switches the switch 9j to the terminal B side as necessary, and a part of the data for one video segment read from the grouping memory unit 9c is E.
Is replaced by the variable-length codes are output as V 6 shown in FIG. 3 showing the OB code.

【0044】また、第2のメモリ9f内に可変長符号番号及
びDCTブロック番号が書き込まれている際には、再生
データ制限部9hは、第1のメモリ9e内のグルーピン
グ情報を参照しながらエラーが発生している可変長符号
が第1のデータ乃至第3のデータのうちの何れのデータ
であるかを判別する。
When the variable-length code number and the DCT block number are written in the second memory 9f, the reproduction data restricting unit 9h refers to the grouping information in the first memory 9e to make an error. It is determined which one of the first data to the third data is the variable length code in which is generated.

【0045】そして、再生データ制限部9hは、エラーが発
生している可変長符号が第1のデータ乃至第3のデータ
のうちの何れのデータであるかに応じてEOB符号を示
す可変長符号で置き換えるデータを変化させる。図8
は、エラーが発生している可変長符号が第1のデータ、
第2のデータ、第3のデータの夫々の時に、EOB符号
を示す可変長符号で置き換えられるデータを示すもので
ある。
[0045] Then, the reproduction data restricting unit 9h performs a variable length code indicating an EOB code according to which of the first data to the third data the variable length code in which an error has occurred. To change the data to be replaced. FIG.
Indicates that the variable length code in which the error has occurred is the first data,
In each of the second data and the third data, the data is replaced with a variable length code indicating an EOB code.

【0046】ここではまず、エラーが発生している可変長符
号が第1のデータであると判別された場合について説明
する。その際、再生データ制限部9hは、エラーが発生
している可変長符号の存在するDCTブロックに関し
て、エラーが発生している可変長符号及びそれ以降の可
変長符号が切替器9jから出力されることのないよう、
切替器9jを切り替えてこれらの可変長符号をEOB符
号を示す可変長符号で置き換える。
First, a case will be described in which it is determined that the variable-length code in which an error has occurred is the first data. At this time, the reproduction data limiting unit 9h outputs, from the switch 9j, the variable length code in which the error has occurred and the subsequent variable length code with respect to the DCT block having the variable length code in which the error has occurred. So as not to be
The switch 9j is switched to replace these variable length codes with variable length codes indicating EOB codes.

【0047】そして、エラーが発生している可変長符号の存
在するマクロブロック内の他の全てのDCTブロック、
即ち、例えば図5で示すDCTブロック番号8のDCT
ブロック内の可変長符号にエラーが発生している場合に
は、DCTブロック番号6及び7、9乃至11の5個の
DCTブロックに関して、第2のデータ及び第3のデー
タを成す可変長符号が切替器9jから出力されることの
ないよう、切替器9jを切り替えてこれらの可変長符号
をEOB符号を示す可変長符号で置き換える。
Then, all other DCT blocks in the macroblock in which the error-occurring variable length code exists,
That is, for example, the DCT of DCT block number 8 shown in FIG.
When an error has occurred in the variable length code in the block, the variable length codes forming the second data and the third data are changed with respect to the five DCT blocks of DCT block numbers 6 and 7, and 9 to 11. The switch 9j is switched to replace these variable-length codes with variable-length codes indicating the EOB code so that the output is not output from the switch 9j.

【0048】また、エラーが発生している可変長符号の存在
するマクロブロック以外のマクロブロック内の全てのD
CTブロック、例えばDCTブロック番号8のDCTブ
ロック内の可変長符号にエラーが発生している場合に
は、DCTブロック番号0乃至5、12乃至29の24
個のDCTブロックに関して、第3のデータを成す可変
長符号が切替器9jから出力されることのないよう、切
替器9jを切り替えてこれらの可変長符号をEOB符号
を示す可変長符号で置き換える。
[0048] Also, all the Ds in the macroblock other than the macroblock in which the variable length code in which the error has occurred are present.
If an error has occurred in the variable length code in the CT block, for example, the DCT block of DCT block number 8, 24 of DCT block numbers 0 to 5, 12 to 29
For the DCT blocks, the switch 9j is switched to replace these variable-length codes with variable-length codes indicating EOB codes so that the variable-length codes constituting the third data are not output from the switch 9j.

【0049】次に、エラーが発生している可変長符号が第2
のデータである場合について説明すると、再生データ制
限部9hは、エラーが発生している可変長符号の存在す
るマクロブロック内の全てのDCTブロック、即ち、例
えばDCTブロック番号8のDCTブロック内の可変長
符号にエラーが発生している場合には、DCTブロック
番号6乃至11の6個のDCTブロックに関して、第2
のデータ及び第3のデータを成す可変長符号が切替器9
jから出力されることのないよう、切替器9jを切り替
えてこれらの可変長符号をEOB符号を示す可変長符号
で置き換える。
Next, the variable length code in which the error has occurred is
To explain the case of the data, the reproduced data restricting unit 9h outputs all the DCT blocks in the macroblock in which the variable length code in which the error has occurred, that is, the variable data in the DCT block of DCT block number 8, for example. If an error has occurred in the long code, the second DCT block of DCT block numbers 6 to 11 is
And the variable-length code forming the third data
The variable length code is replaced by a variable length code indicating an EOB code by switching the switch 9j so as not to be output from j.

【0050】また、エラーが発生している可変長符号の存在
するマクロブロック以外のマクロブロック内の全てのD
CTブロック、例えばDCTブロック番号8のDCTブ
ロック内の可変長符号にエラーが発生している場合に
は、DCTブロック番号0乃至5、12乃至29の24
個のDCTブロックに関して、第3のデータを成す可変
長符号が切替器9jから出力されることのないよう、切
替器9jを切り替えてこれらの可変長符号をEOB符号
を示す可変長符号で置き換える。
[0050] Also, all the Ds in the macroblock other than the macroblock in which the variable length code in which the error has occurred are present.
If an error has occurred in the variable length code in the CT block, for example, the DCT block of DCT block number 8, 24 of DCT block numbers 0 to 5, 12 to 29
For the DCT blocks, the switch 9j is switched to replace these variable-length codes with variable-length codes indicating EOB codes so that the variable-length codes constituting the third data are not output from the switch 9j.

【0051】そして、エラーが発生している可変長符号が第
3のデータである場合について説明すると、再生データ
制限部9hは、エラーが発生している可変長符号の存在
するビデオセグメント内の全てのDCTブロック、即
ち、DCTブロック番号0乃至29の30個のDCTブ
ロックに関して、第3のデータを成す可変長符号が切替
器9jから出力されることのないよう、切替器9jを切
り替えてこれらの可変長符号をEOB符号を示す可変長
符号で置き換える。
The case where the variable-length code in which an error has occurred is the third data will be described. , That is, 30 DCT blocks of DCT block numbers 0 to 29, the switching unit 9j is switched by switching the switching unit 9j so that the variable length code constituting the third data is not output from the switching unit 9j. The variable length code is replaced with a variable length code indicating an EOB code.

【0052】なお、切替器9jのこれらの切り替えは、EO
B符号を示す可変長符号で置き換えたいDCTブロック
番号(DCT No.)及び可変長符号番号(VLCN
o.)をDCT・VLCカウンタ9iが示した際に、再
生データ制限部9hが切替器9jに切り替え信号を出力
することによりデータの置き換えが行われる。
Note that these switching operations of the switch 9j are performed by EO
The DCT block number (DCT No.) and variable length code number (VLCN) to be replaced with the variable length code indicating the B code
o. ) Is indicated by the DCT / VLC counter 9i, the reproduction data limiting unit 9h outputs a switching signal to the switch 9j, thereby replacing the data.

【0053】このようにして切替器9jから出力される可変
長符号が、DCTブロック順に可変長復号化回路10
(VLD)に出力されて可変長復号化処理され、更に、
ランレングス復号化回路11(RLD)でランレングス
復号化処理が施される。
The variable length code output from the switch 9j in this manner is converted into a variable length decoding circuit 10
(VLD) and subjected to variable length decoding processing.
Run-length decoding processing is performed in the run-length decoding circuit 11 (RLD).

【0054】なお、以上の実施例ではエラーが発生した可変
長符号が第1のデータ乃至第3のデータのうちの何れの
データであるかを判別し、その判別結果に応じてEOB
符号を示す可変長符号に置き換えるデータを変化させた
が、例えばエラーが発生した可変長符号が第1のデータ
乃至第3のデータのうちの何れであるかに拘わらず、エ
ラーが発生した可変長符号の存在するビデオセグメント
内の全てのDCTブロックに関して、第2のデータ及び
第3のデータをEOB符号を示す可変長符号で置き換え
るよう制御させても構わない。
In the above embodiment, it is determined which of the first to third data the variable length code in which the error has occurred is, and EOB is determined according to the determination result.
The data to be replaced with the variable length code indicating the code is changed. For example, regardless of which of the first to third data the variable length code in which the error occurs is the variable length in which the error occurs. Regarding all DCT blocks in the video segment where the code exists, the second data and the third data may be controlled to be replaced with the variable length code indicating the EOB code.

【0055】また、その際にエラーが発生した可変長符号の
存在するDCTブロックに関しては、エラーが発生して
いる可変長符号及びそれ以降の可変長符号をEOB符号
を示す可変長符号で置き換え、エラーが発生した可変長
符号の存在するDCTブロック以外のDCTブロックに
関しては、第2のデータ及び第3のデータをEOB符号
を示す可変長符号で置き換えるよう制御させても構わな
い。また、エラーが発生した可変長符号の存在するビデ
オセグメント内の全てのDCTブロックに関して、予め
定めた個数のAC係数あるいは可変長符号だけを出力す
るように制御させても構わない。
For the DCT block having a variable length code in which an error has occurred, the variable length code in which the error has occurred and the subsequent variable length codes are replaced with a variable length code indicating an EOB code. For DCT blocks other than the DCT block in which the variable length code in which the error has occurred, control may be performed so that the second data and the third data are replaced with the variable length code indicating the EOB code. In addition, for all DCT blocks in the video segment in which the error occurred variable-length code exists, control may be performed so that only a predetermined number of AC coefficients or variable-length codes are output.

【0056】このようにエラーが発生した可変長符号が第1
のデータ乃至第3のデータのうちの何れであるかとは無
関係に、EOB符号を示す可変長符号に置き換えるデー
タを決定する場合は、再生データ制限部9h内での制御
を簡略化させることができる。
The variable length code in which the error has occurred is the first
In the case where data to be replaced with a variable-length code indicating an EOB code is determined regardless of which of the data to the third data, the control in the reproduction data restriction unit 9h can be simplified. .

【0057】また、エラーが発生した可変長符号の存在する
マクロブロック内のDCTブロックと、このマクロブロ
ックより前に再生されたマクロブロック内のDCTブロ
ック、そしてこれより後に再生されたマクロブロック内
のDCTブロックに対して夫々異なる制御を行っても良
い。
Also, the DCT block in the macro block in which the error occurred variable-length code exists, the DCT block in the macro block reproduced before this macro block, and the DCT block in the macro block reproduced after this Different control may be performed on each DCT block.

【0058】このように、本発明に係るディジタル信号再生
装置及び再生方法では、可変長符号にエラーが発生して
いる場合に、このエラーが発生しているDCTブロック
内のエラー発生箇所及びそれ以降の可変長符号のみなら
ず、これらのエラーの影響を受けている可能性がある同
一ビデオセグメント内の他のDCTブロックのデータを
EOB符号を示す符号で置き換えることによりエラーデ
ータが再生されることを防止し、再生データが破綻する
可能性を低くしている。
As described above, in the digital signal reproducing apparatus and the reproducing method according to the present invention, when an error has occurred in the variable length code, the error occurrence location in the DCT block where the error has occurred and Error data is reproduced by replacing not only the variable-length code of the above but also the data of other DCT blocks in the same video segment that may be affected by these errors with a code indicating the EOB code. This prevents the possibility that reproduced data will fail.

【0059】ところが、以上に示す実施の形態では、可変長
符号に異常があり、エラーが発生していても偶然に何ら
かの符号に対応付けられて復号化され、エラーを検出で
きない場合が考えられる。この場合、可変長符号の正し
い境界がわからなくなるため、無意味なランダムデータ
が復号されることになり、このDCTブロックにおける
復号が異常な状態で継続され、復号後のAC係数のデー
タ数が本来あるべき63個を越えてしまうことが考えら
れる。
However, in the above-described embodiment, there may be a case where an error is detected in the variable-length code, and even if an error occurs, the error is accidentally associated with some code and decoded, and the error cannot be detected. In this case, since the correct boundary of the variable-length code is not known, meaningless random data is decoded, decoding in this DCT block is continued in an abnormal state, and the number of data of AC coefficients after decoding is originally smaller. It is possible to exceed 63 which should be.

【0060】第2の実施の形態によるディジタル信号再生装
置は、このような問題に対応するためのものであり、そ
の構成を図9に示す。同図に示すように、第2の実施の
形態では可変長復号化回路10は、復号部10a及び復
号テーブル10bにより構成され、アンパッキング回路
9からの可変長符号列は復号部10aに入力される。そ
して、復号部10aは記録時の可変長符号化テーブルに
対応する復号テーブル10bを参照しながら可変長復号
化処理を行う。そして、復号部10aは図3に示したよ
うなランレングス符号のゼロラン値(r)及びバリュー
(n)を夫々別々に出力する。
The digital signal reproducing apparatus according to the second embodiment is designed to deal with such a problem, and its configuration is shown in FIG. As shown in the figure, in the second embodiment, the variable length decoding circuit 10 includes a decoding unit 10a and a decoding table 10b, and the variable length code string from the unpacking circuit 9 is input to the decoding unit 10a. You. Then, the decoding unit 10a performs the variable length decoding process with reference to the decoding table 10b corresponding to the variable length encoding table at the time of recording. Then, the decoding unit 10a separately outputs the zero run value (r) and the value (n) of the run length code as shown in FIG.

【0061】ランレングス復号化回路11は、ダウンカウン
タ11a、保持回路11b、論理和回路11c、切替器
11dにより構成され、可変長復号化回路10からのゼ
ロラン値(r)はダウンカウンタ11a、バリュー
(n)は保持回路11bに夫々入力される。
The run length decoding circuit 11 comprises a down counter 11a, a holding circuit 11b, an OR circuit 11c, and a switch 11d. The zero run value (r) from the variable length decoding circuit 10 is output from the down counter 11a, (N) is input to the holding circuit 11b.

【0062】そして、ダウンカウンタ11aの出力と後述す
るエラー制御部14からのエラー検出信号との論理和が
論理和回路11cから出力されて、この出力信号に基づ
き切替器11dが切り替えられて、保持回路11bに保
持されている可変長符号のバリュー(n)あるいは0符
号の何れか一方が選択的に出力される。
Then, the logical sum of the output of the down counter 11a and the error detection signal from the error control unit 14, which will be described later, is output from the logical sum circuit 11c, and the switch 11d is switched based on the output signal and held. Either the value (n) of the variable length code or the 0 code held in the circuit 11b is selectively output.

【0063】図10は、アンパッキング回路9からの可変長
符号にエラーがなく、エラー制御部14がエラー検出信
号を出力しない場合のランレングス復号化回路11内に
おけるダウンカウンタ11aでのカウント値及び各構成
の出力を示すものであり、例えば、図3で示したような
可変長符号V1に対しては、ゼロラン値0がダウンカウ
ンタ11aに出力されて、バリューn1が保持回路11
bに出力される。また、可変長符号V2に対しては、ゼ
ロラン値3がダウンカウンタ11aに出力されて、バリ
ューn2が保持回路11bに出力される。
FIG. 10 shows the count value of the down counter 11a in the run-length decoding circuit 11 when the variable length code from the unpacking circuit 9 has no error and the error control unit 14 does not output an error detection signal. It shows the output of each configuration. For example, for a variable length code V 1 as shown in FIG. 3, a zero run value 0 is output to the down counter 11 a and a value n 1 is stored in the holding circuit 11.
b. Further, with respect to the variable length code V 2, zero run value 3 is outputted to the down counter 11a, value n 2 is outputted to the holding circuit 11b.

【0064】ダウンカウンタ11aは、入力されたゼロラン
値(r)を所定のクロック毎にダウンカウントし、値が
0以外の時はH、0の時はLの信号を出力する。また、
保持回路11bは入力されたバリュー(n)を次のバリ
ューによって書き換えが行われるまで保持している。
The down counter 11a counts down the inputted zero run value (r) at every predetermined clock, and outputs a signal of H when the value is other than 0 and a signal of L when the value is 0. Also,
The holding circuit 11b holds the input value (n) until the next value is rewritten.

【0065】この時、エラー制御部15はエラー検出信号を
出力していないため常にLの信号を出力し、論理和回路
11cの出力は、ダウンカウンタ11aの出力信号と同
一のものになる。そして、切替器11dは論理和回路1
1cの出力信号がHである期間は0符号を選択出力し、
Lである期間は保持回路11bに保持されるバリュー
(n)を選択出力することによりランレングス復号化を
行う。
At this time, since the error control unit 15 does not output the error detection signal, it always outputs an L signal, and the output of the OR circuit 11c becomes the same as the output signal of the down counter 11a. Then, the switch 11d is the OR circuit 1
While the output signal of 1c is H, the 0 code is selected and output,
During the period of L, run-length decoding is performed by selectively outputting the value (n) held in the holding circuit 11b.

【0066】可変長符号V3乃至V5に対しても同様に図示の
如くランレングス復号化が行われ、EOBを示す可変長
符号V6が入力されると、切替器11eはランレングス
復号を行っているDCTブロックの最終部分まで0符号
を出力し続けて、1DCTブロック分のランレングス復
号化処理が終了する。
Similarly, run-length decoding is performed on the variable-length codes V 3 to V 5 as shown in the figure, and when a variable-length code V 6 indicating EOB is input, the switch 11e performs run-length decoding. The output of the 0 code is continued until the last part of the DCT block being performed, and the run-length decoding process for one DCT block is completed.

【0067】次にエラー制御部15について説明すると、エ
ラー制御部15は、累積カウンタER1、エラー信号発
生部ER2により構成され、累積カウンタER1には、
復号部10aからのゼロラン値(r)及びカウンタ値で
1を示す情報が入力され、累積カウンタER1は、復号
部10aから入力されるゼロラン値(r)に1を加えた
値を累積加算する。
Next, the error control unit 15 will be described. The error control unit 15 includes an accumulation counter ER1 and an error signal generation unit ER2.
The zero run value (r) from the decoding unit 10a and information indicating 1 as the counter value are input, and the accumulation counter ER1 accumulatively adds a value obtained by adding 1 to the zero run value (r) input from the decoding unit 10a.

【0068】ここで、ゼロラン値(r)に1を加えた値は、
ランレングス復号化回路11にてランレングス復号化さ
れる符号の数、即ちAC係数の数を示しており、この数
を累積加算することにより、DCTブロック内で復号し
たAC係数の数を知ることができる。
Here, the value obtained by adding 1 to the zero run value (r) is
It indicates the number of codes to be run-length decoded by the run-length decoding circuit 11, that is, the number of AC coefficients. By cumulatively adding this number, the number of AC coefficients decoded in the DCT block is known. Can be.

【0069】そして、エラー信号発生部ER2は、累積カウ
ンタER1が出力する値が63を越えた場合に、エラー
が発生しているとみなしてHの信号、即ちエラー検出信
号を論理和回路11cに出力する。従って、異常な可変
長符号が偶然に何らかの符号に対応付けられて復号さ
れ、63個を越えるAC係数が得られるような場合で
も、63個を越えて得られた符号は全て0符号で置き換
えられるよう切替器11dが切り替えられる。
When the value output from the accumulation counter ER1 exceeds 63, the error signal generation unit ER2 regards that an error has occurred and outputs an H signal, that is, an error detection signal to the OR circuit 11c. Output. Therefore, even when an abnormal variable length code is accidentally associated with some code and decoded, and more than 63 AC coefficients are obtained, all codes obtained beyond 63 are replaced with 0 codes. The switch 11d is switched.

【0070】つまり、1つのDCTブロックに対して63個
を越えるAC係数が得られる場合は、63個を越えて得
られたAC係数が0符号で置き換えられて、これらのデ
ータが逆量子化回路12に入力される。そして、逆量子
化回路12で逆量子化処理が施されれた後に、逆量子化
を終えたデータがビデオセグメントメモリ16(VSメ
モリ)に書き込まれる。
That is, when more than 63 AC coefficients are obtained for one DCT block, the AC coefficients obtained for more than 63 AC coefficients are replaced with 0 codes, and these data are dequantized by an inverse quantization circuit. 12 is input. Then, after the inverse quantization processing is performed by the inverse quantization circuit 12, the data after the inverse quantization is written to the video segment memory 16 (VS memory).

【0071】このように、ランレングス復号化回路11(R
LD)では、63個を越えるAC係数が得られたDCT
ブロックに限り、63個を越えて得られたAC係数が0
符号で置き換えられて出力されるが、63個を越えるA
C係数が得られたDCTブロックと同一のマクロブロッ
ク内、あるいは同一のビデオセグメント内のDCTブロ
ックもこのエラーの影響を受けている可能性がある。
As described above, the run-length decoding circuit 11 (R
LD), a DCT with more than 63 AC coefficients
For blocks only, AC coefficients obtained over 63 are 0
The output is replaced with a sign.
DCT blocks in the same macroblock as the DCT block from which the C coefficient was obtained or in the same video segment may also be affected by this error.

【0072】従って、エラーの影響を受けている可能性があ
るこのようなDCTブロック内のデータに関しても一部
のデータを0符号で置き換えることが望ましく、後述す
るように再生データ制限部17が切替器18を切り替え
ることによりデータの置き換えが行われる。
[0072] Therefore, it is desirable to replace a part of the data in the DCT block, which may be affected by the error, with the 0 code. By switching the unit 18, the data is replaced.

【0073】ここで、アンパッキング回路9は、第1の実施
の形態で説明したグルーピング情報を出力しており、ま
た、DCT・VLC・ACカウンタ20は、ランレング
ス復号化回路11(RLD)が現在処理しているDCT
ブロック番号(DCTNo.)、可変長符号番号(VL
C No.)及び可変長符号からAC係数を得た際のA
C係数番号(AC No.)を出力している。
Here, the unpacking circuit 9 outputs the grouping information described in the first embodiment, and the DCT / VLC / AC counter 20 includes the run-length decoding circuit 11 (RLD). DCT currently being processed
Block number (DCT No.), variable length code number (VL
C No. A) when AC coefficients are obtained from variable-length codes
The C coefficient number (AC No.) is output.

【0074】そして、グルーピング情報変換部19には、ア
ンパッキング回路9から出力されるグルーピング情報
と、DCT・VLC・ACカウンタ20から出力される
DCTブロック番号(DCT No.)、可変長符号番
号(VLC No.)、AC係数番号(AC No.)
が入力されており、図3で示したようなグルーピング情
報における可変長符号番号が、可変長符号を復号した際
のAC係数番号に変換されて、変換グルーピング情報と
して出力される。
[0074] The grouping information conversion section 19 outputs the grouping information output from the unpacking circuit 9, the DCT block number (DCT No.) output from the DCT / VLC / AC counter 20, and the variable length code number ( VLC No.), AC coefficient number (AC No.)
Is input, and the variable length code number in the grouping information as shown in FIG. 3 is converted into an AC coefficient number when the variable length code is decoded, and is output as conversion grouping information.

【0075】一方、第3のメモリ21には、グルーピング情
報変換部19からの変換グルーピング情報と、エラー制
御部15からのエラー検出信号とが入力されるが、既に
説明したように、1つのDCTブロック内で63個を越
えるAC係数が得られた場合のみエラー信号発生部ER
2はHの信号、即ちエラー検出信号を出力し、その時に
限りグルーピング情報変換部19からの1ビデオセグメ
ント分の変換グルーピング情報が第3のメモリ21に書
き込まれる。
On the other hand, the third memory 21 receives the conversion grouping information from the grouping information conversion unit 19 and the error detection signal from the error control unit 15, and as described above, one DCT The error signal generator ER is used only when more than 63 AC coefficients are obtained in the block.
2 outputs an H signal, that is, an error detection signal. Only at that time, the conversion grouping information for one video segment from the grouping information converter 19 is written to the third memory 21.

【0076】そして、再生データ制限部17には、ビデオセ
グメントメモリ16(VSメモリ)が現在読み出してい
るDCTブロック番号(DCT No.)及びAC係数
番号(AC No.)を出力しているDCT・ACカウ
ンタ22からのカウンタ値が入力されているが、再生デ
ータ制限部17は、第3のメモリ21に変換グルーピン
グ情報が書き込まれている際には、この情報とDCT・
ACカウンタ22からのカウンタ値とを基に、63個を
越えるAC係数が得られたDCTブロックの存在するビ
デオセグメント内の全てのDCTブロックに関して、第
2のデータ及び第3のデータが0符号で置き換えられる
よう切替器18を切り替える。
The reproduction data limiting unit 17 outputs the DCT block number (DCT No.) and the AC coefficient number (AC No.) currently read by the video segment memory 16 (VS memory). Although the counter value is input from the AC counter 22, when the conversion grouping information is written in the third memory 21, the reproduction data restricting unit 17
On the basis of the counter value from the AC counter 22, the second data and the third data are 0-signed for all the DCT blocks in the video segment where the DCT block in which more than 63 AC coefficients are obtained is present. The switch 18 is switched to be replaced.

【0077】そして、第2のデータ及び第3のデータが全て
0符号で置き換えられた1ビデオセグメント分のデータ
が逆DCT回路13に出力され、逆DCT処理が施され
る。このように、第2の実施の形態では異常な可変長符
号が偶然に何らかの符号に対応付けられて復号され、6
3個を越えるAC係数が得られるような場合でも再生デ
ータが破綻する可能性を低くすることができる。また、
第2の実施の形態は、第1の実施の形態と組み合わせて
使用することにより、更に、再生データが破綻する可能
性を低くすることができる。
[0077] Then, the data for one video segment in which the second data and the third data are all replaced by 0 codes is output to the inverse DCT circuit 13 and subjected to inverse DCT processing. As described above, in the second embodiment, an abnormal variable length code is accidentally associated with some code and decoded, and
Even when more than three AC coefficients can be obtained, it is possible to reduce the possibility that the reproduced data will fail. Also,
By using the second embodiment in combination with the first embodiment, it is possible to further reduce the possibility that the reproduced data will fail.

【0078】なお、第2の実施の形態においては、ランレン
グス復号化の際に、エラーの発生しているデータを0符
号で置き換えた例を示したが、ランレングス符号化でな
く他の符号化方式により圧縮符号化がされている場合も
同様に、エラーの発生しているデータは0符号で置き換
えられることは言うまでもない。
In the second embodiment, an example has been described in which data having an error is replaced with 0 code at the time of run-length decoding. However, other codes may be used instead of run-length coding. Similarly, in the case where the compression encoding is performed according to the encoding method, the data in which the error has occurred is obviously replaced with the 0 code.

【0079】次に、第3の実施の形態によるディジタル信号
再生装置について説明する。これまでの実施の形態で
は、可変長符号にエラーが発生している場合に、可能な
限り再生信号の破綻を防ぐよう正常と思われるデータの
み出力し、エラーの発生しているデータを0符号あるい
は0符号と同等である可変長符号に置き換えていた。
Next, a digital signal reproducing apparatus according to a third embodiment will be described. In the embodiments described above, when an error has occurred in the variable-length code, only data considered to be normal is output so as to prevent breakdown of the reproduced signal as much as possible. Alternatively, it has been replaced with a variable length code equivalent to the 0 code.

【0080】これに対し、第3の実施の形態によるディジタ
ル信号再生装置は、可変長符号にエラーが発生している
場合には、エラーが発生している可変長符号の存在する
ビデオセグメント内のデータを1フレーム前の画面同一
位置のデータで置き換えることを特徴とし、図11はそ
の構成の一例である。
On the other hand, in the digital signal reproducing apparatus according to the third embodiment, when an error occurs in the variable length code, the digital signal reproducing apparatus in the video segment in which the error occurred variable length code exists. It is characterized in that data is replaced by data at the same position on the screen one frame before, and FIG. 11 shows an example of the configuration.

【0081】図示の如く、フレームメモリ14(FM)は、
その内部に第1のフレームメモリ14a及び第2のフレ
ームメモリ14b、そして、第1乃至第3の切替えスイ
ッチ(SW1乃至SW3)を備えており、また、フレーム
メモリ制御部23が新たに追加されている。
As shown, the frame memory 14 (FM)
It includes a first frame memory 14a, a second frame memory 14b, and first to third changeover switches (SW1 to SW3) therein, and a frame memory control unit 23 is newly added. I have.

【0082】フレームメモリ制御部23は、第4のメモリ2
3a、切替信号発生部23b、VSカウンタ23cによ
り構成され、可変長符号にエラーがある場合には、エラ
ーが発生している可変長符号の存在するビデオセグメン
トのビデオセグメント番号(VS No.)が第4のメ
モリ23aに書き込まれる。この時、VSカウンタ23
cはフレームメモリ14に現在書き込みが行われている
ビデオセグメントの番号を出力している。
[0082] The frame memory control unit 23
3a, a switching signal generator 23b, and a VS counter 23c. When there is an error in the variable-length code, the video segment number (VS No.) of the video segment in which the variable-length code in which the error has occurred exists. The data is written to the fourth memory 23a. At this time, the VS counter 23
c outputs the number of the video segment currently being written to the frame memory 14.

【0083】そして、切替信号発生部23bは、第4のメモ
リ23aに書き込まれているエラー箇所を示すビデオセ
グメント番号(VS No.)とVSカウンタ23cか
ら出力される番号とが一致した場合に、第1及び第2の
切替えスイッチ(SW1及び2)を端子ロ側に切り替え
るよう制御信号を出力する。
[0083] Then, when the video segment number (VS No.) indicating the error location written in the fourth memory 23a matches the number output from the VS counter 23c, the switching signal generator 23b outputs A control signal is output so as to switch the first and second changeover switches (SW1 and SW2) to the terminal B side.

【0084】第1及び第2の切替えスイッチ(SW1及び
2)は、通常、端子イ側に切り替えがなされており、逆
DCT回路13からの画像データが14aあるいは14
bの何れか一方のフレームメモリに書き込まれ、第3の
スイッチ(SW3)は書き込みの行われていない他方の
フレームメモリから読み出されるデータを選択出力して
いるが、切替信号発生部23bからの制御信号に基づ
き、第1及び第2の切替えスイッチ(SW1及び2)は
端子ロ側に切り替えられ、その際には逆DCT回路13
からの画像データでなく、第3の切替えスイッチ(SW
3)を介して選択出力されているフレームメモリからの
画像データ、つまり1フレーム前の同一画面位置の画像
データが書き込まれる。
The first and second changeover switches (SW1 and SW2) are normally switched to the terminal A side, and the image data from the inverse DCT circuit 13 is changed to 14a or 14a.
b, and the third switch (SW3) selectively outputs data read from the other frame memory to which no writing has been performed, but the third switch (SW3) controls the switching from the switching signal generator 23b. Based on the signal, the first and second changeover switches (SW1 and SW2) are switched to the terminal B side.
Instead of the image data from the third switch (SW
The image data from the frame memory which is selectively output via 3), that is, the image data of the same screen position one frame before is written.

【0085】即ち、フレームメモリ14に書き込まれるビデ
オセグメントのデータにエラーが発生している場合に
は、フレームメモリ制御部23からの制御信号に基づき
第1及び第2の切替えスイッチ(SW1及び2)が端子
ロ側に切り替えられるため、このエラーが発生している
ビデオセグメントの画像データが1フレーム前の同一画
面位置の画像データに置き換えられることになる。な
お、ここで、一方のフレームメモリに画像データを書き
込む際に、他方のフレームメモリからは1フレーム前の
画面同一位置の画像データを読み出すようアドレス制御
をしていることは言うまでもない。
That is, when an error has occurred in the video segment data written in the frame memory 14, the first and second changeover switches (SW1 and SW2) based on the control signal from the frame memory control unit 23. Is switched to the terminal B side, the image data of the video segment in which this error has occurred is replaced with the image data of the same screen position one frame before. When writing image data to one frame memory, it goes without saying that address control is performed so that image data at the same position on the screen one frame before is read from the other frame memory.

【0086】また、フレームメモリ制御部23からの制御信
号に基づき、第1及び第2のフレームメモリ14a及び
14bの書き込み処理を禁止させるよう制御した場合に
は、第1及び第2の切替えスイッチ(SW1及び2)は
設ける必要がない。その際、エラーが発生しているビデ
オセグメントの画像データはフレームメモリ14内に書
き込まれず、エラーの発生していないビデオセグメント
の画像データのみフレームメモリ14内に書き込まれて
データが更新される。従って、エラーが発生しているビ
デオセグメントのデータは2フレーム前の同一画面位置
の画像データで置き換えられることになる。
[0086] When control is performed based on a control signal from the frame memory control unit 23 to inhibit the write processing of the first and second frame memories 14a and 14b, the first and second changeover switches ( SW1 and SW2) need not be provided. At this time, the image data of the video segment in which the error has occurred is not written in the frame memory 14, and only the image data of the video segment in which the error has not occurred is written in the frame memory 14 to update the data. Therefore, the data of the video segment in which the error has occurred is replaced with the image data of the same screen position two frames before.

【0087】なお、以上の実施の形態では、DCTブロック
を水平方向8画素×垂直方向8画素で構成した例を示し
たが、これに限らず、水平方向8画素×垂直方向4画
素、あるいは、水平方向16画素×垂直方向16画素
等、他の画素数によりDCTブロックを構成しても構わ
ないことは言うまでもない。
In the above embodiment, an example is shown in which the DCT block is composed of 8 pixels in the horizontal direction × 8 pixels in the vertical direction. However, the present invention is not limited to this, and 8 pixels in the horizontal direction × 4 pixels in the vertical direction, or It goes without saying that the DCT block may be constituted by another number of pixels such as 16 pixels in the horizontal direction × 16 pixels in the vertical direction.

【0088】[0088]

【発明の効果】本発明に係るディジタル信号再生装置及
び再生方法によれば、ディジタルデータの復号化の際に
異常があった場合に、第1及び第2のデータのうちの何
れのデータに異常があったかが識別され、その識別結果
に応じて、復号化を終えたディジタルデータの使用制限
の条件を変更されるため、再生データ破綻してしまう
確率を低くすることができ、画面上に市松模様のような
不自然な画像があらわれることはない。
According to the digital signal reproducing apparatus and the reproducing method according to the present invention, when decoding digital data,
If there is an abnormality, what is the first and second data
It is identified whether there is an abnormality in these data, and the identification result
Restrictions on the use of decrypted digital data according to
Is changed, it is possible to reduce the probability that the reproduction data is broken, and an unnatural image such as a checkered pattern does not appear on the screen.

【0089】また、異常があることが検出された場合に、異
常が検出された圧縮ブロック内のデータを既に復号化を
終えた同一画面位置の圧縮ブロックのデータで置き換え
る場合は、違和感のない再生画像を得ることができる。
Further, when it is detected that there is an abnormality, if the data in the compressed block in which the abnormality is detected is replaced with the data of the compressed block at the same screen position which has already been decoded, the reproduction without any uncomfortable feeling is performed. Images can be obtained.

【0090】また、1つの矩形ブロックに対し所定個数のA
C係数より多数のAC係数が得られた場合は、所定個数
のAC係数を越えて得られたAC係数を成す可変長符号
に係るデータを全て異常データとみなすため、再生デー
タが破綻してしまう確率を更に低くすることができ、再
生画像の品質が安定するという効果を奏する。
Further, a predetermined number of A
When a larger number of AC coefficients than the C coefficient are obtained, all data relating to the variable length code constituting the AC coefficient obtained by exceeding the predetermined number of AC coefficients is regarded as abnormal data, so that the reproduced data is broken. The probability can be further reduced, and the effect of stabilizing the quality of the reproduced image is achieved.

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

【図1】ディジタル信号記録再生装置の主な構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a main configuration of a digital signal recording / reproducing apparatus.

【図2】DCTブロック及び、ジグザグスキャンを示す
図である。
FIG. 2 is a diagram illustrating a DCT block and a zigzag scan.

【図3】ランレングス符号化及び可変長符号化を示す図
である。
FIG. 3 is a diagram illustrating run-length encoding and variable-length encoding.

【図4】マクロブロックを示す図である。FIG. 4 is a diagram showing a macroblock.

【図5】5つのシンクブロックに1ビデオセグメント分
のデータを格納した例を示すものである。
FIG. 5 shows an example in which data for one video segment is stored in five sync blocks.

【図6】本発明の第1の実施の形態を説明するための図
である。
FIG. 6 is a diagram for explaining the first embodiment of the present invention.

【図7】グルーピング情報の一例を示す図である。FIG. 7 is a diagram illustrating an example of grouping information.

【図8】EOB符号を示す可変長符号で置き換えられる
データを示す図である。
FIG. 8 is a diagram illustrating data that is replaced with a variable length code indicating an EOB code.

【図9】本発明の第2の実施の形態を説明するための図
である。
FIG. 9 is a diagram for explaining a second embodiment of the present invention.

【図10】可変長符号にエラーがない場合の可変長復号
化回路の動作を示す図である。
FIG. 10 is a diagram illustrating the operation of the variable length decoding circuit when there is no error in the variable length code.

【図11】本発明の第3の実施の形態を説明するための
図である。
FIG. 11 is a diagram for explaining a third embodiment of the present invention.

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

1、14、14a、14b…フレームメモリ 2…DCT回路 3…量子化回路 4…ランレングス符号化回路 5…可変長符号化回路 6…パッキング回路 7…記録処理部 8…再生処理部 9…アンパッキング回路 9a…符号データ切り出し部 9b…符号長テーブル 9c…グルーピングメモリ部 9d…書込制御部 9e…第1のメモリ 9f…第2のメモリ 9g…読出制御部 9h、17…再生データ制限部 9i…DCT・VLCカウンタ 10…可変長復号化回路 10a…復号部 10b…復号テーブル 11…ランレングス復号化回路 11a…ダウンカウンタ 11b…保持回路 11c…論理和回路 11d…切替器 12…逆量子化回路 13…逆DCT回路 15…エラー制御部 16…VSメモリ 18…切替器 19…グルーピング情報変換部 20…DCT・VLC・ACカウンタ 21…第3のメモリ 22…DCT・ACカウンタ 23…フレームメモリ制御部 23a…第4のメモリ 23b…切替信号発生部 23c…VSカウンタ 1, 14, 14a, 14b Frame memory 2 DCT circuit 3 Quantization circuit 4 Run length encoding circuit 5 Variable length encoding circuit 6 Packing circuit 7 Recording processing unit 8 Reproduction processing unit 9 Ann Packing circuit 9a Code data cutout unit 9b Code length table 9c Grouping memory unit 9d Write control unit 9e First memory 9f Second memory 9g Read control unit 9h, 17 Reproduction data limit unit 9i ... DCT / VLC counter 10 ... variable length decoding circuit 10a ... decoding section 10b ... decoding table 11 ... run length decoding circuit 11a ... down counter 11b ... holding circuit 11c ... OR circuit 11d ... switching device 12 ... inverse quantization circuit DESCRIPTION OF SYMBOLS 13 ... Inverse DCT circuit 15 ... Error control part 16 ... VS memory 18 ... Switching device 19 ... Grouping information conversion part 2 ... DCT · VLC · AC counters 21 ... third memory 22 ... DCT · AC counters 23 ... frame memory controller 23a ... fourth memory 23b ... switching signal generating unit 23c ... VS counter

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1画面を水平方向及び垂直方向に分割して
得た矩形ブロックに直交変換処理及び可変長符号化処理
を施し、更に、複数個の矩形ブロックを1つの圧縮ブロ
ックとして前記圧縮ブロックにおける符号量が所定値以
下となるよう圧縮符号化したデータを矩形ブロック毎に
設けられる所定量の格納領域に第1のデータとして順次
格納すると共に、格納しきれずにあふれたデータを前記
圧縮ブロックの他の矩形ブロックを格納するための格納
領域に第2のデータとして格納したディジタルデータを
復号化して、画像データを復元するディジタル信号再生
装置であり、前記ディジタルデータの復号化の際に異常があった場合
に、前記第1及び第2のデータのうちの何れのデータに
異常があったかを識別する識別手段と、 復号化を終えたディジタルデータの使用を制限する使用
制限手段とを備え、 前記識別手段の識別結果に応じて、前記使用制限手段に
おける使用制限の条件を変更 することを特徴とするディ
ジタル信号再生装置。
1. A rectangular block obtained by dividing one screen in a horizontal direction and a vertical direction is subjected to an orthogonal transformation process and a variable length encoding process, and a plurality of rectangular blocks are treated as one compression block. Are sequentially stored as first data in a predetermined amount of storage area provided for each rectangular block so that the code amount of the compressed block is equal to or less than a predetermined value. A digital signal reproducing apparatus for decoding digital data stored as second data in a storage area for storing another rectangular block and restoring image data, wherein there is an abnormality in decoding the digital data. If
In any one of the first and second data,
Identification means for identifying abnormalities and use to limit the use of decoded digital data
Limiting means, and in accordance with the identification result of the identifying means,
A digital signal reproducing apparatus characterized by changing a condition of use restriction in the digital signal reproducing apparatus.
【請求項2】前記ディジタルデータの復号化の際に異常
があった場合に、前記異常があった圧縮ブロック内の第
2のデータの全部または一部を使用せずに0符号で置き
換えることを特徴とする請求項1記載のディジタル信号
再生装置。
2. An abnormal condition occurs when the digital data is decoded.
If there is, the abnormality digital signal reproducing apparatus according to claim 1, wherein the replacing at 0 code without the use of all or part of the second data of a compressed block is.
【請求項3】前記ディジタルデータの復号化の際に異常
があった場合に、前記異常があった圧縮ブロックのデー
タを既に復号化を終えた同一画面位置の圧縮ブロックの
データで置き換えることを特徴とする請求項1記載のデ
ィジタル信号再生装置。
3. An error in decoding the digital data.
2. The digital signal reproducing apparatus according to claim 1 , wherein when there is an error, the data of the compressed block having the abnormality is replaced with the data of the compressed block at the same screen position which has already been decoded.
【請求項4】1画面を水平方向及び垂直方向に分割して
得た矩形ブロックに直交変換処理及び可変長符号化処理
を施し、更に、複数個の矩形ブロックを1つの圧縮ブロ
ックとして前記圧縮ブロックにおける符号量が所定値以
下となるよう圧縮符号化したデータを矩形ブロック毎に
設けられる所定量の格納領域に第1のデータとして順次
格納すると共に、格納しきれずにあふれたデータを前記
圧縮ブロックの他の矩形ブロックを格納するための格納
領域に第2のデータとして格納したディジタルデータを
復号化して、画像データを復元するディジタル信号再生
装置であり、前記ディジタルデータは、前記直交変換処理を施すこと
により得られた1つのDC係数と所定個数のAC係数と
を前記矩形ブロック毎に有し、 前記ディジタルデータに異常があることを検出する異常
検出手段を少なくとも備え、 前記ディジタルデータの復号化の際に異常が検出された
場合には、異常が検出された異常データの存在する圧縮
ブロック内の第2のデータの使用を制限し、前記所定個
数のAC係数より多数のAC係数が得られた場合に、前
記所定個数のAC係数を越えて得られたAC係数を成す
可変長符号に係るデータを全て異常データとみなすこと
を特徴とするディジタル信号再生装置。
4. A rectangular block obtained by dividing one screen in a horizontal direction and a vertical direction is subjected to an orthogonal transformation process and a variable length encoding process, and a plurality of rectangular blocks are treated as one compression block. Are sequentially stored as first data in a predetermined amount of storage area provided for each rectangular block so that the code amount of the compressed block is equal to or less than a predetermined value. A digital signal reproduction device for decoding digital data stored as second data in a storage area for storing another rectangular block to restore image data, wherein the digital data is subjected to the orthogonal transformation processing.
And a predetermined number of AC coefficients obtained by
Is provided for each of the rectangular blocks to detect an abnormality in the digital data.
At least detection means, and an abnormality is detected when decoding the digital data.
If anomalies have been detected, anomalies exist in the compression
Restricting use of the second data in the block, and
If more AC coefficients are obtained than the number of AC coefficients,
Forming AC coefficients obtained by exceeding a predetermined number of AC coefficients.
Treat all data related to variable-length codes as abnormal data
A digital signal reproducing apparatus characterized by the above-mentioned.
【請求項5】1画面を水平方向及び垂直方向に分割して
得た矩形ブロックに直交変換処理及び可変長符号化処理
を施し、更に、複数個の矩形ブロックを1つの圧縮ブロ
ックとして前記圧縮ブロックにおける符号量が所定値以
下となるよう圧縮符号化したデータを矩形ブロック毎に
設けられる所定量の格納領域に第1のデータとして順次
格納すると共に、格納しきれずにあふれたデータを前記
圧縮ブロックの他の矩形ブロックを格納するための格納
領域に第2のデータとして格納したディジタルデータを
復号化して、画像データを復元するディジタル信号再生
方法であり、前記ディジタルデータの復号化の際に異常があった場合
に、前記第1及び第2のデータのうちの何れのデータに
異常があったかを識別すると共に、復号化を終えたディ
ジタルデータの使用を制限し、前記識別結果に応じて、
前記復号化を終えたディジタルデータの使用制限の条件
を変更 することを特徴とするディジタル信号再生方法。
5. A rectangular block obtained by dividing one screen in a horizontal direction and a vertical direction is subjected to an orthogonal transformation process and a variable length coding process, and further, a plurality of rectangular blocks are treated as one compression block. Are sequentially stored as first data in a predetermined amount of storage area provided for each rectangular block so that the code amount of the compressed block is equal to or less than a predetermined value. decodes the digital data stored as the second data storage area for storing the other rectangular block, a digital signal reproduction method for restoring the image data, there is an abnormality in the decoding of the digital data If
In any one of the first and second data,
Identify whether there was an error and decode the decoded data.
Digital data, and according to the identification result,
Conditions for restricting use of digital data after decoding
A digital signal reproducing method characterized by changing the following.
【請求項6】前記ディジタルデータの復号化の際に異常
があった場合に、前記異常があった圧縮ブロック内の第
2のデータの全部または一部を使用せずに0符号で置き
換えることを特徴とする請求項5記載のディジタル信号
再生方法。
6. An error in decoding the digital data.
If there was, a digital signal reproducing method according to claim 5, wherein the replacing without the use of all or a portion of the second data in the compression block the had abnormality in 0 code.
【請求項7】前記ディジタルデータの復号化の際に異常
があった場合に、前記異常があった圧縮ブロックのデー
タを既に復号化を終えた同一画面位置の圧縮ブロックの
データで置き換えることを特徴とする請求項5記載のデ
ィジタル信号再生方法。
7. An error in decoding the digital data.
6. The digital signal reproducing method according to claim 5 , wherein when there is a defect, the data of the compressed block having the abnormality is replaced with the data of the compressed block at the same screen position which has already been decoded.
【請求項8】1画面を水平方向及び垂直方向に分割して
得た矩形ブロックに直交変換処理及び可変長符号化処理
を施し、更に、複数個の矩形ブロックを1つの圧縮ブロ
ックとして前記圧縮ブロックにおける符号量が所定値以
下となるよう圧縮符号化したデータを矩形ブロック毎に
設けられる所定量の格納領域に第1のデータとして順次
格納すると共に、格納しきれずにあふれたデータを前記
圧縮ブロックの他の矩形ブロックを格納するための格納
領域に第2のデータとして格納したディジタルデータを
復号化して、画像データを復元するディジタル信号再生
方法であり、前記ディジタルデータは、前記直交変換処理を施すこと
により得られた1つのDC係数と所定個数のAC係数と
を前記矩形ブロック毎に有し、 前記ディジタルデータの復号化の際に異常が検出された
場合には、異常が検出された異常データの存在する圧縮
ブロック内の第2のデータの使用を制限し、前記所定個
数のAC係数より多数のAC係数が得られた場合に、前
記所定個数のAC係数を越えて得られたAC係数を成す
可変長符号に係るデータを全て異常データとみなすこと
を特徴とするディジタル信号再生方法。
8. A rectangular block obtained by dividing one screen in a horizontal direction and a vertical direction is subjected to an orthogonal transformation process and a variable length encoding process, and further, a plurality of rectangular blocks are treated as one compression block. Are sequentially stored as first data in a predetermined amount of storage area provided for each rectangular block so that the code amount of the compressed block is equal to or less than a predetermined value. A digital signal reproduction method for decoding image data by decoding digital data stored as second data in a storage area for storing another rectangular block, wherein the digital data is subjected to the orthogonal transformation processing.
And a predetermined number of AC coefficients obtained by
For each of the rectangular blocks, and an abnormality was detected during the decoding of the digital data.
If anomalies have been detected, anomalies exist in the compression
Restricting use of the second data in the block, and
If more AC coefficients are obtained than the number of AC coefficients,
Forming AC coefficients obtained by exceeding a predetermined number of AC coefficients.
Treat all data related to variable-length codes as abnormal data
A digital signal reproducing method characterized in that:
JP03244599A 1999-02-10 1999-02-10 Digital signal reproducing apparatus and reproducing method Expired - Fee Related JP3332220B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03244599A JP3332220B2 (en) 1999-02-10 1999-02-10 Digital signal reproducing apparatus and reproducing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03244599A JP3332220B2 (en) 1999-02-10 1999-02-10 Digital signal reproducing apparatus and reproducing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2002168219A Division JP4000921B2 (en) 2002-06-10 2002-06-10 Digital signal reproducing apparatus and reproducing method

Publications (2)

Publication Number Publication Date
JP2000232626A JP2000232626A (en) 2000-08-22
JP3332220B2 true JP3332220B2 (en) 2002-10-07

Family

ID=12359172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03244599A Expired - Fee Related JP3332220B2 (en) 1999-02-10 1999-02-10 Digital signal reproducing apparatus and reproducing method

Country Status (1)

Country Link
JP (1) JP3332220B2 (en)

Also Published As

Publication number Publication date
JP2000232626A (en) 2000-08-22

Similar Documents

Publication Publication Date Title
JP3428033B2 (en) Digital VTR
US5726711A (en) Intra-coded video frame data processing methods and apparatus
EP0765090B1 (en) Apparatus and method for image coding and recording/reproducing
JP3134424B2 (en) Variable length encoding method and apparatus
JPH04326255A (en) Method and device for encoding image
GB2305056A (en) Quantization step selection for image coding in digital video recorders
EP0575997B1 (en) Digital video cassette recorder signal processing apparatus
US5852706A (en) Apparatus for recording and reproducing intra-frame and inter-frame encoded video data arranged into recording frames
JPH08214309A (en) Image signal decoding device
JP3332220B2 (en) Digital signal reproducing apparatus and reproducing method
JPH0496484A (en) Digital video signal reproducing device
JP4000921B2 (en) Digital signal reproducing apparatus and reproducing method
EP0822724A2 (en) Digital video signal recording and/or reproducing apparatus
JP2000209552A (en) Reproducing device and method of digital signal
JP3208601B2 (en) High efficiency coding device
US20030091341A1 (en) Image recording device and image reproducing device
JP3546439B2 (en) Digital image signal encoding apparatus and encoding method
JP3166969B2 (en) Digital image signal recording device
JPH09200694A (en) Image encoding / recording / reproducing device
JP2620163B2 (en) High efficiency coding device
JP3849305B2 (en) Image signal reproducing apparatus and method
JP3063675B2 (en) Video signal playback device
JP2697290B2 (en) Video signal recording device and playback device, recording method and processing device
KR100224623B1 (en) Image data storage device
JP3787906B2 (en) Digital image signal recording apparatus and image signal recording / reproducing apparatus

Legal Events

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

Free format text: PAYMENT UNTIL: 20080726

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080726

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100726

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110726

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120726

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120726

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120726

Year of fee payment: 10

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120726

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130726

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees