JPH10336582A - Digital-video signal processing unit - Google Patents

Digital-video signal processing unit

Info

Publication number
JPH10336582A
JPH10336582A JP13958597A JP13958597A JPH10336582A JP H10336582 A JPH10336582 A JP H10336582A JP 13958597 A JP13958597 A JP 13958597A JP 13958597 A JP13958597 A JP 13958597A JP H10336582 A JPH10336582 A JP H10336582A
Authority
JP
Japan
Prior art keywords
variable
coded data
length
orthogonal transform
length coded
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.)
Granted
Application number
JP13958597A
Other languages
Japanese (ja)
Other versions
JP3500039B2 (en
Inventor
Ichiro Konno
伊知朗 紺野
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP13958597A priority Critical patent/JP3500039B2/en
Publication of JPH10336582A publication Critical patent/JPH10336582A/en
Application granted granted Critical
Publication of JP3500039B2 publication Critical patent/JP3500039B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To reduce the circuit scale without the need for a complicated circuit for the address control of a RAM. SOLUTION: An FRAM 12 having a capacity by one SYNC block is used in units of macro blocks and two kinds of MRAM 13 and a VRAM 14 are used for RAMs which store variable length coding data for a high-frequency AC components. A reproduction 3rd step signal processing circuit 18 conducts error detection of variable length coding data by mis-correction and image defect prevention processing and an error-processing circuit 22 replaces variable length coding data of an orthogonal transform block, whose error is detected with an error code.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル化され
た映像音声信号の記録再生装置におけるディジタル映像
信号処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital video signal processing device in a recording and reproducing device for digitized video and audio signals.

【0002】[0002]

【従来の技術】ディジタル化された映像信号を記録又は
伝送する際、直交変換と可変長符号化を用いた画像圧縮
がよく用いられる。ここで、家庭用ディジタルVCRの
画像圧縮について説明する。
2. Description of the Related Art When recording or transmitting a digitized video signal, image compression using orthogonal transform and variable length coding is often used. Here, image compression of a home digital VCR will be described.

【0003】家庭用ディジタルVCRには2種類の画像
圧縮モードがあり、標準の画像圧縮モード(以下標準モ
ードと呼ぶ)と、標準モードの符号量の更に1/2に圧
縮する画像圧縮モード(以下高圧縮モードと呼ぶ)があ
る。
There are two types of image compression modes in a home digital VCR. A standard image compression mode (hereinafter, referred to as a standard mode) and an image compression mode (hereinafter, referred to as a standard mode) in which the code amount is further reduced to half of the standard mode code amount. High compression mode).

【0004】標準モードの場合は隣接する4個の輝度成
分の直交変換ブロックと2個の色差成分の直交変換ブロ
ックを集めてマクロブロックを構成し、画面の離れた位
置から5つのマクロブロックを集めてビデオセグメント
を構成し、ビデオセグメント内の30個の直交変換ブロ
ックを直交変換して可変長符号化した符号量の合計がほ
ぼ一定になるように制御し、5つのシンクブロックに格
納する。
In the case of the standard mode, a macroblock is formed by collecting four orthogonal transform blocks of four luminance components and two orthogonal transform blocks of two color difference components, and five macroblocks are collected from positions distant from the screen. A video segment is constructed, and control is performed so that the total amount of codes obtained by performing orthogonal transform on the 30 orthogonal transform blocks in the video segment and performing variable-length encoding is substantially constant, and stores the total in five sync blocks.

【0005】高圧縮モードの場合は輝度成分の画素数を
標準モードの3/4に間引き、色差成分の画素数を標準
モードの1/2に間引いた後、隣接する6個の輝度成分
の直交変換ブロックと2個の色差成分の直交変換ブロッ
クを集めてマクロブロックを構成し、画面の離れた位置
から5つのマクロブロックを集めてビデオセグメントを
構成し、ビデオセグメント内の40個の直交変換ブロッ
クを直交変換して可変長符号化した符号量の合計がほぼ
一定になるように制御し、5つのシンクブロックに格納
する。
In the high compression mode, the number of pixels of the luminance component is thinned to 3/4 of the standard mode, the number of pixels of the color difference component is thinned to 1/2 of the standard mode, and then the orthogonality of six adjacent luminance components is reduced. A transform block and two orthogonal transform blocks of chrominance components are collected to form a macroblock, and five macroblocks are collected from distant positions on the screen to form a video segment. Forty orthogonal transform blocks in the video segment Are controlled so that the total code amount obtained by performing the orthogonal transform on the variable-length code is substantially constant, and is stored in five sync blocks.

【0006】5つのマクロブロックを画面の離れた位置
から集める事により、多くの符号量を必要とする複雑な
絵柄のマクロブロックと、あまり符号量を必要としない
単調な絵柄のマクロブロックが同一のビデオセグメント
に割り当てられる確率が高くなり、画像品質の安定が期
待できる。
By collecting five macroblocks from remote positions on the screen, a macroblock of a complicated pattern requiring a large amount of code and a macroblock of a monotonous pattern requiring a small amount of code are the same. The probability of being assigned to video segments is increased, and stable image quality can be expected.

【0007】ここでビデオセグメント内の5つのシンク
ブロックは、それぞれ5つのマクロブロックに対応して
いる。標準モードのシンクブロック内は6個の固定領域
で構成され、4つの固定領域が対応するマクロブロック
の輝度成分の直交変換ブロック、2つの固定領域が対応
するマクロブロックの色差成分の直交変換ブロックのた
めに割り当てられている。高圧縮モードのシンクブロッ
ク内は8個の固定領域で構成され、6つの固定領域が対
応するマクロブロックの輝度成分の直交変換ブロック、
2つの固定領域が対応するマクロブロックの色差成分の
直交変換ブロックのために割り当てられている。
Here, the five sync blocks in the video segment correspond to five macro blocks, respectively. The sync block in the standard mode is composed of six fixed regions, and four fixed regions correspond to orthogonal transform blocks of the luminance component of the macroblock corresponding to the two fixed regions. Two fixed regions correspond to orthogonal transform blocks of the chrominance components of the macroblock corresponding to the fixed regions. Assigned for. The sync block in the high compression mode is composed of eight fixed regions, and the orthogonal transform block of the luminance component of the macroblock corresponding to the six fixed regions;
Two fixed areas are allocated for the orthogonal transform block of the chrominance component of the corresponding macroblock.

【0008】直交変換して可変長符号化された直交変換
ブロックの可変長符号化データは、まず対応するシンク
ブロックのそれぞれの固定領域に順番に格納する。ここ
で格納された可変長符号化データをLACと呼ぶ。
[0008] The variable-length coded data of the orthogonally transformed block that has been subjected to the orthogonal transformation and the variable length coding is first stored in order in each fixed area of the corresponding sync block. The variable length coded data stored here is called LAC.

【0009】この時、それぞれの直交変換ブロックの符
号量にバラツキがある為、固定領域に全て格納できてま
だ空き領域がある場合と、固定領域にちょうど格納でき
る場合と、固定領域に格納しきれず溢れてしまう場合が
存在する。ここで固定領域に格納しきれず溢れてしまっ
た可変長符号化データをHACと呼ぶ。
At this time, since the code amount of each orthogonal transform block varies, there are cases where all the data can be stored in the fixed area and there is still an empty area, cases where the data can be stored exactly in the fixed area, and cases where the data cannot be completely stored in the fixed area. There are cases where it overflows. Here, the variable-length coded data that cannot be stored in the fixed area and overflows is called an HAC.

【0010】次に、HACを同じシンクブロック内の他
の直交変換ブロックでまだ空き領域がある固定領域のす
き間に順番に格納する。ここで、格納されたHACをM
ACと呼ぶ。
Next, the HACs are sequentially stored in the gaps of the fixed area in the other orthogonal transform block in the same sync block, which still has a free area. Here, the stored HAC is M
Call it AC.

【0011】この時、それぞれのマクロブロックの符号
量にバラツキがある為、シンクブロックに全て格納でき
てまだ空き領域がある場合と、シンクブロックにちょう
ど格納でる場合と、シンクブロックに格納しきれず溢れ
てしまう場合が存在する。
At this time, since the code amount of each macroblock varies, there is a case where all the data can be stored in the sync block and there is still an empty area, a case where the data can be stored in the sync block, and a case where the sync block cannot be completely stored and overflows. There is a case that ends up.

【0012】次に、シンクブロックに格納しきれず溢れ
てしまったHACを、ビデオセグメント内の他のシンク
ブロックでまだ空き領域がある固定領域のすき間に順番
に格納する。ここで、格納されたHACをVACと呼
ぶ。
Next, the overflowing HACs that cannot be stored in the sync blocks are sequentially stored in the gaps of the fixed areas of the other sync blocks in the video segment which still have free areas. Here, the stored HAC is called a VAC.

【0013】前記のような手順で5つのシンクブロック
にビデオセグメント内の可変長符号化データを格納する
事により、あまり符号量を必要としない直交変換ブロッ
クの固定領域の空き領域に多くの符号量を必要とする直
交変換ブロックの可変長符号化データが格納され、画像
品質の安定が期待できる。
By storing the variable-length coded data in the video segment in the five sync blocks in the above-described manner, a large amount of code can be stored in the free area of the fixed area of the orthogonal transform block which does not require much code. Is stored, and stable image quality can be expected.

【0014】前記のようにビデオセグメント内の可変長
符号化データを5つのシンクブロックに格納する処理を
フォーマット処理と呼ぶ。
The process of storing the variable-length coded data in the video segment in five sync blocks as described above is called a format process.

【0015】標準モード、高圧縮モード共に前記フォー
マット処理で5つのシンクブロックに可変長符号化デー
タを格納した後、再生時の誤りを訂正又は修正する為の
誤り訂正符号が付加されディジタル変調された後、テー
プに記録される。
In both the standard mode and the high compression mode, after the variable-length encoded data is stored in five sync blocks in the format processing, an error correction code for correcting or correcting an error at the time of reproduction is added and digitally modulated. Later, it is recorded on a tape.

【0016】テープから再生された再生信号は、ディジ
タル復調した後、誤り訂正復号化回路によって再生時の
符号誤りを訂正又は修正し、5つのシンクブロックに格
納されているそれぞれの直交変換ブロックの可変長符号
化データを直交変換ブロック毎に順番に整列しなおし、
可変長復号化して逆直交変換した後、各直交変換ブロッ
クの画素が再配置されて画像が復元される。
The reproduced signal reproduced from the tape is digitally demodulated, and the error correction decoding circuit corrects or corrects a code error at the time of reproduction, and modifies each of the orthogonal transform blocks stored in the five sync blocks. Re-arrange the long encoded data in order for each orthogonal transformation block,
After performing variable length decoding and inverse orthogonal transform, the pixels of each orthogonal transform block are rearranged, and the image is restored.

【0017】前記のように5つのシンクブロックに格納
されたそれぞれの直交変換ブロックの可変長符号化デー
タを直交変換ブロック毎に順番に整列しなおす処理をデ
フォーマット処理と呼ぶ。
The process of rearranging the variable-length coded data of each orthogonal transform block stored in the five sync blocks in order for each orthogonal transform block as described above is called a deformat process.

【0018】デフォーマット処理では、再生された5つ
のシンクブロックの誤りが全て訂正された時には、記録
されている直交変換ブロックの可変長符号化データを全
て順番に整列しなおす事が出来るが、再生時の誤りが訂
正できず過去のフレームの同じ画面上の位置に相当する
シンクブロックに置き換えられたシンクブロック等、記
録時のビデオセグメントに属さないシンクブロックが1
つでも存在すると、可変長符号化データに不連続が生じ
て記録されている直交変換ブロックの可変長符号化デー
タを全て順番に整列しなおす事はできなくなり、このよ
うなシンクブロックの存在を無視してデフォーマット処
理を行うと再生画像が破綻し品質を大きく損なう。
In the reformatting process, when all the errors of the reproduced five sync blocks are corrected, all the variable-length encoded data of the recorded orthogonal transform blocks can be rearranged in order. One sync block that does not belong to the video segment at the time of recording, such as a sync block that cannot be corrected at the time and has been replaced with a sync block corresponding to the same position of the past frame on the screen.
If one exists, it becomes impossible to rearrange all the variable-length encoded data of the orthogonal transform block recorded due to discontinuity in the variable-length encoded data, and the existence of such a sync block is ignored. Then, if the deformatting process is performed, the reproduced image is broken and the quality is greatly impaired.

【0019】そこで、誤り訂正復号化回路で、記録時の
ビデオセグメントに属さないシンクブロックの存在を示
すフラグ(以下誤り修正フラグと呼ぶ)を生成し、デフ
ォーマット処理でこのフラグを受け取り、必要に応じシ
ンクブロック間にまたがって記録されている可変長符号
化データ(VAC)の出力を停止して画像の破綻を防止
し、再生映像の品質の劣化を押える処理が必要となる。
Therefore, an error correction decoding circuit generates a flag (hereinafter, referred to as an error correction flag) indicating the presence of a sync block which does not belong to the video segment at the time of recording, and receives this flag in the reformatting process. Accordingly, it is necessary to perform a process of stopping the output of the variable length coded data (VAC) recorded between the sync blocks to prevent the breakdown of the image and suppress the deterioration of the quality of the reproduced video.

【0020】前記のフォーマット処理とデフォーマット
処理を実現する先行技術として、特開平6−30357
1公報に開示されている記録再生装置がある。この記録
再生装置では、主要なRAMとして、1ビデオセグメン
ト分のシンクブロックの容量を持つFRAM(190w
ord×16bit)を3個使用し、HACを記憶して
おくHRAM(151word×16bit、先行技術
の明細書にはVRAMと記載されているが、本発明で使
用するVRAMと区別する為にHRAMとする)を2個
使用し、合計13952bitのRAMを使用してフォ
ーマット処理とデフォーマット処理を実現している。
Japanese Patent Application Laid-Open No. 6-30357 discloses a prior art for realizing the format processing and the deformat processing.
There is a recording / reproducing apparatus disclosed in Japanese Patent Laid-Open Publication No. H11-209, pp. 1-5. In this recording / reproducing apparatus, an FRAM (190w) having a capacity of a sync block for one video segment is used as a main RAM.
HRAM (151 words × 16 bits) which uses three ord × 16 bits and stores the HAC is described as VRAM in the specification of the prior art. However, in order to distinguish it from the VRAM used in the present invention, HRAM and ) Is used, and a format process and a deformat process are realized by using a total of 13952 bits of RAM.

【0021】この記録再生装置では、フォーマット処理
時、FRAMの固定領域を溢れたHACをまずHRAM
のアドレスの前方から順に格納していき、HACが一定
値を越えた場合、残りのHACをアドレスの後方から順
に格納していく。この作業を5つのマクロブロックにつ
いて順番に行う。
In this recording / reproducing apparatus, at the time of format processing, the HAC that overflows the fixed area of the FRAM is
Are stored sequentially from the front of the address, and when the HAC exceeds a certain value, the remaining HACs are stored sequentially from the back of the address. This operation is performed for five macro blocks in order.

【0022】次にFRAMの空き領域にMACとVAC
を格納する際、まず5つのマクロブロックについて順番
にHRAMのアドレスの前方から格納されている同一マ
クロブロックのHACの一部又は全てをMACとして格
納する。次に5つのマクロブロックについて順番にHR
AMのアドレスの前方から格納されているHACの残り
(MACとして使われなかったHAC)とアドレスの後
方から格納されているHACの一部又は全てをVACと
して格納する。
Next, the MAC and VAC are stored in the free area of the FRAM.
, First, part or all of the HAC of the same macroblock stored from the front of the address of the HRAM for five macroblocks is stored as MAC. Next, HR is sequentially set for the five macro blocks.
The rest of the HAC (HAC not used as MAC) stored from the front of the AM address and part or all of the HAC stored from the back of the address are stored as VAC.

【0023】[0023]

【発明が解決しようとする課題】しかしながら、前記の
ような先行技術のフォーマット処理ではFRAMの空き
領域にMACを格納する際、HRAMアドレスの先頭か
ら格納されているHACを全てMACとして使用できる
とは限らない為、マクロブロック毎にHRAMアドレス
の先頭から格納されているHACを、MACとして使え
るだけ使用し、次のマクロブロックのMAC格納の際、
次のマクロブロックのHAC格納場所までHRAMアド
レスをジャンプさせる必要がある。
However, in the format processing of the prior art as described above, when storing a MAC in an empty area of the FRAM, all the HACs stored from the head of the HRAM address can be used as the MAC. Since there is no limitation, the HAC stored from the head of the HRAM address for each macroblock is used as much as the MAC, and when storing the MAC of the next macroblock,
It is necessary to jump the HRAM address to the HAC storage location of the next macroblock.

