JP2001169243A - Recorder and recording method, and reproducing device and reproducing method - Google Patents

Recorder and recording method, and reproducing device and reproducing method

Info

Publication number
JP2001169243A
JP2001169243A JP34544199A JP34544199A JP2001169243A JP 2001169243 A JP2001169243 A JP 2001169243A JP 34544199 A JP34544199 A JP 34544199A JP 34544199 A JP34544199 A JP 34544199A JP 2001169243 A JP2001169243 A JP 2001169243A
Authority
JP
Japan
Prior art keywords
data
block
recording
signal
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP34544199A
Other languages
Japanese (ja)
Inventor
Hideyuki Matsumoto
英之 松本
Haruo Togashi
治夫 富樫
Susumu Todo
晋 藤堂
Akira Sugiyama
晃 杉山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP34544199A priority Critical patent/JP2001169243A/en
Publication of JP2001169243A publication Critical patent/JP2001169243A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a digital VTR to be compatible with even a different image frame size of a digital video signal. SOLUTION: A frame detection section 300 detects a received head of a frame in compliance with the MPEG ES and a counter 301 is started. An H/V detection section 302 starts counting frames from the head of the frames and extracts horizontal (H) and vertical (V) size information from the MPEG ES frames. A dummy generating section 304 generates dummy data whose first 3-byte synchronous wards are the same as those of a macro block and whose 4th byte data are unique data with a signal INVAL outputted from an H/V detection section 302 that detects the H and V size information. A selector 306 selects the MPEG ES read from a memory 303 on the basis of the inverted signal inverse of INVAL or the dummy data from the dummy generating section 304 on the basis of the signal INVAL selectively and provides an output of the selected signal. Parts corresponding to the difference of the image frame size are filled by the dummy data.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ディジタルビデ
オ信号を圧縮符号化し、所定サイズのブロック単位でエ
ラー訂正符号化して記録媒体に記録し、記録媒体に、圧
縮符号化され所定サイズのブロック単位でエラー訂正符
号化されて記録されたディジタルビデオ信号を再生する
記録装置および方法、ならびに、再生装置および方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to compression encoding of a digital video signal, error correction encoding in units of blocks of a predetermined size, recording on a recording medium, and compression encoding in the recording medium in units of blocks of a predetermined size. The present invention relates to a recording apparatus and method for reproducing a digital video signal recorded by error correction coding, and a reproducing apparatus and method.

【0002】[0002]

【従来の技術】ディジタルVTR(VIdeo Tape Recorde
r) に代表されるように、ディジタル画像信号およびデ
ィジタルオーディオ信号を記録媒体に記録し、また、記
録媒体から再生するようなデータ記録再生装置が知られ
ている。ディジタル画像記録機器における記録処理部で
は、ビデオおよびオーディオのディジタルデータを所定
長のパケットに格納し、パケット単位にデータの内容を
示すID情報、エラー訂正符号の符号化を行い、パケッ
ト化されたデータ、エラー訂正符号のパリティ等に対し
て、同期パターン、IDを付加してシンクブロックを構
成する。このシンクブロックを、データの種類によって
グループ化してセクタとし、セクタ単位でシリアルデー
タとして、回転ヘッドにより磁気テープに記録してい
る。磁気テープには、ヘリカルトラックで以て記録がな
される。
2. Description of the Related Art Digital VTR (Video Tape Recorder)
As represented by r), there is known a data recording / reproducing apparatus which records a digital image signal and a digital audio signal on a recording medium and reproduces the data from the recording medium. In a recording processing unit of a digital image recording device, video and audio digital data are stored in packets of a predetermined length, ID information indicating data contents and an error correction code are encoded in packet units, and the packetized data is encoded. , A sync pattern is formed by adding a synchronization pattern and an ID to the parity of the error correction code. The sync blocks are grouped according to the type of data to form sectors, and serial data is recorded in units of sectors on a magnetic tape by a rotating head. Recording is performed on the magnetic tape with a helical track.

【0003】同一セクタ内のシンクブロックの長さは同
一で、ID番号は連続し、ID情報は、同じ値を有して
いる。エラー訂正符号としては、積符号が使用される。
すなわち、データシンボルの2次元配列の縦および横方
向にそれぞれ外符号および内符号の符号化がされ、各シ
ンボルが二重に符号化される。この積符号の符号化/復
号化の1単位をECCブロックと称する。ECCブロッ
クにおいて、例えばデータシンボル単位の内符号方向の
一列が、上述したシンクブロックと対応する。
[0003] The sync blocks in the same sector have the same length, the ID numbers are consecutive, and the ID information has the same value. A product code is used as the error correction code.
That is, the outer code and the inner code are encoded in the vertical and horizontal directions of the two-dimensional array of data symbols, respectively, and each symbol is doubly encoded. One unit of encoding / decoding of the product code is called an ECC block. In the ECC block, for example, one row in the inner code direction in data symbol units corresponds to the above-described sync block.

【0004】また、再生側では、各シンクブロックの先
頭位置を同期信号によって検出し、そのブロック内のパ
ケットをID番号、ID情報に応じて並び替える。シン
クブロックの先頭位置には固有の同期パターンが付加さ
れているので、この同期パターンのビット列と、パター
ンの出現周期、同一セクタ内でID番号が連続でID情
報が同じ、ということを利用して、同期ブロックの位相
を特定できる。すなわち、同期パターンのビット列が固
有パターンと一致し、かつブロック長分だけ遅延した位
置に同じパターンが検出され、かつブロックIDの内容
が適正であった場合に同期ブロックの位相を特定してい
る。
On the reproducing side, the head position of each sync block is detected by a synchronization signal, and the packets in the block are rearranged according to the ID number and ID information. Since a unique synchronization pattern is added to the head position of the sync block, the bit sequence of the synchronization pattern, the pattern appearance cycle, and the fact that the ID number is continuous and the ID information is the same in the same sector are used. , The phase of the synchronization block can be specified. That is, when the bit sequence of the synchronization pattern matches the unique pattern, the same pattern is detected at a position delayed by the block length, and the content of the block ID is appropriate, the phase of the synchronization block is specified.

【0005】なお、シンクブロックの磁気テープへの記
録に際して、シンクブロック単位でのシャフリングがな
される。外符号の符号化が行われた後、走査順にシンク
ブロック単位で並べられたデータを、所定のパターンに
基づいてシャフリングする。シャフリングされたシンク
ブロックは、シンクブロック毎にIDが付加され、内符
号の符号化がなされ、磁気テープに記録される。シャフ
リングによって、テープ上のシンクブロックの記録位置
が、走査順に対して分散化される。再生時には、内符号
を復号化されたシンクブロックが、シンクブロック毎に
付加されたIDをアドレス情報として元の順序に並べ替
えられ、デシャフリングされる。シャフリングによっ
て、バースト的なエラーにより集中的にデータが復号化
できなくなることが防がれる。また、シャフリングを行
うことで、変速再生時に断片的にデータが再生される場
合でも、画像の更新率を向上させることができる。
When a sync block is recorded on a magnetic tape, shuffling is performed in sync block units. After the outer code is encoded, the data arranged in sync block units in the scanning order is shuffled based on a predetermined pattern. An ID is added to the shuffled sync block for each sync block, the inner code is encoded, and the sync block is recorded on a magnetic tape. By the shuffling, the recording positions of the sync blocks on the tape are dispersed in the scanning order. At the time of reproduction, the sync blocks whose inner codes have been decoded are rearranged in the original order using the ID added to each sync block as address information, and are deshuffled. Shuffling prevents data from being intensively decoded due to bursty errors. Further, by performing shuffling, the image update rate can be improved even when data is reproduced in pieces during variable speed reproduction.

【0006】画像データのデータ量を記録/再生するた
めに、圧縮符号化がなされる。例えばMPEG(Moving
Picture Experts Group)の場合には、所定サイズのブロ
ックを単位としてDCT(Discrete Cosine Transform)
を行い、DCTにより生じた係数データを可変長符号化
する。複数のDCTブロックからマクロブロックが構成
される。DCTブロックのサイズが一定であれば、マク
ロブロックの数は、画枠のサイズ、すなわち、水平方向
の画素数と、垂直方向のライン数によって一意に決めら
れる。
[0006] In order to record / reproduce the amount of image data, compression encoding is performed. For example, MPEG (Moving
In the case of Picture Experts Group), DCT (Discrete Cosine Transform)
Is performed, and the coefficient data generated by the DCT is subjected to variable length coding. A macroblock is composed of a plurality of DCT blocks. If the size of the DCT block is constant, the number of macroblocks is uniquely determined by the size of the picture frame, that is, the number of pixels in the horizontal direction and the number of lines in the vertical direction.

【0007】[0007]

【発明が解決しようとする課題】従来では、1画面を構
成するシンクブロック数を固定とし、且つ、シンクブロ
ックと上述したマクロブロックとを1対1に対応させ
て、ビデオ信号の磁気テープ上への記録を行っていた。
この様子を、図30に示す。図30は、NTSC方式の
ビデオ信号の磁気テープへの記録を示し、画枠サイズが
水平方向に720画素、垂直方向に512画素(ライ
ン)とされた例である。図30Aに示されるように、1
マクロブロックは、16画素×16画素で構成され、1
画面中のマクロブロック数は、水平方向に45マクロブ
ロック、垂直方向に32マクロブロックからなる144
0個である。したがって、1画面の画像データは、図3
0Bに示されるように、磁気テープ上の1440個のシ
ンクブロックによって記録される。
Conventionally, the number of sync blocks constituting one screen is fixed, and the sync blocks and the above-mentioned macro blocks are in one-to-one correspondence with each other, and video signals are recorded on a magnetic tape. Was recorded.
This is shown in FIG. FIG. 30 shows recording of an NTSC video signal on a magnetic tape, in which the picture frame size is 720 pixels in the horizontal direction and 512 pixels (lines) in the vertical direction. As shown in FIG.
A macro block is composed of 16 pixels × 16 pixels,
The number of macroblocks on the screen is 144 consisting of 45 macroblocks in the horizontal direction and 32 macroblocks in the vertical direction.
There are zero. Therefore, the image data of one screen is shown in FIG.
As shown in FIG. 0B, it is recorded by 1440 sync blocks on the magnetic tape.

【0008】これは、記録時よりも高速に磁気テープを
走行させて再生する、シャトル再生時に画質の管理がし
易いなどの理由に基づく。シャトル再生時には、回転ヘ
ッドが複数トラックを斜めに跨がってトレースするた
め、1トラックの全てのデータを再生できない。そこ
で、このように、1画面中のシンクブロック数を固定的
にし、且つ、シンクブロックとマクロブロックとを1対
1に対応させて記録することによって、記録時にシャフ
リングされ分散化されたマクロブロックをデシャフリン
グで元の位置に戻すことができ、シャトル再生時の画像
の更新率を向上させることができる。
[0008] This is based on the reason that the magnetic tape is run at a higher speed than at the time of recording and reproduced, and the quality of the image is easily managed at the time of shuttle reproduction. At the time of shuttle reproduction, the rotary head traces a plurality of tracks obliquely, so that all data of one track cannot be reproduced. Thus, by fixing the number of sync blocks in one screen and recording the sync blocks and macro blocks in a one-to-one correspondence, the shuffled and dispersed macro blocks are recorded at the time of recording. Can be returned to the original position by deshuffling, and the image update rate during shuttle playback can be improved.

【0009】一方で、このような、マクロブロックとシ
ンクブロックとを1対1に対応させて記録するようなフ
ォーマットでは、磁気テープ上に記録される全てのシン
クブロックに画像データが存在することが要求される。
そのため、従来のディジタルVTRでは、画枠の固定さ
れた画像しか扱えないという問題点があった。
On the other hand, in such a format in which a macro block and a sync block are recorded in a one-to-one correspondence, image data exists in all sync blocks recorded on a magnetic tape. Required.
Therefore, the conventional digital VTR has a problem that it can handle only an image with a fixed image frame.

【0010】例えば、図31に一例が示されるように、
上述の図30の画枠に対して水平および垂直方向に、共
に1/2の、水平方向に352画素、垂直方向に256
画素(ライン)の画像データを記録する場合を考える。
この場合、画像は、16画素×16画素のマクロブロッ
クが水平方向に22個、垂直方向に16個の計352個
で構成され、上述した図30の場合の、1画面当たり1
440個のマクロブロック数に比べて少ない。そのた
め、例えば図31Aに示される斜線の部分のように、画
像データが存在しない部分が生じる。したがって、図3
1Bに一例が示されるように、磁気テープ上の1画面分
の画像データが記録されるべきトラックに、書くべきデ
ータが存在しないことになり、シンクブロックとマクロ
ブロックとの1対1の関係が破綻してしまう。
For example, as shown in FIG.
30 are 352 pixels in the horizontal direction and 256 in the vertical direction, both in the horizontal and vertical directions with respect to the image frame of FIG.
Consider a case where image data of a pixel (line) is recorded.
In this case, the image is composed of a total of 352 macroblocks of 16 × 16 pixels, 22 in the horizontal direction and 16 in the vertical direction. In the case of FIG.
This is smaller than the number of 440 macroblocks. Therefore, for example, there is a portion where no image data exists, such as a hatched portion shown in FIG. 31A. Therefore, FIG.
As shown in FIG. 1B, there is no data to be written on the track on the magnetic tape where the image data for one screen is to be recorded, and the one-to-one relationship between the sync block and the macro block is not satisfied. It will break down.

【0011】この場合、図31Aの斜線部分のデータが
存在しないため、アドレス情報となるべきIDも存在し
ない。一方、記録時には、画枠サイズが720画素×5
12画素(ライン)であるとしてシャフリングを行うた
め、再生時のデシャフリングが正しく行えないという問
題点があった。
In this case, since there is no data in the hatched portion in FIG. 31A, there is no ID to be address information. On the other hand, at the time of recording, the image frame size is 720 pixels × 5.
Since shuffling is performed on the assumption that the number of pixels is 12 (line), there is a problem that deshuffling during reproduction cannot be performed correctly.

【0012】従来、例えば放送用の映像機器は、閉じた
システム内で設定された規格に基づいて設計されていた
ため、単一のフォーマットに対応していればよく、画枠
サイズも固定で十分であった。ところが、現在実施が検
討されているディジタル放送では、MPEG2という標
準化された技術が利用されるため、他のシステムで作成
された映像信号も扱えるようにする必要が生じる。
Conventionally, for example, video equipment for broadcasting has been designed on the basis of a standard set in a closed system, so that it only needs to support a single format, and a fixed image frame size is sufficient. there were. However, in digital broadcasting currently being considered for implementation, a standardized technique called MPEG2 is used, so that it is necessary to handle video signals created by other systems.

【0013】このMPEG2の規格によれば、1フレー
ム毎のダイナミックな画枠サイズの変更を許している。
すなわち、MPEG2のビットストリーム中には、図3
2Aおよび図32Bにそれぞれ示されるように、画枠サ
イズを指定する情報(図中のhorizontal_s
ize_valueおよびvertical_size
_value)が格納されており、この画枠サイズ情報
に続けて、指定されたサイズ分の画像データが格納され
る。従来のディジタルVTRでは、画枠サイズが720
画素×512画素である図32Aのストリームには対応
するが、画枠サイズが352画素×256画素に縮小さ
れた図32Bのストリームが入力されると、シンクブロ
ックとマクロブロックとの1対1の対応が破綻してしま
うという問題点があった。
According to the MPEG2 standard, a dynamic change of the picture frame size for each frame is permitted.
That is, in the MPEG2 bit stream, FIG.
As shown in FIG. 2A and FIG. 32B, information (horizontal_s in FIG.
size_value and vertical_size
_Value) is stored. Image data of a designated size is stored following the image frame size information. In a conventional digital VTR, the image frame size is 720
32B, which corresponds to the stream of FIG. 32A which is a pixel × 512 pixels, when the stream of FIG. 32B whose image frame size is reduced to 352 pixels × 256 pixels is input, a one-to-one correspondence between a sync block and a macro block is obtained. There was a problem that the response failed.

【0014】したがって、この発明の目的は、ディジタ
ルビデオ信号の異なる画枠サイズにも対応できるように
した記録装置および方法、ならびに、再生装置および方
法を提供することにある。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a recording apparatus and method, and a reproducing apparatus and method capable of coping with different picture frame sizes of digital video signals.

【0015】[0015]

【課題を解決するための手段】この発明は、上述した課
題を解決するために、1画面に対応するブロック数が固
定的に設定され、ディジタルビデオデータをブロック単
位で記録媒体に記録する記録装置において、入力された
ディジタルビデオデータの画枠サイズを検出し、検出さ
れた画枠サイズと設定された画枠サイズとの差に対応し
て、無効であることを示すデータを入力されたディジタ
ルビデオデータに付加して記録するようにしたことを特
徴とする記録装置である。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention is directed to a recording apparatus for recording digital video data on a recording medium in which the number of blocks corresponding to one screen is fixedly set. Detecting an image frame size of the input digital video data, and corresponding to the difference between the detected image frame size and the set image frame size, inputting data indicating invalidity to the input digital video data. A recording apparatus characterized in that it is added to data and recorded.

【0016】また、この発明は、1画面に対応するブロ
ック数が固定的に設定され、ディジタルビデオデータを
ブロック単位で記録媒体に記録する記録方法において、
入力されたディジタルビデオデータの画枠サイズを検出
し、検出された画枠サイズと設定された画枠サイズとの
差に対応して、無効であることを示すデータを入力され
たディジタルビデオデータに付加して記録するようにし
たことを特徴とする記録方法である。
According to another aspect of the present invention, there is provided a recording method for recording digital video data on a recording medium in block units, wherein the number of blocks corresponding to one screen is fixedly set.
The image frame size of the input digital video data is detected, and data indicating invalidity is input to the input digital video data in accordance with the difference between the detected image frame size and the set image frame size. This is a recording method characterized by adding and recording.

【0017】また、この発明は、1画面に対応するブロ
ック数が固定的に設定され、ブロック単位で記録媒体に
記録されたディジタルビデオデータを再生する再生装置
において、記録媒体からブロック単位でデータを再生す
る再生手段と、再生手段によって再生されたデータか
ら、無効であることを示すデータが付加されたブロック
を検出し、無効であることを示すデータが付加されたブ
ロックを出力しないように制御する出力制御手段とを有
することを特徴とする再生装置である。
According to the present invention, in a reproducing apparatus in which the number of blocks corresponding to one screen is fixedly set and digital video data recorded on a recording medium is reproduced in units of blocks, data is reproduced from the recording medium in units of blocks. A block to which data indicating invalidity is added is detected from a reproducing unit for reproducing and data reproduced by the reproducing unit, and control is performed so as not to output a block to which data indicating invalid is added. A playback device comprising output control means.

【0018】また、この発明は、1画面に対応するブロ
ック数が固定的に設定され、ブロック単位で記録媒体に
記録されたディジタルビデオデータを再生する再生方法
において、記録媒体からブロック単位でデータを再生す
る再生のステップと、再生のステップによって再生され
たデータから、無効であることを示すデータが付加され
たブロックを検出し、無効であることを示すデータが付
加されたブロックを出力しないように制御する出力制御
のステップとを有することを特徴とする再生方法であ
る。
According to the present invention, in a reproducing method in which the number of blocks corresponding to one screen is fixedly set and digital video data recorded on a recording medium is reproduced in units of blocks, data is reproduced from the recording medium in units of blocks. A block to which data indicating invalidity is added is detected from the data reproduced in the reproducing step and the data reproduced in the reproducing step, and a block to which data indicating invalidity is added is not output. And a step of controlling output.

【0019】上述したように、請求項1または請求項4
に記載の発明は、入力されたディジタルビデオデータの
画枠サイズを検出し、検出された画枠サイズと設定され
た画枠サイズとの差に対応して、無効であることを示す
データを入力されたディジタルビデオデータに付加して
記録するようにしているため、入力されたディジタルビ
デオデータの画枠サイズが設定された画枠サイズと異な
っていても、入力されたディジタルビデオ信号を、設定
された画枠サイズのデータを記録するのと同様に、記録
媒体に記録することができる。
As mentioned above, claim 1 or claim 4
The invention described in (1) detects an image frame size of input digital video data, and inputs data indicating invalidity according to a difference between the detected image frame size and the set image frame size. Because the digital video data is recorded in addition to the input digital video data, even if the frame size of the input digital video data is different from the set frame size, the input digital video signal is set. The data can be recorded on the recording medium in the same manner as the data of the image frame size is recorded.