【0024】また、各マクロブロックのMACの格納作
業終了後、VACの格納作業に移行するが、VACの格
納作業においては、HRAMアドレスの先頭から格納さ
れている、MACとして使用されなかったHACと、H
RAMのアドレスの後方から格納されているHACを飛
び飛びに使用する為、更に複雑なHRAMアドレスの制
御を必要とする。
After the operation of storing the MAC of each macroblock is completed, the operation shifts to the operation of storing the VAC. In the operation of storing the VAC, the HAC stored from the head of the HRAM address and not used as the MAC is used. , H
Since the HAC stored from the rear of the RAM address is used intermittently, more complicated HRAM address control is required.

【0025】また、先行技術のデフォーマット処理にお
いては誤り訂正復号化回路で誤訂正が発生した時に、画
面破綻を最小限に押える対策がなされていない為、誤訂
正が発生した場合画面が破綻する可能性は極めて大であ
る。
Also, in the prior art deformatting process, when an erroneous correction occurs in the error correction decoding circuit, no measures have been taken to minimize the screen failure, so that if the erroneous correction occurs, the screen will fail. The possibilities are enormous.

【0026】[0026]

【課題を解決するための手段】本発明の請求項1に記載
のディジタル映像信号処理装置は、有効なHACを全て
アドレスの前方から格納するMRAMと、MACとして
使われなかったHACのみをアドレスの前方から格納す
るVRAMを用いる事により、先行技術のようなRAM
の複雑なアドレス制御を必要としないフォーマット処理
を提供するのもである。
According to a first aspect of the present invention, there is provided a digital video signal processing apparatus comprising: an MRAM for storing all valid HACs from the front of an address; By using a VRAM that stores from the front, the RAM as in the prior art is used.
It provides a format processing that does not require complicated address control.

【0027】本発明の請求項4に記載のディジタル映像
信号処理装置は、MACのみをアドレスの前方から格納
するMRAMと、VACのみをアドレスの前方から格納
するVRAMを用いる事により、先行技術のようなRA
Mの複雑なアドレス制御を必要としないデフォーマット
処理を提供するのもである。
The digital video signal processing device according to the fourth aspect of the present invention uses an MRAM that stores only the MAC from the front of the address and a VRAM that stores only the VAC from the front of the address. Na RA
It also provides a deformatting process that does not require M complicated address control.

【0028】また、本発明の請求項3および請求項6に
記載のディジタル映像信号処理装置は、先行技術で3ビ
デオセグメント(15マクロブロック)の容量を必要と
していたFRAMを、マクロブロック単位で使用する事
により7マクロブロックの容量に押える事ができ、FR
AMの容量を先行技術の半分以下とする事が可能であ
る。
Further, the digital video signal processing apparatus according to the third and sixth aspects of the present invention uses an FRAM which requires a capacity of 3 video segments (15 macroblocks) in the prior art for each macroblock. By doing so, the capacity can be reduced to 7 macroblocks, FR
It is possible to reduce the capacity of the AM to less than half that of the prior art.

【0029】また本発明の請求項7に記載のディジタル
映像信号処理装置は、デフォーマット処理時に誤り訂正
復号化回路で誤訂正が発生した場合(この場合、誤り修
正フラグは真にならない)のエラー検出及び再生画像の
破綻防止処理を行うものであり、誤訂正による画面破綻
の可能性を低く押えたデフォーマット処理を提供するの
もである。
Further, according to the digital video signal processing apparatus of the present invention, when an error correction occurs in the error correction decoding circuit during the deformatting process (in this case, the error correction flag does not become true) It is intended to perform detection and processing for preventing the breakdown of the reproduced image, and to provide a deformatting process which suppresses the possibility of screen failure due to erroneous correction.

【0030】[0030]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照しながら説明する。図1は本発明の実施
の形態におけるディジタル映像信号処理装置のブロック
図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a digital video signal processing device according to an embodiment of the present invention.

【0031】図1において、1は画素データ入力端子、
2はシャフリング回路、3は直交変換回路、4は量子化
回路、5は可変長符号化回路、6は記録第1ステップ信
号処理回路、7は記録第2ステップ信号処理回路、8は
記録第3ステップ信号処理回路、9は記録第1ステップ
RAM制御回路、10は記録第2ステップRAM制御回
路、11は記録第3ステップRAM制御回路、前記2か
ら11までが記録系で使用する回路であり、この中で6
から11までがフォーマット処理回路である。
In FIG. 1, 1 is a pixel data input terminal,
2 is a shuffling circuit, 3 is an orthogonal transformation circuit, 4 is a quantization circuit, 5 is a variable length encoding circuit, 6 is a recording first step signal processing circuit, 7 is a recording second step signal processing circuit, and 8 is a recording first step signal processing circuit. 3 step signal processing circuit, 9 is a recording first step RAM control circuit, 10 is a recording second step RAM control circuit, 11 is a recording third step RAM control circuit, and 2 to 11 are circuits used in the recording system. , 6 in this
To 11 are format processing circuits.

【0032】12は1シンクブロック分の容量を持つ第
1のメモリ(以下FRAMとする)、13はフォーマッ
ト処理時は有効なHACを全てアドレスの前方から格納
し、デフォーマット処理時はMACのみをアドレスの前
方から格納する第2のメモリ(以下MRAMとする)、
14はフォーマット処理時はMACとして使われなかっ
たHACのみをアドレスの前方から格納し、デフォーマ
ット処理時はVACのみをアドレスの前方から格納する
第3のメモリ(以下VRAMとする)、15はフォーマ
ット処理時、記録第2ステップ信号処理までの過程でF
RAMの各固定領域内に格納された可変長符号化データ
の最終位置情報を記憶しておく為に使用する第4のメモ
リ(以下FPRAMとする)である。
Reference numeral 12 denotes a first memory (hereinafter, referred to as FRAM) having a capacity of one sync block. Reference numeral 13 stores all valid HACs from the front of the address at the time of format processing, and stores only MAC at the time of deformat processing. A second memory (hereinafter referred to as MRAM) for storing from the front of the address,
A third memory (hereinafter referred to as VRAM) 14 stores only the HAC not used as a MAC from the front of the address at the time of the format processing, and stores only the VAC from the front of the address at the time of the deformat processing. During processing, F is used in the process up to the recording second step signal processing.
This is a fourth memory (hereinafter referred to as FPRAM) used to store the final position information of the variable length coded data stored in each fixed area of the RAM.

【0033】16は再生第1ステップ信号処理回路、1
7は再生第2ステップ信号処理回路、18は再生第3ス
テップ信号処理回路、19は再生第1ステップRAM制
御回路、20は再生第2ステップRAM制御回路、21
は再生第3ステップRAM制御回路、22はエラー処理
回路、23は可変長復号化回路、24は逆量子化回路、
25は逆直交変換回路、26はデシャフリング回路、2
7は画素データ出力端子、前記16から26までが再生
系で使用する回路であり、この中で16から22までが
デフォーマット処理回路である。
Reference numeral 16 denotes a reproduction first step signal processing circuit,
7 is a reproduction second step signal processing circuit, 18 is a reproduction third step signal processing circuit, 19 is a reproduction first step RAM control circuit, 20 is a reproduction second step RAM control circuit, 21
Is a reproduction third step RAM control circuit, 22 is an error processing circuit, 23 is a variable length decoding circuit, 24 is an inverse quantization circuit,
25 is an inverse orthogonal transform circuit, 26 is a deshuffling circuit, 2
Reference numeral 7 denotes a pixel data output terminal, and 16 to 26 are circuits used in the reproduction system, and 16 to 22 are deformat processing circuits.

【0034】FRAM12は、1マクロブロック分のフ
ォーマットされた可変長符号化データを蓄えるだけの容
量(本実施の形態においては38word×16bi
t)を7マクロブロック分、即ち7個使用する。
The FRAM 12 has a capacity (38 words × 16 bi in the present embodiment) for storing formatted variable-length encoded data for one macroblock.
t) is used for seven macroblocks, that is, seven.

【0035】MRAM13がフォーマット処理時におい
て、有効なHACを全て格納する為に最も多くの容量を
必要とする場合は、ビデオセグメント内において1つの
マクロブロックの2つの色差成分直交変換ブロックと1
つの輝度成分直交変換ブロックに最大符号量が割り当て
られて、残りの直交変換ブロックが直流成分のみの場合
であり、必要容量は直流成分のみの固定領域の空き領域
の合計に相当する。この値は図9に示すように標準モー
ド時の146word×16bitとなり、マクロブロ
ック交替で2個使用する。
If the MRAM 13 requires the largest capacity to store all the valid HACs during the format processing, the two chrominance component orthogonal transform blocks of one macro block and one
In this case, the maximum code amount is allocated to one luminance component orthogonal transform block, and the remaining orthogonal transform blocks are only DC components. The required capacity is equivalent to the sum of the free areas of the fixed areas including only the DC components. This value is 146 words × 16 bits in the standard mode as shown in FIG. 9, and two macroblocks are used for replacement.

【0036】また、MRAM13がデフォーマット処理
時において、MACのみを全て格納する為に最も多くの
容量を必要とする場合は、ビデオセグメント内の全ての
マクロブロックにおいて1つの色差成分直交変換ブロッ
クに最大符号量が割り当てられて、残りの直交変換ブロ
ックが直流成分のみの場合であり、必要容量は直流成分
のみの固定領域の空き領域の合計に相当する。この値は
図10に示すように標準モード時の140word×1
6bitとなり、ビデオセグメント交替で2個使用す
る。
When the MRAM 13 needs the largest capacity to store only the MACs at the time of the deformat processing, the maximum size of one chrominance component orthogonal transform block in all the macroblocks in the video segment is reduced. This is the case where a code amount is allocated and the remaining orthogonal transform blocks have only DC components, and the required capacity is equivalent to the sum of the free areas of the fixed areas including only DC components. This value is 140 words × 1 in the standard mode as shown in FIG.
It becomes 6 bits, and two video segments are used for replacement.

【0037】したがって、MRAM13をフォーマット
処理とデフォーマット処理で共通に使用する為には、フ
ォーマット処理時に必要な容量(本実施の形態において
は146word×16bit)を2個使用する。
Therefore, in order to use the MRAM 13 commonly for the format processing and the deformat processing, two capacities (146 words × 16 bits in the present embodiment) required for the formatting processing are used.

【0038】VRAM14がフォーマット処理時におい
て、MACとして使われなかったHACのみを格納する
為に最も多くの容量を必要とする場合は、ビデオセグメ
ント内において1つのマクロブロックに最大符号量が割
り当てられて、残りのマクロブロックが直流成分のみの
場合であり、必要容量は残りのマクロブロックの固定領
域の空き領域の合計に相当する。この値は図11に示す
ように標準モード時の128word×16bitとな
り、ビデオセグメント交替で2個使用する。
When the VRAM 14 needs the largest capacity to store only the HAC not used as the MAC during the format processing, the maximum code amount is allocated to one macroblock in the video segment. , The remaining macroblocks are only DC components, and the required capacity is equivalent to the total free space in the fixed area of the remaining macroblocks. This value is 128 words × 16 bits in the standard mode as shown in FIG. 11, and two video segments are used for replacement.

【0039】また、VRAM14がデフォーマット処理
時において、VACのみを全て格納する為に最も多くの
容量を必要とする場合は、フォーマット処理時と同様に
ビデオセグメント内において1つのマクロブロックに最
大符号量が割り当てられて、残りのマクロブロックが直
流成分のみの場合であり、必要容量は残りのマクロブロ
ックの固定領域の空き領域の合計に相当する。この値は
フォーマット処理時と同様に図11に示すように標準モ
ード時の128word×16bitとなり、ビデオセ
グメント交替で2個使用する。
When the VRAM 14 needs the largest capacity to store only the VACs at the time of the deformat processing, the maximum code amount can be stored in one macroblock in the video segment as at the time of the format processing. Is assigned, and the remaining macroblock has only a DC component. The required capacity is equivalent to the total of the free area of the fixed area of the remaining macroblock. This value is 128 words × 16 bits in the standard mode as shown in FIG. 11 as in the case of the format processing, and two video segments are used for replacement.

【0040】したがって、VRAM14をフォーマット
処理とデフォーマット処理で共通に使用する為には、フ
ォーマット処理時とデフォーマット処理で共通に必要な
容量(本実施の形態においては128word×16b
it)を2個使用する。
Therefore, in order to use the VRAM 14 commonly in the format processing and the deformat processing, the capacity required in common in the formatting processing and the deformat processing (128 words × 16b in the present embodiment)
it).

【0041】FPRAM15はフォーマット処理時にお
いて、記録第2ステップ信号処理までの過程でFRAM
の各固定領域内に格納された可変長符号化データの最終
位置情報を記憶しておく為に使用するもので、FRAM
の各固定領域内の最大アドレス深さ(標準モード時の輝
度信号の固定領域の深さ)を識別する為の3bitと、
16bitワード内における最終位置を識別する為の4
bitの計7bitを、高圧縮モード時のビデオセグメ
ント内の固定領域数分必要とする為、本実施の形態にお
いては40word×7bitの容量をビデオセグメン
ト交替で2個使用する。
In the format processing, the FPRAM 15 stores the FRAM in the process up to the recording second step signal processing.
Is used to store the final position information of the variable length coded data stored in each fixed area of FRAM.
3 bits for identifying the maximum address depth (the depth of the fixed area of the luminance signal in the standard mode) in each fixed area of
4 to identify the last position in a 16-bit word
Since a total of 7 bits are required for the fixed number of areas in the video segment in the high compression mode, in the present embodiment, a capacity of 40 words × 7 bits is used for video segment replacement.

【0042】ここで、フォーマット処理時のFRAM、
MRAM、VRAM各メモリの書き込みおよび読み出し
のタイミングについて図12を用いて説明する。
Here, the FRAM at the time of format processing,
The write and read timings of the MRAM and VRAM will be described with reference to FIG.

【0043】図12において、入力とは図1における可
変長符号化回路5から入力されている可変長符号化デー
タであり、MB0、MB1といった順番にマクロブロッ
ク単位で入力される。また、出力とは図1における誤り
訂正符号化回路31に出力するフォーマットデータであ
り、入力同様MB0、MB1といった順番にマクロブロ
ック単位で出力される。ここで、例えばMB0からMB
4の5マクロブロックが1ビデオセグメントに相当す
る。
In FIG. 12, the input is variable-length coded data input from the variable-length coding circuit 5 in FIG. 1, and is input in the order of MB0 and MB1 in macroblock units. The output is format data to be output to the error correction coding circuit 31 in FIG. 1, and is output in the order of MB0 and MB1 in macroblock units in the same manner as input. Here, for example, MB0 to MB
Four (5) macroblocks correspond to one video segment.

【0044】図12において、FRAMはマクロブロッ
ク単位で用いられ、本実施の形態においてはFRAMa
〜FRAMgまでの7個用いる。例えばFRAMaの場
合、MB0が入力されている期間(第1ステップ)にM
B0のLACを書き込み、MB1が入力されている期間
(第2ステップ)に各固定領域の空き領域にMACを書
き込む。この第2ステップでは読み出しと書き込みを行
うが、読み出しは既に書き込まれているLACと同じア
ドレスにMACをつなぎ合わせて書き込む必要がある場
合、このLACを予め読み出す場合である。そしてMB
6が入力されている期間(第3ステップ)に、書き込ま
れているLACとMACを読み出す。この一連のステッ
プでFRAMにデータが書き込まれて読み出されるまで
の拘束期間は7マクロブロック分であり、7個のFRA
Mを1マクロブロック分ずつずらせて用いている。
In FIG. 12, FRAM is used in units of macro blocks, and in this embodiment, FRAMa is used.
7 to FRAMg are used. For example, in the case of FRAMa, during the period when MB0 is input (first step), M
The LAC of B0 is written, and the MAC is written in the free area of each fixed area during the period when MB1 is input (second step). In this second step, reading and writing are performed, and reading is performed when it is necessary to connect the MAC to the same address as the already written LAC and write the LAC in advance. And MB
During the period in which 6 is input (third step), the written LAC and MAC are read. In this series of steps, the constraint period from when data is written to the FRAM to when it is read is seven macroblocks, and seven FRAs are used.
M is shifted by one macroblock.

【0045】MRAMもマクロブロック単位で用いら
れ、本実施の形態においてはMRAMaとMRAMbの
2個用いる。例えばMRAMaの場合、MB0が入力さ
れている期間(第1ステップ)にMB0のHACを書き
込み、MB1が入力されている期間(第2ステップ)
に、FRAMaの各固定領域の空き領域にMACを書き
込む為にHACの読み出しを行っている。また、この第
2ステップでは、FRAMaに書き込みきれなかったH
ACをVRAMaに転送している。この一連のステップ
でMRAMにデータが書き込まれて読み出されるまでの
拘束期間は2マクロブロック分であり、2個のMRAM
を1マクロブロック分ずらせて用いている。
The MRAM is also used for each macroblock, and in this embodiment, two MRAMa and MRAMb are used. For example, in the case of MRAMa, the HAC of MB0 is written during the period when MB0 is input (first step), and the period when MB1 is input (second step).
Then, the HAC is read in order to write the MAC in the free area of each fixed area of the FRAMa. Also, in this second step, H that could not be completely written to FRAMa
AC is transferred to VRAMa. In this series of steps, the constraint period from the time data is written to the MRAM to the time it is read is two macroblocks.
Are shifted by one macroblock.

【0046】VRAMはビデオセグメント単位で用いら
れ、本実施の形態においてはVRAMaとVRAMbの
2個用いる。例えばVRAMaの場合、MB1からMB
5が入力されている期間(第2ステップ)にMB0から
MB4のMACとしてFRAMa〜FRAMeに格納し
きれなかったHACを書き込み、MB6からMB10が
入力されている期間(第3ステップ)に、FRAMa〜
FRAMeから読み出されるLACとMACの空き領域
に、VACをつなぎ合わせて出力する為に読み出してい
る。この一連のステップでVRAMにデータが書き込ま
れて読み出されるまでの拘束期間は2ビデオセグメント
分であり、2個のVRAMを1ビデオセグメント分ずら
せて用いている。
The VRAM is used in units of video segments, and in this embodiment, two VRAMs, VRAMa and VRAMb, are used. For example, in the case of VRAMa, MB1 to MB
5 is input (second step), the HAC that could not be stored in the FRAMa to FRAMe is written as the MAC of MB0 to MB4, and during the period (third step) where MB6 to MB10 are input, the FRAMa to MB4 are input.
It is read in order to connect and output the VAC to an empty area of the LAC and MAC read from the FRAMe. In this series of steps, the constraint period from the time data is written to the VRAM to the time it is read is two video segments, and two VRAMs are used shifted by one video segment.

【0047】次に、デフォーマット処理時のFRAM、
MRAM、VRAM各メモリの書き込みおよび読み出し
のタイミングについて図13を用いて説明する。図13
において、入力とは図1における誤り訂正復号化回路3
2から入力されているフォーマットデータであり、MB
0、MB1といった順番にマクロブロック単位で入力さ
れる。また、出力とは図1におけるエラー処理回路22
に出力する可変長符号化データであり、入力同様MB
0、MB1といった順番にマクロブロック単位で出力さ
れる。ここで、例えばMB0からMB4の5マクロブロ
ックが1ビデオセグメントに相当する。
Next, the FRAM at the time of the reformatting process,
Write and read timings of the MRAM and the VRAM will be described with reference to FIG. FIG.
, The input means the error correction decoding circuit 3 in FIG.
2 is the format data input from
0 and MB1 are input in the order of macroblocks. The output is the error processing circuit 22 in FIG.
Variable-length coded data to be output to
0 and MB1 are output in macroblock units in this order. Here, for example, five macroblocks MB0 to MB4 correspond to one video segment.

【0048】図13において、FRAMはマクロブロッ
ク単位で用いられ、本実施の形態においてはFRAMa
〜FRAMgまでの7個用いる。例えばFRAMaの場
合、MB0が入力されている期間(第1ステップ)にM
B0のフォーマットデータを書き込み、MB1が入力さ
れている期間(第2ステップ)に、各固定領域の空き領
域に格納されているMACとVACを分離し、MRAM
aとVRAMaにそれぞれ転送する為に読み出す。そし
てMB6が入力されている期間(第3ステップ)に、書
き込まれている各固定領域のLACのみを出力する。こ
の一連のステップでFRAMにデータが書き込まれて読
み出されるまでの拘束期間は7マクロブロック分であ
り、7個のFRAMを1マクロブロック分ずつずらせて
用いている。
In FIG. 13, FRAM is used in units of macro blocks, and in this embodiment, FRAMa is used.
7 to FRAMg are used. For example, in the case of FRAMa, during the period when MB0 is input (first step), M
The format data of B0 is written, and the MAC and VAC stored in the free area of each fixed area are separated during the period when MB1 is input (second step), and the MRAM
a and VRAMa for reading. Then, during the period in which MB6 is input (third step), only the LAC of each fixed area in which data is written is output. In this series of steps, the constraint period from the writing of data to the FRAM until the data is read is seven macroblocks, and the seven FRAMs are used shifted by one macroblock.

【0049】MRAMはビデオセグメント単位で用いら
れ、本実施の形態においてはMRAMaとMRAMbの
2個用いる。例えばMRAMaの場合、MB1からMB
5が入力されている期間(第2ステップ)にMB0から
MB4のMACを書き込み、MB6からMB10が入力
されている期間(第3ステップ)に、FRAMa〜FR
AMeから読み出されるLACに、必要に応じてMAC
をつなぎ合わせて出力する為に読み出している。この一
連のステップでMRAMにデータが書き込まれて読み出
されるまでの拘束期間は2ビデオセグメント分であり、
2個のMRAMを1ビデオセグメント分ずらせて用いて
いる。
The MRAM is used for each video segment, and in the present embodiment, two MRAMa and MRAMb are used. For example, in the case of MRAMa, MB1 to MB
5 is input (second step), the MACs of MB0 to MB4 are written, and during the input period of MB6 to MB10 (third step), FRAMa to FR are written.
If necessary, add MAC to LAC read from AMe
Are read in order to connect and output. In this series of steps, the constraint period until data is written to and read from the MRAM is two video segments,
Two MRAMs are used shifted by one video segment.

【0050】VRAMもビデオセグメント単位で用いら
れ、本実施の形態においてはVRAMaとVRAMbの
2個用いる。例えばVRAMaの場合、MB1からMB
5が入力されている期間(第2ステップ)にMB0から
MB4のVACを書き込み、MB6からMB10が入力
されている期間(第3ステップ)に、FRAMa〜FR
AMeから読み出されるLACと、MRAMaから読み
出されるMACに、必要に応じてVACをつなぎ合わせ
て出力する為に読み出している。この一連のステップで
VRAMにデータが書き込まれて読み出されるまでの拘
束期間は2ビデオセグメント分であり、2個のVRAM
を1ビデオセグメント分ずらせて用いている。
VRAMs are also used in video segment units. In this embodiment, two VRAMs, VRAMa and VRAMb, are used. For example, in the case of VRAMa, MB1 to MB
5 is input (second step), the VAC of MB0 to MB4 is written, and during the input of MB6 to MB10 (third step), FRAMa to FR are written.
If necessary, the VAC is connected to the LAC read from the AMe and the MAC read from the MRAMa, so that the VAC is read. In this series of steps, the constraint period from when data is written to and read out to the VRAM is two video segments, and two VRAMs are used.
Are shifted by one video segment.

【0051】次に、記録系の処理について図1を用いて
説明する。画素データ入力端子1に入力された画素デー
タは、シャフリング回路2によって8×8画素の直交変
換ブロックに分割され、更に隣接する複数の輝度成分と
色差成分の直交変換ブロックからなるマクロブロックに
まとめられ、更に画面上の分散した位置から取り出した
5つのマクロブロックからなるビデオセグメントにまと
められる。次に直交変換回路3によって画素データは直
交変換ブロック単位に直交変換され、直流成分以外の交
流成分は量子化回路4によって量子化される。量子化さ
れた交流成分は可変長符号化回路5によって周知の2次
元ハフマン符号等のアルゴリズム(交流成分の0ランと
それに続く0以外の値の組み合わせから符号語を決定
し、発生確率の高い組み合わせに短い符号語を割り当
て、発生確率の低い組み合わせに長い符号語を割り当て
る)によってデータ量を削減しフォーマット処理回路2
8に入力される。
Next, the processing of the recording system will be described with reference to FIG. The pixel data input to the pixel data input terminal 1 is divided by the shuffling circuit 2 into orthogonal transform blocks of 8 × 8 pixels, and further combined into a macroblock composed of a plurality of adjacent orthogonal transform blocks of luminance and chrominance components. The video segment is further combined into a video segment consisting of five macroblocks extracted from dispersed positions on the screen. Next, the pixel data is orthogonally transformed by the orthogonal transformation circuit 3 in units of orthogonal transformation blocks, and the AC component other than the DC component is quantized by the quantization circuit 4. The quantized AC component is determined by a variable-length coding circuit 5 using a well-known algorithm such as a two-dimensional Huffman code (a code word is determined from a combination of a zero run of the AC component and a subsequent non-zero value, and a combination having a high probability of occurrence is determined. Allocating a short code word to a combination and assigning a long code word to a combination having a low probability of occurrence) to reduce the data amount.
8 is input.

【0052】次に、図2を用いて記録第1ステップ信号
処理回路6の動作を説明する。記録第1ステップ信号処
理ではマクロブロック単位のデータ処理が行われ、可変
長符号化回路5から入力された各直交変換ブロックの可
変長符号化データをLACはFRAMに、HACはMR
AMにそれぞれ格納する作業を行っている。
Next, the operation of the recording first step signal processing circuit 6 will be described with reference to FIG. In the recording first step signal processing, data processing is performed in units of macroblocks, and the variable length coded data of each orthogonal transform block input from the variable length coding circuit 5 is LAC in FRAM and HAC in MR.
The work of storing each in the AM is performed.

【0053】可変長符号化回路5から入力された各直交
変換ブロックの可変長符号化データを巡回連結器202
を用いて16bit単位にMSB側から順に整列し、記
録第1ステップRAM制御回路9aを介してFRAMの
各固定領域内に格納する。FRAMへの格納は巡回連結
器202に16bitのLACが揃う毎に行うが、各固
定領域を溢れる前に終了符号語(以下EOBコード:E
nd Of Block Codeとする)が転送され
た場合には、巡回連結器202に16bitのLACが
揃わなくてもEOBコードまでのLACをFRAMへ格
納する。
The variable length coded data of each orthogonal transform block input from the variable length coding circuit 5 is
Are arranged in order from the MSB side in units of 16 bits, and stored in each fixed area of the FRAM via the recording first step RAM control circuit 9a. The data is stored in the FRAM every time a 16-bit LAC is prepared in the cyclic coupler 202, but before the fixed area overflows, an end codeword (hereinafter referred to as an EOB code: EOB code:
nd Of Block Code), the LAC up to the EOB code is stored in the FRAM even if the cyclic coupler 202 does not have a 16-bit LAC.

【0054】また、HACは同様に巡回連結器204を
用いて16bit単位にMSB側から順に整列し、記録
第1ステップRAM制御回路9bを介してMRAMに順
次格納していく。MRAMへの格納は巡回連結器204
に16bitのHACが揃う毎に行うが、マクロブロッ
ク内の全てのデータ処理が終った時点で巡回連結器20
4に16bitのHACが揃っていなかった場合は、巡
回連結器204に残っているHACをMRAMへ格納す
る。
The HACs are similarly arranged in order from the MSB side in 16-bit units using the cyclic coupler 204, and are sequentially stored in the MRAM via the recording first step RAM control circuit 9b. The storage in the MRAM is performed by the cyclic coupler 204.
Is performed every time a 16-bit HAC is prepared, but when all data processing in the macroblock is completed, the cyclic coupler 20
If the 16-bit HAC is not available in 4, the HAC remaining in the cyclic coupler 204 is stored in the MRAM.

【0055】前記処理において、次の記録第2ステップ
信号処理で必要な情報として、マクロブロック内におけ
るFRAMの各固定領域の空き領域の有無、空き領域が
ある場合は空き領域の先頭のアドレス及びbit位置情
報、MRAMの最終書き込みアドレス及びbit位置情
報を記憶しておく。
In the above processing, the information necessary for the next recording second step signal processing includes the presence or absence of a free area of each fixed area of the FRAM in the macro block, and the start address and bit of the free area if there is a free area. The position information, the final write address of the MRAM, and the bit position information are stored.

【0056】本実施の形態では、図示していないが前記
マクロブロック内におけるFRAMの各固定領域の空き
領域の有無、空き領域がある場合の空き領域の先頭のア
ドレス及びbit位置情報、MRAMの最終書き込みア
ドレス及びbit位置情報はレジスタを用いて保持して
いる。
In this embodiment, although not shown, the presence / absence of a free area in each fixed area of the FRAM in the macroblock, the start address and bit position information of the free area when there is a free area, and the last address of the MRAM The write address and bit position information are held using a register.

【0057】ここで、本実施の形態では可変長符号化回
路5からの1直交変換ブロックの直流成分及び交流成分
及びEOBコードの転送に割り当てられているクロック
数は、64クロックとなっており、この内直流成分の転
送に1クロック、交流成分及びEOBコードの転送に6
3クロックとなっている為、交流成分が63個あった場
合にEOBコードを転送する期間が無くなってしまう。
この為、交流成分が63個あった場合にはEOBコード
の転送は行わず、フォーマット処理回路28にてEOB
コードを付加する事としている。図2における選択器2
03はこの処理を行う為の回路である。
Here, in the present embodiment, the number of clocks allocated to the transfer of the DC component and AC component of one orthogonal transform block and the EOB code from the variable length coding circuit 5 is 64 clocks. One clock is used to transfer the DC component, and 6 is used to transfer the AC component and EOB code.
Since there are three clocks, there is no period for transferring the EOB code when there are 63 AC components.
Therefore, when there are 63 AC components, the EOB code is not transferred, and the format processing circuit 28
Code is to be added. Selector 2 in FIG.
03 is a circuit for performing this processing.

【0058】記録第1ステップ信号処理で格納された、
FRAMの空き領域がある最初の直交変換ブロックの固
定領域において、空き領域の先頭のアドレスのデータを
FRAMから記録第2ステップRAM制御回路10aを
介して1ワード読み出し、巡回連結器302に有効デー
タ(LAC)のみ保持する。この時、選択器301はF
RAMから読み出したデータを通過させるように制御す
る。次に選択器301をMRAMから読み出したHAC
を通過させるように制御し、MRAMから記録第2ステ
ップRAM制御回路10bを介してMRAMに格納され
ているHACを1ワードずつ読み出し、巡回連結器30
2に保持されている有効データの空き領域に連結し、記
録第2ステップRAM制御回路10cを介してFRAM
の同一アドレスに書き込む。
The recording stored in the first step signal processing,
In the fixed area of the first orthogonal transformation block having an empty area of the FRAM, the data of the head address of the empty area is recorded from the FRAM, one word is read out via the second step RAM control circuit 10a, and valid data ( LAC) only. At this time, the selector 301 sets F
Control is performed so as to pass data read from the RAM. Next, the selector 301 reads the HAC read from the MRAM.
And read the HAC stored in the MRAM one word at a time from the MRAM via the recording second step RAM control circuit 10b.
2 is linked to a free area of valid data held in the FRAM 2 via the recording second step RAM control circuit 10c.
To the same address.

【0059】書き込んだFRAMの次のアドレスにも空
き領域がある場合は、MRAMから読み出したHAC
を、FRAMに既に書き込まれた次のHACから順に、
巡回連結器302を用いて16bit単位にMSB側か
ら順に整列して記録第2ステップRAM制御回路10c
を介してFRAMに格納していき、1つ目の固定領域の
空き領域が無くなるまで繰り返す。
If there is an empty area at the address next to the written FRAM, the HAC read from the MRAM is used.
From the next HAC already written to the FRAM,
The second step RAM control circuit 10c is arranged in order from the MSB side in 16-bit units by using the cyclic coupler 302.
And the process is repeated until there is no more free space in the first fixed area.

【0060】以下、空き領域がある2番目以降の直交変
換ブロックの固定領域についても同様に、FRAMから
空き領域の先頭のアドレスのデータを1ワード読み出
し、巡回連結器302に有効データ(LAC)のみ保持
し、MRAMから読み出したHACを、既にFRAMに
書き込まれた次のHACから順に巡回連結器302およ
び記録第2ステップRAM制御回路10cを介してFR
AMの固定領域の空き領域に埋め込んでいく。
Similarly, for the fixed area of the second and subsequent orthogonal transform blocks having an empty area, one word of the data of the head address of the empty area is read out from the FRAM, and only the valid data (LAC) is written to the cyclic coupler 302. The HAC held and read from the MRAM are sequentially transmitted from the next HAC already written to the FRAM to the FR controller via the cyclic coupler 302 and the recording second step RAM control circuit 10c.
It is embedded in the free area of the fixed area of AM.