【0020】また、請求項5または請求項8に記載の発
明は、記録媒体からブロック単位でデータを再生し、再
生されたデータから、無効であることを示すデータが付
加されたブロックを検出して無効であることを示すデー
タが付加されたブロックを出力しないように制御するよ
うにしているため、設定された画枠サイズと異なる画枠
サイズのデータが設定された画枠サイズと同様にして記
録媒体に記録されていていても、記録媒体から再生され
たディジタルビデオデータを、記録時と同一の画枠サイ
ズで出力することができる。
According to another aspect of the present invention, data is reproduced from a recording medium in block units, and a block to which data indicating invalid is added is detected from the reproduced data. Is controlled so as not to output the block to which the data indicating invalid is added, so that data of an image frame size different from the set image frame size is set in the same manner as the set image frame size. Even if the digital video data is recorded on the recording medium, the digital video data reproduced from the recording medium can be output with the same image frame size as at the time of recording.

【0021】[0021]

【発明の実施の形態】以下、この発明をディジタルVT
Rに対して適用した一実施形態について説明する。この
一実施形態は、放送局の環境で使用して好適なものであ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be
An embodiment applied to R will be described. This embodiment is suitable for use in a broadcast station environment.

【0022】この一実施形態では、圧縮方式としては、
例えばMPEG2方式が採用される。MPEG2は、動
き補償予測符号化と、DCTによる圧縮符号化とを組み
合わせたものである。MPEG2のデータ構造は、階層
構造をなしている。図1は、一般的なMPEG2のデー
タストリームの階層構造を概略的に示す。図1に示され
るように、データ構造は、下位から、マクロブロック層
(図1E)、スライス層(図1D)、ピクチャ層(図1
C)、GOP層(図1B)およびシーケンス層(図1
A)となっている。
In this embodiment, the compression method is as follows.
For example, the MPEG2 system is adopted. MPEG2 is a combination of motion-compensated predictive coding and DCT-based compression coding. The data structure of MPEG2 has a hierarchical structure. FIG. 1 schematically shows a hierarchical structure of a general MPEG2 data stream. As shown in FIG. 1, the data structure includes a macroblock layer (FIG. 1E), a slice layer (FIG. 1D), and a picture layer (FIG.
C), GOP layer (FIG. 1B) and sequence layer (FIG. 1)
A).

【0023】図1Eに示されるように、マクロブロック
層は、DCTを行う単位であるDCTブロックからな
る。マクロブロック層は、マクロブロックヘッダと複数
のDCTブロックとで構成される。スライス層は、図1
Dに示されるように、スライスヘッダ部と、1以上のマ
クロブロックより構成される。ピクチャ層は、図1Cに
示されるように、ピクチャヘッダ部と、1以上のスライ
スとから構成される。ピクチャは、1画面に対応する。
GOP層は、図1Bに示されるように、GOPヘッダ部
と、フレーム内符号化に基づくピクチャであるIピクチ
ャと、予測符号化に基づくピクチャであるPおよびBピ
クチャとから構成される。
As shown in FIG. 1E, the macroblock layer is composed of DCT blocks which are units for performing DCT. The macro block layer includes a macro block header and a plurality of DCT blocks. Fig. 1
As shown in D, it is composed of a slice header section and one or more macroblocks. As shown in FIG. 1C, the picture layer includes a picture header section and one or more slices. A picture corresponds to one screen.
As shown in FIG. 1B, the GOP layer includes a GOP header, I pictures that are pictures based on intra-frame coding, and P and B pictures that are pictures based on predictive coding.

【0024】Iピクチャ(Intra-coded picture:イント
ラ符号化画像) は、符号化されるときその画像1枚の中
だけで閉じた情報を使用するものである。従って、復号
時には、Iピクチャ自身の情報のみで復号できる。Pピ
クチャ(Predictive-coded picture :順方向予測符号化
画像)は、予測画像(差分をとる基準となる画像)とし
て、時間的に前の既に復号されたIピクチャまたはPピ
クチャを使用するものである。動き補償された予測画像
との差を符号化するか、差分を取らずに符号化するか、
効率の良い方をマクロブロック単位で選択する。Bピク
チャ(Bidirectionally predictive-coded picture :両
方向予測符号化画像)は、予測画像(差分をとる基準と
なる画像)として、時間的に前の既に復号されたIピク
チャまたはPピクチャ、時間的に後ろの既に復号された
IピクチャまたはPピクチャ、並びにこの両方から作ら
れた補間画像の3種類を使用する。この3種類のそれぞ
れの動き補償後の差分の符号化と、イントラ符号化の中
で、最も効率の良いものをマクロブロック単位で選択す
る。
An I picture (Intra-coded picture) uses information that is closed only in one picture when it is coded. Therefore, at the time of decoding, decoding can be performed using only the information of the I picture itself. A P-picture (Predictive-coded picture: a forward predictive coded picture) uses a previously decoded I-picture or P-picture which is temporally previous as a predicted picture (a reference picture for taking a difference). . Whether to encode the difference from the motion-compensated predicted image, to encode without taking the difference,
The more efficient one is selected for each macroblock. A B picture (Bidirectionally predictive-coded picture) is a temporally previous I-picture or P-picture which is temporally preceding, and a temporally backward I-picture, We use three types of I-pictures or P-pictures already decoded, as well as interpolated pictures made from both. Among the three types of difference coding after motion compensation and intra coding, the most efficient one is selected for each macroblock.

【0025】従って、マクロブロックタイプとしては、
フレーム内符号化(Intra) マクロブロックと、過去から
未来を予測する順方向(Forward) フレーム間予測マクロ
ブロックと、未来から過去を予測する逆方向(Backward)
フレーム間予測マクロブロックと、前後両方向から予測
する両方向マクロブロックとがある。Iピクチャ内の全
てのマクロブロックは、フレーム内符号化マクロブロッ
クである。また、Pピクチャ内には、フレーム内符号化
マクロブロックと順方向フレーム間予測マクロブロック
とが含まれる。Bピクチャ内には、上述した4種類の全
てのタイプのマクロブロックが含まれる。
Therefore, as the macroblock type,
Intra-frame coding (Intra) macroblocks, predicting the future from the past (Forward) Interframe predicting macroblocks, and predicting the future from the future (Backward)
There are an inter-frame prediction macro block and a bi-directional macro block predicted from both forward and backward directions. All macroblocks in an I picture are intra-coded macroblocks. The P picture includes an intra-frame coded macro block and a forward inter-frame predicted macro block. The B picture includes all four types of macroblocks described above.

【0026】GOPには、最低1枚のIピクチャが含ま
れ、PおよびBピクチャは、存在しなくても許容され
る。最上層のシーケンス層は、図1Aに示されるよう
に、シーケンスヘッダ部と複数のGOPとから構成され
る。
A GOP includes at least one I picture, and P and B pictures are allowed even if they do not exist. As shown in FIG. 1A, the uppermost sequence layer includes a sequence header section and a plurality of GOPs.

【0027】MPEGのフォーマットにおいては、スラ
イスが1つの可変長符号系列である。可変長符号系列と
は、可変長符号を正しく復号化しなければデータの境界
を検出できない系列である。
In the MPEG format, a slice is one variable-length code sequence. A variable-length code sequence is a sequence from which a data boundary cannot be detected unless the variable-length code is correctly decoded.

【0028】また、シーケンス層、GOP層、ピクチャ
層およびスライス層の先頭には、それぞれ、バイト単位
に整列された所定のビットパターンを有するスタートコ
ードが配される。この、各層の先頭に配されるスタート
コードを、シーケンス層においてはシーケンスヘッダコ
ード、他の階層においてはスタートコードと称し、ビッ
トパターンが〔00 00 01 xx〕(16進表
記)とされる。2桁ずつ示され、〔xx〕は、各層のそ
れぞれで異なるビットパターンが配されることを示す。
At the head of the sequence layer, GOP layer, picture layer and slice layer, a start code having a predetermined bit pattern arranged in byte units is arranged. The start code arranged at the head of each layer is called a sequence header code in the sequence layer and a start code in other layers, and the bit pattern is [00 00 01 xx] (hexadecimal notation). Two digits are shown, and [xx] indicates that a different bit pattern is arranged in each of the layers.

【0029】すなわち、スタートコードおよびシーケン
スヘッダコードは、4バイト(=32ビット)からな
り、4バイト目の値に基づき、後に続く情報の種類を識
別できる。これらスタートコードおよびシーケンスヘッ
ダコードは、バイト単位で整列されているため、4バイ
トのパターンマッチングを行うだけで捕捉することがで
きる。
That is, the start code and the sequence header code are composed of 4 bytes (= 32 bits), and can identify the type of subsequent information based on the value of the 4th byte. Since these start codes and sequence header codes are arranged in byte units, they can be captured only by performing 4-byte pattern matching.

【0030】さらに、スタートコードに続く1バイトの
上位4ビットが、後述する拡張データ領域の内容の識別
子となっている。この識別子の値により、その拡張デー
タの内容を判別することができる。
Further, the upper 4 bits of 1 byte following the start code are identifiers of the contents of the extended data area described later. The content of the extension data can be determined from the value of the identifier.

【0031】なお、マクロブロック層およびマクロブロ
ック内のDCTブロックには、このような、バイト単位
に整列された所定のビットパターンを有する識別コード
は、配されない。
It is to be noted that such an identification code having a predetermined bit pattern arranged in byte units is not allocated to the macro block layer and the DCT block in the macro block.

【0032】各層のヘッダ部について、より詳細に説明
する。図1Aに示すシーケンス層では、先頭にシーケン
スヘッダ2が配され、続けて、シーケンス拡張3、拡張
およびユーザデータ4が配される。シーケンスヘッダ2
の先頭には、シーケンスヘッダコード1が配される。ま
た、図示しないが、シーケンス拡張3およびユーザデー
タ4の先頭にも、それぞれ所定のスタートコードが配さ
れる。シーケンスヘッダ2からから拡張およびユーザデ
ータ4までがシーケンス層のヘッダ部とされる。
The header of each layer will be described in more detail. In the sequence layer shown in FIG. 1A, a sequence header 2 is arranged at the head, and a sequence extension 3, an extension and user data 4 are arranged subsequently. Sequence header 2
Is arranged at the head of the sequence header code 1. Although not shown, a predetermined start code is also arranged at the head of each of the sequence extension 3 and the user data 4. From the sequence header 2 to the extension and user data 4 are used as the header part of the sequence layer.

【0033】シーケンスヘッダ2には、図2に内容と割
当ビットが示されるように、シーケンスヘッダコード
1、水平方向画素数および垂直方向ライン数からなる符
号化画像サイズ、アスペクト比、フレームレート、ビッ
トレート、VBV(Video Buffering Verifier)バッファ
サイズ、量子化マトリクスなど、シーケンス単位で設定
される情報がそれぞれ所定のビット数を割り当てられて
格納される。
As shown in FIG. 2, the sequence header 2 has a sequence header code 1, an encoded image size consisting of the number of horizontal pixels and the number of vertical lines, an aspect ratio, a frame rate, and a bit. Information set in units of a sequence, such as a rate, a VBV (Video Buffering Verifier) buffer size, and a quantization matrix, is assigned a predetermined number of bits and stored.

【0034】シーケンスヘッダに続く拡張スタートコー
ド後のシーケンス拡張3では、図3に示されるように、
MPEG2で用いられるプロファイル、レベル、色差フ
ォーマット、プログレッシブシーケンスなどの付加デー
タが指定される。拡張およびユーザデータ4は、図4に
示されるように、シーケンス表示()により、原信号の
RGB変換特性や表示画サイズの情報を格納できると共
に、シーケンススケーラブル拡張()により、スケーラ
ビリティモードやスケーラビリティのレイヤ指定などを
行うことができる。
In sequence extension 3 after the extension start code following the sequence header, as shown in FIG.
Additional data such as a profile, a level, a color difference format, and a progressive sequence used in MPEG2 are specified. As shown in FIG. 4, the extension and user data 4 can store the information of the RGB conversion characteristics of the original signal and the display image size by the sequence display (), and the scalability mode and the scalability by the sequence scalable extension (). Layer designation and the like can be performed.

【0035】シーケンス層のヘッダ部に続けて、GOP
が配される。GOPの先頭には、図1Bに示されるよう
に、GOPヘッダ6およびユーザデータ7が配される。
GOPヘッダ6およびユーザデータ7がGOPのヘッダ
部とされる。GOPヘッダ6には、図5に示されるよう
に、GOPのスタートコード5、タイムコード、GOP
の独立性や正当性を示すフラグがそれぞれ所定のビット
数を割り当てられて格納される。ユーザデータ7は、図
6に示されるように、拡張データおよびユーザデータを
含む。図示しないが、拡張データおよびユーザデータの
先頭には、それぞれ所定のスタートコードが配される。
Following the header of the sequence layer, GOP
Is arranged. At the head of the GOP, a GOP header 6 and user data 7 are arranged as shown in FIG. 1B.
The GOP header 6 and the user data 7 are used as a GOP header. As shown in FIG. 5, the GOP header 6 includes a GOP start code 5, a time code, a GOP
Flags indicating the independence and the validity of each are assigned a predetermined number of bits and stored. As shown in FIG. 6, the user data 7 includes extension data and user data. Although not shown, a predetermined start code is arranged at the head of each of the extension data and the user data.

【0036】GOP層のヘッダ部に続けて、ピクチャが
配される。ピクチャの先頭には、図1Cに示されるよう
に、ピクチャヘッダ9、ピクチャ符号化拡張10、なら
びに、拡張およびユーザデータ11が配される。ピクチ
ャヘッダ9の先頭には、ピクチャスタートコード8が配
される。また、ピクチャ符号化拡張10、ならびに、拡
張およびユーザデータ11の先頭には、それぞれ所定の
スタートコードが配される。ピクチャヘッダ9から拡張
およびユーザデータ11までがピクチャのヘッダ部とさ
れる。
A picture is arranged following the header section of the GOP layer. As shown in FIG. 1C, a picture header 9, a picture coding extension 10, and extension and user data 11 are arranged at the head of the picture. At the head of the picture header 9, a picture start code 8 is arranged. A predetermined start code is provided at the head of the picture coding extension 10 and the extension and user data 11, respectively. The part from the picture header 9 to the extension and user data 11 is the header part of the picture.

【0037】ピクチャヘッダ9は、図7に示されるよう
に、ピクチャスタートコード8が配されると共に、画面
に関する符号化条件が設定される。ピクチャ符号化拡張
10では、図8に示されるように、前後方向および水平
/垂直方向の動きベクトルの範囲の指定や、ピクチャ構
造の指定がなされる。また、ピクチャ符号化拡張10で
は、イントラマクロブロックのDC係数精度の設定、V
LCタイプの選択、線型/非線型量子化スケールの選
択、DCTにおけるスキャン方法の選択などが行われ
る。
As shown in FIG. 7, a picture start code 8 is arranged in the picture header 9, and encoding conditions for the picture are set. In the picture coding extension 10, as shown in FIG. 8, the range of the motion vector in the front-back direction and the horizontal / vertical direction and the picture structure are specified. In the picture coding extension 10, the setting of the DC coefficient accuracy of the intra macroblock,
Selection of an LC type, selection of a linear / non-linear quantization scale, selection of a scanning method in DCT, and the like are performed.

【0038】拡張およびユーザデータ11では、図9に
示されるように、量子化マトリクスの設定や、空間スケ
ーラブルパラメータの設定などが行われる。これらの設
定は、ピクチャ毎に可能となっており、各画面の特性に
応じた符号化を行うことができる。また、拡張およびユ
ーザデータ11では、ピクチャの表示領域の設定を行う
ことが可能となっている。さらに、拡張およびユーザデ
ータ11では、著作権情報を設定することもできる。
In the extension and user data 11, as shown in FIG. 9, setting of a quantization matrix, setting of a spatial scalable parameter, and the like are performed. These settings can be made for each picture, and encoding can be performed according to the characteristics of each screen. Further, in the extension and user data 11, it is possible to set the display area of the picture. Further, copyright information can be set in the extension and user data 11.

【0039】ピクチャ層のヘッダ部に続けて、スライス
が配される。スライスの先頭には、図1Dに示されるよ
うに、スライスヘッダ13が配され、スライスヘッド1
3の先頭に、スライススタートコード12が配される。
図10に示されるように、スライススタートコード12
は、当該スライスの垂直方向の位置情報を含む。スライ
スヘッダ13には、さらに、拡張されたスライス垂直位
置情報や、量子化スケール情報などが格納される。
A slice is arranged following the header of the picture layer. At the head of the slice, as shown in FIG. 1D, a slice header 13 is arranged, and the slice head 1
3, a slice start code 12 is provided.
As shown in FIG.
Contains vertical position information of the slice. The slice header 13 further stores extended slice vertical position information, quantization scale information, and the like.

【0040】スライス層のヘッダ部に続けて、マクロブ
ロックが配される(図1E)。マクロブロックでは、マ
クロブロックヘッダ14に続けて複数のDCTブロック
が配される。上述したように、マクロブロックヘッダ1
4にはスタートコードが配されない。図11に示される
ように、マクロブロックヘッダ14は、マクロブロック
の相対的な位置情報が格納されると共に、動き補償モー
ドの設定、DCT符号化に関する詳細な設定などを指示
する。
Following the header of the slice layer, a macro block is arranged (FIG. 1E). In the macro block, a plurality of DCT blocks are arranged following the macro block header 14. As described above, the macroblock header 1
4 has no start code. As shown in FIG. 11, the macroblock header 14 stores the relative position information of the macroblock, and instructs the setting of the motion compensation mode, the detailed setting related to the DCT coding, and the like.

【0041】マクロブロックヘッダ14に続けて、DC
Tブロックが配される。DCTブロックは、図12に示
されるように、可変長符号化されたDCT係数およびD
CT係数に関するデータが格納される。
Following the macroblock header 14, DC
A T block is provided. As shown in FIG. 12, the DCT block includes a variable-length coded DCT coefficient and D
Data on CT coefficients is stored.

【0042】なお、図1では、各層における実線の区切
りは、データがバイト単位に整列されていることを示
し、点線の区切りは、データがバイト単位に整列されて
いないことを示す。すなわち、ピクチャ層までは、図1
3Aに一例が示されるように、符号の境界がバイト単位
で区切られているのに対し、スライス層では、スライス
スタートコード12のみがバイト単位で区切られてお
り、各マクロブロックは、図13Bに一例が示されるよ
うに、ビット単位で区切ることができる。同様に、マク
ロブロック層では、各DCTブロックをビット単位で区
切ることができる。一方、復号および符号化による信号
の劣化を避けるためには、符号化データ上で編集するこ
とが望ましい。このとき、PピクチャおよびBピクチャ
は、その復号に、時間的に前のピクチャあるいは前後の
ピクチャを必要とする。そのため、編集単位を1フレー
ム単位とすることができない。この点を考慮して、この
一実施形態では、1つのGOPが1枚のIピクチャから
なるようにしている。
In FIG. 1, a solid line delimiter in each layer indicates that data is aligned in byte units, and a dotted line delimiter indicates that data is not aligned in byte units. That is, up to the picture layer, FIG.
As shown in an example in FIG. 3A, the boundaries of the codes are separated in units of bytes, whereas in the slice layer, only the slice start code 12 is separated in units of bytes, and each macroblock is shown in FIG. 13B. As an example is shown, it can be divided on a bit-by-bit basis. Similarly, in the macroblock layer, each DCT block can be divided in bit units. On the other hand, in order to avoid signal degradation due to decoding and encoding, it is desirable to edit the encoded data. At this time, the P picture and the B picture require a temporally preceding picture or a preceding and succeeding picture for decoding. Therefore, the editing unit cannot be set to one frame unit. In consideration of this point, in this embodiment, one GOP is made up of one I picture.