【0061】この処理過程において、マクロブロック内
の空き領域の合計とHACの合計の間には、当然ながら
マクロブロック内の空き領域の合計よりもHACが少な
い場合と、同じ場合と、多い場合の3つの状態が存在
し、マクロブロック内の空き領域の合計よりもHACが
少ない場合と同じ場合は、HACは全て同一マクロブロ
ック内の他の直交変換ブロックの固定領域の空き領域に
格納され、MRAMに格納されているHACを全てFR
AMに格納した時点で、記録第2ステップ信号処理は終
了する。
In this process, between the total of the free areas in the macroblock and the total of the HAC, the HAC is naturally smaller than, equal to, or larger than the total of the free areas in the macroblock. If there are three states and the HAC is less than the total free space in the macroblock, the HACs are all stored in the free space in the fixed area of another orthogonal transform block in the same macroblock, and the MRAM All the HACs stored in
At the time when the data is stored in the AM, the recording second step signal processing ends.

【0062】マクロブロック内の空き領域の合計よりも
HACが多い場合には、FRAMに格納しきれないHA
Cが存在する事を意味し、このHACを巡回連結器30
3を用いて16bit単位にMSB側から順に整列し
て、記録第2ステップRAM制御回路10dを介してV
RAMに格納していく。
If the HAC is larger than the total free area in the macro block, the HA that cannot be stored in the FRAM
C means that the HAC is
3 is sequentially arranged in units of 16 bits from the MSB side using V.3, and V is set via the recording second step RAM control circuit 10d.
Store in RAM.

【0063】前記処理において、次の記録第3ステップ
信号処理で必要な情報として、ビデオセグメント内にお
けるFRAMの各固定領域の空き領域の有無、空き領域
がある場合は空き領域の先頭のアドレス及びbit位置
情報、VRAMの最終書き込みアドレス及びbit位置
情報を記憶しておく。
In the above processing, the information necessary for the next recording third step signal processing includes the presence / absence of a free area in each fixed area of the FRAM in the video segment, and if there is a free area, the start address and bit of the free area The position information, the final write address of the VRAM, and the bit position information are stored.

【0064】本実施の形態では、図示していないが前記
ビデオセグメント内におけるFRAMの各固定領域の空
き領域の有無及び空き領域がある場合の空き領域の先頭
のアドレス及びbit位置情報はFPRAMに、VRA
Mの最終書き込みアドレス及びbit位置情報はレジス
タを用いて保持している。
In the present embodiment, although not shown, the presence / absence of a free area of each fixed area of the FRAM in the video segment and the start address and bit position information of the free area when there is a free area are stored in the FPRAM. VRA
The final write address and bit position information of M are held using a register.

【0065】次に、図4を用いて記録第3ステップ信号
処理回路8の動作を説明する。記録第3ステップ信号処
理では、ビデオセグメント単位のデータ処理が行われ、
記録第2ステップ信号処理までの過程でFRAMに格納
されているLAC及びMACの空き領域に、VRAMに
格納されているHACを埋め込みながらフォーマットデ
ータとして出力する作業を行っている。
Next, the operation of the recording third step signal processing circuit 8 will be described with reference to FIG. In the recording third step signal processing, data processing is performed in video segment units,
In the process up to the recording second step signal processing, the work of outputting as format data while embedding the HAC stored in the VRAM into the free area of the LAC and MAC stored in the FRAM is performed.

【0066】記録第1ステップ信号処理及び記録第2ス
テップ信号処理でFRAMに格納されたLAC及びMA
Cを、記録第3ステップRAM制御回路11aを介して
順次読み出すと同時に、FPRAMから各固定領域に空
き領域が残っているか否かの情報を読み出し、空き領域
が残っている場合には、記録第2ステップ信号処理でV
RAMに格納されているHACを、先頭アドレスから順
に記録第3ステップRAM制御回路11bを介して読み
出し、巡回連結器401を用いてFRAMから読み出し
たLAC及びMACの後ろに連結できるように並べ換え
を行い、連結器402を用いてFRAMから読み出した
LAC及びMACの空き領域を埋めながら画素データ出
力端子403にフォーマットデータとして出力する。
The LAC and MA stored in the FRAM in the recording first step signal processing and the recording second step signal processing
C is sequentially read out via the recording third step RAM control circuit 11a, and at the same time, information as to whether or not an empty area remains in each fixed area is read out from the FPRAM. V in two-step signal processing
The HACs stored in the RAM are sequentially recorded from the head address. The third step is read out via the RAM control circuit 11b, and the cyclic coupler 401 is used to rearrange the LACs and MACs read from the FRAM so that they can be connected after the MAC. , And outputs the format data to the pixel data output terminal 403 while filling the LAC and MAC empty areas read from the FRAM using the coupler 402.

【0067】出力されたフォーマットデータは、図1の
誤り訂正符号化回路31に入力され、再生時の符号誤り
を訂正する為の誤り訂正符号が付加され、図示していな
いがディジタル変調回路で変調された後、テープに記録
される。
The output format data is input to the error correction encoding circuit 31 shown in FIG. 1 and added with an error correction code for correcting a code error at the time of reproduction. After that, it is recorded on a tape.

【0068】次に再生系の処理について図1を用いて説
明する。図示していないがテープから再生された再生信
号は、ディジタル復調回路で復調された後、誤り訂正復
号化回路32にて再生時の符号誤りを訂正又は修正し、
デフォーマット処理回路29に入力される。
Next, the processing of the reproducing system will be described with reference to FIG. Although not shown, the reproduced signal reproduced from the tape is demodulated by a digital demodulation circuit, and then corrected or corrected for a code error during reproduction by an error correction decoding circuit 32.
The data is input to the deformat processing circuit 29.

【0069】次に、図5を用いて再生第1ステップ信号
処理回路16の動作を説明する。再生第1ステップ信号
処理ではマクロブロック単位のデータ処理が行われ、誤
り訂正復号化回路32から入力されたフォーマットデー
タを、再生第1ステップRAM制御回路19aを介して
FRAMに格納する。
Next, the operation of the reproduction first step signal processing circuit 16 will be described with reference to FIG. In the reproduction first step signal processing, data processing is performed on a macro block basis, and the format data input from the error correction decoding circuit 32 is stored in the FRAM via the reproduction first step RAM control circuit 19a.

【0070】ここで、選択器502は誤り訂正復号化回
路32で符号誤りを訂正及び修正できなかった場合に、
フォーマットデータと共に送られてくるフラグを基にエ
ラーコードを強制的に書き込む為の回路である。エラー
コードに置き換えられた直交変換ブロックの画素は、図
1におけるデシャフリング回路26によって前フレーム
の画素に置き換えられる等の処理が行われ、画面破綻を
極力防止している。しかし、誤り訂正復号化回路32で
誤訂正された場合は、前記のフラグは真とならずエラー
コードには置き換えられない。
When the error correction decoding circuit 32 fails to correct and correct a code error, the selector 502
This is a circuit for forcibly writing an error code based on a flag sent together with the format data. The pixels of the orthogonal transformation block replaced by the error code are subjected to processing such as replacement with the pixels of the previous frame by the deshuffling circuit 26 in FIG. 1 to prevent the screen from breaking down as much as possible. However, when the error is corrected by the error correction decoding circuit 32, the flag is not true and the flag is not replaced with the error code.

【0071】次に、図6を用いて再生第2ステップ信号
処理回路17の動作を説明する。再生第2ステップ信号
処理においてもマクロブロック単位のデータ処理が行わ
れ、このステップでは2つのプロセスに分割して処理を
行なう。
Next, the operation of the reproduction second step signal processing circuit 17 will be described with reference to FIG. Also in the second reproduction signal processing, data processing is performed in units of macroblocks. In this step, the processing is divided into two processes.

【0072】第1のプロセスでは、再生第1ステップ信
号処理でFRAMに格納されたフォーマットデータの各
固定領域の最初のEOBコードの検出を行う。第1のプ
ロセスによってEOBコードが検出された場合、検出さ
れたEOBコード以降の可変長符号化データはHACで
ある事がわかり、LACとHACを分離する事ができ
る。
In the first process, the first EOB code in each fixed area of the format data stored in the FRAM is detected in the first reproduction signal processing. When the EOB code is detected by the first process, it is known that the variable length coded data after the detected EOB code is the HAC, and the LAC and the HAC can be separated.

【0073】第2のプロセスでは第1のプロセスで分離
されたHACをつなぎ合わせて更にEOBコードの検出
を行う。第1のプロセスと第2のプロセスを通じ、第1
のプロセスと第2のプロセスで検出されたEOBコード
の個数の合計が、マクロブロック内の固定領域数に達す
るまでのHACはMACである事がわかり、合計がマク
ロブロック内の固定領域数に達した後のHACはVAC
である事がわかる為、HACをMACとVACに分離す
る事ができる。再生第2ステップ信号処理では、前記手
順でMACとVACを分離してMACをMRAMに、V
ACをVRAMにそれぞれ格納する処理を行なってい
る。
In the second process, the HAC separated in the first process are connected, and the EOB code is further detected. Through the first process and the second process, the first process
It is understood that the HAC is MAC until the sum of the number of EOB codes detected in the second process and the number of EOB codes detected in the second process reaches the number of fixed regions in the macroblock. HAC is VAC
Therefore, the HAC can be separated into the MAC and the VAC. In the reproduction second step signal processing, the MAC and the VAC are separated by the above procedure, and the MAC is stored in the MRAM,
The process of storing the AC in the VRAM is performed.

【0074】以下、第1のプロセスの具体的な処理手順
について説明する。第1のプロセスでは、再生第1ステ
ップ信号処理でFRAMに格納されたフォーマットデー
タを、再生第2ステップRAM制御回路20aを介して
読み出し、選択器602を再生第2ステップRAM制御
回路20aからのデータが通過するように制御して、ホ
ールド回路付レジスタ603にて保持する。ホールド回
路付レジスタ603に選択器602から次のデータが入
力されたら、ホールド回路付レジスタ603に保持され
ていたデータを、ホールド回路付レジスタ604に転送
保持し、ホールド回路付レジスタ603は新たなデータ
を保持する。即ち、ホールド回路付レジスタ603には
選択器602から入力された最新のデータ、ホールド回
路付レジスタ604にはその1つ前のデータが保持され
るよう制御されている。
Hereinafter, a specific processing procedure of the first process will be described. In the first process, the format data stored in the FRAM in the reproduction first step signal processing is read out through the reproduction second step RAM control circuit 20a, and the selector 602 is read out of the data from the reproduction second step RAM control circuit 20a. Is passed through, and is held in the register 603 with a hold circuit. When the next data is input from the selector 602 to the register with a hold circuit 603, the data held in the register with a hold circuit 603 is transferred and held to the register with a hold circuit 604, and the register with the hold circuit 603 stores new data. Hold. That is, control is performed so that the latest data input from the selector 602 is held in the register with hold circuit 603, and the immediately preceding data is held in the register with hold circuit 604.

【0075】シフト器605には、ホールド回路付レジ
スタ604に保持されている16bitデータと、ホー
ルド回路付レジスタ603に保持されているMSB側の
15bitデータの31bitデータが入力されてお
り、VLC検出器607への入力が常にMSBが可変長
符号化データの先頭になるようにシフトしたMSB側の
16bitが出力される。但し、第1のプロセスではシ
フト器605の16bit出力中のMSB側8bitの
み使用する(本実施の形態では、以下に説明する可変長
符号化データ長の検出は、8bitで全て検出ができる
為)。
The shifter 605 receives the 16-bit data held in the register with hold circuit 604 and the 31-bit data of the 15-bit data on the MSB side held in the register with hold circuit 603, and receives the VLC detector The input to 607 is output as 16 bits on the MSB side shifted so that the MSB always becomes the head of the variable length coded data. However, in the first process, only the 8 bits on the MSB side in the 16-bit output of the shifter 605 are used (in the present embodiment, the detection of the variable-length coded data length described below can all be detected in 8 bits). .

【0076】第1のプロセスでは連結器606は常にシ
フト器605からのデータが通過するよう制御されてお
り、シフト器605から出力されたMSB側の8bit
がVLC検出器607に入力される。
In the first process, the coupler 606 is controlled so that the data from the shifter 605 always passes, and the 8 bits on the MSB side output from the shifter 605
Is input to the VLC detector 607.

【0077】VLC検出器607では入力された8bi
tデータから第1のプロセスの主目的である、各固定領
域内の可変長符号化データに於ける最初のEOBコード
の検出を行うが、EOBコードの検出は、それ以前の可
変長符号化データ長を一つずつ検出して、可変長符号化
データを追跡していく必要がある為、可変長符号化デー
タ長の検出も行い、検出した可変長符号化データ長を出
力している。
In the VLC detector 607, the input 8bi
The main purpose of the first process is to detect the first EOB code in the variable-length coded data in each fixed area from the t-data, but the detection of the EOB code is based on the previous variable-length coded data. Since it is necessary to detect the length one by one and follow the variable-length coded data, the variable-length coded data length is also detected, and the detected variable-length coded data length is output.

【0078】第1のプロセスでは選択器609は常にV
LC検出器607から出力された可変長符号化データ長
が通過するよう制御されており、累積加算器610で可
変長符号化データ長の累積加算を行っている。累積加算
の結果はFRAMからのデータ読み出し、ホールド回路
付レジスタ603及びホールド回路付レジスタ604の
データ保持、シフト器605のシフト量の制御に使用し
ている。
In the first process, the selector 609 always sets V
The variable length coded data length output from the LC detector 607 is controlled to pass, and the cumulative adder 610 performs cumulative addition of the variable length coded data length. The result of the cumulative addition is used to read data from the FRAM, hold data in the register with hold circuit 603 and the register with hold circuit 604, and control the shift amount of the shifter 605.

【0079】このEOBコード検出作業は、固定領域毎
に最初のEOBコードが検出された時点で終了し、次の
固定領域のEOBコード検出に移行する。固定領域の終
端まで検出作業を続けてもEOBコードが検出できない
場合は、その後次の固定領域のEOBコード検出に移行
する。
The EOB code detection operation is completed when the first EOB code is detected for each fixed area, and the process proceeds to the next fixed area EOB code detection. If the EOB code cannot be detected even if the detection operation is continued up to the end of the fixed area, the process then proceeds to the next fixed area EOB code detection.

【0080】第1のプロセスでマクロブロック内の全て
の固定領域でEOBコードが検出されなかった場合、即
ち検出されたEOBコードの個数が0の場合は、マクロ
ブロック内の全ての固定領域の可変長符号化データが溢
れている事を示しており、そのマクロブロックにはMA
CもVACも含まれていない。したがって、再生第2ス
テップ信号処理の目的であるMACとVACの分離は必
要ない為、第2のプロセスは行わない。前記以外の場合
は第2のプロセスに移行する。
If the EOB code is not detected in all the fixed areas in the macro block in the first process, that is, if the number of detected EOB codes is 0, the variable of all the fixed areas in the macro block is changed. This indicates that the long coded data is overflowing, and the macroblock has MA
Neither C nor VAC is included. Therefore, the second process is not performed because the separation of MAC and VAC, which is the purpose of the reproduction second step signal processing, is not necessary. In other cases, the process proceeds to the second process.

【0081】ここで、第2のプロセスで必要な情報とし
て、EOBコードが検出できた固定領域の数と、EOB
コードの次のビット即ちHACの先頭ビットの固定領域
内の位置情報、EOBコードが検出できなかった固定領
域の数と、固定領域内の最終位置において可変長符号化
データが途中で途切れているかいないかの情報、可変長
符号化データが途中で途切れている場合は途中までの可
変長符号化データと、そのビット長情報を記憶してお
く。
Here, as information necessary in the second process, the number of fixed areas in which the EOB code can be detected and the EOB code
The position information of the next bit of the code, that is, the first bit of the HAC in the fixed area, the number of fixed areas where the EOB code could not be detected, and whether the variable-length encoded data is interrupted at the end position in the fixed area If the variable length coded data is interrupted on the way, the variable length coded data up to the middle and the bit length information are stored.

【0082】本実施の形態では、EOBコードが検出で
きなかった固定領域の途中で途切れている可変長符号化
データをシフトレジスタ611に保持する構成となって
おり、その他、EOBコードが検出できた固定領域の
数、HACの先頭ビットの固定領域内の位置情報、及び
EOBコードが検出できなかった固定領域の数、固定領
域内の最終位置において可変長符号化データが途中で途
切れているかいないかの情報、固定領域の途中で途切れ
ている可変長符号化データのビット長情報は、図示して
いないが他のレジスタを用いて保持している。
In this embodiment, the variable-length coded data interrupted in the fixed area where the EOB code could not be detected is held in the shift register 611. In addition, the EOB code could be detected. The number of fixed areas, the position information of the first bit of the HAC in the fixed area, the number of fixed areas in which the EOB code could not be detected, and whether or not the variable length coded data is interrupted in the middle at the last position in the fixed area , And the bit length information of the variable-length coded data interrupted in the middle of the fixed area are held by using other registers, though not shown.

【0083】第2のプロセスでは、第1のプロセスで得
られた情報を基に以下の処理を行う。第1のプロセスで
検出されたEOBコードの個数がマクロブロック内の固
定領域の数と同じ場合、即ち全ての固定領域でEOBコ
ードが検出された場合は、マクロブロック内の全ての固
定領域の可変長符号化データがそれぞれの固定領域に収
まっている事を示しており、EOBコード以降の可変長
符号化データ即ちHACは全てVACである事がわか
る。従って、第2のプロセスではこのHACを全てVR
AMに格納する。
In the second process, the following processing is performed based on the information obtained in the first process. If the number of EOB codes detected in the first process is the same as the number of fixed areas in the macro block, that is, if EOB codes are detected in all fixed areas, the variable of all the fixed areas in the macro block is changed. This indicates that the long coded data is contained in each fixed area, and it can be seen that the variable length coded data after the EOB code, that is, the HAC is all VAC. Therefore, in the second process, all of the HACs are VR
Store in AM.

【0084】第1のプロセスで検出されたEOBコード
の個数が前記以外の場合、EOBコードが検出できなか
った最初の固定領域の、途中で途切れている可変長符号
化データの後ろに、HACが含まれている最初の固定領
域のHACから順番につなぎ合わせてEOBコードの検
出作業を続けていく。HACが含まれている最初の固定
領域のHACを全て使用してもEOBコードが検出でき
なかった場合は、HACが含まれている2番目以降の固
定領域のHACを順番につなぎ合わせていき、同様の処
理を続けていく。
When the number of EOB codes detected in the first process is other than the above, HAC is added after the variable length coded data that is interrupted in the middle of the first fixed area where the EOB code cannot be detected. The EOB code detection work is continued by connecting the HACs in the first fixed area included in this order. If the EOB code is not detected even when all the HACs in the first fixed area including the HAC are used, the HACs in the second and subsequent fixed areas including the HAC are sequentially joined, The same processing is continued.

【0085】また、EOBコードが検出された場合は、
EOBコードが検出できなかった2番目以降の固定領域
の途中で途切れている可変長符号化データの後ろに、E
OBコード検出作業にまだ使用していないHACを順番
につなぎ合わせてEOBコードの検出作業を続けてい
く。
When an EOB code is detected,
After the variable-length coded data that is interrupted in the middle of the second or subsequent fixed area where the EOB code cannot be detected,
HACs not yet used for the OB code detection operation are connected in order to continue the EOB code detection operation.

【0086】EOBコードの検出作業は、第1のプロセ
スで検出されたEOBコードの個数と第2のプロセスで
検出されたEOBコードの個数の和がマクロブロック内
の固定領域の数に到達するか、HACが無くなるまで続
ける。
The EOB code detection is performed by checking whether the sum of the number of EOB codes detected in the first process and the number of EOB codes detected in the second process reaches the number of fixed areas in the macroblock. , Until the HAC is gone.

【0087】この作業を通じ、第1のプロセスと第2の
プロセスで検出されたEOBコードの個数の和が、マク
ロブロック内の固定領域の数に到達するまでのHACは
MACである事がわかり、前記の和がマクロブロック内
の固定領域の数に到達した以降のHACはVACである
事がわかる。従って、前記の和がマクロブロック内の固
定領域の数に到達するまでのHACをMRAMに、前の
記和がマクロブロック内の固定領域の数に到達した後の
HACをVRAMに格納する。
Through this operation, it is understood that the HAC is MAC until the sum of the number of EOB codes detected in the first process and the second process reaches the number of fixed regions in the macroblock. It can be seen that the HAC after the sum reaches the number of fixed areas in the macroblock is a VAC. Therefore, the HAC until the sum reaches the number of fixed areas in the macroblock is stored in the MRAM, and the HAC after the previous sum reaches the number of fixed areas in the macroblock is stored in the VRAM.

【0088】以下、第2のプロセスの具体的な処理手順
について説明する。第2のプロセスにおけるFRAMか
らシフト器605までのデータの流れについてまず説明
する。FRAMからはHACを含む最初のアドレスのデ
ータを、前方から順に再生第2ステップRAM制御回路
20aを介して読み出し、巡回連結器601に供給して
いく。
Hereinafter, a specific processing procedure of the second process will be described. First, the flow of data from the FRAM to the shifter 605 in the second process will be described. The data of the first address including the HAC is read out from the FRAM sequentially from the front via the reproduction second step RAM control circuit 20a, and supplied to the cyclic coupler 601.

【0089】巡回連結器601では、第1のプロセスで
保持しておいたHACの先頭ビットの固定領域内の位置
情報を基に、読み出されたHACの先頭がMSBとな
り、以降のHACがLSB側に連続するようにビット巡
回し、MSB側から順に16bit単位に整列してい
く。
In the cyclic coupler 601, the head of the read HAC becomes the MSB based on the positional information of the head bit of the HAC held in the first process in the fixed area, and the subsequent HAC becomes the LSB. Bits are circulated so as to be continuous on the side, and are arranged in 16-bit units sequentially from the MSB side.

【0090】第2のプロセスでは選択器602は、常に
巡回連結器601からの出力が通過するように制御さ
れ、16bit単位に整列されたHACがホールド回路
付レジスタ603に供給される。ホールド回路付レジス
タ603は、巡回連結器601でHACが16bit揃
ったところで選択器602を介して入力されたHACを
保持する。
In the second process, the selector 602 is controlled so that the output from the cyclic coupler 601 always passes, and the HAC arranged in units of 16 bits is supplied to the register 603 with a hold circuit. The register with hold circuit 603 holds the HAC input via the selector 602 when the HAC has been aligned in the cyclic coupler 601 at 16 bits.

【0091】巡回連結器601で次のHACが16bi
t揃ったら、それまで保持していたHACをホールド回
路付レジスタ604に転送し、新たにHACを保持す
る。即ち、ホールド回路付レジスタ603とホールド回
路付レジスタ604の関係は、第1のプロセスと同様で
ホールド回路付レジスタ603には選択器602から入
力された最新のHAC、ホールド回路付レジスタ604
にはその1つ前のHACが保持されるよう制御する。
The next HAC in the cyclic coupler 601 is 16 bi
When t is completed, the HAC held so far is transferred to the register with a hold circuit 604, and the HAC is newly held. That is, the relationship between the register with a hold circuit 603 and the register with a hold circuit 604 is the same as in the first process, and the register with the hold circuit 603 has the latest HAC input from the selector 602 and the register with the hold circuit 604.
Is controlled so that the previous HAC is held.

【0092】シフト器605では、第2のプロセスの最
初のデータをVLC検出器607に供給する為に、まず
EOBコードが検出できなかった最初の固定領域の最終
位置で可変長符号化データが途中で途切れているかいな
いかの情報を基に、可変長符号化データが途中で途切れ
ている場合は、途中で途切れている可変長符号化データ
のビット長分、MSB側に空きができるように、ホール
ド回路付レジスタ603とホールド回路付レジスタ60
4から入力されているHACをシフトする。EOBコー
ドが検出できなかった最初の固定領域の最終位置で可変
長符号化データが途中で途切れていない場合は、HAC
のシフトは行わない。
In the shifter 605, in order to supply the first data of the second process to the VLC detector 607, first, the variable-length coded data is transmitted at the final position of the first fixed area where the EOB code cannot be detected. If the variable-length coded data is interrupted on the way based on the information on whether or not the data is interrupted in the middle, the MSB side is vacated by the bit length of the variable-length coded data interrupted on the way. Register 603 with hold circuit and register 60 with hold circuit
4 shifts the input HAC. If the variable length coded data is not interrupted on the way at the last position of the first fixed area where the EOB code cannot be detected, the HAC
Is not shifted.

【0093】このシフト器605の出力が連結器606
の一方の入力に供給されている。また、シフトレジスタ
611からは第1のプロセスでEOBコードが検出でき
なかった固定領域の、最初の途中で途切れている可変長
符号化データが連結器606の他方の入力に供給されて
いる。連結器606は、EOBコードが検出できなかっ
た最初の固定領域の最終位置で可変長符号化データが途
中で途切れているかいないかの情報を基に、可変長符号
化データが途中で途切れている場合は、シフトレジスタ
611から供給されている途中で途切れている可変長符
号化データと、そのLSB側にシフト器605から供給
されているHACを連結し、連結したデータのMSB側
8bitを出力する。可変長符号化データが途中で途切
れていない場合は、シフトレジスタ611からの入力は
無視し、シフト器605から供給されているHACのM
SB側8bitを出力する。
The output of the shifter 605 is connected to a coupler 606.
Is supplied to one input. Further, the shift register 611 supplies variable-length coded data that is interrupted at the beginning of the fixed area where the EOB code cannot be detected in the first process to the other input of the coupler 606. The coupler 606 is interrupted on the way to the variable length encoded data on the basis of information on whether the variable length encoded data is interrupted on the way at the final position of the first fixed area where the EOB code could not be detected. In this case, the variable-length encoded data supplied from the shift register 611 is interrupted, and the HAC supplied from the shifter 605 is connected to the LSB side, and the MSB side 8 bits of the connected data are output. . If the variable length coded data is not interrupted on the way, the input from the shift register 611 is ignored, and the MAC of the HAC supplied from the shifter 605 is ignored.
The SB side outputs 8 bits.

【0094】VLC検出器607では、第1のプロセス
と同様に入力された8bitデータを基にEOBコード
及び可変長符号化データ長の検出を行うが、第1のプロ
セスと唯一異なる点は、シフトレジスタ611から供給
されている途中で途切れている可変長符号化データと、
シフト器605から供給されているHACを連結した可
変長符号化データ長を出力した時のみ、VLC検出器6
07から出力された可変長符号化データ長から、加算器
608を用いて途中で途切れている可変長符号化データ
のビット長分(図6における614)差し引く処理が行
われる。
The VLC detector 607 detects the EOB code and the variable-length coded data length based on the input 8-bit data as in the first process. The only difference from the first process is that the shift Variable-length encoded data supplied from the register 611 and interrupted in the middle;
Only when the variable length coded data length obtained by concatenating the HACs supplied from the shifter 605 is output, the VLC detector 6
A process of subtracting the bit length (614 in FIG. 6) of the variable-length coded data that has been interrupted halfway using the adder 608 is performed from the variable-length coded data length output from 07.

【0095】選択器609は、この時のみ加算器608
からのデータが通過するように制御される。選択器60
9を通過した可変長符号化データ長は累積加算器610
に入力され、第1のプロセスと同様に可変長符号化デー
タ長の累積加算が行われる。累積加算の結果は第1のプ
ロセスと同様にFRAMからのデータ読み出し、ホール
ド回路付レジスタ603及びホールド回路付レジスタ6
04のデータ保持、シフト器605のシフト量の制御に
使用している。
The selector 609 operates only at this time.
Is controlled to pass the data from. Selector 60
9, the variable-length coded data length is added to the accumulator 610.
And the cumulative addition of the variable-length encoded data length is performed in the same manner as in the first process. As in the first process, the result of the accumulative addition is read out of the data from the FRAM, the register 603 with the hold circuit and the register 6
04 is used for holding the data and controlling the shift amount of the shifter 605.

【0096】一方、第2のプロセスでは、第2のプロセ
スで検出したEOBコードと第1のプロセスで検出した
EOBコードの和を逐次計算しておき、和がマクロブロ
ック内の固定領域の数に到達するまでのHAC、即ちM
ACは巡回連結器612を用いて16bit単位にMS
B側から順に整列し、再生第2ステップRAM制御回路
20bを介してMRAMに順次格納していく。前記の和
がマクロブロック内の固定領域の数に到達した後のHA
C、即ちVACは巡回連結器613を用いて16bit
単位にMSB側から順に整列し、再生第2ステップRA
M制御回路20cを介してVRAMに順次格納してい
く。
On the other hand, in the second process, the sum of the EOB code detected in the second process and the EOB code detected in the first process is sequentially calculated, and the sum is calculated as the number of fixed regions in the macroblock. HAC to reach, ie M
The AC uses the cyclic coupler 612 to convert the MS into 16-bit units.
They are arranged in order from the B side and are sequentially stored in the MRAM via the reproduction second step RAM control circuit 20b. HA after the sum reaches the number of fixed areas in the macroblock
C, that is, VAC is 16 bits using the cyclic coupler 613.
The unit is arranged in order from the MSB side, and the reproduction second step RA
The data is sequentially stored in the VRAM via the M control circuit 20c.

【0097】前記処理において、次の再生第3ステップ
信号処理で必要な情報として、MRAMに格納された各
マクロブロックのMACの最終書き込みアドレス及びb
it位置情報、VRAMに格納されたVACの最終書き
込みアドレス及びbit位置情報を図示していないがレ
ジスタを用いて保持する。
In the above-mentioned processing, the last write address of the MAC of each macro block stored in the MRAM and b
The it position information, the final write address of the VAC stored in the VRAM, and the bit position information are not shown, but are held using a register.

【0098】次に、図7を用いて再生第3ステップ信号
処理回路18の動作を説明する。再生第3ステップ信号
処理では、ビデオセグメント単位のデータ処理が行わ
れ、再生第1ステップ信号処理でFRAMに格納さてれ
いる直流成分及びLACと、再生第2ステップ信号処理
でMRAMとVRAMに分離して格納さてれいるMAC
及びVACとをつなぎ合わせてエラー処理回路22に出
力する作業を行っている。
Next, the operation of the reproduction third step signal processing circuit 18 will be described with reference to FIG. In the reproduction third step signal processing, data processing is performed in video segment units, and the DC component and LAC stored in the FRAM in the reproduction first step signal processing are separated into MRAM and VRAM in the reproduction second step signal processing. MAC stored
And VAC are connected and output to the error processing circuit 22.

【0099】ここで、現在までにわかっている情報につ
いて整理すると、MRAMには再生第2ステップ信号処
理で各マクロブロックのMACがアドレスの前方から順
に格納されており、マクロブロック毎のMACの境界も
図示していないがレジスタに保持されている。一方VR
AMには再生第2ステップ信号処理でビデオセグメント
内のVACがアドレスの前方から順に格納されており、
VACの最終書き込みアドレス及びbit位置情報も図
示していないがレジスタに保持されている。
Here, when the information known up to the present is arranged, the MAC of each macroblock is stored in the MRAM in order from the front of the address in the reproduction second step signal processing, and the boundary of the MAC for each macroblock is stored. Although not shown, it is held in a register. VR
The VAC in the video segment is stored in the AM in order from the front of the address in the reproduction second step signal processing,
Although not shown, the final write address and bit position information of the VAC are held in a register.

【0100】したがって、直交変換ブロック毎に直流成
分と可変長の交流成分(LAC,MAC,VAC)をつ
なぎ合わせて出力する為には、FRAMの固定領域に格
納されている直流成分をまず読み出し、続いてLACの
可変長符号化データ長を一つずつ検出して、可変長符号
化データを追跡ながら読み出していき、この時点でEO
Bコードが検出されたら、その直交変換ブロックにはH
ACが存在していない為、次の直交変換ブロックの処理
を開始するまで処理を停止する。
Therefore, in order to connect and output a DC component and a variable-length AC component (LAC, MAC, VAC) for each orthogonal transformation block, the DC component stored in the fixed area of the FRAM is first read out. Subsequently, the variable length coded data length of the LAC is detected one by one and read while tracking the variable length coded data.
When the B code is detected, the orthogonal transform block has H
Since there is no AC, the processing is stopped until the processing of the next orthogonal transformation block is started.

【0101】LAC内にEOBコードが検出できなかっ
たら、LACの後ろにMACをつなげて可変長符号化デ
ータ長及びEOBコードの検出作業を継続する。ここ
で、MACが無い場合又はその直交変換ブロックが属し
ているマクロブロックのMACの境界に達してもEOB
コードが検出できなかったら、更にVACをつなげて可
変長符号化データ長及びEOBコードの検出作業を継続
する。ここで、VACが無い場合又はビデオセグメント
内のVACの最終書き込み位置に達してもEOBコード
が検出できなかったら、その時点で次の直交変換ブロッ
クの処理を開始するまで処理を停止する。この作業をビ
デオセグメント内の全ての直交変換ブロックについて行
う。
If the EOB code cannot be detected in the LAC, the MAC is connected after the LAC, and the detection of the variable-length coded data length and the EOB code is continued. Here, when there is no MAC, or even when the boundary of the MAC of the macroblock to which the orthogonal transform block belongs is reached, EOB
If the code cannot be detected, the VAC is further connected to continue the work of detecting the variable-length coded data length and the EOB code. Here, if there is no VAC, or if the EOB code is not detected even when the VAC reaches the final VAC write position in the video segment, the processing is stopped until the processing of the next orthogonal transformation block is started at that point. This operation is performed for all the orthogonal transform blocks in the video segment.