【0043】また、例えば1フレーム分の記録データが
記録される記録領域が所定のものとされる。MPEG2
では、可変長符号化を用いているので、1フレーム期間
に発生するデータを所定の記録領域に記録できるよう
に、1フレーム分の発生データ量が制御される。さら
に、この一実施形態では、磁気テープへの記録に適する
ように、1スライスを1マクロブロックから構成すると
共に、1マクロブロックを、所定長の固定枠に当てはめ
る。
For example, a recording area in which recording data for one frame is recorded is a predetermined area. MPEG2
Since the variable length coding is used, the amount of generated data for one frame is controlled so that data generated during one frame period can be recorded in a predetermined recording area. Further, in this embodiment, one slice is composed of one macroblock so as to be suitable for recording on a magnetic tape, and one macroblock is applied to a fixed frame having a predetermined length.

【0044】図14は、この一実施形態におけるMPE
Gストリームのヘッダを具体的に示す。図1で分かるよ
うに、シーケンス層、GOP層、ピクチャ層、スライス
層およびマクロブロック層のそれぞれのヘッダ部は、シ
ーケンス層の先頭から連続的に現れる。図14は、シー
ケンスヘッダ部分から連続した一例のデータ配列を示し
ている。
FIG. 14 shows the MPE in this embodiment.
The header of the G stream is specifically shown. As can be seen from FIG. 1, the respective header portions of the sequence layer, the GOP layer, the picture layer, the slice layer, and the macroblock layer appear continuously from the head of the sequence layer. FIG. 14 shows an example of a data array that is continuous from the sequence header portion.

【0045】先頭から、12バイト分の長さを有するシ
ーケンスヘッダ2が配され、続けて、10バイト分の長
さを有するシーケンス拡張3が配される。シーケンス拡
張3の次には、拡張およびユーザデータ4が配される。
拡張およびユーザデータ4の先頭には、4バイト分のユ
ーザデータスタートコードが配され、続くユーザデータ
領域には、SMPTEの規格に基づく情報が格納され
る。
From the beginning, a sequence header 2 having a length of 12 bytes is arranged, followed by a sequence extension 3 having a length of 10 bytes. Subsequent to the sequence extension 3, extension and user data 4 are arranged.
A 4-byte user data start code is arranged at the head of the extension and user data 4, and information based on the SMPTE standard is stored in the subsequent user data area.

【0046】シーケンス層のヘッダ部の次は、GOP層
のヘッダ部となる。8バイト分の長さを有するGOPヘ
ッダ6が配され、続けて拡張およびユーザデータ7が配
される。拡張およびユーザデータ7の先頭には、4バイ
ト分のユーザデータスタートコードが配され、続くユー
ザデータ領域には、既存の他のビデオフォーマットとの
互換性をとるための情報が格納される。
Next to the header part of the sequence layer is the header part of the GOP layer. A GOP header 6 having a length of 8 bytes is arranged, followed by extension and user data 7. At the beginning of the extension and user data 7, a 4-byte user data start code is arranged, and in the subsequent user data area, information for ensuring compatibility with other existing video formats is stored.

【0047】GOP層のヘッダ部の次は、ピクチャ層の
ヘッダ部となる。9バイトの長さを有するピクチャヘッ
ダ9が配され、続けて9バイトの長さを有するピクチャ
符号化拡張10が配される。ピクチャ符号化拡張10の
後に、拡張およびユーザデータ11が配される。拡張お
よびユーザデータ11の先頭側133バイトに拡張およ
びユーザデータが格納され、続いて4バイトの長さを有
するユーザデータスタートコード15が配される。ユー
ザデータスタートコード15に続けて、既存の他のビデ
オフォーマットとの互換性をとるための情報が格納され
る。さらに、ユーザデータスタートコード16が配さ
れ、ユーザデータスタートコード16に続けて、SMP
TEの規格に基づくデータが格納される。ピクチャ層の
ヘッダ部の次は、スライスとなる。
The header part of the GOP layer is followed by the header part of the picture layer. A picture header 9 having a length of 9 bytes is arranged, followed by a picture coding extension 10 having a length of 9 bytes. After the picture coding extension 10, the extension and user data 11 are arranged. The extension and user data are stored in the first 133 bytes of the extension and user data 11, followed by a user data start code 15 having a length of 4 bytes. Following the user data start code 15, information for compatibility with another existing video format is stored. Further, a user data start code 16 is provided.
Data based on the TE standard is stored. Next to the header part of the picture layer is a slice.

【0048】マクロブロックについて、さらに詳細に説
明する。スライス層に含まれるマクロブロックは、複数
のDCTブロックの集合であり、DCTブロックの符号
化系列は、量子化されたDCT係数の系列を0係数の連
続回数(ラン)とその直後の非0系列(レベル)を1つ
の単位として可変長符号化したものである。マクロブロ
ックならびにマクロブロック内のDCTブロックには、
バイト単位に整列した識別コードが付加されない。
The macro block will be described in more detail. The macro block included in the slice layer is a set of a plurality of DCT blocks, and the coded sequence of the DCT block is obtained by converting the sequence of quantized DCT coefficients into the number of consecutive 0 coefficients (run) and the non-zero sequence immediately after it. (Level) is variable-length coded as one unit. Macro blocks and DCT blocks within the macro block include:
Identification codes aligned in byte units are not added.

【0049】マクロブロックは、画面(ピクチャ)を1
6画素×16ラインの格子状に分割したものである。ス
ライスは、例えばこのマクロブロックを水平方向に連結
してなる。連続するスライスの前のスライスの最後のマ
クロブロックと、次のスライスの先頭のマクロブロック
とは連続しており、スライス間でのマクロブロックのオ
ーバーラップを形成することは、許されていない。ま
た、画面のサイズが決まると、1画面当たりのマクロブ
ロック数は、一意に決まる。
The macro block is composed of one screen (picture).
It is divided into a grid of 6 pixels × 16 lines. A slice is formed by connecting these macroblocks in the horizontal direction, for example. The last macroblock of the previous slice of a continuous slice and the first macroblock of the next slice are continuous, and it is not allowed to form a macroblock overlap between slices. When the size of the screen is determined, the number of macroblocks per screen is uniquely determined.

【0050】画面上での垂直方向および水平方向のマク
ロブロック数を、それぞれmb_heightおよびm
b_widthと称する。画面上でのマクロブロックの
座標は、マクロブロックの垂直位置番号を、上端を基準
に0から数えたmb_rowと、マクロブロックの水平
位置番号を、左端を基準に0から数えたmb_colu
mnとで表すように定められている。画面上でのマクロ
ブロックの位置を一つの変数で表すために、macro
block_addressを、macroblock
_address=mb_row×mb_width+
mb_columnこのように定義する。
The numbers of macroblocks in the vertical and horizontal directions on the screen are mb_height and m, respectively.
Called b_width. The coordinates of the macroblock on the screen are the vertical position number of the macroblock, mb_row counted from 0 based on the upper end, and the horizontal position number of the macroblock, and mb_col counted from 0 based on the left end.
mn. To represent the position of the macroblock on the screen with one variable, macro
block_address is set to macroblock
_Address = mb_row × mb_width +
mb_column is defined in this way.

【0051】ストリーム上でのスライスとマクロブロッ
クの順は、macroblock_addressの小
さい順でなければいけないと定められている。すなわ
ち、ストリームは、画面の上から下、左から右の順に伝
送される。
It is specified that the order of slices and macroblocks on a stream must be in the order of smaller macroblock_address. That is, the streams are transmitted from top to bottom of the screen and from left to right.

【0052】MPEGでは、1スライスを1ストライプ
(16ライン)で構成するのが普通であり、画面の左端
から可変長符号化が始まり、右端で終わる。従って、V
TRによってそのままMPEGエレメンタリストリーム
を記録した場合、高速再生時に、再生できる部分が画面
の左端に集中し、均一に更新することができない。ま
た、データのテープ上の配置を予測できないため、テー
プパターンを一定の間隔でトレースしたのでは、均一な
画面更新ができなくなる。さらに、1箇所でもエラーが
発生すると、画面右端まで影響し、次のスライスヘッダ
が検出されるまで復帰できない。このために、1スライ
スを1マクロブロックで構成するようにしている。
In MPEG, one slice is usually composed of one stripe (16 lines), and variable-length coding starts from the left end of the screen and ends at the right end. Therefore, V
When the MPEG elementary stream is recorded as it is by the TR, at the time of high-speed reproduction, the reproducible portion is concentrated on the left end of the screen and cannot be uniformly updated. Further, since the arrangement of the data on the tape cannot be predicted, if the tape pattern is traced at a constant interval, the screen cannot be uniformly updated. Furthermore, if an error occurs even at one location, it affects the right edge of the screen and cannot return until the next slice header is detected. For this purpose, one slice is composed of one macroblock.

【0053】図15は、この一実施形態による記録再生
装置の記録側の構成の一例を示す。記録時には、端子1
00から入力されたディジタル信号がSDI(Serial Da
ta Interface) 受信部101に供給される。SDIは、
(4:2:2)コンポーネントビデオ信号とディジタル
オーディオ信号と付加的データとを伝送するために、S
MPTEによって規定されたインターフェイスである。
SDI受信部101で、入力されたディジタル信号から
ディジタルビデオ信号とディジタルオーディオ信号とが
それぞれ抽出され、ディジタルビデオ信号は、MPEG
エンコーダ102に供給され、ディジタルオーディオ信
号は、ディレイ103を介してECCエンコーダ109
に供給される。ディレイ103は、ディジタルオーディ
オ信号とディジタルビデオ信号との時間差を解消するた
めのものである。
FIG. 15 shows an example of the configuration on the recording side of the recording / reproducing apparatus according to this embodiment. When recording, the terminal 1
The digital signal input from 00 is SDI (Serial Da
ta Interface) is supplied to the receiving unit 101. SDI is
(4: 2: 2) In order to transmit a component video signal, a digital audio signal, and additional data, S
This is an interface defined by MPTE.
The SDI receiver 101 extracts a digital video signal and a digital audio signal from the input digital signal, and converts the digital video signal into an MPEG signal.
The digital audio signal supplied to the encoder 102 is supplied to the ECC encoder 109 via the delay 103.
Supplied to The delay 103 is for eliminating a time difference between the digital audio signal and the digital video signal.

【0054】また、SDI受信部101では、入力され
たディジタル信号から同期信号を抽出し、抽出された同
期信号をタイミングジェネレータ104に供給する。タ
イミングジェネレータ104には、端子105から外部
同期信号を入力することもできる。タイミングジェネレ
ータ104では、入力されたこれらの同期信号および後
述するSDTI受信部108から供給される同期信号の
うち、指定された信号に基づきタイミングパルスを生成
する。生成されたタイミングパルスは、この記録再生装
置の各部に供給される。
The SDI receiver 101 extracts a synchronization signal from the input digital signal, and supplies the extracted synchronization signal to the timing generator 104. An external synchronization signal can be input to the timing generator 104 from a terminal 105. The timing generator 104 generates a timing pulse based on a specified signal among the input synchronization signal and a synchronization signal supplied from an SDTI receiving unit 108 described later. The generated timing pulse is supplied to each section of the recording / reproducing apparatus.

【0055】入力ビデオ信号は、MPEGエンコーダ1
02においてDCT(Discrete Cosine Transform) の処
理を受け、係数データに変換され、係数データが可変長
符号化される。MPEGエンコーダ102からの可変長
符号化(VLC)データは、MPEG2に準拠したエレ
メンタリストリーム(ES)である。この出力は、記録
側のマルチフォーマットコンバータ(以下、MFCと称
する)106の一方の入力端に供給される。
The input video signal is supplied to the MPEG encoder 1
In 02, the signal undergoes DCT (Discrete Cosine Transform) processing, is converted into coefficient data, and the coefficient data is subjected to variable length coding. The variable length coded (VLC) data from the MPEG encoder 102 is an elementary stream (ES) compliant with MPEG2. This output is supplied to one input terminal of a recording-side multi-format converter (hereinafter, referred to as MFC) 106.

【0056】一方、入力端子107を通じて、SDTI
(Serial Data Transport Interface) のフォーマットの
データが入力される。この信号は、SDTI受信部10
8で同期検出される。そして、バッファに一旦溜め込ま
れ、エレメンタリストリームが抜き出される。抜き出さ
れたエレメンタリストリームは、記録側MFC106の
他方の入力端に供給される。同期検出されて得られた同
期信号は、上述したタイミングジェネレータ104に供
給される。
On the other hand, through the input terminal 107, the SDTI
(Serial Data Transport Interface) format data is input. This signal is transmitted to the SDTI receiving unit 10
At 8, synchronization is detected. Then, the elementary stream is temporarily stored in the buffer, and the elementary stream is extracted. The extracted elementary stream is supplied to the other input end of the recording MFC 106. The synchronization signal obtained by the synchronization detection is supplied to the timing generator 104 described above.

【0057】一実施形態では、例えばMPEG ES
(MPEGエレメンタリストリーム)を伝送するため
に、SDTI(Serial Data Transport Interface)−C
P(Content Package) が使用される。このESは、4:
2:2のコンポーネントであり、また、上述したよう
に、全てIピクチャのストリームであり、1GOP=1
ピクチャの関係を有する。SDTI−CPのフォーマッ
トでは、MPEG ESがアクセスユニットへ分離さ
れ、また、フレーム単位のパケットにパッキングされて
いる。SDTI−CPでは、十分な伝送帯域(クロック
レートで27MHzまたは36MHz、ストリームビットレ
ートで270M bpsまたは360M bps)を使用してお
り、1フレーム期間で、バースト的にESを送ることが
可能である。
In one embodiment, for example, MPEG ES
In order to transmit (MPEG elementary stream), SDTI (Serial Data Transport Interface) -C
P (Content Package) is used. This ES is 4:
2: 2 components, and as described above, all are I-picture streams, and 1 GOP = 1
It has a picture relationship. In the SDTI-CP format, the MPEG ES is separated into access units and is packed in packets in frame units. The SDTI-CP uses a sufficient transmission band (27 MHz or 36 MHz at a clock rate and 270 Mbps or 360 Mbps at a stream bit rate), and can transmit ES in bursts in one frame period.

【0058】すなわち、1フレーム期間のSAVの後か
らEAVまでの間に、システムデータ、ビデオストリー
ム、オーディオストリーム、AUXデータが配される。
1フレーム期間全体にデータが存在せずに、その先頭か
ら所定期間バースト状にデータが存在する。フレームの
境界においてSDTI−CPのストリーム(ビデオおよ
びオーディオ)をストリームの状態でスイッチングする
ことができる。SDTI−CPは、クロック基準として
SMPTEタイムコードを使用したコンテンツの場合
に、オーディオ、ビデオ間の同期を確立する機構を有す
る。さらに、SDTI−CPとSDIとが共存可能なよ
うに、フォーマットが決められている。
That is, system data, a video stream, an audio stream, and AUX data are arranged after the SAV of one frame period until the EAV.
There is no data in the entire one frame period, but data exists in a burst form for a predetermined period from the beginning. SDTI-CP streams (video and audio) can be switched in stream states at frame boundaries. The SDTI-CP has a mechanism for establishing synchronization between audio and video for content using SMPTE time code as a clock reference. Further, the format is determined so that SDTI-CP and SDI can coexist.

【0059】上述したSDTI−CPを使用したインタ
ーフェースは、TS(Transport Stream)を転送する場合
のように、エンコーダおよびデコーダがVBV(Video B
uffer Verifier) バッファおよびTBs(Transport Buf
fers) を通る必要がなく、ディレイを少なくできる。ま
た、SDTI−CP自体が極めて高速の転送が可能なこ
ともディレイを一層少なくする。従って、放送局の全体
を管理するような同期が存在する環境では、SDTI−
CPを使用することが有効である。
In the interface using the SDTI-CP, the encoder and the decoder are connected to the VBV (Video B-Video) as in the case of transferring a TS (Transport Stream).
buffer Verifier) Buffers and TBs (Transport Buf
fers), so there is less delay. Further, the fact that the SDTI-CP itself is capable of extremely high-speed transfer further reduces the delay. Therefore, in an environment where synchronization exists to manage the entire broadcast station, SDTI-
It is effective to use CP.

【0060】なお、SDTI受信部108では、さら
に、入力されたSDTI−CPのストリームからディジ
タルオーディオ信号を抽出する。抽出されたディジタル
オーディオ信号は、ECCエンコーダ109に供給され
る。
The SDTI receiving unit 108 further extracts a digital audio signal from the input SDTI-CP stream. The extracted digital audio signal is supplied to the ECC encoder 109.

【0061】記録側MFC106は、セレクタおよびス
トリームコンバータを内蔵する。記録側MFC106
は、例えば1個の集積回路内に構成される。記録側MF
C106において行われる処理について説明する。上述
したMPEGエンコーダ102およびSDTI受信部1
08から供給されたMPEG ESは、セレクタで何方
か一方を選択され、ストリームコンバータに供給され
る。
The recording MFC 106 has a built-in selector and stream converter. Recording MFC 106
Are configured in one integrated circuit, for example. Recording side MF
The processing performed in C106 will be described. MPEG encoder 102 and SDTI receiving unit 1 described above
One of the MPEG ESs supplied from 08 is selected by a selector and supplied to a stream converter.

【0062】ストリームコンバータでは、MPEG2の
規定に基づきDCTブロック毎に並べられていたDCT
係数を、1マクロブロックを構成する複数のDCTブロ
ックを通して、周波数成分毎にまとめ、まとめた周波数
成分を並べ替える。また、ストリームコンバータは、エ
レメンタリストリームの1スライスが1ストライプの場
合には、1スライスを1マクロブロックからなるものに
する。さらに、ストリームコンバータは、1マクロブロ
ックで発生する可変長データの最大長を所定長に制限す
る。これは、高次のDCT係数を0とすることでなしう
る。並べ替えられた変換エレメンタリストリームは、E
CCエンコーダ109に供給される。
In the stream converter, the DCTs arranged for each DCT block based on the MPEG2 rules
The coefficients are grouped for each frequency component through a plurality of DCT blocks constituting one macroblock, and the grouped frequency components are rearranged. When one slice of the elementary stream is one stripe, the stream converter makes one slice consist of one macroblock. Further, the stream converter limits the maximum length of variable length data generated in one macroblock to a predetermined length. This can be achieved by setting the higher-order DCT coefficient to zero. The rearranged converted elementary stream is E
It is supplied to the CC encoder 109.

【0063】ECCエンコーダ109は、大容量のメイ
ンメモリが接続され(図示しない)、パッキングおよび
シャフリング部、オーディオ用外符号エンコーダ、ビデ
オ用外符号エンコーダ、内符号エンコーダ、オーディオ
用シャフリング部およびビデオ用シャフリング部などを
内蔵する。また、ECCエンコーダ109は、シンクブ
ロック単位でIDを付加する回路や、同期信号を付加す
る回路を含む。ECCエンコーダ109は、例えば1個
の集積回路で構成される。
The ECC encoder 109 is connected to a large-capacity main memory (not shown), and includes a packing and shuffling unit, an outer code encoder for audio, an outer code encoder for video, an inner code encoder, a shuffling unit for audio, and a video. It has a built-in shuffling unit. The ECC encoder 109 includes a circuit for adding an ID in sync block units and a circuit for adding a synchronization signal. The ECC encoder 109 is composed of, for example, one integrated circuit.

【0064】なお、一実施形態では、ビデオデータおよ
びオーディオデータに対するエラー訂正符号としては、
積符号が使用される。積符号は、ビデオデータまたはオ
ーディオデータの2次元配列の縦方向に外符号の符号化
を行い、その横方向に内符号の符号化を行い、データシ
ンボルを2重に符号化するものである。外符号および内
符号としては、リードソロモンコード(Reed-Solomon co
de) を使用できる。
In one embodiment, the error correction code for video data and audio data is
The product code is used. The product code encodes an outer code in a vertical direction of a two-dimensional array of video data or audio data, encodes an inner code in a horizontal direction thereof, and encodes data symbols doubly. Reed-Solomon code (Reed-Solomon code)
de) can be used.