【0102】この再生第3ステップ信号処理は、各直交
変換ブロックの直流成分と可変長の交流成分(LAC,
MAC,VAC)を連続的につなぎ合わせて出力する必
要上、FRAM、MRAM、VRAMそれぞれのRAM
に格納されているデータを先読みしてバッファに蓄えて
おく必要がある。バッファ701、バッファ702、バ
ッファ703はこの為に用いるものである。
In the reproduction third step signal processing, the DC component of each orthogonal transform block and the variable-length AC component (LAC,
MAC, VAC) for continuous connection and output, and the RAM of each of FRAM, MRAM and VRAM
It is necessary to pre-read the data stored in the buffer and store it in the buffer. The buffers 701, 702, and 703 are used for this purpose.

【0103】これらバッファの容量は、それぞれのRA
Mへの読み出し要求から、読み出されたデータが再生第
3ステップRAM制御回路21a、再生第3ステップR
AM制御回路21b、再生第3ステップRAM制御回路
21cを通過してそれぞれのバッファに到達するまでの
クロックサイクル数に関連し、16bit幅で数段のシ
フトレジスタで構成されている。
The capacity of these buffers is
M from the read request to M, the read third step RAM control circuit 21a, the third read step R
It relates to the number of clock cycles required to pass through the AM control circuit 21b and the reproduction third step RAM control circuit 21c to reach the respective buffers, and is composed of a shift register of 16 bits width and several stages.

【0104】以下、再生第3ステップ信号処理の具体的
な処理手順について説明する。予め再生第1ステップ信
号処理でFRAMに格納さてれいる直流成分及びLAC
を、再生第3ステップRAM制御回路21aを介して必
要分読み出しバッファ701に蓄えておき、再生第2ス
テップ信号処理でMRAMに格納さてれいるMAC及び
VRAMに格納さてれいるVACについても同様に、予
め再生第3ステップRAM制御回路21b及び再生第3
ステップRAM制御回路21cを介して必要分読み出
し、バッファ702とバッファ703にそれぞれ蓄えて
おく。また、直流成分は固定長である為、可変長符号化
データ長及びEOBコードの検出作業をバイパスし、選
択器714に直接供給される。
Hereinafter, a specific processing procedure of the reproduction third step signal processing will be described. DC component and LAC previously stored in the FRAM in the reproduction first step signal processing
Is stored in the read buffer 701 as necessary through the third reproduction step RAM control circuit 21a, and the MAC stored in the MRAM and the VAC stored in the VRAM in the second reproduction step signal processing are similarly stored. The reproduction third step RAM control circuit 21b and the reproduction third
The necessary data is read out via the step RAM control circuit 21c and stored in the buffers 702 and 703, respectively. Since the DC component has a fixed length, the DC component is directly supplied to the selector 714, bypassing the work of detecting the variable-length encoded data length and the EOB code.

【0105】以下、各直交変換ブロックの可変長符号化
データ長及びEOBコードの検出作業を説明する。バッ
ファ701に保持されている各直交変換ブロックのLA
Cを連結器707を介してホールド回路付レジスタ70
8に保持し、保持されたLACをシフト器709の入力
31bit中のMSB側16bitに入力する。
The operation of detecting the variable length coded data length and EOB code of each orthogonal transform block will be described below. LA of each orthogonal transform block held in the buffer 701
C is connected to a register with a hold circuit 70 via a coupler 707.
8 and the held LAC is input to the MSB side 16 bits of the input 31 bits of the shifter 709.

【0106】シフト器709の入力のLSB側の残り1
5bitは、連結器707を介して直接入力される次の
LACのMSB側15bitである。シフト器709
は、可変長符号化データの先頭が常にMSBとなるよう
に入力された31bitをビットシフトし、そのMSB
側16bitを出力している。このシフト器709の出
力16bit中のMSB側8bitがVLC検出器71
0に入力されている。
The remaining one on the LSB side of the input of the shifter 709
5 bits is the 15 bits on the MSB side of the next LAC that is directly input via the coupler 707. Shifter 709
Bit shifts the input 31 bits so that the head of the variable length coded data is always the MSB,
16 bits are output on the side. The 8 bits on the MSB side of the 16 bits output from the shifter 709 are the VLC detector 71.
0 has been entered.

【0107】VLC検出器710では可変長符号化デー
タ長及びEOBコードの検出を行う。累積加算器711
はVLC検出器710から入力された各直交変換ブロッ
ク内の可変長符号化データ長を累積加算する。以下、V
LC検出器710でLACの可変長符号化データ長及び
EOBコードの検出を順次行っていく。この作業でLA
C内にEOBコードが検出されたら次の直交変換ブロッ
クの処理を開始するまで処理を停止する。
The VLC detector 710 detects the variable length coded data length and the EOB code. Cumulative adder 711
Accumulates the variable length coded data length in each orthogonal transform block input from the VLC detector 710. Hereinafter, V
The LC detector 710 sequentially detects the variable length coded data length of the LAC and the EOB code. LA in this work
When the EOB code is detected in C, the processing is stopped until the processing of the next orthogonal transformation block is started.

【0108】LAC内にEOBコードが検出されなかっ
た場合、バッファ702に保持されているMACを、巡
回連結器704を用いてLACの後ろに連続してつなが
るようにビット巡回し、連結器706、連結器707を
用いてLACの後ろに連結して可変長符号化データ長及
びEOBコードの検出を継続する。ここで、MACが無
い場合又はその直交変換ブロックが属しているマクロブ
ロックのMACの境界に達してもEOBコードが検出で
きなかったら、バッファ703に保持されているVAC
を、巡回連結器705を用いてLAC又はMACの後ろ
に連続してつながるようにビット巡回し、連結器70
6、連結器707を用いてLAC又はMACの後ろに連
結して可変長符号化データ長及びEOBコードの検出を
継続する。ここで、VACが無い場合又はビデオセグメ
ント内のVACの最終書き込み位置に達してもEOBコ
ードが検出できなかったら、その時点で次の直交変換ブ
ロックの処理を開始するまで処理を停止する。
If the EOB code is not detected in the LAC, the MAC held in the buffer 702 is bit-circulated using the cyclic concatenator 704 so as to be continuously connected after the LAC. The LAC is connected after the LAC using the connector 707, and the detection of the variable length coded data length and the EOB code is continued. Here, if there is no MAC, or if the EOB code is not detected even when the MAC boundary of the macroblock to which the orthogonal transform block belongs is detected, the VAC stored in the buffer 703 is used.
Is cyclically connected using the cyclic coupler 705 so as to be continuously connected after the LAC or the MAC.
6. Connect after the LAC or MAC using the connector 707 to continue detection of the variable length coded data length and EOB code. Here, if there is no VAC, or if the EOB code is not detected even when the VAC reaches the final VAC write position in the video segment, the processing is stopped until the processing of the next orthogonal transformation block is started at that point.

【0109】一方、マスク回路712にはシフト器70
9の出力16bitが入力されており、VLC検出器7
10で検出された可変長符号化データ長分のMSB側入
力のみ通過させ、他のLSB側入力をLOWレベルにマ
スクし、EOB付加回路713にてVACを全て使い果
たしてもEOBコードが検出されなかった場合に、直前
の完全に検出できた可変長符号化データの直後にEOB
コードを付加し、選択器714にて別経路で入力されて
いる直流成分と合成して出力端子715に出力する。
On the other hand, the shifter 70 is provided in the mask circuit 712.
9 output 16 bits are input, and the VLC detector 7
Only the MSB side input for the variable length coded data length detected at 10 is passed, the other LSB side inputs are masked to the LOW level, and the EOB addition circuit 713 does not detect the EOB code even when all the VAC is used up. In this case, EOB is added immediately after the previously completely detected variable-length coded data.
A code is added, and the selector 714 combines the DC component with a DC component input through another path and outputs the resultant to an output terminal 715.

【0110】次に、再生第3ステップ信号処理のエラー
検出について説明する。本実施の形態では8×8画素の
画素集合を1つの直交変換ブロックとして、直交変換及
び量子化された63個の交流成分に対して2次元ハフマ
ン符号等のアルゴリズムを用いて交流成分の0ランとそ
れに続く0以外の値の組み合わせから符号語を生成す
る。
Next, error detection in the third reproduction signal processing will be described. In this embodiment, a pixel set of 8 × 8 pixels is regarded as one orthogonal transform block, and the orthogonal transform and quantized 63 AC components are subjected to 0-run of the AC component by using an algorithm such as a two-dimensional Huffman code. Then, a code word is generated from a combination of a non-zero value and the following value.

【0111】従って1つの直交変換ブロックにおいて、
量子化された全ての交流成分が0以外の値を取る時、符
号語の数は最大数の63となり、63以上の値を得た場
合(63個目の符号語の次にEOBコードが無い場合)
は途中で符号誤りが生じている事が明らかである。この
条件で検出できる符号誤りをAC63エラーとする。
Therefore, in one orthogonal transform block,
When all the quantized AC components take values other than 0, the number of codewords becomes the maximum number of 63, and when a value of 63 or more is obtained (there is no EOB code following the 63rd codeword) Case)
It is clear that a code error has occurred on the way. A code error that can be detected under this condition is defined as an AC63 error.

【0112】また、1つの直交変換ブロックにおいて、
周知のジグザグスキャン等による最終スキャン位置(最
も高域)の交流成分が0以外の値を取る時、符号化され
た0ラン長に1をプラスした値の累積加算値は最大の6
3となり、63以上の値を得た場合は途中で符号誤りが
生じている事が明らかである。この条件で検出できる符
号誤りをRUN63エラーとする。
In one orthogonal transformation block,
When the AC component at the final scan position (highest band) by a well-known zigzag scan or the like takes a value other than 0, the cumulative addition value of the value obtained by adding 1 to the coded 0 run length is 6 at the maximum.
It is clear that when a value of 3 or more is obtained, a code error occurs on the way. A code error that can be detected under this condition is a RUN63 error.

【0113】再生第3ステップ信号処理では、前記のA
C63エラーとRUN63エラーの検出を行う。
In the reproduction third step signal processing, the A
A C63 error and a RUN63 error are detected.

【0114】まず、AC63エラーの検出方法について
説明する。EOB検出器717には、シフト器709か
らのMSB側4bitが入力されており、入力パターン
がEOBコードと一致した時に真となるフラグを出力し
ている。4bitとは本実施の形態のEOBコード長に
相当する。VLCカウンタ716は、直交変換ブロック
内の可変長符号化データの数を数えるカウンタであり、
EOB検出器717で直交変換ブロック内の最初の可変
長符号化データのEOBコード検出を行う時に0となっ
ているように、その1クロック前のタイミングで同期リ
セットされ、EOB検出器717でEOBコードが検出
されるまでカウントアップする。AC63エラー検出器
718は、VLCカウンタ716のカウント値が63と
なった時にEOB検出器717の出力が偽の時にAC6
3エラー検出フラグを真にする。
First, a method for detecting an AC63 error will be described. The EOB detector 717 receives the four MSBs from the shifter 709 and outputs a flag that becomes true when the input pattern matches the EOB code. 4 bits corresponds to the EOB code length in the present embodiment. The VLC counter 716 is a counter that counts the number of variable-length encoded data in the orthogonal transform block.
When the EOB detector 717 detects the EOB code of the first variable-length coded data in the orthogonal transform block, the EOB code becomes 0 when the EOB code is detected. Count up until is detected. The AC63 error detector 718 outputs AC6 when the output of the EOB detector 717 is false when the count value of the VLC counter 716 reaches 63.
3 Set the error detection flag to true.

【0115】次に、RUN63エラーの検出方法につい
て説明する。RUN検出器720には、シフト器709
からの出力のMSB側13bitが入力されていて、入
力された可変長符号化データの0ラン長を求め、それに
1をプラスした値を出力する。以下、0ラン長に1をプ
ラスした値をRUNと呼ぶ事とする。ここで、13bi
tとは本実施の形態で使用する全ての可変長符号化デー
タの0ラン長を求めるのに必要なビット長に相当する。
Next, a method of detecting a RUN 63 error will be described. The RUN detector 720 includes a shifter 709
13 bits of the MSB side of the output from is input, the 0-run length of the input variable-length coded data is obtained, and a value obtained by adding 1 thereto is output. Hereinafter, a value obtained by adding 1 to 0 run length is referred to as RUN. Here, 13bi
t corresponds to the bit length required to obtain the zero run length of all the variable length coded data used in the present embodiment.

【0116】RUN検出器720から出力されたRUN
は、累積加算器721に入力される。累積加算器721
は、直交変換ブロック毎のRUNの累積加算を行い比較
器722に累積加算値を出力している。比較器722
は、累積加算値が63を越えた場合RUN63エラー検
出フラグを真にする。
RUN output from RUN detector 720
Is input to the accumulator 721. Cumulative adder 721
Performs the cumulative addition of the RUN for each orthogonal transformation block and outputs the cumulative addition value to the comparator 722. Comparator 722
Sets the RUN63 error detection flag to true when the cumulative addition value exceeds 63.

【0117】前記2つのエラーのどちらか又は両方を検
出された場合、エラーが検出された直交変換ブロックが
属しているマクロブロックのMACはもはや信頼できな
い事を意味しており、エラーが検出された直交変換ブロ
ックが属しているビデオセグメントのVACももはや信
頼できない事を意味している。
If either or both of the two errors are detected, it means that the MAC of the macroblock to which the orthogonally-transformed block in which the error is detected can no longer be relied upon, and the error is detected. This also means that the VAC of the video segment to which the orthogonal transform block belongs is no longer reliable.

【0118】したがって、再生第3ステップ信号処理で
は、以下の2つのエラー処理を実行する。1つ目のエラ
ー処理は、マクロブロック内におけるエラーが検出され
た直交変換ブロック以降の直交変換ブロックに関して、
MACとVACの出力を停止する。2つ目のエラー処理
は、ビデオセグメント内におけるエラーが検出されたマ
クロブロック以降のマクロブロックに関して、VACの
出力を停止する。
Therefore, the following two error processes are executed in the third reproduction signal process. The first error processing is for orthogonal transform blocks subsequent to the orthogonal transform block in which an error has been detected in the macroblock.
Stop output of MAC and VAC. In the second error processing, the output of the VAC is stopped for the macroblocks after the macroblock in which the error is detected in the video segment.

【0119】MACの出力停止は、MRAMの読み出し
ポインタを強制的にその直交変換ブロックが属している
マクロブロックのMACの境界にさせる(該当するマク
ロブロック内の全てのMACを使い果たした状態にさせ
る)事で簡単に実現できる。
When the output of the MAC is stopped, the read pointer of the MRAM is forcibly set to the boundary of the MAC of the macroblock to which the orthogonal transform block belongs (all the MACs in the corresponding macroblock are exhausted). Things can be easily realized.

【0120】VACの出力停止は、VRAMの読み出し
ポインタを強制的にビデオセグメント内のVACの最終
書き込み位置にさせる(全てのVACを使い果たした状
態にさせる)事で簡単に実現できる。
The output stop of the VAC can be easily realized by forcibly setting the read pointer of the VRAM to the last write position of the VAC in the video segment (all the VACs are used up).

【0121】これらのエラー処理によって、ビデオセグ
メント内におけるエラーが検出された直交変換ブロック
以降の可変長符号化データに関しては、信頼できない可
変長符号化データの出力を停止して画面の破綻を軽減す
る事が可能となるが、エラーが検出された直交変換ブロ
ックに関しては、可変長符号化データを出力しながらエ
ラー検出を行っている構成上、エラーが検出された時点
で、既に誤った可変長符号化データが出力されてしまっ
ている。この誤った可変長符号化データの出力をマスク
するのが次段のエラー処理回路22である。
As a result of these error processes, the output of unreliable variable-length coded data for the variable-length coded data after the orthogonal transform block in which an error has been detected in the video segment is stopped to reduce screen breakdown. However, regarding the orthogonal transform block in which an error is detected, the error detection is performed while outputting the variable-length coded data. Data has been output. The error processing circuit 22 at the next stage masks the output of the erroneous variable-length coded data.

【0122】次に、図8を用いてエラー処理回路22の
動作を説明する。エラー処理では、直交変換ブロック単
位のデータ処理が行われ、再生第3ステップ信号処理で
合成された可変長符号化データをFIFO802を用い
て1直交変換ブロック分遅延させ、再生第3ステップ信
号処理から出力されたAC63エラー検出フラグとRU
N63エラー検出フラグを監視し、どちらか又は両方の
エラー検出フラグが真の場合、FIFOから出力された
可変長符号化データをマスク回路803でマスクし、エ
ラーコード等のデータに置き換え、出力端子804にデ
フォーマットデータとして出力する。
Next, the operation of the error processing circuit 22 will be described with reference to FIG. In the error processing, data processing is performed in units of orthogonal transform blocks, and the variable-length coded data synthesized in the reproduction third step signal processing is delayed by one orthogonal transformation block using the FIFO 802. The output AC63 error detection flag and RU
The N63 error detection flag is monitored. If either or both error detection flags are true, the variable-length coded data output from the FIFO is masked by the mask circuit 803 and replaced with data such as an error code. Is output as deformed data.

【0123】出力されたデフォーマットデータは図1の
可変長復号化回路23によって周知の2次元ハフマン符
号等のアルゴリズムの復号を行い、逆量子化回路24に
よって逆量子化され、逆直交変換回路25によって逆直
交変換され、デシャフリング回路26によって画素デー
タの並べ換えを行い画素データ出力端子27から出力す
る。
The outputted deformed data is decoded by a variable length decoding circuit 23 shown in FIG. 1 according to a well-known algorithm such as a two-dimensional Huffman code, and is inversely quantized by an inverse quantization circuit 24. The pixel data is rearranged by the deshuffling circuit 26 and output from the pixel data output terminal 27.

【0124】尚、本発明の実施の形態においては、AC
63エラー検出フラグとRUN63エラー検出フラグを
基に該当する直交変換ブロックの可変長符号化データを
マスクし、エラーコード等のデータに置き換える処理
を、図1におけるエラー処理回路22で行った例を示し
たが、デフォーマット処理部29の後段に位置する可変
長復号化回路23に1直交変換ブロック分の遅延回路が
搭載されている場合、可変長復号化回路23内でAC6
3エラー検出フラグとRUN63エラー検出フラグを基
に該当する直交変換ブロックの可変長符号化データをマ
スクし、エラーコード等のデータに置き換える処理を行
っても同様の効果を得る事ができる。改めて図示しない
が、この場合、図1におけるエラー処理回路22を削除
しただけの構成となる。
In the embodiment of the present invention, AC
1 shows an example in which the error processing circuit 22 in FIG. 1 performs a process of masking variable-length encoded data of a corresponding orthogonal transform block based on a 63 error detection flag and a RUN 63 error detection flag and replacing the data with an error code or the like. However, when the delay circuit for one orthogonal transform block is mounted on the variable length decoding circuit 23 located at the subsequent stage of the deformat processing unit 29, the AC6
The same effect can be obtained by masking the variable-length coded data of the corresponding orthogonal transform block based on the 3 error detection flag and the RUN63 error detection flag and replacing it with data such as an error code. Although not illustrated again, in this case, the configuration is such that the error processing circuit 22 in FIG. 1 is simply deleted.

【0125】[0125]

【発明の効果】以上、説明したように本発明のディジタ
ル映像信号処理装置では、RAMのアドレス制御に複雑
な回路を必要とせず、回路規模の縮小化が可能となる。
また、HACを格納するRAM容量を先行技術に対して
増加させた分を、FRAMをマクロブロック単位で使用
する事によるFRAM容量の削減で相殺し、トータルの
RAM容量を削減する事が可能となり、更なる回路規模
の縮小化が可能となる。また、誤訂正に対する再生画像
の破綻防止処理を行う為、再生条件が悪い場合や高速再
生時における再生画像の品質の向上が可能となる。
As described above, in the digital video signal processing apparatus of the present invention, a complicated circuit is not required for controlling the address of the RAM, and the circuit scale can be reduced.
Further, the increase in the RAM capacity for storing the HAC as compared with the prior art is offset by the reduction in the FRAM capacity by using the FRAM in macroblock units, and the total RAM capacity can be reduced. The circuit scale can be further reduced. In addition, since the process of preventing the reproduction image from being broken due to the erroneous correction is performed, the quality of the reproduction image can be improved when the reproduction condition is poor or during high-speed reproduction.

【0126】本願請求項1に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、フォーマット処理の際、第1のメモリ、第2のメ
モリ、第3のメモリそれぞれのアドレス制御を簡単な制
御で実現可能となり、回路規模の縮小化が可能となる。
Since the digital video signal processing device according to the first aspect of the present invention has the above-described configuration, the first memory, the second memory, and the third memory are each used during the format processing. Address control can be realized by simple control, and the circuit size can be reduced.

【0127】本願請求項2に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、フォーマット処理の際、第2のメモリ及び第3の
メモリを単純な交替するそれぞれ2個のメモリを用いる
事により、メモリの書き込み、読み出し制御を簡単な制
御で実現可能となり、本願請求項1に対してさらなる回
路規模の縮小化が可能となる。
Since the digital video signal processing device according to the second aspect of the present invention has the above-described configuration, the second memory and the third memory are simply replaced during format processing. By using a single memory, writing and reading control of the memory can be realized by simple control, and the circuit scale can be further reduced as compared to the first aspect of the present invention.

【0128】本願請求項3に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、フォーマット処理の際、第1のメモリをビデオセ
グメント内におけるマクロブロックの数をnとした場
合、n+2個用いてマクロブロック単位で用いる事によ
り、必要な第1のメモリ容量を大幅に削減でき、フォー
マット処理に必要な第1のメモリ、第2のメモリ、第3
のメモリを合わせた全体の必要メモリ容量を従来より少
なくする事ができ、本願請求項1及び本願請求項2に対
してさらなる回路規模の縮小化が可能となる。
Since the digital video signal processing apparatus according to the third aspect of the present invention has the above-described configuration, the first memory is set to n for the number of macroblocks in the video segment during format processing. In this case, the required first memory capacity can be greatly reduced by using n + 2 macroblock units, and the first memory, the second memory, and the third memory necessary for the format processing can be reduced.
The total required memory capacity including the above-mentioned memories can be reduced as compared with the related art, and the circuit scale can be further reduced as compared with the first and second aspects of the present invention.

【0129】本願請求項4に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、デフォーマット処理の際、第1のメモリ、第2の
メモリ、第3のメモリそれぞれのアドレス制御を簡単な
制御で実現可能となり、回路規模の縮小化が可能とな
る。
Since the digital video signal processing device according to the fourth aspect of the present invention has the above-described configuration, the first memory, the second memory, and the third memory are each used during the deformatting process. Address control can be realized by simple control, and the circuit size can be reduced.

【0130】本願請求項5に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、デフォーマット処理の際、第2のメモリ及び第3
のメモリを単純な交替するそれぞれ2個のメモリを用い
る事により、メモリの書き込み、読み出し制御を簡単な
制御で実現可能となり、本願請求項4に対してさらなる
回路規模の縮小化が可能となる。
Since the digital video signal processing apparatus according to the fifth aspect of the present invention has the above-described configuration, the second memory and the third memory are required for the reformatting process.
By simply using two memories each of which is simply replaced, the writing and reading control of the memories can be realized by simple control, and the circuit scale can be further reduced as compared to the fourth aspect of the present invention.

【0131】本願請求項6に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、デフォーマット処理の際、第1のメモリをビデオ
セグメント内におけるマクロブロックの数をnとした場
合、n+2個用いてマクロブロック単位で用いる事によ
り,必要な第1のメモリ容量を大幅に削減でき、デフォ
ーマット処理に必要な第1のメモリ、第2のメモリ、第
3のメモリを合わせた全体の必要メモリ容量を従来より
少なくする事ができ、本願請求項4及び本願請求項5に
対してさらなる回路規模の縮小化が可能となる。
Since the digital video signal processing device according to the sixth aspect of the present invention has the above-described configuration, the first memory stores the number of macroblocks in a video segment as n during the deformatting process. In this case, the required first memory capacity can be greatly reduced by using n + 2 macroblock units, and the first memory, the second memory, and the third memory required for the deformatting process can be reduced. The total required memory capacity can be reduced as compared with the related art, and the circuit scale can be further reduced as compared with claims 4 and 5 of the present application.

【0132】本願請求項7に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、デフォーマット処理の際、誤訂正による可変長符
号化データの誤りを検出し、誤りが検出された直交変換
ブロックの可変長符号化データを誤りがある事を示すエ
ラーコードに置き換え、マクロブロック内の以降の直交
変換ブロックの可変長符号化データを、対応した固定領
域に配置されている可変長符号化データのみ復号し、ビ
デオセグメント内の以降のマクロブロック内の直交変換
ブロックの可変長符号化データを、対応した固定領域に
配置されている可変長符号化データと、同一マクロブロ
ック内の他の固定領域に配置されている可変長符号化デ
ータのみ復号する事で、誤訂正による画面破綻を防止す
る事ができ、再生条件が悪い場合や高速再生時における
再生画像の品質の向上が可能となる。
Since the digital video signal processing apparatus according to the present invention has the above-described configuration, it detects an error in the variable-length coded data due to an erroneous correction during the deformat processing, and The variable-length coded data of the detected orthogonal transform block is replaced with an error code indicating that there is an error, and the variable-length coded data of the subsequent orthogonal transform block in the macro block is arranged in a corresponding fixed area. Decodes only the variable-length coded data that is present in the video segment, and converts the variable-length coded data of the orthogonal transform block in a subsequent macroblock in the video segment into the same macroblock By decoding only the variable-length coded data located in other fixed areas in the Ken made it possible to improve the quality of the reproduced image at the time of the case and the high-speed reproduction bad.

【0133】本願請求項8に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、デフォーマット処理の際、具体的に誤訂正による
可変長符号化データの誤りとして、AC63エラーの検
出及び画面破綻を防止する事ができ、再生条件が悪い場
合や高速再生時における再生画像の品質の向上が可能と
なる。
Since the digital video signal processing apparatus according to the present invention has the above-described configuration, the deformat processing specifically includes an error in the variable-length encoded data due to an erroneous correction. It is possible to detect an AC63 error and prevent a screen breakdown, and to improve the quality of a reproduced image when reproduction conditions are poor or during high-speed reproduction.

【0134】本願請求項9に記載の発明に係るディジタ
ル映像信号処理装置は、上述したような構成としている
ので、デフォーマット処理の際、具体的に誤訂正による
可変長符号化データの誤りとして、RUN63エラーの
検出及び画面破綻を防止する事ができ、再生条件が悪い
場合や高速再生時における再生画像の品質の向上が可能
となる。
Since the digital video signal processing apparatus according to the ninth aspect of the present invention has the above-described configuration, the deformat processing specifically includes an error in the variable-length coded data due to an erroneous correction. RUN 63 errors can be detected and screen failure can be prevented, and the quality of reproduced images can be improved when reproduction conditions are poor or during high-speed reproduction.

【0135】本願請求項10に記載の発明に係るディジ
タル映像信号処理装置は、上述したような構成としてい
るので、デフォーマット処理の際、具体的に誤訂正によ
る可変長符号化データの誤りとして、AC63エラーと
RUN63エラーの両方の検出及び画面破綻を防止する
事ができ、再生条件が悪い場合や高速再生時における再
生画像の品質の向上が可能となる。
Since the digital video signal processing apparatus according to the tenth aspect of the present invention has the above-described configuration, in the case of the deformat processing, the error of the variable length coded data due to the erroneous correction is specifically determined as follows. It is possible to detect both the AC63 error and the RUN63 error and prevent a screen failure, and to improve the quality of a reproduced image when reproduction conditions are poor or during high-speed reproduction.

【0136】次に、図3を用いて記録第2ステップ信号
処理回路7の動作を説明する。記録第2ステップ信号処
理においてもマクロブロック単位のデータ処理が行わ
れ、記録第1ステップ信号処理でMRAMに格納されて
いるHACを同一マクロブロック内の他の直交変換ブロ
ックの固定領域の空き領域に格納する作業を行ってい
る。
Next, the operation of the recording second step signal processing circuit 7 will be described with reference to FIG. Also in the recording second step signal processing, data processing is performed in macroblock units, and the HAC stored in the MRAM in the recording first step signal processing is transferred to the free area of the fixed area of another orthogonal transformation block in the same macroblock. We are working on storing.

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

【図1】この発明の実施の形態に係る全体のブロック図
である。
FIG. 1 is an overall block diagram according to an embodiment of the present invention.

【図2】この発明の実施の形態に係る記録第1ステップ
信号処理回路のブロック図である。
FIG. 2 is a block diagram of a recording first step signal processing circuit according to the embodiment of the present invention.

【図3】この発明の実施の形態に係る記録第2ステップ
信号処理回路のブロック図である。
FIG. 3 is a block diagram of a recording second step signal processing circuit according to the embodiment of the present invention.

【図4】この発明の実施の形態に係る記録第3ステップ
信号処理回路のブロック図である。
FIG. 4 is a block diagram of a recording third step signal processing circuit according to the embodiment of the present invention.

【図5】この発明の実施の形態に係る再生第1ステップ
信号処理回路のブロック図である。
FIG. 5 is a block diagram of a reproduction first step signal processing circuit according to the embodiment of the present invention;

【図6】この発明の実施の形態に係る再生第2ステップ
信号処理回路のブロック図である。
FIG. 6 is a block diagram of a reproduction second step signal processing circuit according to the embodiment of the present invention.

【図7】この発明の実施の形態に係る再生第3ステップ
信号処理回路のブロック図である。
FIG. 7 is a block diagram of a reproduction third step signal processing circuit according to the embodiment of the present invention.

【図8】この発明の実施の形態に係るエラー処理回路の
ブロック図である。
FIG. 8 is a block diagram of an error processing circuit according to the embodiment of the present invention.

【図9】この発明の実施の形態に係るフォーマット処理
時のMRAMの容量に関する説明図である。
FIG. 9 is an explanatory diagram relating to the capacity of the MRAM at the time of format processing according to the embodiment of the present invention;

【図10】この発明の実施の形態に係るデフォーマット
処理時のMRAMの容量に関する説明図である。
FIG. 10 is an explanatory diagram relating to the capacity of the MRAM at the time of deformat processing according to the embodiment of the present invention;

【図11】この発明の実施の形態に係るVRAMの容量
に関する説明図である。
FIG. 11 is an explanatory diagram relating to the capacity of the VRAM according to the embodiment of the present invention;

【図12】この発明の実施の形態に係るフォーマット処
理時のFRAM、MRAM、VRAM各メモリの書き込
みおよび読み出しのタイミングに関する説明図である。
FIG. 12 is an explanatory diagram relating to write and read timings of FRAM, MRAM, and VRAM memories at the time of format processing according to the embodiment of the present invention.

【図13】この発明の実施の形態に係るデフォーマット
処理時のFRAM、MRAM、VRAM各メモリの書き
込みおよび読み出しのタイミングに関する説明図であ
る。
FIG. 13 is an explanatory diagram regarding write and read timings of the FRAM, the MRAM, and the VRAM during the deformat processing according to the embodiment of the present invention;

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