【0065】ECCエンコーダ109における処理につ
いて説明する。エレメンタリストリームのビデオデータ
は、可変長符号化されているため、各マクロブロックの
データの長さが不揃いである。パッキングおよびシャフ
リング部では、マクロブロックが固定枠に詰め込まれ
る。このとき、固定枠からはみ出たオーバーフロー部分
は、固定枠のサイズに対して空いている領域に順に詰め
込まれる。
The processing in the ECC encoder 109 will be described. Since the video data of the elementary stream is variable-length coded, the data length of each macroblock is not uniform. In the packing and shuffling sections, macroblocks are packed in fixed frames. At this time, the overflow portion that protrudes from the fixed frame is sequentially packed into an area that is vacant with respect to the size of the fixed frame.

【0066】また、画像フォーマット、シャフリングパ
ターンのバージョン等の情報を有するシステムデータ
が、後述するシスコン121から供給され、図示されな
い入力端から入力される。システムデータは、パッキン
グおよびシャフリング部に供給され、ピクチャデータと
同様に記録処理を受ける。システムデータは、ビデオA
UXとして記録される。また、走査順に発生する1フレ
ームのマクロブロックを並び替え、テープ上のマクロブ
ロックの記録位置を分散させるシャフリングが行われ
る。シャフリングによって、変速再生時に断片的にデー
タが再生される時でも、画像の更新率を向上させること
ができる。
Further, system data having information such as an image format and a version of a shuffling pattern is supplied from a system controller 121 described later, and is input from an input terminal (not shown). The system data is supplied to a packing and shuffling unit, and undergoes recording processing in the same manner as picture data. System data is video A
Recorded as UX. Also, shuffling is performed in which the macroblocks of one frame generated in the scanning order are rearranged and the recording positions of the macroblocks on the tape are dispersed. Shuffling can improve the image update rate even when data is reproduced in pieces during variable speed reproduction.

【0067】パッキングおよびシャフリング部からのビ
デオデータおよびシステムデータ(以下、特に必要な場
合を除き、システムデータを含む場合も単にビデオデー
タと称する)は、ビデオデータに対して外符号化の符号
化を行うビデオ用外符号エンコーダに供給され、外符号
パリティが付加される。外符号エンコーダの出力は、ビ
デオ用シャフリング部で、複数のECCブロックにわた
ってシンクブロック単位で順番を入れ替える、シャフリ
ングがなされる。シンクブロック単位のシャフリングに
よって特定のECCブロックにエラーが集中することが
防止される。シャフリング部でなされるシャフリング
を、インターリーブと称することもある。ビデオ用シャ
フリング部の出力は、メインメモリに書き込まれる。
The video data and system data from the packing and shuffling unit (hereinafter, also referred to as video data even when system data is included unless otherwise necessary) are obtained by encoding the video data by outer coding. , And an outer code parity is added. The output of the outer code encoder is shuffled by a video shuffling unit to change the order in sync block units over a plurality of ECC blocks. The shuffling in sync block units prevents errors from concentrating on a specific ECC block. Shuffling performed by the shuffling unit may be referred to as interleaving. The output of the video shuffling unit is written to the main memory.

【0068】一方、上述したように、SDTI受信部1
08あるいはディレイ103から出力されたディジタル
オーディオ信号がECCエンコーダ109に供給され
る。この一実施形態では、非圧縮のディジタルオーディ
オ信号が扱われる。ディジタルオーディオ信号は、これ
らに限らず、オーディオインターフェースを介して入力
されるようにもできる。また、図示されない入力端子か
ら、オーディオAUXが供給される。オーディオAUX
は、補助的データであり、オーディオデータのサンプリ
ング周波数等のオーディオデータに関連する情報を有す
るデータである。オーディオAUXは、オーディオデー
タに付加され、オーディオデータと同等に扱われる。
On the other hand, as described above, the SDTI receiving unit 1
08 or the digital audio signal output from the delay 103 is supplied to the ECC encoder 109. In this embodiment, an uncompressed digital audio signal is handled. The digital audio signal is not limited to these, and may be input via an audio interface. An audio AUX is supplied from an input terminal (not shown). Audio AUX
Is auxiliary data, which is data having information related to audio data such as the sampling frequency of audio data. The audio AUX is added to the audio data and is treated equivalently to the audio data.

【0069】オーディオAUXが付加されたオーディオ
データ(以下、特に必要な場合を除き、AUXを含む場
合も単にオーディオデータと称する)は、オーディオデ
ータに対して外符号の符号化を行うオーディオ用外符号
エンコーダに供給される。オーディオ用外符号エンコー
ダの出力がオーディオ用シャフリング部に供給され、シ
ャフリング処理を受ける。オーディオシャフリングとし
て、シンクブロック単位のシャフリングと、チャンネル
単位のシャフリングとがなされる。
The audio data to which the audio AUX is added (hereinafter, unless otherwise required, the audio data including the AUX is also simply referred to as audio data) is an audio outer code for encoding the audio data with an outer code. Supplied to the encoder. The output of the audio outer code encoder is supplied to the audio shuffling unit, and undergoes shuffling processing. As audio shuffling, shuffling in sync block units and shuffling in channel units are performed.

【0070】オーディオ用シャフリング部の出力は、メ
インメモリに書き込まれる。上述したように、メインメ
モリには、ビデオ用シャフリング部の出力も書き込まれ
ており、メインメモリで、オーディオデータとビデオデ
ータとが混合され、1チャンネルのデータとされる。
The output of the audio shuffling unit is written to the main memory. As described above, the output of the video shuffling unit is also written in the main memory, and the main memory mixes audio data and video data into one-channel data.

【0071】メインメモリからデータが読み出され、シ
ンクブロック番号を示す情報等を有するIDが付加さ
れ、内符号エンコーダに供給される。内符号エンコーダ
では、供給されたデータに対して内符号の符号化を施
す。内符号エンコーダの出力に対してシンクブロック毎
の同期信号が付加され、シンクブロックが連続する記録
データが構成される。
Data is read from the main memory, added with an ID having information indicating a sync block number, and supplied to the inner code encoder. The inner code encoder encodes the supplied data with the inner code. A synchronization signal for each sync block is added to the output of the inner code encoder, thereby forming recording data in which the sync blocks are continuous.

【0072】ECCエンコーダ109から出力された記
録データは、記録アンプなどを含むイコライザ110に
供給され、記録RF信号に変換される。記録RF信号
は、回転ヘッドが所定に設けられた回転ドラム111に
供給され、磁気テープ112上に記録される。回転ドラ
ム111には、実際には、隣接するトラックを形成する
ヘッドのアジマスが互いに異なる複数の磁気ヘッドが取
り付けられている。
The recording data output from the ECC encoder 109 is supplied to an equalizer 110 including a recording amplifier and the like, and is converted into a recording RF signal. The recording RF signal is supplied to a rotating drum 111 provided with a rotating head in a predetermined manner, and is recorded on a magnetic tape 112. Actually, a plurality of magnetic heads having different azimuths of heads forming adjacent tracks are attached to the rotating drum 111.

【0073】記録データに対して必要に応じてスクラン
ブル処理を行っても良い。また、記録時にディジタル変
調を行っても良く、さらに、パーシャル・レスポンスク
ラス4とビタビ符号を使用しても良い。なお、イコライ
ザ110は、記録側の構成と再生側の構成とを共に含
む。
The recording data may be scrambled as required. Further, digital modulation may be performed at the time of recording, and a partial response class 4 and Viterbi code may be used. Note that the equalizer 110 includes both a configuration on the recording side and a configuration on the reproduction side.

【0074】図16は、上述した回転ヘッドにより磁気
テープ上に形成されるトラックフォーマットの一例を示
す。この例では、1フレーム当たりのビデオおよびオー
ディオデータが4トラックで記録されている。互いに異
なるアジマスの2トラックによって1セグメントが構成
される。すなわち、4トラックは、4セグメントからな
る。セグメントを構成する1組のトラックに対して、ア
ジマスと対応するトラック番号
FIG. 16 shows an example of a track format formed on a magnetic tape by the rotary head described above. In this example, video and audio data per frame are recorded on four tracks. One segment is composed of two tracks having different azimuths. That is, four tracks are composed of four segments. Track number corresponding to azimuth for a set of tracks constituting a segment

〔0〕とトラック番号
〔1〕が付される。トラックのそれぞれにおいて、両端
側にビデオデータが記録されるビデオセクタが配され、
ビデオセクタに挟まれて、オーディオデータが記録され
るオーディオセクタが配される。この図16は、テープ
上のセクタの配置を示すものである。
[0] and a track number [1] are assigned. In each of the tracks, video sectors on which video data is recorded are arranged at both ends,
An audio sector in which audio data is recorded is arranged between video sectors. FIG. 16 shows the arrangement of sectors on the tape.

【0075】この例では、4チャンネルのオーディオデ
ータを扱うことができるようにされている。A1〜A4
は、それぞれオーディオデータの1〜4chを示す。オ
ーディオデータは、セグメント単位で配列を変えられて
記録される。また、ビデオデータは、この例では、1ト
ラックに対して4エラー訂正ブロック分のデータがイン
ターリーブされ、Upper SideおよびLowe
r Sideのセクタに分割され記録される。
In this example, four channels of audio data can be handled. A1 to A4
Indicates audio data channels 1 to 4 respectively. The audio data is recorded with its arrangement changed in segment units. In this example, in this example, data of four error correction blocks is interleaved for one track, and Upper Side and Low
It is divided into sectors of r Side and recorded.

【0076】Lower Sideのビデオセクタに
は、所定位置にシステム領域(SYS)が設けられる。
システム領域は、例えば、Lower Sideのビデ
オセクタの先頭側と末尾側とに、トラック毎に交互に設
けられる。
A system area (SYS) is provided at a predetermined position in the video sector of the lower side.
The system area is provided alternately for each track, for example, at the beginning and end of a lower side video sector.

【0077】なお、図16において、SATは、サーボ
ロック用の信号が記録されるエリアである。また、各記
録エリアの間には、所定の大きさのギャップが設けられ
る。
In FIG. 16, SAT is an area in which a servo lock signal is recorded. A gap having a predetermined size is provided between the recording areas.

【0078】図16は、1フレーム当たりのデータを4
トラックで記録する例であるが、記録再生するデータの
フォーマットによっては、1フレーム当たりのデータを
8トラック、6トラックなどで記録するようにもでき
る。
FIG. 16 shows that the data per frame is 4
In this example, data is recorded on a track. Depending on the format of data to be recorded / reproduced, data per frame can be recorded on eight tracks, six tracks, or the like.

【0079】図16Bに示されるように、テープ上に記
録されるデータは、シンクブロックと称される等間隔に
区切られた複数のブロックからなる。図16Cは、シン
クブロックの構成を概略的に示す。シンクブロックは、
同期検出するためのSYNCパターン、シンクブロック
のそれぞれを識別するためのID、後続するデータの内
容を示すDID、データパケットおよびエラー訂正用の
内符号パリティから構成される。データは、シンクブロ
ック単位でパケットとして扱われる。すなわち、記録あ
るいは再生されるデータ単位の最小のものが1シンクブ
ロックである。シンクブロックが多数並べられて(図1
6B)、例えばビデオセクタが形成される。
As shown in FIG. 16B, the data recorded on the tape is composed of a plurality of blocks divided at equal intervals called sync blocks. FIG. 16C schematically shows the configuration of a sync block. The sync block is
It is composed of a SYNC pattern for synchronous detection, an ID for identifying each sync block, a DID indicating the content of subsequent data, a data packet, and an inner code parity for error correction. Data is handled as packets in sync block units. That is, the smallest data unit to be recorded or reproduced is one sync block. Many sync blocks are arranged (Fig. 1
6B) For example, a video sector is formed.

【0080】図15の説明に戻り、再生時には、磁気テ
ープ112から回転ドラム111で再生された再生信号
が再生アンプなどを含むイコライザ110の再生側の構
成に供給される。イコライザ110では、再生信号に対
して、等化や波形整形などがなされる。また、ディジタ
ル変調の復調、ビタビ復号等が必要に応じてなされる。
イコライザ110の出力は、ECCデコーダ113に供
給される。
Referring back to FIG. 15, at the time of reproduction, a reproduction signal reproduced from the magnetic tape 112 by the rotary drum 111 is supplied to the reproduction side configuration of the equalizer 110 including a reproduction amplifier and the like. The equalizer 110 performs equalization and waveform shaping on the reproduced signal. Further, demodulation of digital modulation, Viterbi decoding, and the like are performed as necessary.
The output of the equalizer 110 is supplied to the ECC decoder 113.

【0081】ECCデコーダ113は、上述したECC
エンコーダ109と逆の処理を行うもので、大容量のメ
インメモリと、内符号デコーダ、オーディオ用およびビ
デオ用それぞれのデシャフリング部ならびに外符号デコ
ーダを含む。さらに、ECCデコーダ113は、ビデオ
用として、デシャフリングおよびデパッキング部、デー
タ補間部を含む。同様に、オーディオ用として、オーデ
ィオAUX分離部とデータ補間部を含む。ECCデコー
ダ113は、例えば1個の集積回路で構成される。
The ECC decoder 113 performs the above-described ECC
It performs processing reverse to that of the encoder 109, and includes a large-capacity main memory, an inner code decoder, a deshuffling unit for audio and video, and an outer code decoder. Further, the ECC decoder 113 includes a deshuffling and depacking unit and a data interpolation unit for video. Similarly, an audio AUX separation unit and a data interpolation unit are included for audio. The ECC decoder 113 is composed of, for example, one integrated circuit.

【0082】ECCデコーダ113における処理につい
て説明する。ECCデコーダ113では、先ず、同期検
出を行いシンクブロックの先頭に付加されている同期信
号を検出し、シンクブロックを切り出す。データは、再
生データは、シンクブロック毎に内符号エンコーダに供
給され、内符号のエラー訂正がなされる。内符号エンコ
ーダの出力に対してID補間処理がなされ、内符号によ
りエラーとされたシンクブロックのID例えばシンクブ
ロック番号が補間される。IDが補間された再生データ
は、ビデオデータとオーディオデータとに分離される。
The processing in the ECC decoder 113 will be described. The ECC decoder 113 first detects synchronization and detects a synchronization signal added to the beginning of a sync block, and cuts out the sync block. As for the data, the reproduced data is supplied to the inner code encoder for each sync block, and error correction of the inner code is performed. The ID interpolation processing is performed on the output of the inner code encoder, and the ID of the sync block in which the error occurred due to the inner code, for example, the sync block number, is interpolated. The playback data with the interpolated ID is separated into video data and audio data.

【0083】上述したように、ビデオデータは、MPE
Gのイントラ符号化で発生したDCT係数データおよび
システムデータを意味し、オーディオデータは、PCM
(Pulse Code Modulation) データおよびオーディオAU
Xを意味する。
As described above, the video data is the MPE
G means DCT coefficient data and system data generated in intra coding of G, and audio data is PCM
(Pulse Code Modulation) Data and audio AU
Means X.

【0084】分離されたオーディオデータは、オーディ
オ用デシャフリング部に供給され、記録側のシャフリン
グ部でなされたシャフリングと逆の処理を行う。デシャ
フリング部の出力がオーディオ用の外符号デコーダに供
給され、外符号によるエラー訂正がなされる。オーディ
オ用の外符号デコーダからは、エラー訂正されたオーデ
ィオデータが出力される。訂正できないエラーがあるデ
ータに関しては、エラーフラグがセットされる。
The separated audio data is supplied to an audio deshuffling unit, and performs a process reverse to the shuffling performed by the recording-side shuffling unit. The output of the deshuffling unit is supplied to an outer code decoder for audio, and error correction by the outer code is performed. The audio outer code decoder outputs error-corrected audio data. An error flag is set for data having an uncorrectable error.

【0085】オーディオ用の外符号デコーダの出力か
ら、オーディオAUX分離部でオーディオAUXが分離
され、分離されたオーディオAUXがECCデコーダ1
13から出力される(経路は省略する)。オーディオA
UXは、例えば後述するシスコン121に供給される。
また、オーディオデータは、データ補間部に供給され
る。データ補間部では、エラーの有るサンプルが補間さ
れる。補間方法としては、時間的に前後の正しいデータ
の平均値で補間する平均値補間、前の正しいサンプルの
値をホールドする前値ホールド等を使用できる。
The audio AUX is separated from the output of the audio outer code decoder by the audio AUX separation unit, and the separated audio AUX is output from the ECC decoder 1.
13 (the path is omitted). Audio A
The UX is supplied to, for example, a system controller 121 described later.
The audio data is supplied to a data interpolation unit. In the data interpolating unit, an erroneous sample is interpolated. As the interpolation method, it is possible to use an average value interpolation for interpolating with the average value of correct data before and after in time, a previous value hold for holding a previous correct sample value, and the like.

【0086】データ補間部の出力がECCデコーダ11
3からのオーディオデータの出力であって、ECCデコ
ーダ113から出力されたオーディオデータは、ディレ
イ117およびSDTI出力部115に供給される。デ
ィレイ117は、後述するMPEGデコーダ116での
ビデオデータの処理による遅延を吸収するために設けら
れる。ディレイ117に供給されたオーディオデータ
は、所定の遅延を与えられて、SDI出力部118に供
給される。
The output of the data interpolation unit is the ECC decoder 11
The audio data output from the ECC decoder 113 is output to the delay 117 and the SDTI output unit 115. The delay 117 is provided to absorb a delay caused by processing of video data in the MPEG decoder 116 described later. The audio data supplied to the delay 117 is supplied with a predetermined delay to the SDI output unit 118.

【0087】分離されたビデオデータは、デシャフリン
グ部に供給され、記録側のシャフリングと逆の処理がな
される。デシャフリング部は、記録側のシャフリング部
でなされたシンクブロック単位のシャフリングを元に戻
す処理を行う。デシャフリング部の出力が外符号デコー
ダに供給され、外符号によるエラー訂正がなされる。訂
正できないエラーが発生した場合には、エラーの有無を
示すエラーフラグがエラー有りを示すものとされる。
The separated video data is supplied to a deshuffling unit, and the reverse processing of the shuffling on the recording side is performed. The deshuffling unit performs a process of restoring the shuffling in sync block units performed by the shuffling unit on the recording side. The output of the deshuffling unit is supplied to the outer code decoder, and error correction by the outer code is performed. When an error that cannot be corrected occurs, an error flag indicating the presence or absence of the error is set to indicate the presence of the error.

【0088】外符号デコーダの出力がデシャフリングお
よびデパッキング部に供給される。デシャフリングおよ
びデパッキング部は、記録側のパッキングおよびシャフ
リング部でなされたマクロブロック単位のシャフリング
を元に戻す処理を行う。また、デシャフリングおよびデ
パッキング部では、記録時に施されたパッキングを分解
する。すなわち、マクロブロック単位にデータの長さを
戻して、元の可変長符号を復元する。さらに、デシャフ
リングおよびデパッキング部において、システムデータ
が分離され、ECCデコーダ113から出力され、後述
するシスコン121に供給される。
The output of the outer code decoder is supplied to a deshuffling and depacking unit. The deshuffling and depacking unit performs processing for restoring shuffling in macroblock units performed by the packing and shuffling unit on the recording side. In the deshuffling and depacking unit, the packing performed at the time of recording is disassembled. That is, the length of the data is returned in units of macroblocks, and the original variable length code is restored. Further, in the deshuffling and depacking unit, the system data is separated, output from the ECC decoder 113, and supplied to the system controller 121 described later.

【0089】デシャフリングおよびデパッキング部の出
力は、データ補間部に供給され、エラーフラグが立って
いる(すなわち、エラーのある)データが修整される。
すなわち、変換前に、マクロブロックデータの途中にエ
ラーがあるとされた場合には、エラー箇所以降の周波数
成分のDCT係数が復元できない。そこで、例えばエラ
ー箇所のデータをブロック終端符号(EOB)に置き替
え、それ以降の周波数成分のDCT係数をゼロとする。
同様に、高速再生時にも、シンクブロック長に対応する
長さまでのDCT係数のみを復元し、それ以降の係数
は、ゼロデータに置き替えられる。さらに、データ補間
部では、ビデオデータの先頭に付加されているヘッダが
エラーの場合に、ヘッダ(シーケンスヘッダ、GOPヘ
ッダ、ピクチャヘッダ、ユーザデータ等)を回復する処
理もなされる。
The output of the deshuffling and depacking unit is supplied to a data interpolation unit, and data for which an error flag is set (that is, an error exists) is corrected.
That is, if it is determined that there is an error in the macroblock data before the conversion, the DCT coefficients of the frequency components after the error location cannot be restored. Therefore, for example, the data at the error location is replaced with a block end code (EOB), and the DCT coefficients of the subsequent frequency components are set to zero.
Similarly, at the time of high-speed reproduction, only DCT coefficients up to the length corresponding to the sync block length are restored, and the coefficients thereafter are replaced with zero data. Further, in the data interpolation section, when the header added to the head of the video data is an error, processing for recovering the header (sequence header, GOP header, picture header, user data, etc.) is also performed.

【0090】DCTブロックに跨がって、DCT係数が
DC成分および低域成分から高域成分へと並べられてい
るため、このように、ある箇所以降からDCT係数を無
視しても、マクロブロックを構成するDCTブロックの
それぞれに対して、満遍なくDCならびに低域成分から
のDCT係数を行き渡らせることができる。
Since the DCT coefficients are arranged from the DC component and the low-frequency component to the high-frequency component across the DCT block, even if the DCT coefficients are ignored from a certain position onward, the macro block , DCT coefficients from DC and low-frequency components can be distributed evenly to each of the DCT blocks constituting.

【0091】データ補間部から出力されたビデオデータ
がECCデコーダ113の出力であって、ECCデコー
ダ113の出力は、再生側のマルチフォーマットコンバ
ータ(以下、再生側MFCと略称する)114に供給さ
れる。再生側MFC114は、上述した記録側MFC1
06と逆の処理を行うものであって、ストリームコンバ
ータを含む。再生側MFC106は、例えば1個の集積
回路で構成される。
The video data output from the data interpolator is the output of the ECC decoder 113, and the output of the ECC decoder 113 is supplied to a reproduction-side multi-format converter (hereinafter abbreviated as reproduction-side MFC) 114. . The reproduction-side MFC 114 is the recording-side MFC 1 described above.
It performs the reverse process of 06 and includes a stream converter. The reproduction-side MFC 106 is composed of, for example, one integrated circuit.

【0092】ストリームコンバータでは、記録側のスト
リームコンバータと逆の処理がなされる。すなわち、D
CTブロックに跨がって周波数成分毎に並べられていた
DCT係数を、DCTブロック毎に並び替える。これに
より、再生信号がMPEG2に準拠したエレメンタリス
トリームに変換される。
[0092] The stream converter performs a process reverse to that of the stream converter on the recording side. That is, D
The DCT coefficients arranged for each frequency component over the CT block are rearranged for each DCT block. Thereby, the reproduced signal is converted into an elementary stream conforming to MPEG2.

【0093】また、ストリームコンバータの入出力は、
記録側と同様に、マクロブロックの最大長に応じて、十
分な転送レート(バンド幅)を確保しておく。マクロブ
ロック(スライス)の長さを制限しない場合には、画素
レートの3倍のバンド幅を確保するのが好ましい。
The input and output of the stream converter are as follows.
As with the recording side, a sufficient transfer rate (bandwidth) is secured according to the maximum length of the macroblock. If the length of the macroblock (slice) is not limited, it is preferable to secure a bandwidth three times the pixel rate.

【0094】ストリームコンバータの出力が再生側MF
C114の出力であって、再生側MFC114の出力
は、SDTI出力部115およびMPEGデコーダ11
6に供給される。
The output of the stream converter is the reproduction side MF
The output of the reproduction side MFC 114 is output from the SDTI output unit 115 and the MPEG decoder 11.
6.

【0095】MPEGデコーダ116は、エレメンタリ
ストリームを復号し、ビデオデータを出力する。すなわ
ち、MPEGデコーダ142は、逆量子化処理と、逆D
CT処理とがなされる。復号ビデオデータは、SDI出
力部118に供給される。上述したように、SDI出力
部118には、ECCデコーダ113でビデオデータと
分離されたオーディオデータがディレイ117を介して
供給されている。SDI出力部118では、供給された
ビデオデータとオーディオデータとを、SDIのフォー
マットにマッピングし、SDIフォーマットのデータ構
造を有するストリームへ変換される。SDI出力部11
8からのストリームが出力端子120から外部へ出力さ
れる。
The MPEG decoder 116 decodes the elementary stream and outputs video data. That is, the MPEG decoder 142 performs the inverse quantization process and the inverse D
CT processing is performed. The decoded video data is supplied to the SDI output unit 118. As described above, audio data separated from video data by the ECC decoder 113 is supplied to the SDI output unit 118 via the delay 117. The SDI output unit 118 maps the supplied video data and audio data into an SDI format, and converts the data into a stream having a data structure in the SDI format. SDI output unit 11
8 is output from the output terminal 120 to the outside.

【0096】一方、SDTI出力部115には、上述し
たように、ECCデコーダ113でビデオデータと分離
されたオーディオデータが供給されている。SDTI出
力部115では、供給された、エレメンタリストリーム
としてのビデオデータと、オーディオデータとをSDT
Iのフォーマットにマッピングし、SDTIフォーマッ
トのデータ構造を有するストリームへ変換される。変換
されたストリームは、出力端子119から外部へ出力さ
れる。
On the other hand, the SDTI output section 115 is supplied with the audio data separated from the video data by the ECC decoder 113 as described above. The SDTI output unit 115 converts the supplied video data and audio data as elementary streams into SDDT
I format and converted to a stream having a data structure of SDTI format. The converted stream is output from the output terminal 119 to the outside.

【0097】図15において、シスコン121は、例え
ばマイクロコンピュータからなり、この記憶再生装置の
全体の動作を制御する。またサーボ122は、シスコン
121と互いに通信を行いながら、磁気テープ112の
走行制御や回転ドラム111の駆動制御などを行う。
In FIG. 15, a system controller 121 is composed of, for example, a microcomputer and controls the entire operation of the storage / reproduction device. Further, the servo 122 performs the running control of the magnetic tape 112 and the drive control of the rotating drum 111 while communicating with the system controller 121.

【0098】図17Aは、MPEGエンコーダ102の
DCT回路から出力されるビデオデータ中のDCT係数
の順序を示す。SDTI受信部108から出力されるM
PEG ESについても同様である。以下では、MPE
Gエンコーダ102の出力を例に用いて説明する。DC
Tブロックにおいて左上のDC成分から開始して、水平
ならびに垂直空間周波数が高くなる方向に、DCT係数
がジグザグスキャンで出力される。その結果、図17B
に一例が示されるように、全部で64個(8画素×8ラ
イン)のDCT係数が周波数成分順に並べられて得られ
る。
FIG. 17A shows the order of DCT coefficients in video data output from the DCT circuit of the MPEG encoder 102. M output from SDTI receiving section 108
The same applies to PEG ES. In the following, MPE
A description will be given using the output of the G encoder 102 as an example. DC
Starting from the upper left DC component in the T block, DCT coefficients are output in a zigzag scan in a direction in which the horizontal and vertical spatial frequencies increase. As a result, FIG.
As shown in FIG. 1, a total of 64 (8 pixels × 8 lines) DCT coefficients are obtained by being arranged in order of frequency components.

【0099】このDCT係数がMPEGエンコーダのV
LC部によって可変長符号化される。すなわち、最初の
係数は、DC成分として固定的であり、次の成分(AC
成分)からは、ゼロのランとそれに続くレベルに対応し
てコードが割り当てられる。従って、AC成分の係数デ
ータに対する可変長符号化出力は、周波数成分の低い
(低次の)係数から高い(高次の)係数へと、AC1
AC2 ,AC3 ,・・・と並べられたものである。可変
長符号化されたDCT係数をエレメンタリストリームが
含んでいる。
This DCT coefficient is equal to the V of the MPEG encoder.
Variable length coding is performed by the LC unit. That is, the first coefficient is fixed as a DC component, and the next component (AC
From the component), codes are assigned corresponding to the run of zero and the subsequent level. Therefore, the variable-length coded output for the coefficient data of the AC component is converted from the low (low-order) coefficient of the frequency component to the high (high-order) coefficient of AC 1 ,
AC 2 , AC 3 ,... The elementary stream includes DCT coefficients subjected to variable length coding.

【0100】上述した記録側MFC106に内蔵され
る、記録側のストリームコンバータでは、供給された信
号のDCT係数の並べ替えが行われる。すなわち、それ
ぞれのマクロブロック内で、ジグザグスキャンによって
DCTブロック毎に周波数成分順に並べられたDCT係
数がマクロブロックを構成する各DCTブロックにわた
って周波数成分順に並べ替えられる。
In the recording-side stream converter built in the recording-side MFC 106, the DCT coefficients of the supplied signal are rearranged. That is, in each macroblock, DCT coefficients arranged in order of frequency components for each DCT block by zigzag scan are rearranged in order of frequency components over each DCT block constituting the macroblock.

【0101】図18は、この記録側ストリームコンバー
タにおけるDCT係数の並べ替えを概略的に示す。
(4:2:2)コンポーネント信号の場合に、1マクロ
ブロックは、輝度信号Yによる4個のDCTブロック
(Y1 ,Y2 ,Y3 およびY4 )と、色度信号Cb,C
rのそれぞれによる2個ずつのDCTブロック(C
1 ,Cb2 ,Cr1 およびCr2 )からなる。
FIG. 18 schematically shows rearrangement of DCT coefficients in the recording-side stream converter.
In the case of a (4: 2: 2) component signal, one macroblock is composed of four DCT blocks (Y 1 , Y 2 , Y 3 and Y 4 ) based on a luminance signal Y and chromaticity signals Cb and C.
r, two DCT blocks (C
b 1 , Cb 2 , Cr 1 and Cr 2 ).

【0102】上述したように、MPEGエンコーダ10
2では、MPEG2の規定に従いジグザグスキャンが行
われ、図18Aに示されるように、各DCTブロック毎
に、DCT係数がDC成分および低域成分から高域成分
に、周波数成分の順に並べられる。一つのDCTブロッ
クのスキャンが終了したら、次のDCTブロックのスキ
ャンが行われ、同様に、DCT係数が並べられる。
As described above, the MPEG encoder 10
In 2, the zigzag scan is performed in accordance with the rules of MPEG2, and as shown in FIG. 18A, the DCT coefficients are arranged in the order of frequency components from DC components and low frequency components to high frequency components for each DCT block. When scanning of one DCT block is completed, scanning of the next DCT block is performed, and similarly, DCT coefficients are arranged.

【0103】すなわち、マクロブロック内で、DCTブ
ロックY1 ,Y2 ,Y3 およびY4、DCTブロックC
1 ,Cb2 ,Cr1 およびCr2 のそれぞれについ
て、DCT係数がDC成分および低域成分から高域成分
へと周波数順に並べられる。そして、連続したランとそ
れに続くレベルとからなる組に、〔DC,AC1 ,AC
2 ,AC3 ,・・・〕と、それぞれ符号が割り当てられ
るように、可変長符号化されている。
That is, in the macro block, DCT blocks Y 1 , Y 2 , Y 3 and Y 4 , DCT block C
For each of b 1 , Cb 2 , Cr 1 and Cr 2 , the DCT coefficients are arranged in order of frequency from the DC component and the low-frequency component to the high-frequency component. Then, [DC, AC 1 , AC
2, AC 3, and..], So that codes are assigned, it is variable length coded.

【0104】記録側ストリームコンバータでは、可変長
符号化され並べられたDCT係数を、一旦可変長符号を
解読して各係数の区切りを検出し、マクロブロックを構
成する各DCTブロックに跨がって周波数成分毎にまと
める。この様子を、図18Bに示す。最初にマクロブロ
ック内の8個のDCTブロックのDC成分をまとめ、次
に8個のDCTブロックの最も周波数成分が低いAC係
数成分をまとめ、以下、順に同一次数のAC係数をまと
めるように、8個のDCTブロックに跨がって係数デー
タを並び替える。
In the recording-side stream converter, the variable-length coded and arranged DCT coefficients are once decoded by decoding the variable-length codes to detect the breaks of each coefficient, and are straddled over each DCT block constituting the macro block. Summarize for each frequency component. This is shown in FIG. 18B. First, the DC components of the eight DCT blocks in the macroblock are summarized, the AC coefficient components of the eight DCT blocks having the lowest frequency components are summarized, and the AC coefficients of the same order are grouped in order. The coefficient data is rearranged across the DCT blocks.

【0105】並び替えられた係数データは、DC
(Y1 ),DC(Y2 ),DC(Y3 ),DC
(Y4 ),DC(Cb1 ),DC(Cb2 ),DC(C
1 ),DC(Cr2 ),AC1 (Y1 ),AC1 (Y
2 ),AC1 (Y3 ),AC1 (Y4 ),AC1 (Cb
1 ),AC1 (Cb2 ),AC1 (Cr1 ),AC
1 (Cr2 ),・・・である。ここで、DC、AC1
AC2 、・・・は、図17を参照して説明したように、
ランとそれに続くレベルとからなる組に対して割り当て
られた可変長符号の各符号である。
The rearranged coefficient data is DC
(Y 1 ), DC (Y 2 ), DC (Y 3 ), DC
(Y 4 ), DC (Cb 1 ), DC (Cb 2 ), DC (C
r 1 ), DC (Cr 2 ), AC 1 (Y 1 ), AC 1 (Y
2 ), AC 1 (Y 3 ), AC 1 (Y 4 ), AC 1 (Cb
1 ), AC 1 (Cb 2 ), AC 1 (Cr 1 ), AC
1 (Cr 2 ),. Where DC, AC 1 ,
AC 2 ,... Are described with reference to FIG.
Each variable length code is assigned to a set consisting of a run and a subsequent level.

【0106】記録側ストリームコンバータで係数データ
の順序が並べ替えられた変換エレメンタリストリーム
は、ECCエンコーダ109に内蔵されるパッキングお
よびシャフリング部に供給される。マクロブロックのデ
ータの長さは、変換エレメンタリストリームと変換前の
エレメンタリストリームとで同一である。また、MPE
Gエンコーダ102において、ビットレート制御により
GOP(1フレーム)単位に固定長化されていても、マ
クロブロック単位では、長さが変動している。パッキン
グおよびシャフリング部では、マクロブロックのデータ
を固定枠に当てはめる。
The converted elementary stream in which the order of the coefficient data is rearranged by the recording-side stream converter is supplied to a packing and shuffling unit built in the ECC encoder 109. The data length of the macroblock is the same for the converted elementary stream and the elementary stream before conversion. MPE
In the G encoder 102, even if the length is fixed in GOP (one frame) units by bit rate control, the length varies in macroblock units. In the packing and shuffling unit, the data of the macroblock is applied to a fixed frame.

【0107】図19は、パッキングおよびシャフリング
部でのマクロブロックのパッキング処理を概略的に示
す。マクロブロックは、所定のデータ長を持つ固定枠に
当てはめられ、パッキングされる。このとき用いられる
固定枠のデータ長を、記録および再生の際のデータの最
小単位であるシンクブロックのデータ長と一致させてい
る。これは、シャフリングおよびエラー訂正符号化の処
理を簡単に行うためである。図19では、簡単のため、
1フレームに8マクロブロックが含まれるものと仮定す
る。
FIG. 19 schematically shows a macroblock packing process in the packing and shuffling unit. The macro block is applied to a fixed frame having a predetermined data length and is packed. The data length of the fixed frame used at this time matches the data length of the sync block, which is the minimum unit of data during recording and reproduction. This is to simplify the processing of shuffling and error correction coding. In FIG. 19, for simplicity,
Assume that one frame contains 8 macroblocks.

【0108】可変長符号化によって、図19Aに一例が
示されるように、8マクロブロックの長さは、互いに異
なる。この例では、固定枠である1シンクブロックのデ
ータ領域の長さと比較して、マクロブロック#1のデー
タ,#3のデータおよび#6のデータがそれぞれ長く、
マクロブロック#2のデータ,#5のデータ,#7のデ
ータおよび#8のデータがそれぞれ短い。また、マクロ
ブロック#4のデータは、1シンクブロックと略等しい
長さである。
As shown in an example in FIG. 19A, the lengths of eight macroblocks are different from each other due to the variable length coding. In this example, as compared with the length of the data area of one sync block, which is a fixed frame, the data of the macro blocks # 1, # 3 and # 6 are longer, respectively.
The data of the macro blocks # 2, # 5, # 7 and # 8 are short. The data of the macro block # 4 has a length substantially equal to one sync block.

【0109】パッキング処理によって、マクロブロック
が1シンクブロック長の固定長枠に詰め込まれる。過不
足無くデータを詰め込むことができるのは、1フレーム
期間で発生するデータ量が固定量に制御されているから
である。図19Bに一例が示されるように、1シンクブ
ロックと比較して長いマクロブロックは、シンクブロッ
ク長に対応する位置で分割される。分割されたマクロブ
ロックのうち、シンクブロック長からはみ出た部分(オ
ーバーフロー部分)は、先頭から順に空いている領域
に、すなわち、長さがシンクブロック長に満たないマク
ロブロックの後ろに、詰め込まれる。
By the packing process, macro blocks are packed into a fixed-length frame having a length of one sync block. Data can be packed without excess or shortage because the amount of data generated in one frame period is controlled to a fixed amount. As shown in an example in FIG. 19B, a macroblock longer than one sync block is divided at a position corresponding to the sync block length. Of the divided macroblocks, the portion (overflow portion) that protrudes from the sync block length is packed in an area that is vacant in order from the beginning, that is, after the macroblock whose length is less than the sync block length.

【0110】図19Bの例では、マクロブロック#1
の、シンクブロック長からはみ出た部分が、先ず、マク
ロブロック#2の後ろに詰め込まれ、そこがシンクブロ
ックの長さに達すると、マクロブロック#5の後ろに詰
め込まれる。次に、マクロブロック#3の、シンクブロ
ック長からはみ出た部分がマクロブロック#7の後ろに
詰め込まれる。さらに、マクロブロック#6のシンクブ
ロック長からはみ出た部分がマクロブロック#7の後ろ
に詰め込まれ、さらにはみ出た部分がマクロブロック#
8の後ろに詰め込まれる。こうして、各マクロブロック
がシンクブロック長の固定枠に対してパッキングされ
る。
In the example of FIG. 19B, macro block # 1
The portion that protrudes from the sync block length is first packed after the macro block # 2, and when it reaches the length of the sync block, it is packed after the macro block # 5. Next, the portion of the macro block # 3 that is outside the sync block length is packed behind the macro block # 7. Further, a portion of the macro block # 6 that protrudes from the sync block length is packed behind the macro block # 7, and a portion that protrudes further from the macro block # 7.
Stuffed behind 8. Thus, each macroblock is packed in a fixed frame of the sync block length.

【0111】各マクロブロックに対応する可変長データ
の長さは、記録側ストリームコンバータにおいて予め調
べておくことができる。これにより、このパッキング部
では、VLCデータをデコードして内容を検査すること
無く、マクロブロックのデータの最後尾を知ることがで
きる。
The length of the variable-length data corresponding to each macroblock can be checked in advance by the recording-side stream converter. This allows the packing unit to know the end of the macroblock data without decoding the VLC data and checking the contents.

【0112】図20は、上述したECCエンコーダ10
9のより具体的な構成を示す。図20において、164
がICに対して外付けのメインメモリ160のインター
フェースである。メインメモリ160は、SDRAMで
構成されている。インターフェース164によって、内
部からのメインメモリ160に対する要求を調停し、メ
インメモリ160に対して書込み/読出しの処理を行
う。また、パッキング部137a、ビデオシャフリング
部137b、パッキング部137cによって、パッキン
グおよびシャフリング部137が構成される。
FIG. 20 shows the ECC encoder 10 described above.
9 shows a more specific configuration. In FIG. 20, 164
Is an interface of the main memory 160 external to the IC. The main memory 160 is composed of an SDRAM. The interface 164 arbitrates an internal request for the main memory 160, and performs write / read processing on the main memory 160. The packing and shuffling unit 137 is constituted by the packing unit 137a, the video shuffling unit 137b, and the packing unit 137c.

【0113】図21は、メインメモリ160のアドレス
構成の一例を示す。メインメモリ160は、例えば64
MビットのSDRAMで構成される。メインメモリ16
0は、ビデオ領域250、オーバーフロー領域251お
よびオーディオ領域252を有する。ビデオ領域250
は、4つのバンク(vbank#0、vbank#1、
vbank#2およびvbank#3)からなる。4バ
ンクのそれぞれは、1等長化単位のディジタルビデオ信
号が格納できる。1等長化単位は、発生するデータ量を
略目標値に制御する単位であり、例えばビデオ信号の1
ピクチャ(Iピクチャ)である。図21中の、部分A
は、ビデオ信号の1シンクブロックのデータ部分を示
す。1シンクブロックには、フォーマットによって異な
るバイト数のデータが挿入される。複数のフォーマット
に対応するために、最大のバイト数以上であって、処理
に都合の良いバイト数例えば256バイトが1シンクブ
ロックのデータサイズとされている。
FIG. 21 shows an example of the address configuration of the main memory 160. The main memory 160 is, for example, 64
It is composed of an M-bit SDRAM. Main memory 16
0 has a video area 250, an overflow area 251 and an audio area 252. Video area 250
Are four banks (vbank # 0, vbank # 1,
vbank # 2 and vbank # 3). Each of the four banks can store digital video signals of one equal length unit. One equalization unit is a unit for controlling the amount of generated data to a substantially target value, for example, one unit of a video signal.
This is a picture (I picture). Part A in FIG.
Indicates a data portion of one sync block of the video signal. Data of a different number of bytes is inserted into one sync block depending on the format. In order to cope with a plurality of formats, the data size of one sync block is equal to or larger than the maximum number of bytes and the number of bytes convenient for processing, for example, 256 bytes.

【0114】ビデオ領域の各バンクは、さらに、パッキ
ング用領域250Aと内符号化エンコーダへの出力用領
域250Bとに分けられる。オーバーフロー領域251
は、上述のビデオ領域に対応して、4つのバンクからな
る。さらに、オーディオデータ処理用の領域252をメ
インメモリ160が有する。
Each bank in the video area is further divided into a packing area 250A and an output area 250B to the inner encoding encoder. Overflow area 251
Consists of four banks corresponding to the above-mentioned video area. Further, the main memory 160 has an area 252 for audio data processing.

【0115】この一実施形態では、各マクロブロックの
データ長標識を参照することによって、パッキング部1
37aが固定枠長データと、固定枠を越える部分である
オーバーフローデータとをメインメモリ160の別々の
領域に分けて記憶する。固定枠長データは、シンクブロ
ックのデータ領域の長さ以下のデータであり、以下、ブ
ロック長データと称する。ブロック長データを記憶する
領域は、各バンクのパッキング処理用領域250Aであ
る。ブロック長より短いデータ長の場合には、メインメ
モリ160の対応する領域に空き領域を生じる。ビデオ
シャフリング部137bが書込みアドレスを制御するこ
とによってシャフリングを行う。ここで、ビデオシャフ
リング部137bは、ブロック長データのみをシャフリ
ングし、オーバーフロー部分は、シャフリングせずに、
オーバーフローデータに割り当てられた領域に書込まれ
る。
In this embodiment, the packing unit 1 is referred to by referring to the data length indicator of each macro block.
Reference numeral 37a stores the fixed frame length data and the overflow data, which is a portion exceeding the fixed frame, in separate areas of the main memory 160 and stores them. The fixed frame length data is data shorter than the length of the data area of the sync block, and is hereinafter referred to as block length data. The area for storing the block length data is the packing processing area 250A of each bank. If the data length is shorter than the block length, an empty area is created in the corresponding area of the main memory 160. The video shuffling unit 137b performs shuffling by controlling the write address. Here, the video shuffling unit 137b shuffles only the block length data, and does not shuffle the overflow portion.
Written to the area allocated for overflow data.

【0116】次に、パッキング部137cが外符号エン
コーダ139へのメモリにオーバーフロー部分をパッキ
ングして読み込む処理を行う。すなわち、メインメモリ
160から外符号エンコーダ139に用意されている1
ECCブロック分のメモリに対してブロック長のデータ
を読み込み、若し、ブロック長のデータに空き領域が有
れば、そこにオーバーフロー部分を読み込んでブロック
長にデータが詰まるようにする。そして、1ECCブロ
ック分のデータを読み込むと、読み込み処理を一時中断
し、外符号エンコーダ139によって外符号のパリティ
を生成する。外符号パリティは、外符号エンコーダ13
9のメモリに格納する。外符号エンコーダ139の処理
が1ECCブロック分終了すると、外符号エンコーダ1
39からデータおよび外符号パリティを内符号を行う順
序に並び替えて、メインメモリ160のパッキング処理
用領域250Aと別の出力用領域250Bに書き戻す。
ビデオシャフリング部140は、この外符号の符号化が
終了したデータをメインメモリ160へ書き戻す時のア
ドレスを制御することによって、シンクブロック単位の
シャフリングを行う。
Next, the packing section 137c performs processing of packing and reading the overflow portion into the memory for the outer code encoder 139. That is, 1 is prepared from the main memory 160 to the outer code encoder 139.
The data of the block length is read into the memory of the ECC block, and if there is a free area in the data of the block length, an overflow portion is read there to block the data to the block length. When data for one ECC block is read, the reading process is temporarily suspended, and the outer code encoder 139 generates parity of the outer code. The outer code parity is the outer code encoder 13
9 is stored in the memory. When the processing of the outer code encoder 139 is completed for one ECC block, the outer code encoder 1
From 39, the data and the outer code parity are rearranged in the order of performing the inner code, and are written back to the packing processing area 250A of the main memory 160 and another output area 250B.
The video shuffling unit 140 performs shuffling on a sync block basis by controlling an address at the time of writing back the data on which the encoding of the outer code has been completed to the main memory 160.

【0117】このようにブロック長データとオーバーフ
ローデータとを分けてメインメモリ160の第1の領域
250Aへのデータの書込み(第1のパッキング処
理)、外符号エンコーダ139へのメモリにオーバーフ
ローデータをパッキングして読み込む処理(第2のパッ
キング処理)、外符号パリティの生成、データおよび外
符号パリティをメインメモリ160の第2の領域250
Bに書き戻す処理が1ECCブロック単位でなされる。
外符号エンコーダ139がECCブロックのサイズのメ
モリを備えることによって、メインメモリ160へのア
クセスの頻度を少なくすることができる。
As described above, the block length data and the overflow data are separated and the data is written into the first area 250A of the main memory 160 (first packing process), and the overflow data is packed into the memory of the outer code encoder 139. (The second packing process), the generation of the outer code parity, and the data and the outer code parity in the second area 250 of the main memory 160.
The process of writing back to B is performed in units of one ECC block.
Since the outer code encoder 139 includes the memory having the size of the ECC block, the frequency of access to the main memory 160 can be reduced.

【0118】そして、1ピクチャに含まれる所定数のE
CCブロック(例えば32個のECCブロック)の処理
が終了すると、1ピクチャのパッキング、外符号の符号
化が終了する。そして、インターフェース164を介し
てメインメモリ160の領域250Bから読出したデー
タがID付加部148、内符号エンコーダ147、同期
付加部150で処理され、並列直列変換部124によっ
て、同期付加部150の出力データがビットシリアルデ
ータに変換される。出力されるシリアルデータがパーシ
ャル・レスポンスクラス4のプリコーダ125により処
理される。この出力が必要に応じてディジタル変調さ
れ、記録アンプ110を介して、回転ドラム111に設
けられた回転ヘッドに供給される。
A predetermined number of Es contained in one picture
When the processing of the CC block (for example, 32 ECC blocks) is completed, the packing of one picture and the encoding of the outer code are completed. The data read from the area 250B of the main memory 160 via the interface 164 is processed by the ID addition unit 148, the inner code encoder 147, and the synchronization addition unit 150, and the output data of the synchronization addition unit 150 is output by the parallel / serial conversion unit 124. Is converted to bit serial data. The output serial data is processed by the partial response class 4 precoder 125. This output is digitally modulated as required, and is supplied via a recording amplifier 110 to a rotating head provided on a rotating drum 111.

【0119】なお、ECCブロック内にヌルシンクと称
する有効なデータが配されないシンクブロックを導入
し、記録ビデオ信号のフォーマットの違いに対してEC
Cブロックの構成の柔軟性を持たせるようになされる。
ヌルシンクは、パッキングおよびシャフリングブロック
137のパッキング部137aにおいて生成され、メイ
ンメモリ160に書込まれる。従って、ヌルシンクがデ
ータ記録領域を持つことになるので、これをオーバーフ
ロー部分の記録用シンクとして使用することができる。
It is to be noted that a sync block called null sync, in which valid data is not arranged, is introduced into the ECC block, and an ECC block is provided for the difference in recording video signal format.
The configuration of the C block is made flexible.
The null sink is generated in the packing unit 137a of the packing and shuffling block 137, and written into the main memory 160. Therefore, since the null sync has a data recording area, it can be used as a recording sync for the overflow portion.

【0120】オーディオデータの場合では、1フィール
ドのオーディオデータの偶数番目のサンプルと奇数番目
のサンプルとがそれぞれ別のECCブロックを構成す
る。ECCの外符号の系列は、入力順序のオーディオサ
ンプルで構成されるので、外符号系列のオーディオサン
プルが入力される毎に外符号エンコーダ136が外符号
パリティを生成する。外符号エンコーダ136の出力を
メインメモリ160の領域252に書込む時のアドレス
制御によって、シャフリング部137がシャフリング
(チャンネル単位およびシンクブロック単位)を行う。
In the case of audio data, even-numbered samples and odd-numbered samples of one-field audio data form separate ECC blocks. Since the ECC outer code sequence is composed of audio samples in the input order, the outer code encoder 136 generates an outer code parity each time an outer code sequence audio sample is input. The address control when writing the output of the outer code encoder 136 to the area 252 of the main memory 160 causes the shuffling unit 137 to perform shuffling (channel units and sync block units).

【0121】さらに、126で示すCPUインターフェ
ースが設けられ、システムコントローラとして機能する
外部のCPU127からのデータを受け取り、内部ブロ
ックに対してパラメータの設定が可能とされている。複
数のフォーマットに対応するために、シンクブロック
長、パリティ長を始め多くのパラメータを設定すること
が可能とされている。
Further, a CPU interface indicated by 126 is provided, receives data from an external CPU 127 functioning as a system controller, and sets parameters for internal blocks. In order to support a plurality of formats, it is possible to set many parameters including a sync block length and a parity length.

【0122】パラメータの1つとしての”パッキング長
データ”は、パッキング部137aおよび137bに送
られ、パッキング部137a、137bは、これに基づ
いて決められた固定枠(図19Aで「シンクブロック
長」として示される長さ)にVLCデータを詰め込む。
“Packing length data” as one of the parameters is sent to the packing units 137a and 137b, and the packing units 137a and 137b determine the fixed frame (“sync block length” in FIG. 19A) based on the data. ) With VLC data.

【0123】パラメータの1つとしての”パック数デー
タ”は、パッキング部137bに送られ、パッキング部
137bは、これに基づいて1シンクブロック当たりの
パック数を決め、決められたパック数分のデータを外符
号エンコーダ139に供給する。
"Pack number data" as one of the parameters is sent to the packing unit 137b, and the packing unit 137b determines the number of packs per sync block based on the data, and the data for the determined number of packs is determined. Is supplied to the outer code encoder 139.

【0124】パラメータの1つとしての”ビデオ外符号
パリティ数データ”は、外符号エンコーダ139に送ら
れ、外符号エンコーダ139は、これに基づいた数のパ
リティが発声されるビデオデータの外符号の符号化を行
う。
[0124] "Video outer code parity number data" as one of the parameters is sent to outer code encoder 139, and outer code encoder 139 outputs the outer code of the video data from which the number of parities is uttered. Perform encoding.

【0125】パラメータの1つとしての”ID情報”お
よび”DID情報”のそれぞれは、ID付加部148に
送られ、ID付加部148は、これらID情報およびD
ID情報をメインメモリ160から読み出された単位長
のデータ列に付加する。
Each of “ID information” and “DID information” as one of the parameters is sent to the ID adding section 148, and the ID adding section 148
The ID information is added to the unit-length data string read from the main memory 160.

【0126】パラメータの1つとしての”ビデオ内符号
用パリティ数データ”および”オーディオ内符号用パリ
ティ数データ”のそれぞれは、内符号エンコーダ149
に送られ、内符号エンコーダ149は、これらに基づい
た数のパリティが発生されるビデオデータとオーディオ
データの内符号の符号化を行う。なお、内符号エンコー
ダ149には、パラメータの1つである”シンク長デー
タ”も送られており、これにより、内符号化されたデー
タの単位長(シンク長)が規制される。
Each of “parameter number data for video inner code” and “parity number data for audio inner code” as one of the parameters is an inner code encoder 149.
And the inner code encoder 149 encodes the inner code of the video data and the audio data from which the number of parities are generated based on these. It should be noted that “sink length data”, which is one of the parameters, is also sent to the inner code encoder 149, whereby the unit length (sink length) of the inner-coded data is regulated.

【0127】また、パラメータの1つとしてのシャフリ
ングテーブルデータがビデオ用シャフリングテーブル
(RAM)128vおよびオーディオ用シャフリングテ
ーブル(RAM)128aに格納される。シャフリング
テーブル128vは、ビデオシャフリング部137bお
よび140のシャフリングのためのアドレス変換を行
う。シャフリングテーブル128aは、オーディオシャ
フリング137のためのアドレス変換を行う。
Further, shuffling table data as one of the parameters is stored in a video shuffling table (RAM) 128v and an audio shuffling table (RAM) 128a. The shuffling table 128v performs an address conversion for shuffling the video shuffling units 137b and 140. The shuffling table 128a performs an address conversion for the audio shuffling 137.

【0128】次に、この発明の一実施形態について、さ
らに詳細に説明する。上述のECCエンコーダ109
は、シンクブロックとマクロブロックとが1対1に対応
していることを期待して、エラー訂正符号化処理を行
う。つまり、ECCエンコーダ109に供給される、例
えば1フレーム分のマクロブロック数が1フレーム分の
シンクブロック数と等しいことが必要とされる。
Next, an embodiment of the present invention will be described in more detail. ECC encoder 109 described above
Performs an error correction encoding process, expecting that the sync block and the macro block correspond one-to-one. That is, for example, the number of macroblocks for one frame supplied to the ECC encoder 109 needs to be equal to the number of sync blocks for one frame.

【0129】ここで、MPEG ESが入力可能で、N
TSCに対応しているディジタルVTRを想定する。こ
れは、画枠サイズが720画素×512ラインとされ、
16画素×16画素(ライン)のマクロブロックが1フ
レームに付き1440個(=45個×32個)であるM
PEG ESが入力されることが期待される。
Here, MPEG ES can be input, and N
Suppose a digital VTR that supports TSC. This means that the image frame size is 720 pixels x 512 lines,
M in which the number of macroblocks of 16 pixels × 16 pixels (lines) is 1440 (= 45 × 32) per frame
It is expected that PEG ES will be entered.

【0130】このディジタルVTRに、画枠サイズが上
述と異なるMPEG ESが供給される場合について考
える。例えば、SDTI受信部108に、352画素×
256ライン、すなわち、MPEG ESのヘッダ情報
において、horizontal sizeが352、
vertical sizeが256であるMPEGE
Sが供給される。この入力MPEG ESは、1フレー
ム中に、水平方向に22個、垂直方向に16個、計35
2個のマクロブロックを有している。これは、想定され
たディジタルVTRのECCエンコーダ109に期待さ
れる、1フレームに1440個のマクロブロック数に足
りないので、従来例でも既に述べたように、ECCエン
コーダ109の動作が破綻することになる。
Consider a case where an MPEG ES having an image frame size different from that described above is supplied to this digital VTR. For example, the SDTI receiving unit 108 has 352 pixels ×
In the 256 lines, that is, in the header information of the MPEG ES, the horizontal size is 352,
MPEGE whose vertical size is 256
S is supplied. In one frame, the number of input MPEG ESs is 22 in the horizontal direction and 16 in the vertical direction, for a total of 35.
It has two macroblocks. This is because the number of 1440 macroblocks per frame expected for the assumed digital VTR ECC encoder 109 is not enough, so that the operation of the ECC encoder 109 breaks down as already described in the conventional example. Become.

【0131】この発明では、記録側MFC106におい
て、入力MPEG ESのヘッダ情報中の、horiz
ontal sizeおよびvertical siz
eを監視する。horizontal size va
lueおよびvertical size value
は、上述の図2に示されるように、シーケンスヘッダ2
に格納される。上述の例のように、水平方向に22個、
垂直方向に16個のマクロブロックのマトリクスを有す
るMPEGESが供給された場合、これが検出され、こ
のマトリクス以外の部分(上述の図31Aの斜線で示し
た部分)は、マクロブロックが存在しないことが判断さ
れる。
According to the present invention, in the recording side MFC 106, horiz in the header information of the input MPEG ES
total size and vertical size
Monitor e. horizontal size va
lue and vertical size value
Is the sequence header 2 as shown in FIG.
Is stored in As in the example above, 22 in the horizontal direction,
When MPEGES having a matrix of 16 macroblocks in the vertical direction is supplied, this is detected, and it is determined that there is no macroblock in a portion other than the matrix (the above-described hatched portion in FIG. 31A). Is done.

【0132】そこで、このディジタルVTRで想定され
ている画枠サイズになるように、マクロブロックが存在
しない部分に対して、ダミーデータが挿入される。これ
により、1フレームに付き水平方向に45個、垂直方向
に32個の、ダミーデータを含むマクロブロックのマト
リクスを有するデータストリームをECCエンコーダ1
09に供給することができ、ECCエンコーダ109
は、恰も、1フレーム中のシンクブロック数とマクロブ
ロック数とが1対1に対応しているかのように動作でき
る。
Therefore, dummy data is inserted into a portion where no macro block exists so that the image frame size assumed in the digital VTR is obtained. As a result, a data stream having a matrix of 45 macroblocks including dummy data in the horizontal direction and 32 in the vertical direction per frame is transmitted to the ECC encoder 1.
09 and the ECC encoder 109
Can operate as if the number of sync blocks and the number of macro blocks in one frame correspond one to one.

【0133】なお、この一実施形態においては、上述の
ダミーデータとして、MPEGにおいてユニークなコー
ドである、〔00 00 01 AF〕(16進表記)
を用いている。そのため、再生時にECCデコーダ11
3から出力されるこのコード〔00 00 01 A
F〕を検出し、検出されたこのコードを削除することに
よって、SDTI受信部108に供給されたのと同一の
MPEG ESを、SDTI出力部115に供給し出力
させることができる。
In this embodiment, [00 00 01 AF] (hexadecimal notation), which is a unique code in MPEG, is used as the dummy data.
Is used. Therefore, during reproduction, the ECC decoder 11
3 [00 00 01 A]
F], and by deleting the detected code, the same MPEG ES supplied to the SDTI receiving unit 108 can be supplied to the SDTI output unit 115 and output.

【0134】図22は、上述のような、入力されたMP
EG ESにダミーデータを付加するための一例の構成
を示す。この構成は、記録側MFC106に含まれるも
のである。また、図23は、この図22の構成における
動作の一例のタイミングチャートを示す。SDTI受信
部108から出力されたMPEG ESは、フレーム検
出部300、H/V検出部302およびフレームメモリ
303にそれぞれ入力される。MPEG ESの入力
は、例えばクロック毎に1バイトずつなされる。フレー
ムメモリ303は、入力されたMPEG ESを格納す
るメモリである。
FIG. 22 shows an example of the input MP as described above.
An example configuration for adding dummy data to an EG ES is shown. This configuration is included in the recording-side MFC 106. FIG. 23 is a timing chart showing an example of the operation in the configuration of FIG. The MPEG ES output from the SDTI receiving unit 108 is input to the frame detecting unit 300, the H / V detecting unit 302, and the frame memory 303, respectively. The input of the MPEG ES is performed, for example, one byte per clock. The frame memory 303 is a memory for storing the input MPEG ES.

【0135】フレーム検出部300では、入力されたM
PEG ESから、フレームの先頭を検出し、フレーム
の先頭を示すフレーム開始信号を出力する。フレーム開
始信号は、カウンタ301に供給される。フレームの先
頭は、例えばビットパターンが〔00 00 01 B
3〕(16進表記)と定められているシーケンスヘッダ
コードをパターンマッチングによって検出する。図23
Aに示されるように、最後の〔B3〕が検出された時点
でそれがシーケンスヘッダコードであることが分かるの
で、そのタイミングでフレーム開始信号が出力される
(図23B)。
In the frame detector 300, the input M
The head of the frame is detected from the PEG ES, and a frame start signal indicating the head of the frame is output. The frame start signal is supplied to the counter 301. At the beginning of the frame, for example, the bit pattern is [00 00 01 B
3] A sequence header code defined as (hexadecimal notation) is detected by pattern matching. FIG.
As shown in A, when the last [B3] is detected, it is known that it is a sequence header code, so that a frame start signal is output at that timing (FIG. 23B).

【0136】カウンタ301は、クロックによりカウン
トアップされ、フレーム開始信号でカウント値をリセッ
トされるカウンタである。フレーム検出部300からフ
レーム開始信号が供給されると、カウンタ301がクロ
ック毎にカウントアップされ、図23Cに示される信号
LOCATEが生成される。信号LOCATEは、MP
EG ESの中のバイト単位での位置に対応した信号で
ある。
The counter 301 is a counter that counts up by a clock and resets a count value by a frame start signal. When a frame start signal is supplied from the frame detection unit 300, the counter 301 counts up for each clock, and a signal LOCATE shown in FIG. 23C is generated. The signal LOCATE is MP
It is a signal corresponding to the position in byte units in the EG ES.

【0137】信号LOCATEは、H/V検出部302
に供給される。上述したように、H/V検出部302に
は、フレーム検出部300と共にMPEG ESが供給
されている。H/V検出部302では、供給されたMP
EG ESを、信号LOCATEに基づきカウントし
て、フレーム開始信号から3クロック目のhorizo
ntal size value(図23D)と、4ク
ロック目のvertical size value
(図23E)とを抽出し、図示されないレジスタに格納
する。
The signal LOCATE is output from the H / V detector 302
Supplied to As described above, the H / V detection unit 302 is supplied with the MPEG ES together with the frame detection unit 300. In the H / V detection unit 302, the supplied MP
EG ES is counted based on the signal LOCATE, and the horizontal clock of the third clock from the frame start signal is counted.
The ntal size value (FIG. 23D) and the vertical size value at the fourth clock
(FIG. 23E) is extracted and stored in a register (not shown).

【0138】なお、上述のように、シーケンスヘッダ2
に格納されるhorizontalsize valu
eおよびvertical size valueは、
それぞれ12ビットずつが割り当てられている。画枠サ
イズがこれら12ビットずつで表現しきれない場合に
は、シーケンス拡張3に格納される、horizont
al size extentionおよびverti
cal size extention(図3参照)
を、画枠サイズそれぞれの上位2ビットとして用いるこ
とができる。この場合には、H/V検出部302におい
て、シーケンス拡張3に上述の値が格納される位置が読
めるように、信号LOCATEをカウントする数を増や
せばよい。
As described above, the sequence header 2
Horizontalsize value stored in
e and vertical size value are
Each of them is assigned 12 bits. If the image frame size cannot be represented by each of these 12 bits, horizont stored in sequence extension 3
al size extension and verti
cal size extension (see Fig. 3)
Can be used as the upper two bits of each image frame size. In this case, the number of signals LOCATE to be counted may be increased in H / V detection section 302 so that the position where the above value is stored in sequence extension 3 can be read.

【0139】一方、図31Aにて上述したような、例え
ば水平方向が352画素、垂直方向が256ライン、す
なわち、horizntal size value=
352、vertical size value=2
56であるMPEG ESは、全体的には、図24に示
されるようになっていて、シーケンスヘッダコードおよ
び所定のヘッダ情報(図示しない)に続けて、マクロブ
ロックMBが連なっている。マクロブロックMBの列
は、ここでは、第22番目のマクロブロックMB(2
2)と第46番目のマクロブロックMB(46)との間
が不連続となっている。上述の図32Aで分かるよう
に、このディジタルVTRの本来の画枠サイズに対して
供給されたMPEG ESの画枠サイズが小さいため、
マクロブロックMB(23)〜MB(45)が書くべき
データが存在しない部分として欠落している。フレーム
メモリ303には、この図24に示されるようなMPE
G ESが溜め込まれる。
On the other hand, as described above with reference to FIG. 31A, for example, 352 pixels in the horizontal direction and 256 lines in the vertical direction, that is, horizontal size value =
352, vertical size value = 2
The MPEG ES 56 is as shown in FIG. 24 as a whole, and a macroblock MB is continued following a sequence header code and predetermined header information (not shown). In this case, the column of the macroblock MB is the 22nd macroblock MB (2
2) and the 46th macroblock MB (46) are discontinuous. As can be seen from FIG. 32A described above, the picture frame size of the supplied MPEG ES is smaller than the original picture frame size of this digital VTR.
The macro blocks MB (23) to MB (45) are missing as portions where data to be written does not exist. The frame memory 303 stores an MPE as shown in FIG.
G ES is stored.

【0140】上述のH/V検出部302では、信号LO
CATEに基づき、図25Aに示されるように、ヘッダ
とマクロブロックのタイミングを管理している。そし
て、上述した図23Dおよび図23Eで抽出したhor
izonrtal sizevalueおよびvert
ical size valueから、図25Bに示さ
れる、信号INVALを生成する。信号INVALは、
供給されたMPEGESにおいて、画枠サイズが規定よ
り小さいために、マクロブロックMB(23)〜MB
(45)が欠落した部分で”1”の値をとる。すなわ
ち、信号INVALは、上述の図32Aにおいて斜線で
示した、書くべきデータが存在しない部分で、”1”と
なるような信号である。
In the above-described H / V detection section 302, the signal LO
Based on CATE, as shown in FIG. 25A, the timing of the header and the macroblock is managed. Then, the hor extracted in FIG. 23D and FIG.
izonrtal sizevalue and vert
The signal INVAL shown in FIG. 25B is generated from the ical size value. The signal INVAL is
In the supplied MPEGES, since the image frame size is smaller than the specified size, the macro blocks MB (23) to MB (23) to MB
(45) takes a value of "1" in the missing part. That is, the signal INVAL is a signal which becomes "1" in a portion where there is no data to be written, which is indicated by hatching in FIG. 32A.

【0141】例えば、信号INVALは、vertic
al size valueから求められるマクロブロ
ック数以下の垂直方向位置では、水平方向に、hori
zontal size valueから求められるマ
クロブロック数を越えたところで、”1”となる。ま
た、vertical size valueから求め
られるマクロブロック数を越える垂直方向位置(この場
合、画面の下側になる)では、水平方向において全て”
1”となる。
For example, the signal INVAL is a vertic
At vertical positions equal to or less than the number of macroblocks determined from the al size value, hori
It becomes "1" when the number of macro blocks exceeds the number of macro blocks obtained from the "zonal size value". At the vertical position exceeding the number of macroblocks calculated from the vertical size value (in this case, on the lower side of the screen), all the horizontal positions are "
1 ".

【0142】信号INVALは、インバータ305で反
転されて信号VALIDとされて、フレームメモリ30
3のREポート310に供給される。また、信号INV
ALは、ダミー生成部304およびセレクタ306にそ
れぞれ供給される。
The signal INVAL is inverted by an inverter 305 to become a signal VALID,
3 RE port 310. Also, the signal INV
AL is supplied to the dummy generation unit 304 and the selector 306, respectively.

【0143】入力されたMPEG ESが溜め込まれる
フレームメモリ303は、REポート310に供給され
る信号RE(Read Enable) が”1”であれば溜め込まれ
たデータを出力し、”0”であればその出力を止める。
したがって、図25Cに示されるように、信号INVA
Lが”0”の間は、溜め込まれたMPEG ESが出力
される。すなわち、上述した図31Aの、斜線で示され
ていない領域において、MPEG ESが出力されるこ
とになる。
The frame memory 303 in which the input MPEG ES is stored outputs the stored data when the signal RE (Read Enable) supplied to the RE port 310 is “1”, and outputs the stored data when the signal RE is “0”. Stop the output.
Therefore, as shown in FIG. 25C, the signal INVA
While L is "0", the stored MPEG ES is output. That is, the MPEG ES is output in the above-mentioned area not shown by the diagonal lines in FIG. 31A.

【0144】一方、ダミー生成部304では、信号IN
VALが”1”の間、図26に一例が示されるような、
ダミーデータをクロック毎に出力する。ダミーデータ
は、例えば全体で4バイトのデータ長を有し、先頭から
3バイト目までは、スタートコードと同一のビットパタ
ーン〔00 00 01〕とされる。スタートコードの
第4バイト目は、通常は使用されない値を用いて、この
データが無効データであることを示すようにする。この
一実施形態では、上述したように〔AF〕が第4バイト
目として用いられている。
On the other hand, in the dummy generation section 304, the signal IN
While VAL is "1", an example is shown in FIG.
Dummy data is output for each clock. The dummy data has a data length of, for example, 4 bytes in total, and has the same bit pattern [00 00 01] as the start code up to the third byte from the beginning. The fourth byte of the start code uses a value that is not normally used to indicate that this data is invalid data. In this embodiment, [AF] is used as the fourth byte as described above.

【0145】〔00 00 01〕を同期ワードとして
マクロブロックを検出し、さらに、同期ワードの後ろに
〔AF〕が続いていることを検出することで、付加され
たダミーデータを検出することができる。後述する再生
時には、このことを利用して、付加されたダミーデータ
を検出して削除する。
By detecting a macro block using [00 00 01] as a synchronization word and detecting that [AF] follows the synchronization word, added dummy data can be detected. . At the time of reproduction, which will be described later, this is used to detect and delete the added dummy data.

【0146】セレクタ306は、信号INVALが”
1”のときには、ダミーデータを選択し、信号INVA
Lが”0”のときにはフレームメモリ303からの出力
を選択するようにされている。これにより、図25Eに
示されるように、画枠サイズが規定よりも小さいために
画像データの存在しないマクロブロックの位置(inv
alid)にダミーデータが補填されたMPEG ES
が生成される。
The selector 306 sets the signal INVAL to “
When it is 1 ", dummy data is selected and the signal INVA
When L is "0", the output from the frame memory 303 is selected. As a result, as shown in FIG. 25E, the position (inv) of the macroblock where no image data exists because the image frame size is smaller than the specified value.
MPEG ES in which dummy data has been supplemented to the
Is generated.

【0147】セレクタ306から出力されたMPEG
ESは、記録側MFC106に内蔵されるストリームコ
ンバータでDCT係数の並べ替えを行われ、変換MPE
GESとされて、ECCエンコーダ109に供給され
る。そして、ECCエンコーダ109で、既に述べたよ
うな、パッキング、シャフリング、外符号の符号化処
理、ID付加、内符号の符号化処理および同期信号付加
などをされ、イコライザ110を介して回転ドラム11
1に供給され、磁気テープ112に記録される。
MPEG output from selector 306
The ES converts the DCT coefficients by a stream converter built in the recording-side MFC 106, and outputs the converted MPE.
GES is supplied to the ECC encoder 109. The ECC encoder 109 performs packing, shuffling, outer code encoding, ID addition, inner code encoding, synchronization signal addition, and the like, as described above.
1 and recorded on the magnetic tape 112.

【0148】なお、通常のマクロブロックは、図27に
一例が示されるように、3バイトの同期ワードと1バイ
トのマクロブロックの位置情報からなる4バイトのスラ
イススタートコード12に続けて、水平方向の位置情報
が配され、さらにDCT係数などからなる画像データが
配される。ダミーデータは、通常のマクロブロックに比
べて非常にサイズが小さいので、ECCエンコーダ10
9におけるパッキング処理の際に、有効に利用すること
ができる。
As shown in FIG. 27, an ordinary macroblock is a horizontal direction following a 4-byte slice start code 12 consisting of a 3-byte synchronization word and 1-byte macroblock position information. , And image data including DCT coefficients and the like. Since the size of the dummy data is much smaller than that of a normal macro block, the ECC encoder 10
9 can be effectively used in the packing process.

【0149】次に、再生時の処理について説明する。記
録時にダミーデータを付加されたMPEG ESは、再
生時に、付加されたダミーデータを削除して出力する必
要がある。図28は、記録時に付加されたダミーデータ
を検出し、削除するための一例の構成を示す。この構成
は、再生側MFC114に含まれるものである。この図
28の構成における動作の一例のタイミングチャート
を、図29に示す。
Next, the processing at the time of reproduction will be described. An MPEG ES to which dummy data has been added at the time of recording needs to delete the added dummy data and output it at the time of reproduction. FIG. 28 shows an example of a configuration for detecting and deleting dummy data added at the time of recording. This configuration is included in the reproduction-side MFC 114. FIG. 29 shows a timing chart of an example of the operation in the configuration of FIG.

【0150】磁気テープ112から読み出された再生信
号が回転ドラム111からイコライザ110を介してE
CCデコーダ113に供給される。ECCデコーダ11
3では、供給された再生信号に対して、既に述べたよう
な、同期検出、内符号のエラー訂正、ID補間、デシャ
フリング、外符号のエラー訂正およびデパッキングなど
の処理をされ、変換MPEG ESにされ、出力され
る。
The reproduced signal read from the magnetic tape 112 is transmitted from the rotating drum 111 via the equalizer 110 to E.
It is supplied to the CC decoder 113. ECC decoder 11
In step 3, the supplied reproduced signal is subjected to processes such as synchronization detection, inner code error correction, ID interpolation, deshuffling, outer code error correction, and depacking, as described above. Is output.

【0151】ECCデコーダ113から出力された変換
MPEG ESは、再生側MFC114に供給され、I
NVAL検出部350、VAL検出部351およびDフ
リップフロップ(D−FF)352Aにそれぞれ供給さ
れる。D−FF352Aは、出力側にさらに3個のD−
FF352B、352Cおよび352Dが接続され、全
体で4連のD−FF352を構成する。D−FF352
は、入力された変換MPEG ESに対して所定の遅延
を与えるものである。
The converted MPEG ES output from the ECC decoder 113 is supplied to the reproduction side MFC 114,
The signals are supplied to the NVAL detector 350, the VAL detector 351 and the D flip-flop (D-FF) 352A. The D-FF 352A has three more D-FFs on the output side.
The FFs 352B, 352C, and 352D are connected, and a total of four D-FFs 352 are configured. D-FF352
Provides a predetermined delay to the input converted MPEG ES.

【0152】変換MPEG ESにおいて、スタートコ
ードが〔00 00 01 AF〕であれば、最初の3
バイトの同期ワードでそれがマクロブロックであること
が分かり、第4バイト目で、記録時に付加されたダミー
データであることが分かる。また、最初の3バイトの同
期ワードが〔00 00 01〕であって、第4バイト
目が〔AF〕以外であれば、それが画像データとして有
効なマクロブロックであることを示している。
In the converted MPEG ES, if the start code is [00 00 01 AF], the first 3
The byte synchronization word indicates that it is a macro block, and the fourth byte indicates that it is dummy data added during recording. If the first three bytes of the synchronization word are [00 00 01] and the fourth byte is other than [AF], this indicates that it is a valid macro block as image data.

【0153】図28の構成において、INVAL検出部
350は、コード〔00 00 01 AF〕を検出す
る回路である。VAL検出部351は、最初の3バイト
の同期ワードが〔00 00 01〕であって、第4バ
イト目が〔AF〕以外のコードであることを検出する回
路である。INVAL検出部350およびVAL検出部
351では、例えばパターンマッチングによってこれら
のコードを検出する。例えば、それぞれの回路におい
て、先ず同期ワード〔00 00 01〕を検出し、続
く第4バイト目のコードを検出する。INVAL検出部
350は、第4バイト目が〔AF〕であれば、そのクロ
ックにおいて”1”であって、それ以外ではそのクロッ
クにおいて”0”である、信号INVALを出力する。
VAL検出部351では、第4バイト目が〔AF〕以外
であればそのクロックにおいて”1”であって、〔A
F〕であればそのクロックにおいて”0”である信号V
ALを出力する。
In the configuration shown in FIG. 28, the INVAL detection section 350 is a circuit for detecting the code [00 00 01 AF]. The VAL detector 351 is a circuit that detects that the first three bytes of the synchronization word are [00 00 01] and the fourth byte is a code other than [AF]. The INVAL detector 350 and the VAL detector 351 detect these codes by, for example, pattern matching. For example, in each circuit, first, a synchronization word [00 00 01] is detected, and a code of a subsequent fourth byte is detected. If the fourth byte is [AF], the INVAL detection unit 350 outputs a signal INVAL that is “1” at that clock and “0” at that clock otherwise.
In the VAL detection unit 351, if the fourth byte is other than [AF], it is "1" at that clock and [A
F], the signal V which is “0” at that clock
Output AL.

【0154】例えば、図29Aに示されるように、変換
MPEG ESが入力される場合を考える。4バイトの
パターンが〔00 00 01 B3〕のシーケンスヘ
ッダコードが供給されると、3ワードの同期ワード〔0
0 00 01〕がINVAL検出部350およびVA
L検出部351で検出され、次の第4バイト目が待たれ
る。続く第4バイト目は、〔B3〕なので、VAL検出
部351からは、図29Cに示されるように”1”が出
力され、INVAL検出部350からは”0”が出力さ
れる(図29B)。
For example, as shown in FIG. 29A, consider a case where a converted MPEG ES is input. When a sequence header code having a 4-byte pattern of [00 00 01 B3] is supplied, a 3-word synchronization word [0
0 00 01] is INVAL detector 350 and VA
The L byte is detected by the L detector 351 and the next fourth byte is awaited. Since the subsequent fourth byte is [B3], “1” is output from the VAL detector 351 as shown in FIG. 29C, and “0” is output from the INVAL detector 350 (FIG. 29B). .

【0155】このようにして、VAL検出部351で
は、同期ワード〔00 00 01〕を検出し、第4バ
イト目に〔AF〕以外のパターンが検出されると、図2
9Cのように”1”を出力する。第4バイト目のパター
ンが〔AF〕であれば、”0”を出力する。
As described above, the VAL detector 351 detects the synchronization word [00 00 01], and when a pattern other than [AF] is detected in the fourth byte, the VAL detector 351 detects the synchronization word [00 00 01].
"1" is output as in 9C. If the pattern of the fourth byte is [AF], "0" is output.

【0156】一方、INVAL検出部351では、同期
ワード〔00 0001〕を検出し、第4バイト目にパ
ターン〔AF〕が検出されると、図29Bのように”
1”を出力する。第4バイト目が〔AF〕以外であれ
ば、”0”を出力する。
On the other hand, the INVAL detector 351 detects the synchronization word [00 0001], and when the pattern [AF] is detected in the fourth byte, as shown in FIG.
If the fourth byte is other than [AF], "0" is output.

【0157】信号INVALおよび信号VALは、それ
ぞれRS−フリップフロップ(RS−FF)353のS
端子およびR端子に供給される。RS−FF353は、
S端子に入力された信号INVALの立ち下がりで”
1”となり、R端子に入力された信号VALの立ち下が
りでリセットされる信号OFFを生成する。信号OFF
は、図29Dに示されるように、ダミーデータが挿入さ
れている期間は”1”となり、それ以外の期間では”
0”となる信号である。信号OFFは、”1”で開状態
に制御され、”0”で閉状態に制御されるスイッチ回路
354に、制御信号として供給される。
The signal INVAL and the signal VAL are respectively connected to the RS-flip-flop (RS-FF)
Terminal and the R terminal. RS-FF 353 is
When the signal INVAL input to the S terminal falls,
1 "to generate a signal OFF that is reset at the falling edge of the signal VAL input to the R terminal.
Is "1" during the period when dummy data is inserted as shown in FIG. 29D, and "1" during other periods.
This signal is 0. The signal OFF is supplied as a control signal to a switch circuit 354 that is controlled to be open at “1” and closed at “0”.

【0158】D−FF352の出力がスイッチ回路35
4に供給される。D−FF352は、上述したように4
段のD−FF352A、352B、352Cおよび35
2Dからなり、図29Eに示されるように、、入力され
た変換MPEG ESを4クロック分、遅延させて出力
する。そのため、〔00 00 01〕に続く〔AF〕
を検出されて”1”となる信号OFFの立ち上がりと、
D−FF352から出力される変換MPEG ESの、
挿入されたダミーデータのスタートコードの先頭とのタ
イミングが合わせられる。したがって、スイッチ回路3
54において変換MPEG ESに挿入されたダミーデ
ータがゲートされ、スイッチ回路354からは、ダミー
データが削除された変換MPEG ESが出力される。
The output of the D-FF 352 is
4 is supplied. The D-FF 352, as described above,
Stage D-FFs 352A, 352B, 352C and 35
As shown in FIG. 29E, the input converted MPEG ES is output with a delay of 4 clocks. Therefore, [AF] following [00 00 01]
Is detected and becomes “1”, and the rising of the signal OFF,
Of the converted MPEG ES output from the D-FF 352,
The timing of the inserted dummy data is synchronized with the start of the start code. Therefore, the switch circuit 3
At 54, the dummy data inserted into the converted MPEG ES is gated, and the switch circuit 354 outputs the converted MPEG ES from which the dummy data has been deleted.

【0159】スイッチ回路354から出力された、記録
時に挿入されたダミーデータが削除された変換MPEG
ESは、再生側MFC114に内蔵されるストリーム
コンバータでDCT係数が並べ替えられ、MPEG E
Sとされて出力される。
A converted MPEG output from the switch circuit 354, in which dummy data inserted at the time of recording has been deleted.
In the ES, the DCT coefficients are rearranged by a stream converter built in the reproduction side MFC 114, and the MPEG E
It is output as S.

【0160】なお、上述の説明でも分かるように、記録
時のダミーデータの挿入は、シーケンスヘッダコードを
検出し、シーケンスヘッダコードの後に出現するhor
izontal size valueおよびvert
ical size valueに基づき行っているの
で、画枠サイズがシーケンス単位でダイナミックに変動
する場合でも対応できる。
As can be seen from the above description, the insertion of dummy data at the time of recording detects a sequence header code and inserts hor appearing after the sequence header code.
zonal size value and vert
Since the process is performed based on the ical size value, it is possible to cope with a case where the image frame size dynamically changes in units of a sequence.

【0161】また、上述では、この発明が、記録媒体と
して磁気テープを用い、ディジタルビデオ信号の記録お
よび再生を行う記録再生装置に適用されるように説明し
たが、これはこの例に限定されない。すなわち、この発
明は、マクロブロックと、セクタなどのデータ記録領域
との対応を1対1にするように要求される場合に、適用
可能である。例えば、記録媒体としてハードディスクな
どのディスク状記録媒体を用いる場合でも、シャトル再
生の際の再生画質を一定に保つ、データ管理などを容易
にする、などの理由から、マクロブロックと、セクタな
どのデータ記録領域との対応を1対1にすることは、有
用である。
In the above description, the present invention has been described as being applied to a recording / reproducing apparatus for recording and reproducing digital video signals using a magnetic tape as a recording medium. However, the present invention is not limited to this example. That is, the present invention is applicable when it is required that the correspondence between macroblocks and data recording areas such as sectors be one-to-one. For example, even when a disk-shaped recording medium such as a hard disk is used as a recording medium, macroblocks and data such as sectors are used for reasons such as maintaining a constant reproduction image quality during shuttle reproduction and facilitating data management. It is useful to make the correspondence with the recording area one-to-one.

【0162】さらに、上述では、この発明がMPEG2
の規格によるディジタルビデオ信号に対応するとして説
明したが、これはこの例に限定されず、例えばMPEG
4にも対応することができる。
Further, in the above description, the present invention relates to MPEG2
However, the present invention is not limited to this example.
4 can be supported.

【0163】[0163]

【発明の効果】以上説明したように、この発明によれ
ば、記録時に、記録するデータストリームの画枠サイズ
情報を検出し、検出された画枠サイズに基づき本来の画
枠サイズに対して足りない部分にダミーデータを挿入す
るようにしている。そのため、ダイナミックに変化する
画枠を持つ一連の画像を記録することができるという効
果がある。
As described above, according to the present invention, at the time of recording, the image frame size information of the data stream to be recorded is detected, and based on the detected image frame size, the image frame size is sufficient. Dummy data is inserted in the missing part. Therefore, there is an effect that a series of images having a dynamically changing image frame can be recorded.

【0164】さらに、この発明を用いることで、マクロ
ブロックと記録媒体上のセクタなどの記録領域とが1対
1で対応付けられるので、画像データ管理が容易にな
る、シャトル再生の際の画質が安定する、などの効果が
ある。
Furthermore, by using the present invention, macroblocks and recording areas such as sectors on a recording medium are associated one-to-one, so that image data management becomes easy. There are effects such as stabilization.

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

【図1】MPEG2のデータの階層構造を概略的に示す
略線図である。
FIG. 1 is a schematic diagram schematically showing a hierarchical structure of MPEG2 data.

【図2】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 2 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図3】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 3 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図4】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 4 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図5】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 5 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図6】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 6 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図7】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 7 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図8】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 8 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図9】MPEG2のストリーム中に配されるデータの
内容とビット割り当てを示す略線図である。
FIG. 9 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図10】MPEG2のストリーム中に配されるデータ
の内容とビット割り当てを示す略線図である。
FIG. 10 is a schematic diagram illustrating the contents and bit allocation of data arranged in an MPEG2 stream.

【図11】MPEG2のストリーム中に配されるデータ
の内容とビット割り当てを示す略線図である。
FIG. 11 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図12】MPEG2のストリーム中に配されるデータ
の内容とビット割り当てを示す略線図である。
FIG. 12 is a schematic diagram showing the contents and bit allocation of data arranged in an MPEG2 stream.

【図13】データのバイト単位の整列を説明するための
図である。
FIG. 13 is a diagram illustrating alignment of data in byte units.

【図14】一実施形態におけるMPEGストリームのヘ
ッダを具体的に示す略線図である。
FIG. 14 is a schematic diagram specifically illustrating an MPEG stream header according to an embodiment.

【図15】一実施形態による記録再生装置の記録側の構
成の一例を示すブロック図である。
FIG. 15 is a block diagram illustrating an example of a configuration on a recording side of the recording / reproducing apparatus according to the embodiment.

【図16】磁気テープ上に形成されるトラックフォーマ
ットの一例を示す略線図である。
FIG. 16 is a schematic diagram illustrating an example of a track format formed on a magnetic tape.

【図17】ビデオエンコーダの出力の方法と可変長符号
化を説明するための略線図である。
FIG. 17 is a schematic diagram illustrating an output method of a video encoder and variable-length encoding.

【図18】ビデオエンコーダの出力の順序の並び替えを
説明するための略線図である。
FIG. 18 is a schematic diagram for explaining rearrangement of an output order of a video encoder.

【図19】順序の並び替えられたデータをシンクブロッ
クにパッキングする処理を説明するための略線図であ
る。
FIG. 19 is a schematic diagram for explaining a process of packing data whose order is rearranged into a sync block.

【図20】ECCエンコーダのより具体的な構成を示す
ブロック図である。
FIG. 20 is a block diagram showing a more specific configuration of the ECC encoder.

【図21】メインメモリのアドレス構成の一例を示す略
線図である。
FIG. 21 is a schematic diagram illustrating an example of an address configuration of a main memory.

【図22】入力されたMPEG ESにダミーデータを
付加するための一例の構成を示すブロック図である。
FIG. 22 is a block diagram illustrating an example of a configuration for adding dummy data to input MPEG ES.

【図23】入力されたMPEG ESにダミーデータを
付加する処理を説明するための一例のタイムチャートで
ある。
FIG. 23 is a time chart illustrating an example of a process for adding dummy data to an input MPEG ES.

【図24】MPEG ESを概略的に示す略線図であ
る。
FIG. 24 is a schematic diagram schematically showing MPEG ES.

【図25】入力されたMPEG ESにダミーデータを
付加する処理を説明するための一例のタイムチャートで
ある。
FIG. 25 is a time chart illustrating an example of a process for adding dummy data to input MPEG ES.

【図26】ダミーデータの一例の構造を示す略線図であ
る。
FIG. 26 is a schematic diagram illustrating a structure of an example of dummy data;

【図27】マクロブロックの一例の構造を示す略線図で
ある。
FIG. 27 is a schematic diagram illustrating a structure of an example of a macro block.

【図28】記録時に付加されたダミーデータを検出し削
除するための一例の構成を示すブロック図である。
FIG. 28 is a block diagram showing an example of a configuration for detecting and deleting dummy data added at the time of recording.

【図29】記録時に付加されたダミーデータを検出し削
除する処理を説明するための一例のタイミングチャート
である。
FIG. 29 is a timing chart illustrating an example of a process for detecting and deleting dummy data added during recording.

【図30】1画面を構成するシンクブロック数を固定と
し、且つ、シンクブロックと上述したマクロブロックと
を1対1に対応させて、ビデオ信号の磁気テープ上への
記録を行うことを説明するための略線図である。
FIG. 30 illustrates recording of a video signal on a magnetic tape by fixing the number of sync blocks forming one screen and making the sync blocks correspond to the macroblocks on a one-to-one basis. FIG.

【図31】設定された画枠サイズよりも小さな画枠サイ
ズが入力されたときの、ビデオ信号の磁気テープへの記
録を説明するための略線図である。
FIG. 31 is a schematic diagram illustrating recording of a video signal on a magnetic tape when an image frame size smaller than a set image frame size is input.

【図32】MPEG2のビットストリーム中の画枠サイ
ズ情報が格納される位置を示す略線図である。
FIG. 32 is a schematic diagram illustrating positions where image frame size information in an MPEG2 bit stream is stored.

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

1・・・シーケンスヘッダコード、2・・・シーケンス
ヘッダ、3・・・シーケンス拡張、4・・・拡張および
ユーザデータ、5・・・GOPスタートコード、6・・
・GOPヘッダ、7・・・ユーザデータ、8・・・ピク
チャスタートコード、9・・・ピクチャヘッダ、10・
・・ピクチャ符号化拡張、11・・・拡張およびユーザ
データ、12・・・スライススタートコード、13・・
・スライスヘッダ、14・・・マクロブロックヘッダ、
101・・・SDI受信部、102・・・MPEGエン
コーダ、106・・・記録側マルチフォーマットコンバ
ータ(MFC)、108・・・SDTI受信部、109
・・・ECCエンコーダ、112・・・磁気テープ、1
13・・・ECCデコーダ、114・・・再生側MF
C、115・・・SDTI出力部、116・・・MPE
Gデコーダ、118・・・SDI出力部、137a,1
37c・・・パッキング部、137b・・・ビデオシャ
フリング部、139・・・外符号エンコーダ、140・
・・ビデオシャフリング、149・・・内符号エンコー
ダ、300・・・フレーム検出部、302・・・H/V
検出部、304・・・ダミー生成部
1 ... sequence header code, 2 ... sequence header, 3 ... sequence extension, 4 ... extension and user data, 5 ... GOP start code, 6 ...
GOP header, 7: user data, 8: picture start code, 9: picture header, 10
..Picture coding extension, 11 ... extension and user data, 12 ... slice start code, 13 ...
・ Slice header, 14 ... macroblock header,
101: SDI receiver, 102: MPEG encoder, 106: Multi-format converter (MFC) on recording side, 108: SDTI receiver, 109
... ECC encoder, 112 ... Magnetic tape, 1
13: ECC decoder, 114: reproduction side MF
C, 115: SDTI output unit, 116: MPE
G decoder, 118... SDI output unit, 137a, 1
37c: packing part, 137b: video shuffling part, 139: outer code encoder, 140
..Video shuffling, 149... Inner code encoder, 300... Frame detector, 302... H / V
Detector, 304 ... Dummy generator

フロントページの続き (72)発明者 藤堂 晋 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 杉山 晃 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5C053 FA22 GB01 GB06 GB07 GB08 GB11 GB15 GB18 GB22 GB26 GB30 GB38 HA21 JA22 KA01 KA05 5D044 AB05 AB07 BC01 CC03 DE03 DE12 DE83 EF03 FG10 FG24 GK07 HL04 JJ07 Continued on the front page (72) Inventor Susumu Todo 6-7-35 Kita-Shinagawa, Shinagawa-ku, Tokyo Inside Sony Corporation (72) Inventor Akira Sugiyama 6-35-35 Kita-Shinagawa, Shinagawa-ku, Tokyo Sony Corporation In-house F-term (reference) 5C053 FA22 GB01 GB06 GB07 GB08 GB11 GB15 GB18 GB22 GB26 GB30 GB38 HA21 JA22 KA01 KA05 5D044 AB05 AB07 BC01 CC03 DE03 DE12 DE83 EF03 FG10 FG24 GK07 HL04 JJ07

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 1画面に対応するブロック数が固定的に
設定され、ディジタルビデオデータをブロック単位で記
録媒体に記録する記録装置において、 入力されたディジタルビデオデータの画枠サイズを検出
し、検出された上記画枠サイズと設定された画枠サイズ
との差に対応して、無効であることを示すデータを上記
入力されたディジタルビデオデータに付加して記録する
ようにしたことを特徴とする記録装置。
1. A recording apparatus in which the number of blocks corresponding to one screen is fixedly set, and in which a digital video data is recorded on a recording medium in block units, an image frame size of the input digital video data is detected. In response to the difference between the set image frame size and the set image frame size, data indicating invalidity is added to the input digital video data and recorded. Recording device.
【請求項2】 請求項1に記載の記録装置において、 上記無効であることを示すデータは、識別子が通常用い
られない値とされたブロックであることを特徴とする記
録装置。
2. The recording apparatus according to claim 1, wherein the data indicating the invalidity is a block whose identifier has a value that is not normally used.
【請求項3】 1画面に対応するブロック数が固定的に
設定され、ディジタルビデオデータをブロック単位で記
録媒体に記録する記録方法において、 入力されたディジタルビデオデータの画枠サイズを検出
し、検出された上記画枠サイズと設定された画枠サイズ
との差に対応して、無効であることを示すデータを上記
入力されたディジタルビデオデータに付加して記録する
ようにしたことを特徴とする記録方法。
3. A recording method in which the number of blocks corresponding to one screen is fixedly set, and in a recording method for recording digital video data on a recording medium in block units, an image frame size of the inputted digital video data is detected and detected. In response to the difference between the set image frame size and the set image frame size, data indicating invalidity is added to the input digital video data and recorded. Recording method.
【請求項4】 1画面に対応するブロック数が固定的に
設定され、ブロック単位で記録媒体に記録されたディジ
タルビデオデータを再生する再生装置において、 記録媒体からブロック単位でデータを再生する再生手段
と、 上記再生手段によって再生された上記データから、無効
であることを示すデータが付加されたブロックを検出
し、上記無効であることを示すデータが付加された上記
ブロックを出力しないように制御する出力制御手段とを
有することを特徴とする再生装置。
4. A reproducing apparatus in which the number of blocks corresponding to one screen is fixedly set and which reproduces digital video data recorded on a recording medium in block units, reproducing means for reproducing data in block units from the recording medium. Detecting, from the data reproduced by the reproducing means, a block to which data indicating invalid is added, and controlling not to output the block to which data indicating invalid is added. A playback device comprising output control means.
【請求項5】 請求項4に記載の再生装置において、 上記無効であることを示すデータは、識別子が通常用い
られない値とされたブロックであることを特徴とする再
生装置。
5. The reproducing apparatus according to claim 4, wherein the data indicating invalidity is a block whose identifier has a value that is not normally used.
【請求項6】 1画面に対応するブロック数が固定的に
設定され、ブロック単位で記録媒体に記録されたディジ
タルビデオデータを再生する再生方法において、 記録媒体からブロック単位でデータを再生する再生のス
テップと、 上記再生のステップによって再生された上記データか
ら、無効であることを示すデータが付加されたブロック
を検出し、上記無効であることを示すデータが付加され
た上記ブロックを出力しないように制御する出力制御の
ステップとを有することを特徴とする再生方法。
6. A reproducing method in which the number of blocks corresponding to one screen is fixedly set, and digital video data recorded on a recording medium is reproduced in block units. Detecting, from the data reproduced in the reproducing step, a block to which data indicating invalid is added, and not outputting the block to which data indicating invalid is added. And a step of controlling output.
JP34544199A 1999-12-03 1999-12-03 Recorder and recording method, and reproducing device and reproducing method Pending JP2001169243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34544199A JP2001169243A (en) 1999-12-03 1999-12-03 Recorder and recording method, and reproducing device and reproducing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34544199A JP2001169243A (en) 1999-12-03 1999-12-03 Recorder and recording method, and reproducing device and reproducing method

Publications (1)

Publication Number Publication Date
JP2001169243A true JP2001169243A (en) 2001-06-22

Family

ID=18376623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34544199A Pending JP2001169243A (en) 1999-12-03 1999-12-03 Recorder and recording method, and reproducing device and reproducing method

Country Status (1)

Country Link
JP (1) JP2001169243A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004051650A1 (en) * 2002-11-29 2004-06-17 Fujitsu Limited Data recording and reproducing device, and data recording and reproducing method
JP2011205665A (en) * 2002-01-22 2011-10-13 Microsoft Corp Method and system for start code emulation prevention and data stuffing
US10271069B2 (en) 2016-08-31 2019-04-23 Microsoft Technology Licensing, Llc Selective use of start code emulation prevention

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011205665A (en) * 2002-01-22 2011-10-13 Microsoft Corp Method and system for start code emulation prevention and data stuffing
WO2004051650A1 (en) * 2002-11-29 2004-06-17 Fujitsu Limited Data recording and reproducing device, and data recording and reproducing method
US7430702B2 (en) 2002-11-29 2008-09-30 Fujitsu Limited Data recording/reproducing apparatus and data recording/reproducing method
US10271069B2 (en) 2016-08-31 2019-04-23 Microsoft Technology Licensing, Llc Selective use of start code emulation prevention

Similar Documents

Publication Publication Date Title
KR100654072B1 (en) Data recording apparatus, data recording method, data recording and reproducing apparatus, data recording and reproducing method, data reproducing apparatus, data reproducing method, data record medium, digital data reproducing apparatus, digital data reproducing method, synchronization detecting apparatus, and synchronization detecting method
JP4010066B2 (en) Image data recording apparatus and recording method, and image data recording / reproducing apparatus and recording / reproducing method
JP3921841B2 (en) Signal processing apparatus and method, and recording apparatus, reproducing apparatus, and recording / reproducing apparatus
JP4182641B2 (en) Data processing apparatus and method, and recording apparatus and method
WO2001058171A1 (en) Recording device and method, and reproducing device and method
JP2000138897A (en) Data processor and data recorder
JP2002204450A (en) Data processing unit and method
KR100739262B1 (en) Recording apparatus and method, and reproducing apparatus and method
JP2001169251A (en) Recording device and method, and reproducing device and method
JP2002142192A (en) Apparatus and method for signal processing and for recording
JP2000324448A (en) Data recording device, data recording/reproducing device, data recording method and data recording/reproducing method
JP2003061046A (en) Signal-processing unit and method, recording/reproducing device and method, and reproducing device and method
KR100681992B1 (en) Recording apparatus and method
JP2001169243A (en) Recorder and recording method, and reproducing device and reproducing method
JP2001155437A (en) Device and method for recording
JP4038949B2 (en) Playback apparatus and method
JP4051782B2 (en) Data processing apparatus and method, and data reproducing apparatus
JP2000149455A (en) Data recorder and recording method, data recording and reproducing device and recording and reproducing method, and data recording medium
JP4010067B2 (en) Synchronization detecting device and method, and reproducing device
JP4432284B2 (en) Recording apparatus and method
JP2000132914A (en) Data processor and data recorder
JP3978903B2 (en) Data recording apparatus, data recording method, data processing apparatus, and data processing method
JP2001218162A (en) Recording device and method
JP2000123485A (en) Recording device and method
JP2000293435A (en) Device and method for reproducing data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070403

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070410

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070521

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070619