6 記録第1ステップ信号処理回路 7 記録第2ステップ信号処理回路 8 記録第3ステップ信号処理回路 16 再生第1ステップ信号処理回路 17 再生第2ステップ信号処理回路 18 再生第3ステップ信号処理回路 22 エラー処理回路 28 フォーマット処理回路 29 デフォーマット処理回路 Reference Signs List 6 first recording step signal processing circuit 7 second recording step signal processing circuit 8 third recording step signal processing circuit 16 first reproduction step signal processing circuit 17 second reproduction step signal processing circuit 18 third reproduction step signal processing circuit 22 error Processing circuit 28 Format processing circuit 29 Deformat processing circuit

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 複数の画素からなる直交変換ブロックを
単位として直交変換する直交変換手段と、 前記直交変換手段で得られた直交変換ブロックの直交成
分を量子化する量子化手段と、 前記量子化手段で得られた量子化された直交変換ブロッ
クの直交成分を可変長符号化データに変換する可変長符
号化手段と、 前記可変長符号化手段で得られた直交変換ブロックの可
変長符号化データを複数直交変換ブロック分集めてマク
ロブロックを構成する手段と、 前記マクロブロックを複数個集めてビデオセグメントを
構成する手段と、 前記ビデオセグメント内での符号量をほぼ一定に制御す
る符号量制御手段とを有し、 可変長符号化されたビデオセグメント内の直交変換ブロ
ックの可変長符号化データを、マクロブロックに対応し
た複数のシンクブロックにパッキングするディジタル映
像信号処理装置において、 1シンクブロック分の容量として、マクロブロック内の
直交変換ブロック数分、直交変換ブロックの可変長符号
化データを格納する為の固定長の固定領域を持ち合わせ
た第1のメモリの各固定領域に、各直交変換ブロックの
可変長符号化データを配置し、固定領域に配置しきれな
いマクロブロック内の直交変換ブロックの可変長符号化
データを第2のメモリに格納し、第1のメモリの各固定
領域において、まだ可変長符号化データが配置されてい
ない空き領域に、第2のメモリに格納されている可変長
符号化データを配置し、マクロブロック内の直交変換ブ
ロックの各固定領域の空き領域に配置しきれない第2の
メモリに格納されている可変長符号化データを第3のメ
モリに格納し、ビデオセグメント内の各マクロブロック
内の直交変換ブロックの各固定領域おいて、まだ可変長
符号化データが配置されていない空き領域に、第3のメ
モリに格納されている可変長符号化データを配置する事
を特徴とするディジタル映像信号処理装置。
An orthogonal transform unit for orthogonally transforming an orthogonal transform block composed of a plurality of pixels as a unit; a quantizing unit for quantizing orthogonal components of the orthogonal transform block obtained by the orthogonal transform unit; Variable length encoding means for converting the orthogonal components of the quantized orthogonal transform block obtained by the means into variable length encoded data; and variable length encoded data of the orthogonal transform block obtained by the variable length encoding means. Means for collecting a plurality of orthogonal transform blocks to form a macroblock; means for collecting a plurality of the macroblocks to form a video segment; and code amount control means for controlling a code amount in the video segment to be substantially constant. The variable length encoded data of the orthogonal transform block in the variable length encoded video segment is transmitted to a plurality of sync blocks corresponding to macro blocks. In a digital video signal processing device that packs in a lock, a fixed-length fixed area for storing variable-length coded data of orthogonal transform blocks in the number of orthogonal transform blocks in a macro block is provided as the capacity for one sync block. The variable length encoded data of each orthogonal transform block is arranged in each fixed area of the first memory, and the variable length encoded data of the orthogonal transform block in the macro block which cannot be arranged in the fixed area is stored in the second memory. The variable-length coded data stored in the second memory is placed in a free area where the variable-length coded data is not yet placed in each fixed area of the first memory, The variable length coded data stored in the second memory that cannot be arranged in the free area of each fixed area of the orthogonal transform block of In the fixed area of the orthogonal transformation block in each macroblock in the video segment, the variable length coding stored in the third memory is stored in an empty area where the variable length coding data is not yet arranged. A digital video signal processing device characterized by arranging data.
【請求項2】 前記請求項1に記載の第2のメモリは、
マクロブロック単位で交替する2個のメモリを用い、前
記請求項1に記載の第3のメモリは、ビデオセグメント
単位で交替する2個のメモリを用いる事を特徴とした請
求項1に記載のディジタル映像信号処理装置。
2. The second memory according to claim 1, wherein:
The digital memory according to claim 1, wherein two memories alternated in macroblock units are used, and the third memory according to claim 1 uses two memories alternated in video segment units. Video signal processing device.
【請求項3】 前記請求項1に記載の第1のメモリは、
ビデオセグメント内におけるマクロブロックの数をnと
した場合、n+2個用いる事を特徴とした請求項1また
は請求項2に記載のディジタル映像信号処理装置。
3. The first memory according to claim 1, wherein:
3. The digital video signal processing apparatus according to claim 1, wherein when the number of macroblocks in a video segment is n, n + 2 macroblocks are used.
【請求項4】 複数の画素からなる直交変換ブロックを
単位として直交変換する直交変換手段と、 前記直交変換手段で得られた直交変換ブロックの直交成
分を量子化する量子化手段と、 前記量子化手段で得られた量子化された直交変換ブロッ
クの直交成分を可変長符号化データに変換する可変長符
号化手段と、 前記可変長符号化手段で得られた直交変換ブロックの可
変長符号化データを複数直交変換ブロック分集めてマク
ロブロックを構成する手段と、 前記マクロブロックを複数個集めてビデオセグメントを
構成する手段と、 前記ビデオセグメント内での符号量をほぼ一定に制御す
る符号量制御手段とを有し、 可変長符号化されたビデオセグメント内の直交変換ブロ
ックの可変長符号化データを、マクロブロックに対応し
た複数のシンクブロックにパッキングするディジタル映
像信号処理装置でパッキングされた可変長符号化データ
を復号するディジタル映像信号処理装置において、 1シンクブロック分の容量として、マクロブロック内の
直交変換ブロック数分、直交変換ブロックの可変長符号
化データを格納する為の固定長の固定領域を持ち合わせ
た第1のメモリに、パッキングされた可変長符号化デー
タを格納し、各固定領域において同一マクロブロック内
の他の直交変換ブロックの可変長符号化データを第2の
メモリに格納し、ビデオセグメント内の他のマクロブロ
ック内の直交変換ブロックの可変長符号化データを第3
のメモリに格納し、第1のメモリに格納されている各固
定領域に対応した可変長符号化データと、第2のメモリ
格納されている同一マクロブロック内の他の固定領域に
配置されている可変長符号化データと、第3のメモリ格
納されているビデオセグメント内の他のマクロブロック
内の固定領域に配置されている可変長符号化データをつ
なぎ合わせて、可変長符号化データを復号する事を特徴
とするディジタル映像信号処理装置。
4. An orthogonal transformation unit for performing orthogonal transformation in units of an orthogonal transformation block composed of a plurality of pixels; a quantization unit for quantizing orthogonal components of the orthogonal transformation block obtained by the orthogonal transformation unit; Variable length encoding means for converting the orthogonal components of the quantized orthogonal transform block obtained by the means into variable length encoded data; and variable length encoded data of the orthogonal transform block obtained by the variable length encoding means. Means for collecting a plurality of orthogonal transform blocks to form a macroblock; means for collecting a plurality of the macroblocks to form a video segment; and code amount control means for controlling a code amount in the video segment to be substantially constant. The variable length encoded data of the orthogonal transform block in the variable length encoded video segment is transmitted to a plurality of sync blocks corresponding to macro blocks. In a digital video signal processing device for decoding variable-length coded data packed by a digital video signal processing device for packing in a lock, the capacity of one sync block is determined by the number of orthogonal transform blocks in a macro block and the number of orthogonal transform blocks. Packed variable-length coded data is stored in a first memory having a fixed-length fixed area for storing variable-length coded data, and another orthogonal transformation block in the same macroblock is stored in each fixed area. Is stored in the second memory, and the variable-length coded data of the orthogonal transform block in another macroblock in the video segment is stored in the third memory.
And the variable length coded data corresponding to each fixed area stored in the first memory and the other fixed area in the same macro block stored in the second memory. The variable-length encoded data is decoded by joining the variable-length encoded data and the variable-length encoded data arranged in a fixed area in another macroblock in the video segment stored in the third memory. Digital video signal processing device characterized by the following.
【請求項5】 前記請求項4に記載の第2のメモリと第
3のメモリは、ビデオセグメント単位で交替するそれぞ
れ2個のメモリを用いる事を特徴とした請求項4に記載
のディジタル映像信号処理装置。
5. The digital video signal according to claim 4, wherein each of the second memory and the third memory according to claim 4 uses two memories that are alternated in video segment units. Processing equipment.
【請求項6】 前記請求項4に記載の第1のメモリは、
ビデオセグメント内におけるマクロブロックの数をnと
した場合、n+2個用いる事を特徴とした請求項4また
は請求項5に記載のディジタル映像信号処理装置。
6. The first memory according to claim 4, wherein:
6. The digital video signal processing apparatus according to claim 4, wherein when the number of macroblocks in a video segment is n, n + 2 are used.
【請求項7】 複数の画素からなる直交変換ブロックを
単位として直交変換する直交変換手段と、 前記直交変換手段で得られた直交変換ブロックの直交成
分を量子化する量子化手段と、 前記量子化手段で得られた量子化された直交変換ブロッ
クの直交成分を可変長符号化データに変換する可変長符
号化手段と、 前記可変長符号化手段で得られた直交変換ブロックの可
変長符号化データを複数直交変換ブロック分集めてマク
ロブロックを構成する手段と、 前記マクロブロックを複数個集めてビデオセグメントを
構成する手段と、 前記ビデオセグメント内での符号量をほぼ一定に制御す
る符号量制御手段とを有し、 可変長符号化されたビデオセグメント内の直交変換ブロ
ックの可変長符号化データを、マクロブロックに対応し
た複数のシンクブロックにパッキングするディジタル映
像信号処理装置でパッキングされた可変長符号化データ
を復号するディジタル映像信号処理装置において、 誤訂正による可変長符号化データの誤りを検出し、誤り
が検出された直交変換ブロックの可変長符号化データを
誤りがある事を示すエラーコードに置き換え、マクロブ
ロック内の以降の直交変換ブロックの可変長符号化デー
タを、対応した固定領域に配置されている可変長符号化
データのみ復号し、ビデオセグメント内の以降のマクロ
ブロック内の直交変換ブロックの可変長符号化データ
を、対応した固定領域に配置されている可変長符号化デ
ータと、同一マクロブロック内の他の固定領域に配置さ
れている可変長符号化データのみ復号する事を特徴とし
たディジタル映像信号処理装置。
7. An orthogonal transformation unit for performing orthogonal transformation in units of an orthogonal transformation block composed of a plurality of pixels; a quantization unit for quantizing orthogonal components of the orthogonal transformation block obtained by the orthogonal transformation unit; Variable length encoding means for converting the orthogonal components of the quantized orthogonal transform block obtained by the means into variable length encoded data; and variable length encoded data of the orthogonal transform block obtained by the variable length encoding means. Means for collecting a plurality of orthogonal transform blocks to form a macroblock; means for collecting a plurality of the macroblocks to form a video segment; and code amount control means for controlling a code amount in the video segment to be substantially constant. The variable length encoded data of the orthogonal transform block in the variable length encoded video segment is transmitted to a plurality of sync blocks corresponding to macro blocks. A digital video signal processor that decodes variable-length coded data packed by a digital video signal processor that packs in a lock. An orthogonal transform block that detects an error in the variable-length coded data due to erroneous correction and detects the error. Replace the variable-length coded data of the macroblock with the error code indicating that there is an error, and replace the variable-length coded data of the subsequent orthogonal transform block in the macro block only with the variable-length coded data located in the corresponding fixed area. Decodes the variable-length coded data of the orthogonal transform block in the subsequent macroblock in the video segment into the variable-length coded data located in the corresponding fixed area and another fixed area in the same macroblock. A digital video signal processing device characterized in that it decodes only the variable-length coded data arranged.
【請求項8】 前記請求項7に記載の誤訂正による可変
長符号化データの誤りとは、各固定領域に配置された各
固定領域に対応した可変長符号化データと、同一マクロ
ブロック内の他の固定領域に配置されている可変長符号
化データと、ビデオセグメント内の他のマクロブロック
内の固定領域に配置されている可変長符号化データをつ
なぎ合わせる際、直交変換ブロック内の可変長符号化デ
ータの個数を計数し、計数した個数が直交変換ブロック
内の可変長符号化データの最大個数に達した時に、その
次の可変長符号化データが終了符号語であるかないかに
よって判断され、終了符号語でなかった場合に可変長符
号化データの誤りであると判断する事を特徴とした請求
項7に記載のディジタル映像信号処理装置。
8. An error in variable-length coded data due to an erroneous correction according to claim 7, wherein the variable-length coded data corresponding to each fixed area arranged in each fixed area and the variable-length coded data in the same macroblock When joining variable-length coded data arranged in another fixed area and variable-length coded data arranged in a fixed area in another macroblock in a video segment, the variable length encoded data in the orthogonal transform block is connected. The number of encoded data is counted, and when the counted number reaches the maximum number of variable-length encoded data in the orthogonal transform block, it is determined whether the next variable-length encoded data is an end codeword. 8. The digital video signal processing apparatus according to claim 7, wherein if the codeword is not an end codeword, it is determined that the error is in variable-length encoded data.
【請求項9】 前記請求項7に記載の誤訂正による可変
長符号化データの誤りとは、各固定領域に配置された各
固定領域に対応した可変長符号化データと、同一マクロ
ブロック内の他の固定領域に配置されている可変長符号
化データと、ビデオセグメント内の他のマクロブロック
内の固定領域に配置されている可変長符号化データをつ
なぎ合わせる際、可変長符号化データの0ラン長を復号
し、直交変換ブロック内の0ラン長に1をプラスした値
の累積加算を行い、累積加算の結果が直交変換ブロック
内の累積加算値の最大値以下であるか最大値を越えてい
るかによって判断され、最大値を越えている場合に可変
長符号化データの誤りであると判断する事を特徴とした
請求項7に記載のディジタル映像信号処理装置。
9. An error in variable-length coded data due to an erroneous correction according to claim 7, wherein the variable-length coded data corresponding to each fixed area arranged in each fixed area and the variable-length coded data in the same macroblock When joining the variable-length coded data arranged in another fixed area and the variable-length coded data arranged in a fixed area in another macroblock in the video segment, the variable length coded data 0 The run length is decoded, the cumulative addition of the value obtained by adding 1 to 0 run length in the orthogonal transformation block is performed, and the result of the cumulative addition is less than or exceeds the maximum value of the cumulative addition value in the orthogonal transformation block. 8. The digital video signal processing apparatus according to claim 7, wherein the digital video signal processing apparatus determines whether the error is in the variable length coded data if the maximum value is exceeded.
【請求項10】 前記請求項7に記載の誤訂正による可
変長符号化データの誤りとは、請求項8に記載の誤訂正
による可変長符号化データの誤りと、請求項9に記載の
誤訂正による可変長符号化データの誤りのどちらか一
方、または両方である事を特徴とした請求項7および請
求項8および請求項9に記載のディジタル映像信号処理
装置。
10. The error of the variable-length coded data due to the erroneous correction according to claim 7 includes the error of the variable-length coded data due to the erroneous correction according to claim 8, and the error of the variable-length coded data according to claim 9. 10. The digital video signal processing device according to claim 7, wherein the error is one or both of errors of variable-length coded data due to correction.
JP13958597A 1997-05-29 1997-05-29 Digital video signal processor Expired - Fee Related JP3500039B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13958597A JP3500039B2 (en) 1997-05-29 1997-05-29 Digital video signal processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13958597A JP3500039B2 (en) 1997-05-29 1997-05-29 Digital video signal processor

Publications (2)

Publication Number Publication Date
JPH10336582A true JPH10336582A (en) 1998-12-18
JP3500039B2 JP3500039B2 (en) 2004-02-23

Family

ID=15248700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13958597A Expired - Fee Related JP3500039B2 (en) 1997-05-29 1997-05-29 Digital video signal processor

Country Status (1)

Country Link
JP (1) JP3500039B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006211253A (en) * 2005-01-27 2006-08-10 Matsushita Electric Ind Co Ltd Image decoder
WO2009040873A1 (en) * 2007-09-26 2009-04-02 Fujitsu Limited Method for storing variable length data into memory, and variable length data storage device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006211253A (en) * 2005-01-27 2006-08-10 Matsushita Electric Ind Co Ltd Image decoder
JP4623638B2 (en) * 2005-01-27 2011-02-02 パナソニック株式会社 Image decoding device
WO2009040873A1 (en) * 2007-09-26 2009-04-02 Fujitsu Limited Method for storing variable length data into memory, and variable length data storage device
JP4796186B2 (en) * 2007-09-26 2011-10-19 富士通株式会社 Variable length data memory storage method and variable length data storage device
US8458512B2 (en) 2007-09-26 2013-06-04 Fujitsu Limited Variable-length data storing method and variable-length data storing device

Also Published As

Publication number Publication date
JP3500039B2 (en) 2004-02-23

Similar Documents

Publication Publication Date Title
JP4067579B2 (en) Video signal encoding system
EP0665653B1 (en) Apparatus and method for decoding variable-length code
US5442400A (en) Error concealment apparatus for MPEG-like video data
JP3134424B2 (en) Variable length encoding method and apparatus
US5497404A (en) Transmission error recovery for digital communication systems using variable length data packets where data is stored in header locations of memory
KR0185592B1 (en) Coding and decoding apparatus of variable length data
KR960001482B1 (en) Information recording/reproducing apparatus
KR100420235B1 (en) Digital video signal decoding apparatus
WO1992020192A1 (en) Video signal compression apparatus
RU2119269C1 (en) Television system for converting compressed data presenting images and placed in blocks into decompressed data and system for processing compressed video data transmitted in the form of blocks
JPH06253288A (en) Method for masking error in transmission system
JP3169486B2 (en) Data format conversion apparatus and method
EP0602817B1 (en) Digital video signal processing apparatus
JPH05115010A (en) Picture decoder
EP0574917B1 (en) Method and system for dubbing a digital video signal on a record medium
JP3500039B2 (en) Digital video signal processor
EP0624990B1 (en) Video recording and reproducing apparatus
JPH07121999A (en) Signal encoder, signal decoder, signal encoding and decoding method
JP3921487B2 (en) Decoding method, decoding apparatus and recording medium
JP3530548B2 (en) Image decoding apparatus and method
JP4000921B2 (en) Digital signal reproducing apparatus and reproducing method
JP3669005B2 (en) Signal processing apparatus and method
JP3083410B2 (en) Code length converter
JP3332220B2 (en) Digital signal reproducing apparatus and reproducing method
JP2671749B2 (en) Recording apparatus, reproducing apparatus, recording method and reproducing method

Legal Events

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

Free format text: PAYMENT UNTIL: 20071205

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20081205

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091205

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091205

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101205

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101205

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111205

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111205

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121205

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121205

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees