JP2001169278A - Device and method for generating stream, device and method for transmitting stream, device and method for coding and recording medium - Google Patents
Device and method for generating stream, device and method for transmitting stream, device and method for coding and recording mediumInfo
- Publication number
- JP2001169278A JP2001169278A JP34633099A JP34633099A JP2001169278A JP 2001169278 A JP2001169278 A JP 2001169278A JP 34633099 A JP34633099 A JP 34633099A JP 34633099 A JP34633099 A JP 34633099A JP 2001169278 A JP2001169278 A JP 2001169278A
- Authority
- JP
- Japan
- Prior art keywords
- data
- stream
- picture
- encoding
- history
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 227
- 238000012545 processing Methods 0.000 claims abstract description 70
- 230000008569 process Effects 0.000 claims description 207
- 238000001514 detection method Methods 0.000 claims description 66
- 230000015556 catabolic process Effects 0.000 abstract description 4
- 238000006731 degradation reaction Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 211
- 239000013598 vector Substances 0.000 description 207
- 238000013139 quantization Methods 0.000 description 132
- 239000011159 matrix material Substances 0.000 description 72
- 230000005540 biological transmission Effects 0.000 description 56
- 230000000875 corresponding effect Effects 0.000 description 55
- 238000010586 diagram Methods 0.000 description 51
- OKZYCXHTTZZYSK-ZCFIWIBFSA-N (R)-5-phosphomevalonic acid Chemical compound OC(=O)C[C@@](O)(C)CCOP(O)(O)=O OKZYCXHTTZZYSK-ZCFIWIBFSA-N 0.000 description 19
- 230000001360 synchronised effect Effects 0.000 description 17
- 230000002457 bidirectional effect Effects 0.000 description 16
- 238000000926 separation method Methods 0.000 description 15
- 238000006243 chemical reaction Methods 0.000 description 14
- 239000000284 extract Substances 0.000 description 13
- 230000008859 change Effects 0.000 description 8
- 230000006866 deterioration Effects 0.000 description 6
- 230000009977 dual effect Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 230000001276 controlling effect Effects 0.000 description 4
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 4
- HAAITRDZHUANGT-UHFFFAOYSA-N 1-[2-[(7-chloro-1-benzothiophen-3-yl)methoxy]-2-(2,4-dichlorophenyl)ethyl]imidazole;nitric acid Chemical compound O[N+]([O-])=O.ClC1=CC(Cl)=CC=C1C(OCC=1C2=CC=CC(Cl)=C2SC=1)CN1C=NC=C1 HAAITRDZHUANGT-UHFFFAOYSA-N 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- 239000003550 marker Substances 0.000 description 3
- OXNIZHLAWKMVMX-UHFFFAOYSA-N picric acid Chemical compound OC1=C([N+]([O-])=O)C=C([N+]([O-])=O)C=C1[N+]([O-])=O OXNIZHLAWKMVMX-UHFFFAOYSA-N 0.000 description 3
- 230000002441 reversible effect Effects 0.000 description 3
- 230000002123 temporal effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 239000002131 composite material Substances 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000001343 mnemonic effect Effects 0.000 description 2
- 102100033029 Carbonic anhydrase-related protein 11 Human genes 0.000 description 1
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 101000867841 Homo sapiens Carbonic anhydrase-related protein 11 Proteins 0.000 description 1
- 101001075218 Homo sapiens Gastrokine-1 Proteins 0.000 description 1
- 101100495835 Oryza sativa subsp. japonica Cht1 gene Proteins 0.000 description 1
- 241001674048 Phthiraptera Species 0.000 description 1
- 241001080526 Vertica Species 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000001771 impaired effect Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 150000002500 ions Chemical class 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Television Signal Processing For Recording (AREA)
- Television Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ストリーム生成装
置および方法、ストリーム伝送装置および方法、符号化
装置および方法、並びに記録媒体に関し、特に、MPEG規
格に基づいて符号化された符号化ビットストリームのGO
P(Group of Pictures)の構造を変更したり、符号化ビ
ットストリームのビットレートを変更するためのトラン
スコーディング装置に用いて好適なストリーム生成装置
および方法、ストリーム伝送装置および方法、符号化装
置および方法、並びに記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stream generation apparatus and method, a stream transmission apparatus and method, an encoding apparatus and method, and a recording medium, and more particularly, to a coded bit stream encoded based on the MPEG standard. GO
Stream generating apparatus and method, stream transmitting apparatus and method, encoding apparatus and method suitable for use in transcoding apparatus for changing the structure of P (Group of Pictures) or changing the bit rate of an encoded bit stream And a recording medium.
【0002】[0002]
【従来の技術】近年、テレビジョンプログラムを制作及
び放送する放送局においては、ビデオデータを圧縮/符
号化処理するために、MPEG(Moving Picture Experts G
roup)技術が一般的に使われるようになってきた。特
に、ビデオデータをテープなどのランダムアクセス可能
な記録媒体素材に記録する場合、及びビデオデータをケ
ーブルや衛星を介して伝送する場合には、このMPEG技術
がデファクトスタンダードになりつつある。2. Description of the Related Art In recent years, a broadcasting station that produces and broadcasts a television program uses a moving picture expert (MPEG) to compress / encode video data.
roup) technology has become popular. In particular, when video data is recorded on a recording medium material that can be randomly accessed such as a tape, and when video data is transmitted via a cable or a satellite, the MPEG technology is becoming a de facto standard.
【0003】放送局において制作されたビデオプログラ
ムが各家庭に伝送されるまでの放送局における処理の一
例を簡単に説明する。まず、ビデオカメラとVTR(Video
Tape Recorder)が一体となったカムコーダに設けら
れたエンコーダによって、ソースビデオデータをエンコ
ード処理して磁気テープ上に記録する。この際、カムコ
ーダのエンコーダは、VTRのテープの記録フォーマット
に適するように、ソースビデオデータを符号化する。た
とえば、この磁気テープ上に記録されるMPEGビットスト
リームのGOP構造は、2フレームから1GOPが構成される
構造(たとえば、I,B,I,B,I,B,・・・・・・)と
される。また磁気テープ上に記録されているMPEGビット
ストリームのビットレートは、18Mbpsである。[0003] An example of processing in a broadcasting station until a video program produced in the broadcasting station is transmitted to each home will be briefly described. First, a video camera and VTR (Video
The source video data is encoded and recorded on a magnetic tape by an encoder provided in a camcorder integrated with a tape recorder. At this time, the encoder of the camcorder encodes the source video data so as to be suitable for the recording format of the VTR tape. For example, the GOP structure of an MPEG bit stream recorded on the magnetic tape is a structure in which one GOP is composed of two frames (for example, I, B, I, B, I, B,...). Is done. The bit rate of the MPEG bit stream recorded on the magnetic tape is 18 Mbps.
【0004】次に、メイン放送局において、この磁気テ
ープ上に記録されたビデオビットストリームを編集する
編集処理を行う。そのために、磁気テープ上に記録され
たビデオビットストリームのGOP構造を、編集処理に適
したGOP構造に変換する。編集処理に適したGOP構造と
は、1GOPが1フレームから構成され、すべてのピクチ
ャがIピクチャであるGOP構造である。なぜなら、フレ
ーム単位で編集を行うためには、他のピクチャと相関の
ないIピクチャがもっとも適しているからである。実際
のオペレーションとしては、磁気テープ上に記録された
ビデオストリームを一旦デコードしてベースバンドのビ
デオデータに戻す。そして、そのベースバンドのビデオ
信号を、すべてのピクチャがIピクチャとなるように再
エンコードする。このようにデコード処理及び再エンコ
ード処理を行うことによって、編集処理に適したGOP構
造を有したビットストリームを生成することができる。Next, the main broadcast station performs an editing process for editing the video bit stream recorded on the magnetic tape. For this purpose, the GOP structure of the video bit stream recorded on the magnetic tape is converted into a GOP structure suitable for editing processing. The GOP structure suitable for the editing process is a GOP structure in which one GOP is composed of one frame and all pictures are I pictures. This is because an I-picture that is not correlated with other pictures is most suitable for editing on a frame basis. As an actual operation, a video stream recorded on a magnetic tape is temporarily decoded and returned to baseband video data. Then, the baseband video signal is re-encoded so that all pictures become I pictures. By performing the decoding process and the re-encoding process in this manner, a bit stream having a GOP structure suitable for the editing process can be generated.
【0005】次に、上述した編集処理によって生成され
た編集ビデオプログラムを、メイン局から地方局に伝送
するために、編集ビデオプログラムのビットストリーム
を、伝送処理に適したGOP構造及びビットレートに変換
する。放送局間の伝送に適したGOP構造とは、たとえ
ば、1GOPが15フレームから構成されているGOP構造
(たとえば、I,B,B,P,B,B,P・…)であ
る。また、放送局間の伝送に適したビットレートは、一
般的に放送局間においては、光ファイバなどの高伝送容
量を有した専用線が設けらているので、50Mbps以上の
ハイビットレートであることが望ましい。具体的には、
編集処理されたビデオプログラムのビットストリームを
一旦デコードしてベースバンドのビデオデータに戻す。
そして、そのベースバンドのビデオデータを上述した放
送局間の伝送に適したGOP構造及びビットレートを有す
るように再エンコードする。Next, in order to transmit the edited video program generated by the above-described editing process from the main station to the local station, the bit stream of the edited video program is converted into a GOP structure and a bit rate suitable for the transmission process. I do. The GOP structure suitable for transmission between broadcast stations is, for example, a GOP structure in which one GOP is composed of 15 frames (for example, I, B, B, P, B, B, P...). In addition, the bit rate suitable for transmission between broadcasting stations should be a high bit rate of 50 Mbps or more because dedicated lines with high transmission capacity such as optical fibers are generally provided between broadcasting stations. Is desirable. In particular,
The bit stream of the edited video program is temporarily decoded and returned to baseband video data.
Then, the baseband video data is re-encoded so as to have a GOP structure and a bit rate suitable for the above-described transmission between broadcast stations.
【0006】地方局においては、メイン局から伝送され
てきたビデオプログラムの中に、地方特有のコマーシャ
ルを挿入するために編集処理が行われる。つまり、上述
した編集処理と同じように、メイン局から伝送されてき
たビデオストリームを一旦デコードしてベースバンドの
ビデオデータに戻す。そして、そのベースバンドのビデ
オ信号を、すべてのピクチャがIピクチャとなるように
再エンコードすることによって、編集処理に適したGOP
構造を有したビットストリームを生成することができ
る。[0006] In the local station, an editing process is performed to insert a local-specific commercial into a video program transmitted from the main station. That is, similarly to the above-described editing processing, the video stream transmitted from the main station is temporarily decoded and returned to the baseband video data. Then, by re-encoding the baseband video signal so that all pictures become I pictures, a GOP suitable for editing processing is obtained.
A bit stream having a structure can be generated.
【0007】続いて、この地方局において編集処理が行
われたビデオプログラムを各家庭に、ケーブルや衛星を
介して伝送するために、この伝送処理に適したGOP構造
及びビットレートに変換する。たとえば、各家庭に伝送
するための伝送処理に適したGOP構造とは、1GOPが15
フレームから構成されるGOP構造(たとえば、I,B,
B,P,B,B,P・…)であって、各家庭に伝送する
ための伝送処理に適したビットレートは、5Mbps程度の
低ビットレートである。具体的には、編集処理されたビ
デオプログラムのビットストリームを一旦デコードして
ベースバンドのビデオデータに戻す。そして、そのベー
スバンドのビデオデータを上述した伝送処理に適したGO
P構造及びビットレートを有するように再エンコードす
る。Subsequently, the video program edited in the local station is converted into a GOP structure and a bit rate suitable for the transmission process in order to transmit the video program to each home via a cable or a satellite. For example, a GOP structure suitable for transmission processing for transmission to each home is such that one GOP is 15
GOP structure composed of frames (for example, I, B,
B, P, B, B, P...), And the bit rate suitable for transmission processing for transmission to each home is a low bit rate of about 5 Mbps. Specifically, the bit stream of the edited video program is once decoded and returned to baseband video data. Then, the baseband video data is transmitted to the GO
Re-encode to have P structure and bit rate.
【0008】このように、放送局から各家庭にビデオプ
ログラムが伝送される間に、複数回の復号処理、符号化
処理、および編集処理が繰り返されている。実際には、
放送局における処理は上述した信号処理以外にもさまざ
まな信号処理が必要であり、そのたびに復号処理及び符
号化処理を繰り返される。As described above, while the video program is transmitted from the broadcasting station to each home, the decoding, encoding, and editing processes are repeated a plurality of times. actually,
The processing at the broadcasting station requires various signal processings in addition to the signal processing described above, and each time the decoding processing and the encoding processing are repeated.
【0009】MPEG規格に基づく符号化処理及び復号処理
は、100%可逆の処理ではないことは良く知られてい
る。つまり、エンコードされる前のベースバンドのビデ
オデータと、デコードされた後のビデオデータは100
%同じでは無く、この符号化処理及び復号処理によって
画質が劣化している。つまり、上述したように、デコー
ド処理及びエンコード処理を繰り返すと、その処理の度
に、画質が劣化してしまうと言う問題があった。別の言
葉で表現すると、デコード/エンコード処理を繰り返す
毎に、画質の劣化が蓄積されてしまう。It is well known that the encoding process and the decoding process based on the MPEG standard are not 100% reversible processes. That is, the baseband video data before encoding and the video data after decoding are 100
%, The image quality is degraded by the encoding process and the decoding process. That is, as described above, if the decoding process and the encoding process are repeated, there is a problem that the image quality is deteriorated every time the process is performed. In other words, each time decoding / encoding processing is repeated, deterioration in image quality is accumulated.
【0010】そこで、デコード/エンコード処理に伴う
画質の劣化を防止するために、以前の符号化の処理で用
いられた符号化パラメータを画像と関連付けて伝送し
て、以前の符号化の処理で用いられた符号化パラメータ
を利用して符号化するシステムが利用されている。Therefore, in order to prevent the image quality from deteriorating due to the decoding / encoding process, the encoding parameters used in the previous encoding process are transmitted in association with the image and used in the previous encoding process. A system that performs encoding using the obtained encoding parameters is used.
【0011】[0011]
【発明が解決しようとする課題】しかしながら、画像の
削除または画像の挿入などの編集処理が行われた画像
を、以前の符号化の処理で用いられた符号化パラメータ
を利用して符号化しようとする場合、大きな画質劣化を
招くときがある。However, it is attempted to encode an image on which editing processing such as deletion of an image or insertion of an image has been performed by using the encoding parameters used in the previous encoding processing. In such a case, the image quality may be greatly deteriorated.
【0012】図1は、時間の経過とともに図1中の左側
から右側に向かって表示されるピクチャの例を示す。図
1中のBは、以前の符号化の処理においてBピクチャと
して符号化されたピクチャを示し、図1中のIは、以前
の符号化の処理においてIピクチャとして符号化された
ピクチャを示し、図1中のPは、以前の符号化の処理に
おいてPピクチャとして符号化されたピクチャを示す。FIG. 1 shows an example of a picture displayed from the left side to the right side in FIG. 1 over time. B in FIG. 1 indicates a picture encoded as a B picture in the previous encoding process, I in FIG. 1 indicates a picture encoded as an I picture in the previous encoding process, P in FIG. 1 indicates a picture coded as a P picture in the previous coding process.
【0013】例えば、図1(A)に示す図1(A)中の
左側の4つのピクチャに、図1(B)に示す図1(B)
中の右側の5つのピクチャがつなぎ合わされて、図1
(C)に示す新たな画像として生成されるように編集さ
れたとき、編集のつなぎ目の最後の画像(編集前に図1
(A)に含まれていた、図1(A)中左側から4枚目の
画像に対応する画像)が、以前の符号化においてBピク
チャである場合、その以前の符号化で用いられた符号化
パラメータを利用して符号化しようとするとき、編集さ
れる前とは異なるPピクチャを参照して符号化してしま
い、大きく画質が劣化してしまう。For example, four pictures on the left side in FIG. 1A shown in FIG. 1A are added to the four pictures shown in FIG.
The five pictures on the right in the middle are stitched together,
When the image is edited so as to be generated as a new image shown in FIG.
If the image included in (A) and corresponding to the fourth image from the left in FIG. 1A) is a B picture in the previous encoding, the code used in the previous encoding is used. When encoding is to be performed using the encoding parameter, encoding is performed by referring to a P picture different from that before editing, and the image quality is greatly deteriorated.
【0014】同様に、編集のつなぎ目の先頭の画像(編
集前に図1(B)に含まれていた、図1(B)中左側か
ら5枚目の画像に対応する画像)が、以前の符号化にお
いてBピクチャである場合、その以前の符号化で用いら
れた符号化パラメータを利用して符号化しようとすると
き、編集される前とは異なるIピクチャを参照して符号
化してしまい、大きく画質が劣化してしまう。Similarly, the first image at the joint of the editing (the image corresponding to the fifth image from the left side in FIG. 1B, which was included in FIG. 1B before editing) is replaced with the previous image. In the case of a B picture in encoding, when encoding is to be performed using the encoding parameters used in the previous encoding, the encoding is performed with reference to a different I picture than before editing, The image quality is greatly deteriorated.
【0015】また、このような編集が行われた場合、VB
V(Video Buffering Verifier) Bufferを基にした、ビッ
トストリームのレイトコントロールに矛盾が生じるの
で、オーバーフローまたはアンダーフローが生じるとき
がある。When such editing is performed, VB
Since the bit stream rate control based on the V (Video Buffering Verifier) Buffer is inconsistent, overflow or underflow may occur.
【0016】例えば、図2(A)が、以前の符号化の処
理において、図1(A)に示す画像を符号化する場合
の、VBV Bufferに格納されるデータの量を示し、図2
(B)が、以前の符号化の処理において、図1(B)に
示す画像を符号化する場合の、VBV Bufferに格納される
データの量を示すとき、図1(C)に示す画像を、以前
の符号化パラメータをそのまま利用して符号化すると、
図2(C)に示すように、VBV Bufferに格納されるデー
タは、オーバーフローしてしまう。For example, FIG. 2A shows the amount of data stored in the VBV Buffer when the image shown in FIG. 1A is encoded in the previous encoding process.
When (B) shows the amount of data stored in the VBV Buffer when encoding the image shown in FIG. 1B in the previous encoding process, the image shown in FIG. , Encoding using the previous encoding parameter as it is,
As shown in FIG. 2C, the data stored in the VBV Buffer overflows.
【0017】更に、フレームシンクロナイザにより、フ
レーム周期のずれを吸収するため、画像のフレームを間
引いたり、または同一のフレームを二回表示させた場合
にも、画像の時間的な連続性を壊すことになり、上述の
編集処理の場合と同様の問題が生じる。Further, the frame synchronizer absorbs the shift of the frame period, so that the temporal continuity of the image is broken even when the image frame is thinned out or the same frame is displayed twice. Therefore, the same problem as in the above-described editing process occurs.
【0018】MPEG2のビットストリームにおいて、入力
画像毎にカウントアップする、10bitのカウンタであるt
emporal_referenceがpicture_header()層に挿入されて
いるので、このtemporal_referenceを利用して、このよ
うな画像の不連続を検出することができる。T is a 10-bit counter that counts up for each input image in the MPEG2 bit stream.
Since the emporal_reference is inserted in the picture_header () layer, the discontinuity of such an image can be detected using the temporal_reference.
【0019】しかし、このtemporal_referenceは、grou
p_of_pictures_header()の後に、リセットしなければな
らない。group_of_pictures_header()は、周期について
特に規定はないが、通常、GOPの周期で挿入されてい
る。However, this temporal_reference is
It must be reset after p_of_pictures_header (). The group_of_pictures_header () has no particular definition for the cycle, but is usually inserted at the GOP cycle.
【0020】従って、1GOPが15フレームから構成さ
れるGOP構造を有する場合、temporal_referenceの周期
は15となり、この画像に上述のような編集処理がなさ
れても、temporal_referenceは連続してしまう可能性が
高いので、画像の不連続を検出できない可能性が高い。
1GOPが1フレームから構成されるGOP構造を有する場
合、temporal_referenceは、常に、0となるので、画像
の不連続は検出できない。Therefore, when one GOP has a GOP structure composed of 15 frames, the period of temporal_reference is 15, and even if this image is edited as described above, there is a high possibility that temporal_reference will be continuous. Therefore, there is a high possibility that discontinuity of an image cannot be detected.
When one GOP has a GOP structure composed of one frame, temporal_reference is always 0, so that discontinuity of an image cannot be detected.
【0021】本発明は、このような状況に鑑みてなされ
たものであり、MPEG規格に基づいて符号化された符号化
ビットストリームのGOP(Group of Pictures)の構造を
変更するために復号処理、符号化処理、および編集処理
を繰り返したとしても画質劣化の発生しないようにする
ものである。[0021] The present invention has been made in view of such a situation, and a decoding process for changing the structure of a GOP (Group of Pictures) of an encoded bit stream encoded based on the MPEG standard is performed. Even if the encoding process and the editing process are repeated, the image quality does not deteriorate.
【0022】[0022]
【課題を解決するための手段】請求項1に記載のストリ
ーム生成装置は、第1のストリームの過去の符号化処理
における符号化履歴を検出する第1の検出手段と、第1
のストリームの画像の不連続を検出する第2の検出手段
と、第1の検出手段の検出結果および第2の検出手段の
検出結果を利用して、第1のストリームを基に第2のス
トリームを生成する生成手段とを含むことを特徴とす
る。According to a first aspect of the present invention, there is provided a stream generation apparatus comprising: a first detection unit configured to detect an encoding history in a past encoding process of a first stream;
A second detecting means for detecting discontinuity of an image of the stream of the second stream, and a second stream based on the first stream by using a detection result of the first detecting means and a detection result of the second detecting means. And generating means for generating.
【0023】生成手段は、MPEG方式で符号化して、第2
のストリームを生成するようにすることができる。The generating means encodes the data by the MPEG method,
Can be generated.
【0024】ストリーム生成装置は、第2のストリーム
に対して、それまでの符号化処理における符号化履歴を
記述する第1の記述手段を更に設けることができる。[0024] The stream generating apparatus may further include first description means for describing the coding history in the coding process up to that time for the second stream.
【0025】第1の記述手段は、符号化履歴の情報を、
MPEG方式の第2のストリームのuser_dataとして記述す
るようにすることができる。The first description means writes the information of the encoding history into
It can be described as user_data of the second stream of the MPEG system.
【0026】ストリーム生成装置は、第2のストリーム
に対して、画像の連続を表す連続情報を記述する第2の
記述手段を更に設けることができる。[0026] The stream generating apparatus may further include second description means for describing continuity information indicating continuation of images for the second stream.
【0027】第2の記述手段は、画像の連続を表す連続
情報を、MPEG方式の第2のストリームのuser_dataとし
て記述するようにすることができる。[0027] The second description means can describe continuous information indicating a continuous image as user_data of a second stream of the MPEG system.
【0028】第2の記述手段は、アクセスユニット毎に
加算または減算により連続情報を生成して記述するよう
にすることができる。The second description means can generate and describe continuous information by addition or subtraction for each access unit.
【0029】第2の記述手段は、復号された画像信号の
輝度信号または色差信号の所定のビットのブランキング
部分に連続情報を記述するようにすることができる。The second description means can describe continuous information in a blanking portion of a predetermined bit of a luminance signal or a color difference signal of the decoded image signal.
【0030】第2の記述手段は、復号された画像信号の
ブランキング部分に連続情報を記述するようにすること
ができる。[0030] The second description means can describe continuous information in a blanking portion of the decoded image signal.
【0031】ストリーム生成装置は、連続情報をパケッ
ト化するようにすることができる。[0031] The stream generator can packetize the continuous information.
【0032】第2の記述手段は、復号された画像信号の
輝度信号または色差信号の所定のビットのブランキング
部分に多重化されている符号化履歴の情報に、連続情報
を多重化するようにすることができる。The second description means multiplexes the continuous information with the information of the coding history multiplexed on the blanking portion of the predetermined bit of the luminance signal or the color difference signal of the decoded image signal. can do.
【0033】第2の記述手段は、復号された画像信号の
ブランキング部分に多重化されている符号化履歴の情報
に、連続情報を多重化するようにすることができる。[0033] The second description means can multiplex the continuous information with the information of the coding history multiplexed on the blanking portion of the decoded image signal.
【0034】請求項13に記載のストリーム生成方法
は、第1のストリームの過去の符号化処理における符号
化履歴を検出する第1の検出ステップと、第1のストリ
ームの画像の不連続を検出する第2の検出ステップと、
第1の検出ステップの処理での検出結果および第2の検
出ステップの処理での検出結果を利用して、第1のスト
リームを基に第2のストリームを生成する生成ステップ
とを含むことを特徴とする。According to a thirteenth aspect of the present invention, in the stream generation method, a first detection step of detecting an encoding history in a past encoding process of the first stream, and a discontinuity of an image of the first stream are detected. A second detection step;
Generating a second stream based on the first stream using the detection result in the processing of the first detection step and the detection result in the processing of the second detection step. And
【0035】請求項14に記載の記録媒体のプログラム
は、第1のストリームの過去の符号化処理における符号
化履歴を検出する第1の検出ステップと、第1のストリ
ームの画像の不連続を検出する第2の検出ステップと、
第1の検出ステップの処理での検出結果および第2の検
出ステップの処理での検出結果を利用して、第1のスト
リームを基に第2のストリームを生成する生成ステップ
とを含むことを特徴とする。According to a fourteenth aspect of the present invention, there is provided a recording medium program comprising: a first detection step of detecting an encoding history in a past encoding process of a first stream; and a discontinuity of an image of the first stream. A second detection step of:
Generating a second stream based on the first stream using the detection result in the processing of the first detection step and the detection result in the processing of the second detection step. And
【0036】請求項1に記載のストリーム生成装置、請
求項13に記載のストリーム生成方法および請求項14
に記載の記録媒体においては、第1のストリームの過去
の符号化処理における符号化履歴が検出され、第1のス
トリームの画像の不連続が検出され、符号化履歴の検出
結果および画像の不連続の検出結果を利用して、第1の
ストリームを基に第2のストリームが生成される。[0036] A stream generating apparatus according to claim 1, a stream generating method according to claim 13, and a stream generating apparatus according to claim 13.
In the recording medium described in (1), the encoding history in the past encoding process of the first stream is detected, the discontinuity of the image of the first stream is detected, the detection result of the encoding history and the discontinuity of the image are detected. Is used to generate a second stream based on the first stream.
【0037】[0037]
【発明の実施の形態】以下に、本発明を適用したトラン
スコーディングシステムについて説明する。なお、本明
細書においてシステムの用語は、複数の装置、手段など
により構成される全体的な装置を意味するものである。DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a transcoding system to which the present invention is applied will be described. In this specification, the term “system” refers to an entire device including a plurality of devices and units.
【0038】図3及び図4は、本発明を適用したトラン
スコーディングシステム1の構成を示しており、図4
は、図3のさらに詳細な構成を示している。このトラン
スコーディングシステム1は、ビデオ復号システム11
に入力された符号化ビデオビットストリーム(encoded
video bit stream)のGOP構造及びビットレートを、オ
ペレータの所望するGOP構造及びビットレートに変換す
る。FIGS. 3 and 4 show the configuration of the transcoding system 1 to which the present invention is applied.
Shows a more detailed configuration of FIG. This transcoding system 1 includes a video decoding system 11
Encoded video bit stream (encoded
The GOP structure and bit rate of the video bit stream are converted to the GOP structure and bit rate desired by the operator.
【0039】トランスコーディングシステム1は、ビデ
オ復号システム11、ビデオ符号化システム12、VT
R(Video Tape Recorder)13、スイッチ14、およ
びスイッチ15から構成されている。The transcoding system 1 includes a video decoding system 11, a video encoding system 12, a VT
It comprises an R (Video Tape Recorder) 13, a switch 14, and a switch 15.
【0040】ビデオ復号システム11は、入力された符
号化ビデオビットストリームを基にベースバンドデジタ
ルビデオ信号を生成する。ビデオ符号化システム12
は、ベースバンドビデオ信号を基にオペレータの所望す
るGOP構造及びビットレートを有する符号化ビデオビッ
トストリームを出力する。The video decoding system 11 generates a baseband digital video signal based on the input coded video bit stream. Video coding system 12
Outputs an encoded video bit stream having a GOP structure and a bit rate desired by the operator based on the baseband video signal.
【0041】VTR13は、スイッチ14を介して供給
されたベースバンドデジタルビデオ信号を記録すると共
に、記録されているベースバンドデジタルビデオ信号を
スイッチ15を介してビデオ符号化システム12に供給
する。The VTR 13 records the baseband digital video signal supplied via the switch 14 and supplies the recorded baseband digital video signal to the video encoding system 12 via the switch 15.
【0042】スイッチ14は、ビデオ復号システム11
から出力されたベースバンドデジタルビデオ信号の供給
先をVTR13またはスイッチ15に切り換える。スイ
ッチ15は、ビデオ復号システム11から出力されるベ
ースバンドデジタルビデオ信号またはVTR13から出
力されるベースバンドデジタルビデオ信号のいずれかを
選択して、選択されたベースバンドデジタルビデオ信号
をビデオ符号化システム12に出力する。The switch 14 is connected to the video decoding system 11
Is switched to the VTR 13 or the switch 15 for supplying the baseband digital video signal output from the. The switch 15 selects either the baseband digital video signal output from the video decoding system 11 or the baseband digital video signal output from the VTR 13 and converts the selected baseband digital video signal into the video encoding system 12. Output to
【0043】このトランスコーディングシステム1の機
能を説明するために、図4には図示されていないが、こ
のトランスコーディングシステム1の前段に、このトラ
ンスコーディングシステム1とほぼ同様の機能を有した
3つのトランスコーディングシステムが接続されている
ものとする。つまり、ビットストリームのGOP構造及び
ビットレートをさまざまに変更するために、第1のトラ
ンスコーディングシステム、第2のトランスコーディン
グシステム、および第3のトランスコーディングシステ
ムが順に直列に接続され、その第3のトランスコーディ
ングシステムの後ろに、この図4に示された第4のトラ
ンスコーディングシステムが接続されているものとす
る。Although not shown in FIG. 4 to explain the function of the transcoding system 1, three stages having almost the same functions as the transcoding system 1 are provided before the transcoding system 1. It is assumed that a transcoding system is connected. That is, in order to variously change the GOP structure and bit rate of the bit stream, the first transcoding system, the second transcoding system, and the third transcoding system are sequentially connected in series, and the third transcoding system is connected in series. It is assumed that the fourth transcoding system shown in FIG. 4 is connected behind the transcoding system.
【0044】本発明の以下の説明において、この第1の
トランスコーディングシステムにおいて行われた符号化
処理を第1世代の符号化処理と定義し、第1のトランス
コーディングシステムの後ろに接続された第2のトラン
スコーディングシステムにおいて行われた符号化処理を
第2世代の符号化処理と定義し、第2のトランスコーデ
ィングシステムの後ろに接続された第3のトランスコー
ディングシステムにおいて行われた符号化処理を第3世
代の符号化処理と定義し、第3のトランスコーディング
システムの後ろに接続された第4のトランスコーディン
グシステム(図4に示されたトランスコーディングシス
テム1)において行われる符号化処理を第4世代の符号
化処理または現在の符号化処理と定義することにする。In the following description of the present invention, the encoding process performed in the first transcoding system will be defined as a first generation encoding process, and the encoding process performed after the first transcoding system will be described. 2 is defined as a second-generation encoding process, and the encoding process performed in a third transcoding system connected after the second transcoding system is defined as a second-generation encoding process. The encoding process performed in a fourth transcoding system (transcoding system 1 shown in FIG. 4) connected behind the third transcoding system is defined as a third generation encoding process. It is defined as a generation encoding process or a current encoding process.
【0045】また、第1世代の符号化処理において生成
された符号化パラメータを第1世代の符号化パラメータ
と呼び、第2世代の符号化処理において生成された符号
化パラメータを第2世代の符号化パラメータと呼び、第
3世代の符号化処理において生成された符号化パラメー
タを第3世代の符号化パラメータと呼び、第4世代の符
号化処理において生成された符号化パラメータを第4世
代の符号化パラメータまたは現在の符号化パラメータと
呼ぶことにする。The encoding parameters generated in the first generation encoding process are called first generation encoding parameters, and the encoding parameters generated in the second generation encoding process are referred to as second generation encoding parameters. An encoding parameter generated in the third generation encoding process is referred to as a third generation encoding parameter, and an encoding parameter generated in the fourth generation encoding process is referred to as a fourth generation encoding parameter. Will be referred to as the encoding parameter or the current encoding parameter.
【0046】まず、この図4に示されたトランスコーデ
ィングシステム1に供給される符号化ビデオストリーム
ST(3rd)について説明する。ST(3rd)は、このト
ランスコーディングシステム1の前段に設けられている
第3のトランスコーディングシステムにおける第3世代
の符号化処理において生成された第3世代の符号化スト
リームであることを表わしている。この第3世代の符号
化処理において生成された符号化ビデオストリームST
(3rd)には、第3の符号化処理において生成された第
3世代の符号化パラメータが、この符号化符号化ビデオ
ストリームST(3rd)のシーケンス層、GOP層、ピクチ
ャ層、スライス層、及びマクロブロック層に、sequence
_header() 関数、sequence_extension() 関数、group_o
f_pictures_header()関数、picture_header()関数,pic
ture_coding_extension()関数、picture_data()関数、s
lice() 関数、及びmacroblock()関数として記述されて
いる。このように第3の符号化処理によって生成された
第3の符号化ストリームに、第3の符号化処理において
使用した第3の符号化パラメータを記述することはMPEG
2規格において定義されていることであって、何ら新規
性は無い。First, the coded video stream ST (3rd) supplied to the transcoding system 1 shown in FIG. 4 will be described. ST (3rd) indicates that the stream is a third-generation encoded stream generated in the third-generation encoding process in the third transcoding system provided in the preceding stage of the transcoding system 1. . The encoded video stream ST generated in the third generation encoding process
In (3rd), the third-generation encoding parameters generated in the third encoding process include a sequence layer, a GOP layer, a picture layer, a slice layer, and a sequence layer of the encoded video stream ST (3rd). Sequence in the macroblock layer
_header () function, sequence_extension () function, group_o
f_pictures_header () function, picture_header () function, pic
ture_coding_extension () function, picture_data () function, s
Described as the lice () function and macroblock () function. Writing the third encoding parameter used in the third encoding process in the third encoded stream generated by the third encoding process as described above is performed by MPEG.
It is defined in the two standards and has no novelty.
【0047】本発明のトランスコーディングシステム1
におけるユニークな点は、この第3の符号化ストリーム
ST(3rd)中に、第3の符号化パラメータを記述する
だけでなく、第1世代及び第2世代の符号化処理におい
て生成された第1世代及び第2世代の符号化パラメータ
も記述されているという点、およびアクセスユニットで
あるフレームまたはフィールド毎にカウントアップされ
る、十分に周期の長いカウンタ値が画像に関連づけられ
ている点である。Transcoding system 1 of the present invention
Is that not only the third encoding parameter is described in the third encoded stream ST (3rd), but also the first encoded stream generated in the first and second generation encoding processes. Generation and second-generation coding parameters are also described, and a sufficiently long counter value that is counted up for each frame or field as an access unit is associated with an image.
【0048】具体的には、この第1世代及び第2世代の
符号化パラメータは、第3世代の符号化ビデオストリー
ムST(3rd)のピクチャ層のユーザデータエリアに、
ヒストリストリームhistory_stream()として記述されて
いる。本発明においては、第3世代の符号化ビデオスト
リームST(3rd)のピクチャ層のユーザデータエリア
に記述されているヒストリストリームを、「ヒストリ情
報」、または「履歴情報」と呼び、このヒストリストリ
ームとして記述されている符号化パラメータを「ヒスト
リパラメータ」、または「履歴パラメータ」と呼んでい
る。Specifically, the first-generation and second-generation encoding parameters are stored in the user data area of the picture layer of the third-generation encoded video stream ST (3rd).
This is described as a history stream history_stream (). In the present invention, the history stream described in the user data area of the picture layer of the third-generation encoded video stream ST (3rd) is referred to as “history information” or “history information”. The coding parameters described are called "history parameters" or "history parameters".
【0049】また別の呼び方として、第3世代の符号化
ストリームST(3rd)に記述されている第3世代の符
号化パラメータを「現在の符号化パラメータ」と呼んだ
場合には、第3世代の符号化処理からみて第1世代及び
第2世代の符号化処理は、過去に行なわれた符号化処理
であるので、第3世代の符号化ストリームST(3rd)
のピクチャ層のユーザデータエリアに記述されているヒ
ストリストリームとして記述されている符号化パラメー
タを「過去の符号化パラメータ」とも呼んでいる。As another method, when the third-generation encoding parameter described in the third-generation encoded stream ST (3rd) is called “current encoding parameter”, From the viewpoint of the generation encoding process, the first generation and second generation encoding processes are encoding processes performed in the past, and therefore, the third generation encoded stream ST (3rd)
The coding parameter described as the history stream described in the user data area of the picture layer is also referred to as “past coding parameter”.
【0050】このように、この第3の符号化ストリーム
ST(3rd)中に、第3の符号化パラメータを記述する
だけでなく、第1世代及び第2世代の符号化処理におい
て生成された第1世代及び第2世代の符号化パラメータ
を記述する理由は、トランスコーディング処理によって
符号化ストリームのGOP構造やビットレートの変更を繰
り返したとしても、画質劣化を防止することができるか
らである。As described above, not only the third encoding parameter is described in the third encoded stream ST (3rd), but also the third encoded stream ST (3rd) generated in the first and second generation encoding processes. The reason why the first-generation and second-generation encoding parameters are described is that even if the GOP structure and the bit rate of the encoded stream are repeatedly changed by the transcoding process, it is possible to prevent image quality deterioration.
【0051】例えば、あるピクチャを第1世代の符号化
処理においてPピクチャとして符号化し、第1世代の符
号化ストリームのGOP構造を変更するために、第2世代
の符号化処理においてそのピクチャをBピクチャとして
符号化し、第2世代の符号化ストリームのGOP構造をさ
らに変更するために、第3世代の符号化処理において、
再度そのピクチャをPピクチャとして符号化することが
考えられる。MPEG規格に基づく符号化処理及び復号処理
は100%可逆の処理ではないので、符号化及び復号処
理を繰り返す毎に画質が劣化していくことは知られてい
る。For example, in order to change a GOP structure of a first generation coded stream, a picture is coded as a P picture in a first generation coding process, and is converted to a B picture in a second generation coding process. In order to further change the GOP structure of the encoded stream of the second generation, the encoding is performed as a picture.
It is conceivable that the picture is encoded as a P picture again. Since the encoding process and the decoding process based on the MPEG standard are not 100% reversible processes, it is known that the image quality is deteriorated every time the encoding process and the decoding process are repeated.
【0052】このような場合に、第3の世代の符号化処
理において、量子化スケール、動きベクトル、予測モー
ドなどの符号化パラメータをもう一度計算するのではな
くて、第1世代の符号化処理において生成された量子化
スケール、動きベクトル、予測モードなどの符号化パラ
メータを再利用する。第3世代の符号化処理によって新
しく生成された量子化スケール、動きベクトル、予測モ
ードなどの符号化パラメータよりも、第1世代の符号化
処理によって新しく生成された量子化スケール、動きベ
クトル、予測モードなどの符号化パラメータの方が、明
らかに精度が良いので、この第1世代のパラメータを再
利用することによって、符号化及び復号処理を繰り返し
たとしても画質劣化を少なくすることができる。In such a case, in the third generation encoding process, instead of calculating the encoding parameters such as the quantization scale, the motion vector, and the prediction mode again, the first generation encoding process is performed. Reuse the generated coding parameters such as the generated quantization scale, motion vector, and prediction mode. The quantization scale, the motion vector, and the prediction mode newly generated by the first-generation encoding process are smaller than the encoding parameters such as the quantization scale, the motion vector, and the prediction mode newly generated by the third-generation encoding process. Since the encoding parameters such as are clearly higher in accuracy, by reusing the first generation parameters, even if the encoding and decoding processes are repeated, the image quality degradation can be reduced.
【0053】また、ビデオ復号システム11が出力する
ベースバンドデジタルビデオ信号に含まれる画像には、
アクセスユニットであるそのフレームまたはフィールド
毎にカウントアップされるカウンタ値が関連付けられて
いる。カウンタ値は、例えば、周期が65,536であり、最
大値が設定された後、0になり、また、0からカウントア
ップされる。The images included in the baseband digital video signal output from the video decoding system 11 include:
A counter value counted up for each frame or field that is an access unit is associated with the access unit. The counter value has, for example, a period of 65,536, becomes 0 after the maximum value is set, and is counted up from 0.
【0054】ビデオ符号化システム12は、ベースバン
ドデジタルビデオ信号に含まれる画像に対応するカウン
タ値を基に、入力されたベースバンドデジタルビデオ信
号に含まれる画像の不連続点(例えば、画像をつなぎ合
わせた点、画像を挿入した点、画像を間引いた点など)
を検出することができる。The video encoding system 12 uses the counter values corresponding to the images included in the baseband digital video signal to control the discontinuity of the images included in the input baseband digital video signal (for example, by connecting the images). Matching points, inserting images, decimating images, etc.)
Can be detected.
【0055】例えば、あるピクチャを第1世代の符号化
処理においてPピクチャとして符号化し、第1世代の符
号化ストリームのGOP構造を変更するために、第2世代
の符号化処理においてそのピクチャをBピクチャとして
符号化し、第2世代の符号化ストリームのGOP構造をさ
らに変更するために、第3世代の符号化処理において、
第1世代の符号化処理における符号化パラメータを基に
再度そのピクチャをPピクチャとして符号化する場合、
そのピクチャの前のピクチャが削除されるように(その
ピクチャが参照するIピクチャまたはPピクチャが削除
されるように)画像が編集されていないとき、ビデオ符
号化システム12は、第1世代の符号化処理において生
成した符号化パラメータを利用してそのピクチャをPピ
クチャとして符号化し、そのピクチャの前のピクチャが
削除されるように(そのピクチャが参照するIピクチャ
またはPピクチャが削除されるように)画像が編集され
ているとき、符号化パラメータを生成してそのピクチャ
をPピクチャとして符号化する。For example, a picture is encoded as a P picture in the first generation encoding process, and the picture is converted to a B picture in the second generation encoding process in order to change the GOP structure of the first generation encoded stream. In order to further change the GOP structure of the encoded stream of the second generation, the encoding is performed as a picture.
When the picture is encoded again as a P picture based on the encoding parameters in the first generation encoding process,
When the image is not edited such that the picture before it is deleted (such that the I-picture or P-picture referenced by the picture is deleted), the video encoding system 12 may generate a first-generation code. The picture is encoded as a P picture using the encoding parameters generated in the encoding process, and the picture before the picture is deleted (such that the I picture or P picture referred to by the picture is deleted). 3.) When an image is being edited, generate encoding parameters and encode the picture as a P picture.
【0056】このように、ビデオ符号化システム12
は、アクセスユニットであるフレームまたはフィールド
毎にカウントアップされるカウンタ値を基に画像の不連
続点を検出して、第1世代の符号化処理において生成さ
れた量子化スケール、動きベクトル、予測モードなどの
符号化パラメータを利用して、符号化するので、画質劣
化を防止することができる。Thus, the video encoding system 12
Detects a discontinuous point of an image based on a counter value counted up for each frame or field as an access unit, and generates a quantization scale, a motion vector, and a prediction mode generated in a first generation encoding process. Since encoding is performed by using an encoding parameter such as, image quality degradation can be prevented.
【0057】上述した本発明にかかる処理を説明するた
めに、図4に示された第4世代のトランスコーディング
システム1の処理を例に挙げてより詳しく説明する。In order to explain the above-mentioned processing according to the present invention, the processing of the fourth generation transcoding system 1 shown in FIG. 4 will be described in more detail as an example.
【0058】カウンタ101は、復号装置102から供
給されるフレームまたはフィールドに同期したFrame/Fi
eld同期信号を基に、カウントアップ(1を加算)され
る16ビットのカウンタである。カウンタ101は、0
乃至65,535のいずれかのカウンタ値をカウンタ値多重化
装置105に出力する。The counter 101 has a frame / fidelity synchronized with a frame or a field supplied from the decoding device 102.
This is a 16-bit counter that counts up (adds 1) based on the eld synchronization signal. The counter 101 is set to 0
To the counter value multiplexing device 105.
【0059】カウンタ101は、65,535のカウンタ値を
有する場合、復号装置102からフレームまたはフィー
ルドに同期したFrame/Field同期信号が供給されたと
き、カウンタ値を0とし、その後も、復号装置102か
ら供給されるFrame/Field同期信号を基に、カウントア
ップを継続する。When the counter 101 has a counter value of 65,535, the counter value is set to 0 when a frame / field synchronization signal synchronized with a frame or a field is supplied from the decoding apparatus 102, and thereafter, the counter 101 supplies the frame / field synchronization signal. The count-up is continued based on the Frame / Field synchronization signal.
【0060】なお、カウンタ101は、復号装置102
から供給されるフレームまたはフィールドに同期したFr
ame/Field同期信号を基に、カウントダウン(1を減
算)するようにしてもよい。It should be noted that the counter 101 has a
Fr synchronized with frame or field supplied from
Countdown (subtraction of 1) may be performed based on the ame / Field synchronization signal.
【0061】復号装置102は、第3世代の符号化ビッ
トストリームST(3rd)に含まれている符号化ビデオ
を第3世代の符号化パラメータを使用して復号し、復号
されたベースバンドのデジタルビデオデータを生成する
ための装置である。さらに、復号装置102は、第3世
代の符号化ビットストリームST(3rd)のピクチャ層
のユーザデータエリアにヒストリストリームとして記述
されている第1世代及び第2世代の符号化パラメータを
デコードするための装置でもある。The decoding device 102 decodes the encoded video included in the third-generation encoded bit stream ST (3rd) using the third-generation encoding parameters, and decodes the decoded baseband digital signal. This is a device for generating video data. Further, the decoding device 102 decodes the first-generation and second-generation encoding parameters described as a history stream in the user data area of the picture layer of the third-generation encoded bit stream ST (3rd). It is also a device.
【0062】具体的には、図5に示されているように、
復号装置102のデコーダ251は、供給されたビット
ストリームをバッファリングするための受信バッファ2
61、符号化ビットストリームを可変長復号するための
可変長復号回路262、可変長復号されたデータを可変
長復号回路262から供給された量子化スケールに従っ
て逆量子化する逆量子化回路263、逆量子化されたD
CT(離散コサイン変換)係数を逆離散コサイン変換す
るIDCT回路264、及び動き補償処理を行うための演算
器265、動き補償回路266及びフレームメモリ26
7を備えている。Specifically, as shown in FIG.
The decoder 251 of the decoding device 102 receives the buffer 2 for buffering the supplied bit stream.
61, a variable length decoding circuit 262 for performing variable length decoding on an encoded bit stream, an inverse quantization circuit 263 for performing inverse quantization on the variable length decoded data in accordance with the quantization scale supplied from the variable length decoding circuit 262, Quantized D
IDCT circuit 264 for performing an inverse discrete cosine transform of a CT (discrete cosine transform) coefficient, computing unit 265 for performing motion compensation processing, motion compensation circuit 266 and frame memory 26
7 is provided.
【0063】伝送路(または所定の記録媒体)を介して
伝送された符号化された画像データは、図示せぬ受信回
路で受信されたり、再生装置で再生され、受信バッファ
261に一時記憶された後、可変長復号回路262に供
給される。可変長復号回路262は、受信バッファ26
1より供給されたデータを可変長復号し、動きベクト
ル、予測モード、予測フラグ、およびDCTフラグを動き
補償回路266に出力し、量子化スケールを逆量子化回
路263に出力するとともに、復号された画像データを
逆量子化回路263に出力する。The encoded image data transmitted via the transmission path (or a predetermined recording medium) is received by a receiving circuit (not shown), reproduced by a reproducing device, and temporarily stored in a receiving buffer 261. Thereafter, it is supplied to the variable length decoding circuit 262. The variable length decoding circuit 262
1 is variable-length decoded, the motion vector, the prediction mode, the prediction flag, and the DCT flag are output to the motion compensation circuit 266, and the quantization scale is output to the inverse quantization circuit 263. The image data is output to the inverse quantization circuit 263.
【0064】逆量子化回路263は、可変長復号回路2
62より供給された画像データを、同じく可変長復号回
路262より供給された量子化スケールに従って逆量子
化し、IDCT回路264に出力する。逆量子化回路263
より出力されたデータ(DCT係数)は、IDCT回路264
により、逆離散コサイン変換処理が施され、演算器26
5に供給される。The inverse quantization circuit 263 is connected to the variable length decoding circuit 2
The image data supplied from 62 is inversely quantized according to the quantization scale also supplied from the variable length decoding circuit 262 and output to the IDCT circuit 264. Inverse quantization circuit 263
Data (DCT coefficient) output from the IDCT circuit 264
, An inverse discrete cosine transform process is performed.
5 is supplied.
【0065】IDCT回路264より演算器265に供給さ
れた画像データが、Iピクチャのデータである場合、そ
のデータは演算器265より出力され、演算器265に
後に入力される画像データ(PまたはBピクチャのデー
タ)の予測画像データ生成のために、フレームメモリ2
67の前方予測画像部267aに供給されて記憶され
る。また、このデータは、ヒストリ情報多重化装置10
3(図3)に出力される。When the image data supplied from the IDCT circuit 264 to the arithmetic unit 265 is I-picture data, the data is output from the arithmetic unit 265 and the image data (P or B) which is input to the arithmetic unit 265 later. Frame data for generating predicted image data
The data is supplied to and stored in the forward prediction image section 267a of the image processing section 67. This data is stored in the history information multiplexing device 10.
3 (FIG. 3).
【0066】IDCT回路264より供給された画像データ
が、その1フレーム前の画像データを予測画像データと
するPピクチャのデータであり、前方予測モードのデー
タである場合、フレームメモリ267の前方予測画像部
267aに記憶されている、1フレーム前の画像データ
(Iピクチャのデータ)が読み出され、動き補償回路2
66で可変長復号回路262より出力された動きベクト
ルに対応する動き補償が施される。そして、演算器26
5において、IDCT回路264より供給された画像データ
(差分のデータ)と加算され、出力される。この加算さ
れたデータ、すなわち、復号されたPピクチャのデータ
は、演算器265に後に入力される画像データ(Bピク
チャまたはPピクチャのデータ)の予測画像データ生成
のために、フレームメモリ267の後方予測画像部26
7bに供給されて記憶される。If the image data supplied from the IDCT circuit 264 is P-picture data in which the image data one frame before that is the predicted image data, and is data in the forward prediction mode, the forward predicted image in the frame memory 267 is stored. The image data (I picture data) one frame before stored in the section 267a is read out, and the motion compensation circuit 2
At 66, motion compensation corresponding to the motion vector output from the variable length decoding circuit 262 is performed. And the arithmetic unit 26
At 5, the image data is added to the image data (difference data) supplied from the IDCT circuit 264 and output. The added data, that is, the decoded P-picture data is transmitted to the rear of the frame memory 267 in order to generate predicted image data of image data (B-picture or P-picture data) to be input to the arithmetic unit 265 later. Prediction image section 26
7b and stored.
【0067】Pピクチャのデータであっても、画像内予
測モードのデータは、Iピクチャのデータと同様に、演
算器265において処理は行われず、そのまま後方予測
画像部267bに記憶される。Even in the case of P picture data, the data in the intra prediction mode is not processed in the arithmetic unit 265 like the I picture data, and is stored in the backward prediction image section 267b as it is.
【0068】このPピクチャは、次のBピクチャの次に
表示されるべき画像であるため、この時点では、まだヒ
ストリ情報多重化装置103へ出力されない(Bピクチ
ャの後に入力されたPピクチャが、Bピクチャより先に
処理され、伝送される)。Since this P picture is an image to be displayed next to the next B picture, it is not yet output to the history information multiplexing device 103 at this time (the P picture input after the B picture is Processed and transmitted before the B picture).
【0069】IDCT回路264より供給された画像データ
が、Bピクチャのデータである場合、可変長復号回路2
62より供給された予測モードに対応して、フレームメ
モリ267の前方予測画像部267aに記憶されている
Iピクチャの画像データ(前方予測モードの場合)、後
方予測画像部267bに記憶されているPピクチャの画
像データ(後方予測モードの場合)、または、その両方
の画像データ(両方向予測モードの場合)が読み出さ
れ、動き補償回路266において、可変長復号回路26
2より出力された動きベクトルに対応する動き補償が施
されて、予測画像が生成される。但し、動き補償を必要
としない場合(画像内予測モードの場合)、予測画像は
生成されない。If the image data supplied from the IDCT circuit 264 is B picture data, the variable length decoding circuit 2
In accordance with the prediction mode supplied from 62, the image data of the I picture stored in the forward predicted image section 267a of the frame memory 267 (in the case of the forward predicted mode) and the P data stored in the backward predicted image section 267b. The picture data of the picture (in the case of the backward prediction mode) or both image data (in the case of the bidirectional prediction mode) are read out.
The motion compensation corresponding to the motion vector output from 2 is performed, and a predicted image is generated. However, if motion compensation is not required (in the case of the intra-picture prediction mode), no predicted picture is generated.
【0070】このようにして、動き補償回路266で動
き補償が施されたデータは、演算器265において、ID
CT回路264の出力と加算される。この加算出力は、ヒ
ストリ情報多重化装置103に出力される。The data subjected to the motion compensation by the motion compensation circuit 266 in this way is output to the arithmetic unit 265 by the ID
It is added to the output of the CT circuit 264. This addition output is output to the history information multiplexing device 103.
【0071】ただし、この加算出力はBピクチャのデー
タであり、他の画像の予測画像生成のために利用される
ことがないため、フレームメモリ267には記憶されな
い。However, this added output is B picture data, and is not used for generating a predicted image of another image, and is not stored in the frame memory 267.
【0072】Bピクチャの画像が出力された後、後方予
測画像部267bに記憶されているPピクチャの画像デ
ータが読み出され、動き補償回路266を介して演算器
265に供給される。但し、このとき、動き補償は行わ
れない。After the picture of the B picture is output, the picture data of the P picture stored in the backward prediction picture section 267b is read and supplied to the arithmetic unit 265 via the motion compensation circuit 266. However, at this time, no motion compensation is performed.
【0073】なお、このデコーダ251において、奇数
フィールドと偶数フィールドのラインの信号が分離され
た構成を元の構成に必要に応じて戻す処理は、動き補償
回路266により実行される。In the decoder 251, the process of returning the configuration in which the signals of the lines of the odd field and the even field are separated to the original configuration as necessary is executed by the motion compensation circuit 266.
【0074】また、上述した説明においては、輝度信号
の処理について説明したが、色差信号の処理も同様に行
われる。ただし、この場合の動きベクトルは、輝度信号
用の動きベクトルを、垂直方向および水平方向に1/2
にしたものが用いられる。In the above description, the processing of the luminance signal has been described, but the processing of the chrominance signal is similarly performed. However, the motion vector in this case is obtained by dividing the motion vector for the luminance signal by に in the vertical and horizontal directions.
Is used.
【0075】可変長復号回路262は、第3世代の符号
化ビットストリームST(3rd)を復号処理するため
に、この第3世代の符号化ビットストリームST(3r
d)のピクチャ層、スライス層及びマクロブロック層に
記述されている第3世代の符号化パラメータを抽出す
る。たとえば、この可変長復号回路262において抽出
される第3世代の符号化パラメータは、ピクチャタイプ
を示すpicture_coding_type、量子化スケールステップ
サイズを示すquantiser_scale_code、予測モードを示す
macroblock_type、動きベクトルを示すmotion_vector、
Frame予測モードかField予測モードかを示すframe/fiel
d_motion_type、及びFrameDCTモードかField DCT
モードかを示すdct_type等である。この可変長復号回路
262において抽出されたquatntiser_scale_codeは、
逆量子化回路263に供給され、picture_coding_typ
e、quatntiser_scale_code、macroblock_type、motion_
vector、frame/field_motion_type、dct_type等のパラ
メータは、動き補償回路266に供給される。The variable length decoding circuit 262 decodes the third generation coded bit stream ST (3rd) to decode the third generation coded bit stream ST (3rd).
d) Third-generation coding parameters described in the picture layer, slice layer, and macroblock layer are extracted. For example, the third-generation encoding parameters extracted by the variable-length decoding circuit 262 include picture_coding_type indicating a picture type, quantizer_scale_code indicating a quantization scale step size, and a prediction mode.
macroblock_type, motion_vector indicating motion vector,
Frame / fiel indicating Frame prediction mode or Field prediction mode
d_motion_type and Frame DCT mode or Field DCT
Dct_type indicating the mode. The quatntiser_scale_code extracted in the variable length decoding circuit 262 is
Supplied to the inverse quantization circuit 263,
e, quatntiser_scale_code, macroblock_type, motion_
Parameters such as vector, frame / field_motion_type, and dct_type are supplied to the motion compensation circuit 266.
【0076】可変長復号回路262は、第3世代の符号
化ビットストリームST(3rd)を復号処理するために
必要なこれらの符号化パラメータだけではなく、後段の
第5世代のトランスコーディングシステムに第3世代の
ヒストリ情報として伝送されるべき符号化パラメータ
を、第3世代の符号化ビットストリームST(3rd)の
シーケンス層、GOP層、ピクチャ層、スライス層、及び
マクロブロック層から抽出する。もちろん、第3世代の
復号処理に使用されたpicture_coding_type、quatntise
r_scale_code、macroblock_type、motion_vector、fram
e/field_motion_type、dct_type等の第3世代の符号化
パラメータは、この第3世代のヒストリ情報に含まれて
いる。ヒストリ情報としてどのような符号化パラメータ
を抽出するかについては、伝送容量などに応じてオペレ
ータやホストコンピュータ側からあらかじめ設定されて
いる。The variable length decoding circuit 262 includes not only these encoding parameters necessary for decoding the third generation coded bit stream ST (3rd), but also the following fifth generation transcoding system. The encoding parameters to be transmitted as the third generation history information are extracted from the sequence layer, GOP layer, picture layer, slice layer, and macroblock layer of the third generation encoded bit stream ST (3rd). Of course, picture_coding_type and quatntise used in the third generation decoding process
r_scale_code, macroblock_type, motion_vector, fram
Third-generation encoding parameters such as e / field_motion_type and dct_type are included in the third-generation history information. The type of encoding parameter to be extracted as the history information is preset by the operator or the host computer according to the transmission capacity or the like.
【0077】また、可変長復号回路262は、アクセス
ユニットであるフレームまたはフィールドの切り換えに
対応するFrame/Field同期信号をカウンタ101に供給
する。The variable length decoding circuit 262 supplies a frame / field synchronization signal corresponding to switching of a frame or a field as an access unit to the counter 101.
【0078】さらに、可変長復号回路262は、第3世
代の符号化ビットストリームST(3rd)のピクチャ層
のユーザデータエリアに記述されているユーザデータを
抽出し、そのユーザデータをヒストリデコーディング装
置104に供給する。Further, the variable length decoding circuit 262 extracts the user data described in the user data area of the picture layer of the encoded bit stream ST (3rd) of the third generation, and converts the user data into a history decoding device. 104.
【0079】このヒストリデコーディング装置104
は、第3世代の符号化ビットストリームST(3rd)の
ピクチャ層に記述されていたユーザデータから、ヒスト
リ情報として記述されている第1世代の符号化パラメー
タ及び第2世代の符号化パラメータ(直前の世代よりさ
らに前の世代の符号化パラメータ)を抽出するための回
路である。具体的には、ヒストリデコーディング装置1
04は、受け取ったユーザデータのシンタックスを解析
することによって、ユーザデータの中に記述されている
固有のHistory_Data_Idを検出し、これによって、conve
rted_history_stream()を抽出することができる。さら
に、ヒストリデコーディング装置104は、converted_
history_stream()中にある所定間隔に挿入されている1
ビットのマーカービット(marker_bit)を取りさること
によって、history_stream()を得、そして、そのhistor
y_stream()のシンタックスを解析することによって、hi
story_stream()中に記述されている第1世代及び第2世
代の符号化パラメータを得ることができる。このヒスト
リデコーディング装置104の詳しい動作については、
後述する。This history decoding device 104
Are generated from the user data described in the picture layer of the third generation coded bit stream ST (3rd), using the first generation coding parameters and the second generation coding parameters This is a circuit for extracting the encoding parameters of the generations earlier than the generation (2). Specifically, the history decoding device 1
04 detects the unique History_Data_Id described in the user data by analyzing the syntax of the received user data.
rted_history_stream () can be extracted. Further, the history decoding apparatus 104 converts the converted_
1 inserted at a certain interval in history_stream ()
Get the history_stream () by removing the marker bit (marker_bit) of the bit and its history
By analyzing the syntax of y_stream (), hi
The first-generation and second-generation encoding parameters described in story_stream () can be obtained. For detailed operation of the history decoding device 104,
It will be described later.
【0080】ヒストリ情報多重化装置103は、第1世
代、第2世代及び第3世代の符号化パラメータを、第4
世代の符号化処理を行う符号化装置116に供給するた
めに、復号装置102においてデコードされたベースバ
ンドのビデオデータに、これらの第1世代、第2世代及
び第3世代の符号化パラメータを多重化するための回路
である。具体的には、ヒストリ情報多重化装置103
は、復号装置102の演算器265から出力されたベー
スバンドのビデオデータ、復号装置102の可変長復号
装置112から出力された第3世代の符号化パラメー
タ、並びに、ヒストリデコーディング装置104から出
力された第1世代の符号化パラメータと第2世代の符号
化パラメータとを受け取り、このベースバンドのビデオ
データに、これらの第1世代、第2世代及び第3世代の
符号化パラメータを多重化する。第1世代、第2世代及
び第3世代の符号化パラメータが多重化されたベースバ
ンドのビデオデータは、カウンタ値多重化装置105に
供給される。The history information multiplexing device 103 converts the first generation, second generation and third generation
These first-generation, second-generation, and third-generation encoding parameters are multiplexed on the baseband video data decoded by the decoding device 102 so as to be supplied to the encoding device 116 that performs the encoding process of the generation. It is a circuit for making the circuit. Specifically, the history information multiplexing device 103
Are the baseband video data output from the arithmetic unit 265 of the decoding device 102, the third-generation encoding parameters output from the variable-length decoding device 112 of the decoding device 102, and the output from the history decoding device 104. The first-generation coding parameter and the second-generation coding parameter are received, and the first-generation, second-generation, and third-generation coding parameters are multiplexed on the baseband video data. The baseband video data in which the first generation, second generation, and third generation coding parameters are multiplexed is supplied to the counter value multiplexing device 105.
【0081】カウンタ値多重化装置105は、ヒストリ
情報多重化装置103から供給された、第1世代、第2
世代及び第3世代の符号化パラメータが多重化されたベ
ースバンドのビデオデータに、更に、カウンタ101か
ら供給されたカウンタ値を多重化する。The counter value multiplexing device 105 receives the first generation and the second generation data supplied from the history information multiplexing device 103.
The counter value supplied from the counter 101 is further multiplexed on the baseband video data on which the generation and third generation coding parameters are multiplexed.
【0082】次に、これらの第1世代、第2世代及び第
3世代の符号化パラメータのベースバンドビデオデータ
への多重化の方法について、図6及び図7を参照して説
明する。図6は、MPEG規格において定義されている、1
6ピクセル×16ピクセルからなる1つのマクロブロッ
クを示している。この16ピクセル×16ピクセルのマ
クロブロックは、輝度信号に関しては4つの8ピクセル
×8ピクセルからなるサブブロック(Y[0],[1],[2]
及びY[3])と、色差信号に関しては4つの8ピクセル
×8ピクセルからなるサブブロック(Cr[0],r[1],
b[0],及びCb[1])から構成されている。Next, a method of multiplexing the first generation, second generation and third generation coding parameters into baseband video data will be described with reference to FIGS. 6 and 7. FIG. FIG. 6 is a diagram illustrating 1 and 2 defined in the MPEG standard.
One macroblock consisting of 6 pixels × 16 pixels is shown. The macroblock of 16 pixels × 16 pixels is a subblock (Y [0], [1], [2]) composed of four 8 pixels × 8 pixels with respect to the luminance signal.
And Y [3]) and four sub-blocks (Cr [0], r [1],
b [0] and Cb [1]).
【0083】図7は、ビデオデータのあるフォーマット
を表している。このフォーマットは、ITU勧告-RDT60
1において定義されているフォーマットであって、放送
業界において使用されている所謂「D1フォーマット」
を表している。このD1フォーマットは、10ビットの
ビデオデータを伝送するためのフォーマットとして規格
化されたので、ビデオデータの1ピクセルを10ビット
で表現できるようになっている。FIG. 7 shows a format of video data. This format conforms to ITU Recommendation-RDT60
1. The so-called "D1 format", which is defined in I.1, and is used in the broadcasting industry
Is represented. Since the D1 format is standardized as a format for transmitting 10-bit video data, one pixel of the video data can be represented by 10 bits.
【0084】MPEG規格によってデコードされたベースバ
ンドのビデオデータは8ビットであるので、本発明のト
ランスコーディングシステムにおいては、図7に示した
ように、D1フォーマットの10ビットのうち上位8ビ
ット(D9乃至D2)を使用して、MPEG規格にもとづい
てデコードされたベースバンドのビデオデータを伝送す
るようにしている。このように、復号された8ビットの
ビデオデータをD1フォーマットに書き込むと、下位2
ビット(D1とD0)は、空きビット(unallocated bit
s)となる。本発明のトランスコーディングシステム1
ではこの空きエリア(unallocated area)を利用して、
カウンタ値とともにヒストリ情報を伝送するようにして
いる。Since the baseband video data decoded according to the MPEG standard is 8 bits, in the transcoding system of the present invention, as shown in FIG. 7, the upper 8 bits (D9) among the 10 bits of the D1 format are used. To D2), the baseband video data decoded based on the MPEG standard is transmitted. Thus, when the decoded 8-bit video data is written in the D1 format,
Bits (D1 and D0) are unallocated bits
s). Transcoding system 1 of the present invention
Then, using this unallocated area,
The history information is transmitted together with the counter value.
【0085】この図7に記載されたデータブロックは、
各サブブロック(Y[0],Y[1],Y[2],Y[3],Cr
[0],Cr[1],Cb[0],Cb[1])における1ピクセル
を伝送するためのデータブロックであるので、1マクロ
ブロックのデータを伝送するためには、この図7に示さ
れているデータブロックが64個伝送される。下位2ビ
ット(D1とD0)を使用すれば、1マクロブロックの
ビデオデータに対して、合計で1024(=16×6
4)ビットのカウンタ値およびヒストリ情報を伝送でき
る。従って、1世代分のヒストリ情報は、256ビット
となるように生成されているので、過去の4(=102
4/256)世代分のヒストリ情報を1マクロブロック
のビデオデータに対して重畳することができる。図7に
示した例では、第1世代のヒストリ情報、第2世代のヒ
ストリ情報、および、第3世代のヒストリ情報、並びに
カウンタ値が重畳されている。The data block described in FIG.
Each sub-block (Y [0], Y [1], Y [2], Y [3], Cr
[0], Cr [1], Cb [0], Cb [1]), the data block is for transmitting one pixel. Therefore, in order to transmit the data of one macroblock, the data block shown in FIG. 64 data blocks are transmitted. If the lower two bits (D1 and D0) are used, a total of 1024 (= 16 × 6) video data of one macroblock is used.
4) A bit counter value and history information can be transmitted. Therefore, since the history information for one generation is generated to have 256 bits, the past 4 (= 102
4/256) generations of history information can be superimposed on one macroblock of video data. In the example shown in FIG. 7, the first generation history information, the second generation history information, the third generation history information, and the counter value are superimposed.
【0086】また、輝度信号に対応するサブブロックに
第1世代のヒストリ情報、第2世代のヒストリ情報、お
よび、第3世代のヒストリ情報を重畳して、色差信号に
対応するサブブロックにカウンタ値を重畳するようにし
てもよい。The first generation history information, the second generation history information, and the third generation history information are superimposed on the sub-block corresponding to the luminance signal, and the counter value is superimposed on the sub-block corresponding to the color difference signal. May be superimposed.
【0087】更に、16ビットのカウンタ値は、SMPTE
(The Society of Motion Picture and Television Eng
ineers) 291Mで規定されているAncillary Data Packet
に格納して、伝送するようにしてもよい。図8は、Anci
llary Data Packetの例を示す図である。Further, the 16-bit counter value is SMPTE
(The Society of Motion Picture and Television Eng
ineers) Ancillary Data Packet specified by 291M
And may be transmitted. FIG.
It is a figure showing the example of llary Data Packet.
【0088】ADF(Ancillary Data Flag)には、Ancill
ary Data Packetの先頭を示す所定のデータ("000","3F
F","3FF")が格納される。DID(Data Identification W
ord)には、Ancillary Data Packetに格納されるデータ
のフォーマットを特定する値、例えば、SMPTE 291Mで規
定されているUser Applicationに対応する値(C0h乃至C
Fhのいずれか)が格納される。The ADF (Ancillary Data Flag) contains Ancill
Predetermined data ("000", "3F
F "," 3FF ") is stored.DID (Data Identification W)
ord) includes a value that specifies the format of data stored in the Ancillary Data Packet, for example, a value (C0h to C0h) corresponding to the User Application defined by SMPTE 291M
Fh) is stored.
【0089】16ビットのカウンタ値を格納したワード
は、3ワードに分割されてAncillary Data Packetに格
納されるので、SDID(Secondary Data ID)に続くDC(D
ata Count Number Word)には、”3”が設定される。U
ser Data Wordsには、図9に示すカウンタ値の下位6ビ
ットを格納するワード(CC0)、図10に示すカウンタ
値の7ビット乃至12ビットを格納するワード(CC
1)、および図11に示すカウンタ値の上位4ビットを
格納するワード(CC2)が順に格納される。Since the word storing the 16-bit counter value is divided into three words and stored in the Ancillary Data Packet, the DC (D) following the SDID (Secondary Data ID) is used.
Ata Count Number Word) is set to “3”. U
The ser Data Words include a word (CC0) for storing the lower 6 bits of the counter value shown in FIG. 9 and a word (CC0) for storing 7 to 12 bits of the counter value shown in FIG.
1) and a word (CC2) for storing the upper 4 bits of the counter value shown in FIG. 11 are stored in order.
【0090】図9は、カウンタ値の下位6ビットを格納
するワード(CC0)の例を説明する図である。下位2ビ
ット(B0とB1)は、それぞれ”0”が設定される。
3ビット(B2)乃至8ビット(B8)には、それぞれ
カウンタ値の下位6ビット(カウンタ値[0]乃至カウ
ンタ値[5])が設定される。9ビットには、下位8ビ
ット(B0乃至B7)の偶数パリティが設定され、10
ビットには、9ビットに設定された偶数パリティの否定
値が設定される。FIG. 9 is a view for explaining an example of a word (CC0) for storing the lower 6 bits of the counter value. The lower two bits (B0 and B1) are set to "0".
The lower 6 bits (counter value [0] to counter value [5]) of the counter value are set in the 3 bits (B2) to 8 bits (B8), respectively. The even parity of the lower 8 bits (B0 to B7) is set in 9 bits, and 10 bits.
In the bit, a negative value of the even parity set to 9 bits is set.
【0091】図10は、カウンタ値の7ビット乃至12
ビットを格納するワード(CC1)の例を説明する図であ
る。下位2ビット(B0とB1)は、それぞれ”0”が
設定される。3ビット(B2)乃至8ビット(B8)に
は、それぞれカウンタ値の7ビット乃至12ビット(カ
ウンタ値[6]乃至カウンタ値[11])が設定され
る。9ビットには、下位8ビット(B0乃至B7)の偶
数パリティが設定され、10ビットには、9ビットに設
定された偶数パリティの否定値が設定される。FIG. 10 shows the case where the counter value is from 7 bits to 12 bits.
FIG. 4 is a diagram illustrating an example of a word (CC1) that stores bits. The lower two bits (B0 and B1) are set to "0". The 3 bits (B2) to 8 bits (B8) are respectively set to 7 bits to 12 bits of the counter value (counter values [6] to [11]). Nine bits are set to the even parity of the lower eight bits (B0 to B7), and ten bits are set to the negative value of the even parity set to nine bits.
【0092】図11は、カウンタ値の上位4ビットを格
納するワード(CC2)の例を説明する図である。下位2
ビット(B0とB1)は、それぞれ”0”が設定され
る。3ビット(B2)乃至6ビット(B5)には、それ
ぞれカウンタ値の上位4ビット(カウンタ値[12]乃
至カウンタ値[15])が設定される。7ビット(B
6)および8ビット(B7)は、それぞれ”0”が設定
される。9ビットには、下位8ビット(B0乃至B7)
の偶数パリティが設定され、10ビットには、9ビット
に設定された偶数パリティの否定値が設定される。FIG. 11 is a view for explaining an example of a word (CC2) for storing the upper 4 bits of the counter value. Lower 2
Bits (B0 and B1) are each set to “0”. The upper 4 bits (counter value [12] to counter value [15]) of the counter value are set in the 3 bits (B2) to 6 bits (B5), respectively. 7 bits (B
6) and 8 bits (B7) are each set to "0". 9 bits, lower 8 bits (B0 to B7)
Is set, and the negated value of the even parity set to 9 bits is set to 10 bits.
【0093】Ancillary Data Packetの最後には、CS(C
hecksum Word)が格納される。At the end of the Ancillary Data Packet, CS (C
hecksum Word) is stored.
【0094】このように、トランスコーディングシステ
ム1は、16ビットのカウンタ値をAncillary Data Pac
ketに格納して伝送することができる。As described above, the transcoding system 1 converts the 16-bit counter value into the Ancillary Data Pac
It can be stored and transmitted in ket.
【0095】カウンタ値は、ベースバンドデジタルビデ
オ信号のLSBに多重化されている符号化パラメータに多
重化することもできる。図12は、ベースバンドデジタ
ルビデオ信号のLSBに多重化されている符号化パラメー
タにカウンタ値を多重化するときの、ヒストリ情報多重
化装置103およびカウンタ値多重化装置105に対応
する機能の構成を説明する図である。タイミング信号発
生装置271は、入力されたベースバンドデジタルビデ
オ信号を基に、ベースバンドデジタルビデオ信号のLSB
に同期した、クロマタイミングパルスを生成し、スイッ
チ275に供給する。[0095] The counter value can also be multiplexed with the encoding parameters multiplexed in the LSB of the baseband digital video signal. FIG. 12 shows a configuration of functions corresponding to the history information multiplexing device 103 and the counter value multiplexing device 105 when multiplexing the counter value to the encoding parameter multiplexed in the LSB of the baseband digital video signal. FIG. The timing signal generator 271 generates the LSB of the baseband digital video signal based on the input baseband digital video signal.
A chroma timing pulse synchronized with the above is generated and supplied to the switch 275.
【0096】カウンタ値フォーマット変換装置272
は、カウンタ101から供給されたカウンタ値をユーザ
データの方式に変換して、符号化パラメータフォーマッ
ト変換装置273に出力する。符号化パラメータフォー
マット変換装置273は、復号装置102から供給され
た符号化パラメータ(3RD)、およびヒストリデコーデ
ィング装置104から供給された符号化パラメータ(1S
T,2ND)に、カウンタ値フォーマット変換装置272か
ら供給されたユーザデータの方式のカウンタ値を多重化
して、シリアル−パラレル変換装置274に出力する。Counter value format converter 272
Converts the counter value supplied from the counter 101 into a user data format, and outputs it to the encoding parameter format converter 273. The encoding parameter format conversion device 273 includes an encoding parameter (3RD) supplied from the decoding device 102 and an encoding parameter (1S) supplied from the history decoding device 104.
T, 2ND), multiplexes the counter value of the user data format supplied from the counter value format converter 272 and outputs the multiplexed value to the serial-parallel converter 274.
【0097】シリアル−パラレル変換装置274は、カ
ウンタ値が多重化された符号化パラメータを、シリアル
からパラレルに変換して、スイッチ275に供給する。
スイッチ275は、タイミング信号発生回路271から
供給されるクロマタイミングパルスを基に、ベースバン
ドデジタルビデオ信号のLSBにカウンタ値が多重化され
た符号化パラメータを多重化する。The serial-to-parallel converter 274 converts the encoding parameter with the multiplexed counter value from serial to parallel, and supplies it to the switch 275.
The switch 275 multiplexes, based on the chroma timing pulse supplied from the timing signal generation circuit 271, an encoding parameter in which the counter value is multiplexed on the LSB of the baseband digital video signal.
【0098】このように、カウンタ値は、ベースバンド
デジタルビデオ信号のブランキング部分に多重化されて
いる符号化パラメータに多重化される。As described above, the counter value is multiplexed with the coding parameter multiplexed on the blanking portion of the baseband digital video signal.
【0099】また、カウンタ値は、ベースバンドデジタ
ルビデオ信号の輝度または色差のブランキング部分に多
重化されている符号化パラメータに多重化することもで
きる。図13は、ベースバンドデジタルビデオ信号の輝
度または色差のブランキング部分に多重化されている符
号化パラメータにカウンタ値を多重化するときの、ヒス
トリ情報多重化装置103およびカウンタ値多重化装置
105に対応する機能の構成を説明する図である。タイ
ミング信号発生回路281は、入力されたベースバンド
デジタルビデオ信号を基に、ベースバンドデジタルビデ
オ信号の輝度または色差のブランキング部分に同期し
た、ブランキングタイミングパルスを生成し、スイッチ
282に供給する。The counter value can be multiplexed with the coding parameter multiplexed in the blanking portion of the luminance or color difference of the baseband digital video signal. FIG. 13 shows the history information multiplexing device 103 and the counter value multiplexing device 105 when multiplexing a counter value to an encoding parameter multiplexed in a blanking portion of luminance or color difference of a baseband digital video signal. FIG. 3 is a diagram illustrating a configuration of a corresponding function. The timing signal generation circuit 281 generates a blanking timing pulse synchronized with a blanking portion of the luminance or color difference of the baseband digital video signal based on the input baseband digital video signal, and supplies the blanking timing pulse to the switch 282.
【0100】カウンタ値フォーマット変換装置272
は、カウンタ101から供給されたカウンタ値をユーザ
データの方式に変換して、符号化パラメータフォーマッ
ト変換装置273に出力する。符号化パラメータフォー
マット変換装置273は、復号装置102から供給され
た符号化パラメータ(3RD)、およびヒストリデコーデ
ィング装置104から供給された符号化パラメータ(1S
T,2ND)に、カウンタ値フォーマット変換装置272か
ら供給されたユーザデータの方式のカウンタ値を多重化
して、スイッチ282に出力する。Counter value format converter 272
Converts the counter value supplied from the counter 101 into a user data format, and outputs it to the encoding parameter format converter 273. The encoding parameter format conversion device 273 includes an encoding parameter (3RD) supplied from the decoding device 102 and an encoding parameter (1S) supplied from the history decoding device 104.
T, 2ND), multiplexes the counter value of the user data format supplied from the counter value format converter 272 and outputs the multiplexed value to the switch 282.
【0101】スイッチ282は、タイミング信号発生回
路281から供給されるブランキングタイミングパルス
を基に、ベースバンドデジタルビデオ信号の輝度または
色差のブランキング部分にカウンタ値が多重化された符
号化パラメータを多重化する。The switch 282 multiplexes, based on the blanking timing pulse supplied from the timing signal generation circuit 281, an encoding parameter in which a counter value is multiplexed into a blanking portion of the luminance or color difference of the baseband digital video signal. Become
【0102】このように、カウンタ値は、ベースバンド
デジタルビデオ信号の輝度または色差のブランキング部
分に多重化されている符号化パラメータに多重化され
る。As described above, the counter value is multiplexed with the coding parameter multiplexed in the blanking portion of the luminance or color difference of the baseband digital video signal.
【0103】カウンタ値分離装置111は、D1フォー
マットとして伝送されたデータの下位2ビットからカウ
ンタ値を抽出するための回路である。カウンタ値分離装
置111は、カウンタ値が抽出され、分離されたD1フ
ォーマットとして伝送されたデータをヒストリ情報分離
装置115に供給する。The counter value separating device 111 is a circuit for extracting a counter value from the lower two bits of data transmitted in the D1 format. The counter value separating device 111 supplies the data from which the counter value has been extracted and transmitted as the separated D1 format to the history information separating device 115.
【0104】カウンタ値分離装置111は、D1フォー
マットとして伝送されたデータから分離されたカウンタ
値をフォーマット変換装置112に供給するとともに、
フレームまたはフィールドに同期した信号をカウンタ1
13に供給する。The counter value separating device 111 supplies the counter value separated from the data transmitted as the D1 format to the format converting device 112,
Counter 1
13.
【0105】カウンタ113は、カウンタ値分離装置1
11から供給されるフレームまたはフィールドに同期し
た信号を基に、カウントアップ(1を加算)される16
ビットのカウンタである。カウンタ113は、0乃至65,
535のいずれかのカウンタ値を比較装置114に出力す
る。The counter 113 is a counter value separating device 1
16 is incremented (added by 1) based on a signal synchronized with a frame or a field supplied from 11.
This is a bit counter. The counter 113 has 0 to 65,
One of the counter values 535 is output to the comparing device 114.
【0106】カウンタ113は、65,535のカウンタ値を
有する場合、カウンタ値分離装置111からフレームま
たはフィールドに同期した信号が供給されたとき、カウ
ンタ値を0とし、その後も、カウンタ値分離装置111
から供給されるフレームまたはフィールドに同期した信
号を基に、カウントアップを継続する。When the counter 113 has a counter value of 65,535, the counter value is set to 0 when a signal synchronized with the frame or the field is supplied from the counter value separation device 111, and thereafter, the counter value separation device 111
Counting up based on the signal synchronized with the frame or the field supplied from.
【0107】なお、カウンタ101をカウントダウン
(1を減算)するようにしたとき、カウンタ113も、
カウンタ値分離装置111から供給されるフレームまた
はフィールドに同期した信号を基に、カウントダウンす
るように構成する。When the counter 101 counts down (subtracts 1), the counter 113 also counts down.
It is configured to count down based on a signal synchronized with a frame or a field supplied from the counter value separation device 111.
【0108】フォーマット変換装置112は、カウンタ
値分離装置111から供給された、D1フォーマットと
して伝送されたデータから分離されたカウンタ値の方式
(例えば、図9乃至図11で説明したワードの方式)を
16ビットのカウンタ値(例えば、カウンタ113が出
力するカウンタ値と同じ方式)に変換して、比較装置1
14に出力する。The format converter 112 converts the format of the counter value (for example, the word format described with reference to FIGS. 9 to 11) supplied from the counter value separator 111 and separated from the data transmitted in the D1 format. It is converted into a 16-bit counter value (for example, the same method as the counter value output from the counter 113), and
14 is output.
【0109】比較装置114は、フォーマット変換装置
112から供給されたカウンタ値とカウンタ113から
供給されたカウンタ値とを比較し、その値が同一である
とき、所定の値の不連続パラメータを符号化装置116
に出力し、その値が異なるとき、他の値の不連続パラメ
ータを符号化装置116に出力する。The comparison device 114 compares the counter value supplied from the format conversion device 112 with the counter value supplied from the counter 113, and when the values are the same, encodes a discontinuous parameter having a predetermined value. Device 116
And when the values are different, a discontinuous parameter of another value is output to the encoding device 116.
【0110】比較装置114にフォーマット変換装置1
12から供給されたカウンタ値とカウンタ113から供
給されたカウンタ値とが異なる値をとるとき、カウンタ
113は、フォーマット変換装置112が出力するカウ
ンタ値をロードして、自己のカウンタ値として設定す
る。このようにすることで、比較装置114は、一旦、
画像の不連続点を検出した後でも、再度、画像に不連続
点が含まれていた場合、その画像の不連続点を検出する
ことかできる。The format converter 1 is added to the comparator 114.
When the counter value supplied from the counter 12 and the counter value supplied from the counter 113 take different values, the counter 113 loads the counter value output from the format converter 112 and sets it as its own counter value. By doing so, the comparison device 114 once
Even after detecting a discontinuous point in an image, if a discontinuous point is included in the image again, the discontinuous point in the image can be detected.
【0111】ベースバンドデジタルビデオ信号に含まれ
る画像が編集等によりつなぎ合わされた、所定のフレー
ムが挿入された、またはフレームが削除されとき、画像
に対応してベースバンドデジタルビデオ信号に格納され
たカウンタ値は不連続の値をとるので、フォーマット変
換装置112から供給されたカウンタ値とカウンタ11
3から供給されたカウンタ値とは異なる値となり、比較
装置114は、他の値の不連続パラメータを符号化装置
116に供給する。ベースバンドデジタルビデオ信号に
含まれる画像が編集等されていない場合、画像に対応し
てベースバンドデジタルビデオ信号に格納されたカウン
タ値は連続した値をとるので、フォーマット変換装置1
12から供給されたカウンタ値とカウンタ113から供
給されたカウンタ値とは同じ値となり、比較装置114
は、所定の値の不連続パラメータを符号化装置116に
供給する。When images included in a baseband digital video signal are joined by editing or the like, a predetermined frame is inserted, or a frame is deleted, a counter stored in the baseband digital video signal corresponding to the image. Since the value takes a discontinuous value, the counter value supplied from the format converter 112 and the counter 11
The value becomes different from the counter value supplied from 3, and the comparing device 114 supplies the discontinuous parameter of another value to the encoding device 116. If the image included in the baseband digital video signal is not edited or the like, the counter value stored in the baseband digital video signal corresponding to the image takes a continuous value.
The counter value supplied from the counter 12 and the counter value supplied from the counter 113 have the same value, and
Supplies a discrete parameter of a predetermined value to the encoding device 116.
【0112】このように、符号化装置116は、比較装
置114から供給される信号を基に、画像が編集等され
たか否かを判定することができる。As described above, the encoding device 116 can determine whether or not the image has been edited based on the signal supplied from the comparison device 114.
【0113】ヒストリ情報分離装置115は、D1フォ
ーマットとして伝送されたデータの上位8ビットから、
ベースバンドビデオデータを抽出し、下位2ビットから
ヒストリ情報を抽出するための回路である。図4に示し
た例では、ヒストリ情報分離装置115は、伝送データ
からベースバンドのビデオデータを抽出して、そのビデ
オデータを符号化装置116に供給するとともに、伝送
データから第1世代、第2世代及び第3世代のヒストリ
情報を抽出して、符号化装置116とヒストリエンコー
ディング装置117にそれぞれ供給する。[0113] The history information separation device 115 calculates the upper 8 bits of the data transmitted as the D1 format.
This is a circuit for extracting baseband video data and extracting history information from lower two bits. In the example shown in FIG. 4, the history information separating device 115 extracts baseband video data from the transmission data, supplies the video data to the encoding device 116, and also extracts the first generation and second generation data from the transmission data. Generation and third generation history information is extracted and supplied to the encoding device 116 and the history encoding device 117, respectively.
【0114】符号化装置116は、ヒストリ情報分離装
置115から供給されたベースバンドのビデオデータ
を、オペレータまたはホストコンピュータから指定され
たGOP構造及びビットレートを有するビットストリーム
になるように符号化するための装置である。なお、GOP
構造を変更するとは、たとえば、GOPに含まれるピクチ
ャの数、IピクチャとIピクチャの間に存在するPピク
チャの数、及びIピクチャとPピクチャ(またはIピク
チャ)の間に存在するBピクチャの数を変更することを
意味する。The encoding device 116 encodes the baseband video data supplied from the history information separating device 115 into a bit stream having a GOP structure and a bit rate specified by an operator or a host computer. Device. GOP
Changing the structure includes, for example, the number of pictures included in a GOP, the number of P pictures existing between I pictures and I pictures, and the number of B pictures existing between I pictures and P pictures (or I pictures). It means changing the number.
【0115】図4に示された例では、供給されたベース
バンドのビデオデータには、第1世代、第2世代及び第
3世代のヒストリ情報が重畳されているので、この符号
化装置116は、再符号化処理による画質劣化が少なく
なるように、これらのヒストリ情報を選択的に再利用し
て第4世代の符号化処理を行う。In the example shown in FIG. 4, the first-, second-, and third-generation history information is superimposed on the supplied baseband video data. The fourth generation encoding process is performed by selectively reusing these pieces of history information so that image quality deterioration due to the re-encoding process is reduced.
【0116】図14は、この符号化装置116に設けら
れているエンコーダ301の具体的な構成を示している
図である。このエンコーダ301は、動きベクトル検出
回路310、フレームメモリ311、フレーム/フィー
ルド予測モード切り替え回路312、演算器313、D
CTモード切り替え回路315、DCT回路316、量
子化回路317、可変長符号化回路318、伝送バッフ
ァ319、逆量子化回路320、逆DCT回路321、
演算器322、フレームメモリ323、並びに動き補償
回路324を備えている。FIG. 14 is a diagram showing a specific configuration of the encoder 301 provided in the encoding device 116. The encoder 301 includes a motion vector detection circuit 310, a frame memory 311, a frame / field prediction mode switching circuit 312, a computing unit 313,
CT mode switching circuit 315, DCT circuit 316, quantization circuit 317, variable length encoding circuit 318, transmission buffer 319, inverse quantization circuit 320, inverse DCT circuit 321,
An arithmetic unit 322, a frame memory 323, and a motion compensation circuit 324 are provided.
【0117】始めに、ヒストリ情報が無い場合のエンコ
ーダ301の参照ピクチャの符号化処理を説明する。First, the encoding processing of the reference picture by the encoder 301 when there is no history information will be described.
【0118】符号化される画像データは、マクロブロッ
ク単位で動きベクトル検出回路310に入力される。動
きベクトル検出回路310は、予め設定されている所定
のシーケンスに従って、各フレームの画像データを、I
ピクチャ、Pピクチャ、またはBピクチャとして処理す
る。シーケンシャルに入力される各フレームの画像を、
I,P、またはBのいずれのピクチャとして処理するか
は、予め定められている(例えば、フレームF1乃至F
17により構成されるグループオブピクチャが、I,
B,P,B,P,・・・B,Pとして処理される)。The image data to be encoded is input to the motion vector detection circuit 310 on a macroblock basis. The motion vector detection circuit 310 converts the image data of each frame into I
Process as a picture, P picture, or B picture. Images of each frame input sequentially are
Which of I, P and B is processed as a picture is predetermined (for example, frames F1 to F
17, the group of pictures I,
B, P, B, P,..., B, P).
【0119】Iピクチャとして処理されるフレーム(例
えば、フレームF1)の画像データは、動きベクトル検
出回路310からフレームメモリ311の前方原画像部
311aに転送、記憶され、Bピクチャとして処理され
るフレーム(例えば、フレームF2)の画像データは、
参照原画像部311bに転送、記憶され、Pピクチャと
して処理されるフレーム(例えば、フレームF3)の画
像データは、後方原画像部311cに転送、記憶され
る。Image data of a frame (for example, frame F1) processed as an I picture is transferred from the motion vector detection circuit 310 to the front original image section 311a of the frame memory 311 and stored therein, and is processed as a B picture ( For example, the image data of the frame F2) is
Image data of a frame (for example, frame F3) transferred and stored in the reference original image unit 311b and processed as a P picture is transferred and stored in the rear original image unit 311c.
【0120】また、次のタイミングにおいて、さらにB
ピクチャ(フレームF4)またはPピクチャ(フレーム
F5)として処理すべきフレームの画像が入力されたと
き、それまで後方原画像部311cに記憶されていた最
初のPピクチャ(フレームF3)の画像データが、前方
原画像部311aに転送され、次のBピクチャ(フレー
ムF4)の画像データが、参照原画像部311bに記憶
(上書き)され、次のPピクチャ(フレームF5)の画
像データが、後方原画像部311cに記憶(上書き)さ
れる。このような動作が順次繰り返される。At the next timing, B
When an image of a frame to be processed as a picture (frame F4) or a P picture (frame F5) is input, the image data of the first P picture (frame F3) stored in the rear original image unit 311c until then is The image data of the next B picture (frame F4) is transferred to the front original image section 311a, and the image data of the next P picture (frame F5) is stored (overwritten) in the reference original image section 311b. The information is stored (overwritten) in the unit 311c. Such operations are sequentially repeated.
【0121】フレームメモリ311に記憶された各ピク
チャの信号は、そこから読み出され、Frame/Field予測
モード切り替え回路312において、フレーム予測モー
ド処理、またはフィールド予測モード処理が行なわれ
る。The signal of each picture stored in the frame memory 311 is read therefrom, and the frame / field prediction mode switching circuit 312 performs frame prediction mode processing or field prediction mode processing.
【0122】さらにまた、コントローラ330の制御の
下に、演算器313において、画像内予測、前方予測、
後方予測、または両方向予測の演算が行なわれる。これ
らの処理のうち、いずれの処理を行なうかは、予測誤差
信号(処理の対象とされている参照画像と、これに対す
る予測画像との差分)に対応して決定される。このた
め、動きベクトル検出回路310は、この判定に用いら
れる予測誤差信号の絶対値和(自乗和でもよい)を生成
する。Further, under the control of the controller 330, the arithmetic unit 313 performs intra prediction, forward prediction,
Calculation of backward prediction or bidirectional prediction is performed. Which of these processes is to be performed is determined according to the prediction error signal (the difference between the reference image to be processed and the predicted image corresponding to the reference image). For this reason, the motion vector detection circuit 310 generates a sum of absolute values (or a sum of squares) of the prediction error signal used for this determination.
【0123】ここで、Frame/Field予測モード切り替え
回路312におけるフレーム予測モードとフィールド予
測モードについて説明する。Here, the frame prediction mode and the field prediction mode in the frame / field prediction mode switching circuit 312 will be described.
【0124】フレーム予測モードが設定された場合にお
いては、Frame/Field予測モード切り替え回路312
は、動きベクトル検出回路310より供給される4個の
輝度ブロックY[1]乃至Y[4]を、そのまま後段の
演算器313に出力する。すなわち、この場合において
は、各輝度ブロックに奇数フィールドのラインのデータ
と、偶数フィールドのラインのデータとが混在した状態
となっている。このフレーム予測モードにおいては、4
個の輝度ブロック(マクロブロック)を単位として予測
が行われ、4個の輝度ブロックに対して1個の動きベク
トルが対応される。When the frame prediction mode is set, the frame / field prediction mode switching circuit 312
Directly outputs the four luminance blocks Y [1] to Y [4] supplied from the motion vector detection circuit 310 to the subsequent computing unit 313. That is, in this case, in each luminance block, the data of the line of the odd field and the data of the line of the even field are mixed. In this frame prediction mode, 4
Prediction is performed in units of luminance blocks (macroblocks), and one motion vector corresponds to four luminance blocks.
【0125】これに対して、Frame/Field予測モード切
り替え回路312は、フィールド予測モードにおいて
は、動きベクトル検出回路310より入力される信号
を、4個の輝度ブロックのうち、輝度ブロックY[1]
とY[2]を、例えば奇数フィールドのラインのドット
だけで構成させ、他の2個の輝度ブロックY[3]とY
[4]を、偶数フィールドのラインのドットだけで構成
させて、演算器313に出力する。この場合において
は、2個の輝度ブロックY[1]とY[2]に対して、
1個の動きベクトルが対応され、他の2個の輝度ブロッ
クY[3]とY[4]に対して、他の1個の動きベクト
ルが対応される。On the other hand, in the field prediction mode, the frame / field prediction mode switching circuit 312 converts the signal input from the motion vector detection circuit 310 into the luminance block Y [1] out of the four luminance blocks.
And Y [2] are composed of, for example, only the dots of the lines in the odd field, and the other two luminance blocks Y [3] and Y [2]
[4] is composed of only the dots of the lines of the even-numbered fields, and is output to the arithmetic unit 313. In this case, for two luminance blocks Y [1] and Y [2],
One motion vector corresponds, and another one motion vector corresponds to the other two luminance blocks Y [3] and Y [4].
【0126】動きベクトル検出回路310は、フレーム
予測モードにおける予測誤差の絶対値和、およびフィー
ルド予測モードにおける予測誤差の絶対値和をFrame/Fi
eld予測モード切り替え回路312に出力する。Frame/F
ield予測モード切り替え回路312は、フレーム予測モ
ードとフィールド予測モードにおける予測誤差の絶対値
和を比較し、その値が小さい予測モードに対応する処理
を施して、データを演算器313に出力する。The motion vector detecting circuit 310 calculates the sum of the absolute value of the prediction error in the frame prediction mode and the sum of the absolute value of the prediction error in the field prediction mode as Frame / Fi
Output to the eld prediction mode switching circuit 312. Frame / F
The ield prediction mode switching circuit 312 compares the sum of absolute values of prediction errors between the frame prediction mode and the field prediction mode, performs processing corresponding to the prediction mode having a small value, and outputs data to the arithmetic unit 313.
【0127】ただし、このような処理は、実際には動き
ベクトル検出回路310で行われる。すなわち、動きベ
クトル検出回路310は、決定されたモードに対応する
構成の信号をFrame/Field予測モード切り替え回路31
2に出力し、Frame/Field予測モード切り替え回路31
2は、その信号を、そのまま後段の演算器313に出力
する。However, such processing is actually performed by the motion vector detection circuit 310. That is, the motion vector detection circuit 310 converts the signal having the configuration corresponding to the determined mode into a frame / field prediction mode switching circuit 31.
2 and a frame / field prediction mode switching circuit 31
2 outputs the signal as it is to the subsequent operation unit 313.
【0128】なお、色差信号は、フレーム予測モードの
場合、奇数フィールドのラインのデータと偶数フィール
ドのラインのデータとが混在する状態で、演算器313
に供給される。また、フィールド予測モードの場合、各
色差ブロックCb,Crの上半分(4ライン)が、輝度
ブロックY[1],Y[2]に対応する奇数フィールド
の色差信号とされ、下半分(4ライン)が、輝度ブロッ
クY[3],Y[4]に対応する偶数フィールドの色差
信号とされる。In the frame prediction mode, the chrominance signal is supplied to the arithmetic unit 313 in a state where the data of the odd field lines and the data of the even field lines are mixed.
Supplied to In the field prediction mode, the upper half (4 lines) of each of the color difference blocks Cb and Cr is used as a color difference signal of an odd field corresponding to the luminance block Y [1], Y [2], and the lower half (4 lines). ) Are color difference signals of even fields corresponding to the luminance blocks Y [3] and Y [4].
【0129】また、動きベクトル検出回路310は、以
下に示すようにして、コントローラ330において、画
像内予測、前方予測、後方予測、または両方向予測のい
ずれの予測を行なうかを決定するための予測誤差の絶対
値和を生成する。The motion vector detecting circuit 310 determines a prediction error for determining whether to perform intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction in the controller 330 as described below. Generates the sum of absolute values of.
【0130】すなわち、画像内予測の予測誤差の絶対値
和として、参照画像のマクロブロックの信号Aijの総和
ΣAijの絶対値|ΣAij|と、マクロブロックの信号A
ijの絶対値|Aij|の総和Σ|Aij|の差を求める。ま
た、前方予測の予測誤差の絶対値和として、参照画像の
マクロブロックの信号Aijと、予測画像のマクロブロッ
クの信号Bijの差Aij−Bijの絶対値|Aij−Bij|の
総和Σ|Aij−Bij|を求める。また、後方予測と両方
向予測の予測誤差の絶対値和も、前方予測における場合
と同様に(その予測画像を前方予測における場合と異な
る予測画像に変更して)求める。That is, as the sum of the absolute values of the prediction errors of the intra-picture prediction, the absolute value | ΣAij | of the sum ΣAij of the macroblock signals Aij of the reference picture and the macroblock signal A
The difference between the sum 絶 対 | Aij | of the absolute values | Aij | The sum of absolute values | Aij−Bij | of the difference Aij−Bij | between the signal Aij of the macroblock of the reference image and the signal Bij of the macroblock of the predicted image is used as the absolute value sum of the prediction error of the forward prediction. Bij |. In addition, the absolute value sum of the prediction error between the backward prediction and the bidirectional prediction is obtained in the same manner as in the forward prediction (by changing the predicted image to a different predicted image from that in the forward prediction).
【0131】これらの絶対値和は、コントローラ330
に供給される。コントローラ330は、前方予測、後方
予測および両方向予測の予測誤差の絶対値和のうちの最
も小さいものを、インタ予測の予測誤差の絶対値和とし
て選択する。さらに、このインタ予測の予測誤差の絶対
値和と、画像内予測の予測誤差の絶対値和とを比較し、
その小さい方を選択し、この選択した絶対値和に対応す
るモードを予測モードとして選択する。すなわち、画像
内予測の予測誤差の絶対値和の方が小さければ、画像内
予測モードが設定される。インタ予測の予測誤差の絶対
値和の方が小さければ、前方予測、後方予測または両方
向予測モードのうちの対応する絶対値和が最も小さかっ
たモードが設定される。The sum of these absolute values is calculated by the controller 330
Supplied to The controller 330 selects the smallest absolute value sum of the prediction errors of the forward prediction, the backward prediction, and the bidirectional prediction as the absolute value sum of the prediction errors of the inter prediction. Furthermore, the absolute value sum of the prediction error of the inter prediction and the absolute value sum of the prediction error of the intra prediction are compared,
The smaller one is selected, and the mode corresponding to the selected sum of absolute values is selected as the prediction mode. That is, if the sum of the absolute values of the prediction errors of the intra prediction is smaller, the intra prediction mode is set. If the sum of the absolute values of the prediction errors in the inter prediction is smaller, the mode in which the corresponding sum of the absolute values is the smallest among the forward prediction, backward prediction, and bidirectional prediction modes is set.
【0132】このように、動きベクトル検出回路310
は、参照画像のマクロブロックの信号を、フレームまた
はフィールド予測モードのうち、Frame/Field予測モー
ド切り替え回路312により選択されたモードに対応す
る構成で、Frame/Field予測モード切り替え回路312
を介して演算器313に供給するとともに、4つの予測
モードのうちのコントローラ330により選択された予
測モードに対応する予測画像と参照画像の間の動きベク
トルを検出し、可変長符号化回路318と動き補償回路
324に出力する。上述したように、この動きベクトル
としては、対応する予測誤差の絶対値和が最小となるも
のが選択される。As described above, the motion vector detecting circuit 310
The frame / field prediction mode switching circuit 312 converts a macroblock signal of a reference image into a frame / field prediction mode corresponding to the mode selected by the frame / field prediction mode switching circuit 312.
And a motion vector between the predicted image and the reference image corresponding to the prediction mode selected by the controller 330 among the four prediction modes, and the variable-length encoding circuit 318 Output to the motion compensation circuit 324. As described above, as the motion vector, the motion vector having the smallest absolute value sum of the corresponding prediction errors is selected.
【0133】コントローラ330は、動きベクトル検出
回路310が前方原画像部311aよりIピクチャの画
像データを読み出しているとき、予測モードとして、フ
レームまたはフィールド(画像)内予測モード(動き補
償を行わないモード)を設定し、演算器313のスイッ
チ313dを接点a側に切り替える。これにより、Iピ
クチャの画像データがFrame/FieldDCTモード切り替え回
路315に入力される。When the motion vector detection circuit 310 reads out the I-picture image data from the forward original image section 311a, the controller 330 sets the prediction mode as the intra-frame or field (image) prediction mode (mode in which motion compensation is not performed). ) Is set, and the switch 313d of the arithmetic unit 313 is switched to the contact a side. Thus, the image data of the I picture is input to the Frame / FieldDCT mode switching circuit 315.
【0134】Frame/FieldDCTモード切り替え回路315
は、4個の輝度ブロックのデータを、奇数フィールドの
ラインと偶数フィールドのラインが混在する状態(フレ
ームDCTモード)、または、分離された状態(フィール
ドDCTモード)、のいずれかの状態にして、DCT回路31
6に出力する。Frame / Field DCT mode switching circuit 315
Sets the data of the four luminance blocks to one of a state in which the lines of the odd field and the lines of the even field are mixed (frame DCT mode) or a state in which the lines are separated (field DCT mode), DCT circuit 31
6 is output.
【0135】すなわち、Frame/FieldDCTモード切り替え
回路315は、奇数フィールドと偶数フィールドのデー
タを混在してDCT処理した場合における符号化効率と、
分離した状態においてDCT処理した場合の符号化効率と
を比較し、符号化効率の良好なモードを選択する。That is, the Frame / Field DCT mode switching circuit 315 determines the coding efficiency when the data of the odd field and the even field are mixed and subjected to the DCT processing,
The coding efficiency when DCT processing is performed in the separated state is compared, and a mode having good coding efficiency is selected.
【0136】例えば、入力された信号を、奇数フィール
ドと偶数フィールドのラインが混在する構成とし、上下
に隣接する奇数フィールドのラインの信号と偶数フィー
ルドのラインの信号の差を演算し、さらにその絶対値の
和(または自乗和)を求める。For example, the input signal has a configuration in which odd field and even field lines are mixed, and the difference between the signal of the vertically adjacent odd field line and the signal of the even field line is calculated. Find the sum (or sum of squares) of the values.
【0137】また、入力された信号を、奇数フィールド
と偶数フィールドのラインが分離した構成とし、上下に
隣接する奇数フィールドのライン同士の信号の差と、偶
数フィールドのライン同士の信号の差を演算し、それぞ
れの絶対値の和(または自乗和)を求める。Further, the input signal is configured such that the lines of the odd field and the even field are separated, and the difference between the signal of the odd field adjacent vertically and the difference of the signal of the lines of the even field are calculated. Then, the sum (or sum of squares) of the respective absolute values is obtained.
【0138】さらに、両者(絶対値和)を比較し、小さ
い値に対応するDCTモードを設定する。すなわち、前者
の方が小さければ、フレームDCTモードを設定し、後者
の方が小さければ、フィールドDCTモードを設定する。Further, the two (the sum of absolute values) are compared, and the DCT mode corresponding to the smaller value is set. That is, if the former is smaller, the frame DCT mode is set, and if the latter is smaller, the field DCT mode is set.
【0139】そして、選択したDCTモードに対応する構
成のデータをDCT回路316に出力するとともに、選択
したDCTモードを示すDCTフラグを、可変長符号化回路3
18、および動き補償回路324に出力する。Then, the data having the configuration corresponding to the selected DCT mode is output to the DCT circuit 316, and the DCT flag indicating the selected DCT mode is transmitted to the variable length coding circuit 3.
18 and the motion compensation circuit 324.
【0140】Frame/Field予測モード切り替え回路31
2における予測モードと、このFrame/FieldDCTモード切
り替え回路315におけるDCTモードを比較して明らか
なように、輝度ブロックに関しては、両者の各モードに
おけるデータ構造は実質的に同一である。Frame / Field prediction mode switching circuit 31
As is clear from the comparison between the prediction mode in the frame No. 2 and the DCT mode in the frame / field DCT mode switching circuit 315, the luminance block has substantially the same data structure in each mode.
【0141】Frame/Field予測モード切り替え回路31
2において、フレーム予測モード(奇数ラインと偶数ラ
インが混在するモード)が選択された場合、Frame/Fiel
dDCTモード切り替え回路315においても、フレームDC
Tモード(奇数ラインと偶数ラインが混在するモード)
が選択される可能性が高く、またFrame/Field予測モー
ド切り替え回路312において、フィールド予測モード
(奇数フィールドと偶数フィールドのデータが分離され
たモード)が選択された場合、Frame/FieldDCTモード切
り替え回路315において、フィールドDCTモード(奇
数フィールドと偶数フィールドのデータが分離されたモ
ード)が選択される可能性が高い。Frame / Field prediction mode switching circuit 31
When the frame prediction mode (mode in which odd lines and even lines are mixed) is selected in 2, the frame / fiel
In the dDCT mode switching circuit 315, the frame DC
T mode (mode where odd and even lines are mixed)
Is highly likely to be selected, and when the frame / field prediction mode switching circuit 312 selects the field prediction mode (a mode in which the data of the odd field and the data of the even field are separated), the frame / field DCT mode switching circuit 315 , It is highly possible that the field DCT mode (mode in which the data of the odd field and the data of the even field are separated) is selected.
【0142】しかしながら、必ずしも常にこのようにモ
ードが選択されるわけではなく、Frame/Field予測モー
ド切り替え回路312においては、予測誤差の絶対値和
が小さくなるようにモードが決定され、Frame/FieldDCT
モード切り替え回路315においては、符号化効率が良
好となるようにモードが決定される。However, the mode is not always selected in this way. In the frame / field prediction mode switching circuit 312, the mode is determined so that the absolute value sum of the prediction error is small, and the frame / field DCT is determined.
In the mode switching circuit 315, the mode is determined so that the encoding efficiency becomes good.
【0143】Frame/FieldDCTモード切り替え回路315
より出力されたIピクチャの画像データは、DCT回路3
16に入力されてDCT処理され、DCT係数に変換される。
このDCT係数は、量子化回路317に入力され、送信バ
ッファ319のデータ蓄積量(バッファ蓄積量)に対応
した量子化スケールで量子化された後、可変長符号化回
路318に入力される。Frame / Field DCT mode switching circuit 315
The I-picture image data output from the DCT circuit 3
The DCT coefficients are input to DCT 16 and converted into DCT coefficients.
The DCT coefficient is input to the quantization circuit 317, quantized at a quantization scale corresponding to the data storage amount (buffer storage amount) of the transmission buffer 319, and then input to the variable length coding circuit 318.
【0144】可変長符号化回路318は、量子化回路3
17より供給される量子化スケール(スケール)に対応
して、量子化回路317より供給される画像データ(い
まの場合、Iピクチャのデータ)を、例えばハフマン符
号などの可変長符号に変換し、送信バッファ319に出
力する。The variable length encoding circuit 318 is
The image data (in this case, I-picture data) supplied from the quantization circuit 317 is converted into a variable-length code such as a Huffman code in accordance with the quantization scale (scale) supplied from Output to the transmission buffer 319.
【0145】可変長符号化回路318にはまた、量子化
回路317より量子化スケール(スケール)、コントロ
ーラ330より予測モード(画像内予測、前方予測、後
方予測、または両方向予測のいずれが設定されたかを示
すモード)、動きベクトル検出回路310より動きベク
トル、Frame/Field予測モード切り替え回路312より
予測フラグ(フレーム予測モードまたはフィールド予測
モードのいずれが設定されたかを示すフラグ)、および
Frame/FieldDCTモード切り替え回路315が出力するDC
Tフラグ(フレームDCTモードまたはフィールドDCTモー
ドのいずれが設定されたかを示すフラグ)が入力されて
おり、これらも可変長符号化される。The variable length coding circuit 318 also sets a quantization scale (scale) by the quantization circuit 317 and a prediction mode (intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction) by the controller 330. , A motion vector from the motion vector detection circuit 310, a prediction flag from the Frame / Field prediction mode switching circuit 312 (a flag indicating whether the frame prediction mode or the field prediction mode is set), and
DC output by the Frame / FieldDCT mode switching circuit 315
A T flag (a flag indicating whether the frame DCT mode or the field DCT mode is set) is input, and these are also subjected to variable-length coding.
【0146】送信バッファ319は、入力されたデータ
を一時蓄積し、蓄積量に対応するデータを量子化回路3
17に出力する。送信バッファ319は、そのデータ残
量が許容上限値まで増量すると、量子化制御信号によっ
て量子化回路317の量子化スケールを大きくすること
により、量子化データのデータ量を低下させる。また、
これとは逆に、データ残量が許容下限値まで減少する
と、送信バッファ319は、量子化制御信号によって量
子化回路317の量子化スケールを小さくすることによ
り、量子化データのデータ量を増大させる。このように
して、送信バッファ319のオーバフローまたはアンダ
フローが防止される。The transmission buffer 319 temporarily stores the input data, and converts the data corresponding to the storage amount into the quantization circuit 3.
17 is output. When the remaining data amount increases to the allowable upper limit value, the transmission buffer 319 reduces the data amount of the quantized data by increasing the quantization scale of the quantization circuit 317 by the quantization control signal. Also,
Conversely, when the remaining data amount decreases to the allowable lower limit, the transmission buffer 319 increases the data amount of the quantized data by reducing the quantization scale of the quantization circuit 317 by the quantization control signal. . In this way, overflow or underflow of the transmission buffer 319 is prevented.
【0147】そして、送信バッファ319に蓄積された
データは、所定のタイミングで読み出され、伝送路に出
力される。The data stored in the transmission buffer 319 is read at a predetermined timing and output to the transmission path.
【0148】一方、量子化回路317より出力されたI
ピクチャのデータは、逆量子化回路320に入力され、
量子化回路317より供給される量子化スケールに対応
して逆量子化される。逆量子化回路320の出力は、ID
CT(逆離散コサイン変換)回路321に入力され、逆離
散コサイン変換処理された後、演算器322を介してフ
レームメモリ323の前方予測画像部323a供給され
て記憶される。On the other hand, the I output from the quantization circuit 317
The picture data is input to the inverse quantization circuit 320,
The inverse quantization is performed according to the quantization scale supplied from the quantization circuit 317. The output of the inverse quantization circuit 320 is ID
After being input to a CT (Inverse Discrete Cosine Transform) circuit 321 and subjected to inverse discrete cosine transform processing, it is supplied to a forward prediction image section 323 a of a frame memory 323 via an arithmetic unit 322 and stored.
【0149】動きベクトル検出回路310は、シーケン
シャルに入力される各フレームの画像データを、たとえ
ば、I,B,P,B,P,B・・・のピクチャとしてそ
れぞれ処理する場合、最初に入力されたフレームの画像
データをIピクチャとして処理した後、次に入力された
フレームの画像をBピクチャとして処理する前に、さら
にその次に入力されたフレームの画像データをPピクチ
ャとして処理する。Bピクチャは、後方予測を伴うた
め、後方予測画像としてのPピクチャが先に用意されて
いないと、復号することができないからである。The motion vector detecting circuit 310 receives the image data of each sequentially input frame, for example, as I, B, P, B, P, B... After the image data of the input frame is processed as an I picture, the image data of the next input frame is processed as a P picture before the image of the next input frame is processed as a B picture. This is because a B picture involves backward prediction and cannot be decoded unless a P picture as a backward predicted image is prepared first.
【0150】そこで動きベクトル検出回路310は、I
ピクチャの処理の次に、後方原画像部311cに記憶さ
れているPピクチャの画像データの処理を開始する。そ
して、上述した場合と同様に、マクロブロック単位での
フレーム間差分(予測誤差)の絶対値和が、動きベクト
ル検出回路310からFrame/Field予測モード切り替え
回路312とコントローラ330に供給される。Frame/
Field予測モード切り替え回路312とコントローラ3
30は、このPピクチャのマクロブロックの予測誤差の
絶対値和に対応して、フレーム/フィールド予測モー
ド、または画像内予測、前方予測、後方予測、もしくは
両方向予測の予測モードを設定する。Therefore, the motion vector detection circuit 310
After the processing of the picture, the processing of the image data of the P picture stored in the rear original image section 311c is started. Then, as in the case described above, the absolute value sum of the inter-frame difference (prediction error) in macroblock units is supplied from the motion vector detection circuit 310 to the Frame / Field prediction mode switching circuit 312 and the controller 330. Frame /
Field prediction mode switching circuit 312 and controller 3
Reference numeral 30 sets a frame / field prediction mode or a prediction mode of intra-picture prediction, forward prediction, backward prediction, or bidirectional prediction in accordance with the absolute value sum of the prediction errors of the macroblocks of the P picture.
【0151】演算器313は、画像内予測モードが設定
されたとき、スイッチ313dを上述したように接点a
側に切り替える。したがって、このデータは、Iピクチ
ャのデータと同様に、Frame/FieldDCTモード切り替え回
路315、DCT回路316、量子化回路317、可変長
符号化回路318、および送信バッファ319を介して
伝送路に伝送される。また、このデータは、逆量子化回
路320、IDCT回路321、および演算器322を介し
てフレームメモリ323の後方予測画像部323bに供
給されて記憶される。When the intra prediction mode is set, the arithmetic unit 313 sets the switch 313d to the contact a as described above.
Switch to the side. Therefore, this data is transmitted to the transmission path via the Frame / Field DCT mode switching circuit 315, DCT circuit 316, quantization circuit 317, variable length coding circuit 318, and transmission buffer 319, like the I picture data. You. The data is supplied to the backward prediction image section 323b of the frame memory 323 via the inverse quantization circuit 320, the IDCT circuit 321 and the arithmetic unit 322, and is stored.
【0152】また、前方予測モードが設定された場合、
スイッチ313dが接点bに切り替えられるとともに、
フレームメモリ323の前方予測画像部323aに記憶
されている画像(いまの場合、Iピクチャの画像)デー
タが読み出され、動き補償回路324により、動きベク
トル検出回路310が出力する動きベクトルに対応して
動き補償される。すなわち、動き補償回路324は、コ
ントローラ330より前方予測モードの設定が指令され
たとき、前方予測画像部323aの読み出しアドレス
を、動きベクトル検出回路310が、現在、出力してい
るマクロブロックの位置に対応する位置から動きベクト
ルに対応する分だけずらしてデータを読み出し、予測画
像データを生成する。If the forward prediction mode is set,
While the switch 313d is switched to the contact b,
The image data (in this case, the I-picture image) stored in the forward prediction image unit 323a of the frame memory 323 is read out, and the motion compensation circuit 324 corresponds to the motion vector output from the motion vector detection circuit 310. Motion compensation. That is, when the setting of the forward prediction mode is instructed by the controller 330, the motion compensation circuit 324 sets the read address of the forward prediction image unit 323a to the position of the macroblock currently output by the motion vector detection circuit 310. Data is read out from the corresponding position by shifting by an amount corresponding to the motion vector, and predicted image data is generated.
【0153】動き補償回路324より出力された予測画
像データは、演算器313aに供給される。演算器31
3aは、Frame/Field予測モード切り替え回路312よ
り供給された参照画像のマクロブロックのデータから、
動き補償回路324より供給された、このマクロブロッ
クに対応する予測画像データを減算し、その差分(予測
誤差)を出力する。この差分データは、Frame/FieldDCT
モード切り替え回路315、DCT回路316、量子化回
路317、可変長符号化回路318、および送信バッフ
ァ319を介して伝送路に伝送される。また、この差分
データは、逆量子化回路320、およびIDCT回路321
により局所的に復号され、演算器322に入力される。The prediction image data output from the motion compensation circuit 324 is supplied to a calculator 313a. Arithmetic unit 31
3a is based on the macroblock data of the reference image supplied from the frame / field prediction mode switching circuit 312,
The prediction image data corresponding to this macro block supplied from the motion compensation circuit 324 is subtracted, and the difference (prediction error) is output. The difference data is Frame / FieldDCT
The signal is transmitted to the transmission path via the mode switching circuit 315, the DCT circuit 316, the quantization circuit 317, the variable length coding circuit 318, and the transmission buffer 319. The difference data is supplied to the inverse quantization circuit 320 and the IDCT circuit 321.
, And is input to the arithmetic unit 322.
【0154】この演算器322にはまた、演算器313
aに供給されている予測画像データと同一のデータが供
給されている。演算器322は、IDCT回路321が出力
する差分データに、動き補償回路324が出力する予測
画像データを加算する。これにより、元の(復号した)
Pピクチャの画像データが得られる。このPピクチャの
画像データは、フレームメモリ323の後方予測画像部
323bに供給されて記憶される。The operation unit 322 also includes an operation unit 313
The same data as the predicted image data supplied to a is supplied. The arithmetic unit 322 adds the prediction image data output from the motion compensation circuit 324 to the difference data output from the IDCT circuit 321. This allows the original (decrypted)
Image data of a P picture is obtained. The image data of the P picture is supplied to and stored in the backward prediction image section 323b of the frame memory 323.
【0155】動きベクトル検出回路310は、このよう
に、IピクチャとPピクチャのデータが前方予測画像部
323aと後方予測画像部323bにそれぞれ記憶され
た後、次にBピクチャの処理を実行する。Frame/Field
予測モード切り替え回路312とコントローラ330
は、マクロブロック単位でのフレーム間差分の絶対値和
の大きさに対応して、フレーム/フィールドモードを設
定し、また、予測モードを画像内予測モード、前方予測
モード、後方予測モード、または両方向予測モードのい
ずれかに設定する。After the data of the I picture and the P picture are stored in the forward prediction image section 323a and the backward prediction image section 323b, the motion vector detection circuit 310 next executes the processing of the B picture. Frame / Field
Prediction mode switching circuit 312 and controller 330
Sets the frame / field mode in accordance with the magnitude of the sum of absolute values of the inter-frame differences in macroblock units, and sets the prediction mode to an intra-picture prediction mode, a forward prediction mode, a backward prediction mode, or a bidirectional prediction mode. Set to one of the prediction modes.
【0156】上述したように、画像内予測モードまたは
前方予測モードの時、スイッチ313dは接点aまたは
bに切り替えられる。このとき、Pピクチャにおける場
合と同様の処理が行われ、データが伝送される。As described above, in the intra prediction mode or the forward prediction mode, the switch 313d is switched to the contact point a or b. At this time, the same processing as in the case of the P picture is performed, and the data is transmitted.
【0157】これに対して、後方予測モードまたは両方
向予測モードが設定された時、スイッチ313dは、接
点cまたはdにそれぞれ切り替えられる。On the other hand, when the backward prediction mode or the bidirectional prediction mode is set, the switch 313d is switched to the contact point c or d.
【0158】スイッチ313dが接点cに切り替えられ
ている後方予測モードの時、後方予測画像部323bに
記憶されている画像(いまの場合、Pピクチャの画像)
データが読み出され、動き補償回路324により、動き
ベクトル検出回路310が出力する動きベクトルに対応
して動き補償される。すなわち、動き補償回路324
は、コントローラ330より後方予測モードの設定が指
令されたとき、後方予測画像部323bの読み出しアド
レスを、動きベクトル検出回路310が、現在、出力し
ているマクロブロックの位置に対応する位置から動きベ
クトルに対応する分だけずらしてデータを読み出し、予
測画像データを生成する。In the backward prediction mode in which the switch 313d is switched to the contact point c, the image stored in the backward prediction image section 323b (P picture in this case).
The data is read, and the motion compensation circuit 324 performs motion compensation corresponding to the motion vector output from the motion vector detection circuit 310. That is, the motion compensation circuit 324
When the setting of the backward prediction mode is instructed by the controller 330, the read address of the backward prediction image unit 323b is changed by the motion vector detection circuit 310 from the position corresponding to the position of the macroblock currently output. The data is read out by shifting by an amount corresponding to (i), and predicted image data is generated.
【0159】動き補償回路324より出力された予測画
像データは、演算器313bに供給される。演算器31
3bは、Frame/Field予測モード切り替え回路312よ
り供給された参照画像のマクロブロックのデータから、
動き補償回路324より供給された予測画像データを減
算し、その差分を出力する。この差分データは、Frame/
FieldDCTモード切り替え回路315、DCT回路316、
量子化回路317、可変長符号化回路318、および送
信バッファ319を介して伝送路に伝送される。The prediction image data output from the motion compensation circuit 324 is supplied to a calculator 313b. Arithmetic unit 31
3b is based on the macroblock data of the reference image supplied from the frame / field prediction mode switching circuit 312,
The prediction image data supplied from the motion compensation circuit 324 is subtracted, and the difference is output. This difference data is
FieldDCT mode switching circuit 315, DCT circuit 316,
The data is transmitted to the transmission path via the quantization circuit 317, the variable length coding circuit 318, and the transmission buffer 319.
【0160】スイッチ313dが接点dに切り替えられ
ている両方向予測モードの時、前方予測画像部323a
に記憶されている画像(いまの場合、Iピクチャの画
像)データと、後方予測画像部323bに記憶されてい
る画像(いまの場合、Pピクチャの画像)データが読み
出され、動き補償回路324により、動きベクトル検出
回路310が出力する動きベクトルに対応して動き補償
される。In the bidirectional prediction mode in which the switch 313d is switched to the contact point d, the forward prediction image section 323a
(In this case, an I-picture image) data and an image (in this case, a P-picture image) data stored in the backward prediction image unit 323b are read out, and the motion compensation circuit 324 As a result, motion compensation is performed corresponding to the motion vector output from the motion vector detection circuit 310.
【0161】すなわち、動き補償回路324は、コント
ローラ330より両方向予測モードの設定が指令された
とき、前方予測画像部323aと後方予測画像部323
bの読み出しアドレスを、動きベクトル検出回路310
がいま出力しているマクロブロックの位置に対応する位
置から動きベクトル(この場合の動きベクトルは、前方
予測画像用と後方予測画像用の2つとなる)に対応する
分だけずらしてデータを読み出し、予測画像データを生
成する。That is, when the setting of the bidirectional prediction mode is instructed by the controller 330, the motion compensation circuit 324 outputs the forward predicted image portion 323a and the backward predicted image portion 323.
b, the read address of the motion vector detection circuit 310
The data is read out from the position corresponding to the position of the macro block currently being output by shifting the motion vector (in this case, two motion vectors for the forward predicted image and the backward predicted image) by the amount corresponding to the motion vector, Generate predicted image data.
【0162】動き補償回路324より出力された予測画
像データは、演算器313cに供給される。演算器31
3cは、動きベクトル検出回路310より供給された参
照画像のマクロブロックのデータから、動き補償回路3
24より供給された予測画像データの平均値を減算し、
その差分を出力する。この差分データは、Frame/FieldD
CTモード切り替え回路315、DCT回路316、量子化
回路317、可変長符号化回路318、および送信バッ
ファ319を介して伝送路に伝送される。The predicted image data output from the motion compensation circuit 324 is supplied to a calculator 313c. Arithmetic unit 31
Reference numeral 3c denotes a motion compensation circuit 3c based on the macroblock data of the reference image supplied from the motion vector detection circuit 310.
Subtracting the average value of the predicted image data supplied from 24,
Output the difference. This difference data is Frame / FieldD
The signal is transmitted to the transmission path via the CT mode switching circuit 315, the DCT circuit 316, the quantization circuit 317, the variable length coding circuit 318, and the transmission buffer 319.
【0163】Bピクチャの画像は、他の画像の予測画像
とされることがないため、フレームメモリ323には記
憶されない。The picture of the B picture is not stored in the frame memory 323 because it is not regarded as a predicted picture of another picture.
【0164】なお、フレームメモリ323において、前
方予測画像部323aと後方予測画像部323bは、必
要に応じてバンク切り替えが行われ、所定の参照画像に
対して、一方または他方に記憶されているものを、前方
予測画像あるいは後方予測画像として切り替えて出力す
ることができる。In the frame memory 323, the forward prediction image section 323a and the backward prediction image section 323b are switched between banks as necessary, and are stored in one or the other for a predetermined reference image. Can be switched and output as a forward predicted image or a backward predicted image.
【0165】上述した説明においては、輝度ブロックを
中心として説明をしたが、色差ブロックについても同様
に、マクロブロックを単位として処理されて伝送され
る。なお、色差ブロックを処理する場合の動きベクトル
は、対応する輝度ブロックの動きベクトルを垂直方向と
水平方向に、それぞれ1/2にしたものが用いられる。In the above description, the luminance block is mainly described, but the chrominance block is also processed and transmitted in units of macro blocks. As a motion vector for processing a chrominance block, a motion vector obtained by halving the motion vector of the corresponding luminance block in the vertical and horizontal directions is used.
【0166】さらに、コントローラ330は、オペレー
タまたはホストコンピュータからGOP構造に関するイン
ストラクションを受け取って、そのGOP構造に対応する
ように各ピクチャのピクチャタイプを決定する。また、
このコントローラ330は、オペレータまたはホストコ
ンピュータからタ−ゲットビットレートの情報を受け取
り、このエンコーダ301から出力されるビットレート
がこの指定されたターゲットビットレートになるよう
に、量子化回路317を制御する。Further, the controller 330 receives instructions regarding the GOP structure from the operator or the host computer, and determines the picture type of each picture so as to correspond to the GOP structure. Also,
The controller 330 receives information on the target bit rate from the operator or the host computer, and controls the quantization circuit 317 so that the bit rate output from the encoder 301 becomes the specified target bit rate.
【0167】さらに、このコントローラ330は、ヒス
トリ情報分離装置115から出力された複数世代のヒス
トリ情報を受け取り、これらのヒストリ情報を再利用し
て参照ピクチャの符号化処理を行う。以下に詳しく説明
する。Further, the controller 330 receives history information of a plurality of generations output from the history information separating device 115, and encodes a reference picture by reusing the history information. This will be described in detail below.
【0168】まず、このコントローラ330は、オペレ
ータによって指定されたGOP構造から決定された参照ピ
クチャのピクチャタイプと、ヒストリ情報に含まれるピ
クチャタイプが一致するか否かを判断する。つまり、指
定されたピクチャタイプと同じピクチャタイプでこの参
照ピクチャが過去において符号化されたことがあるか否
かを判断する。First, the controller 330 determines whether or not the picture type of the reference picture determined from the GOP structure specified by the operator matches the picture type included in the history information. That is, it is determined whether or not this reference picture has been encoded in the past with the same picture type as the designated picture type.
【0169】図4に示された例をあげてよりわかりやす
く説明するのであれば、このコントローラ330は、第
4世代の符号化処理としてこの参照ピクチャにアサイン
されたピクチャタイプが、第1世代の符号化処理おける
この参照ピクチャのピクチャタイプ、第2世代の符号化
処理おけるこの参照ピクチャのピクチャタイプ、または
第3世代の符号化処理おけるこの参照ピクチャのピクチ
ャタイプのいずれかと一致するか否かを判断する。[0169] To explain this more clearly with the example shown in FIG. 4, the controller 330 determines that the picture type assigned to this reference picture as the fourth generation encoding process is the first generation. Whether the picture type of the reference picture in the encoding process, the picture type of the reference picture in the second generation encoding process, or the picture type of the reference picture in the third generation encoding process is matched. to decide.
【0170】もし、第4世代の符号化処理としてこの参
照ピクチャに指定されたピクチャタイプが、過去の符号
化処理におけるどのピクチャタイプとも一致しないので
あれは、このコントローラ330は、上述した「通常符
号化処理」を行う。つまり、この場合には、第1世代、
第2世代または第3世代のどの世代の符号化処理におい
ても、第4世代の符号化処理としてアサインされたピク
チャタイプで、この参照ピクチャが符号化処理されたこ
とがないということになる。一方、もし、第4世代の符
号化処理としてこの参照ピクチャに指定されたピクチャ
タイプが、過去の符号化処理におけるいずれかのピクチ
ャタイプと一致するのであれば、このコントローラ33
0は、「パラメータ再利用符号化処理」を行う。つま
り、この場合には、第1世代、第2世代または第3世代
のいずれかの世代の符号化処理において、第4世代の符
号化処理としてアサインされたピクチャタイプで、この
参照ピクチャが符号化処理されたことがあるということ
になる。If the picture type designated as the reference picture as the fourth-generation encoding process does not match any of the picture types in the past encoding process, the controller 330 executes the above-described “normal encoding”. Process ". That is, in this case, the first generation,
In any of the second-generation and third-generation encoding processes, it means that this reference picture has not been encoded with the picture type assigned as the fourth-generation encoding process. On the other hand, if the picture type designated as the reference picture as the fourth-generation encoding process matches any of the picture types in the past encoding process, the controller 33
0 performs “parameter reuse encoding processing”. That is, in this case, in the encoding processing of any of the first generation, the second generation, and the third generation, the reference picture is encoded using the picture type assigned as the fourth generation encoding processing. It has been processed.
【0171】また、「パラメータ再利用符号化処理」を
実行している場合であっても、比較装置114から供給
される不連続パラメータが、画像が不連続であること
(ベースバンドデジタルビデオ信号に含まれる画像が編
集等によりつなぎ合わされた、所定のフレームが挿入さ
れた、またはフレームが削除されたなど)を示す値を有
するとき、符号化パラメータを再利用して符号化処理を
行うと、不連続な点の前後の画像が大きく劣化するの
で、コントローラ330は、「通常符号化処理」を行
う。Even when the “parameter reuse encoding process” is being executed, the discontinuity parameter supplied from the comparison device 114 indicates that the image is discontinuous (the baseband digital video signal When the included image has a value indicating that the images included are connected by editing or the like, a predetermined frame has been inserted, or the frame has been deleted, etc. Since the images before and after the continuous point are greatly deteriorated, the controller 330 performs the “normal encoding process”.
【0172】ヒストリ情報が無い場合のエンコーダ30
1の参照ピクチャの符号化処理と、一部、説明が重複す
るが、まず、最初にコントローラ330の通常符号化処
理について説明する。Encoder 30 when there is no history information
Although the description partially overlaps with the coding process of the reference picture of No. 1, the normal coding process of the controller 330 will be described first.
【0173】動きベクトル検出回路310は、フレーム
予測モードまたはフィールド予測モードのどちらが選択
されるべきかを判断するために、フレーム予測モードに
おける予測誤差とフィールド予測モードおける予測誤差
をそれぞれ検出し、その予測誤差の値をコントローラ3
30に供給する。コントローラ330は、それらの予測
誤差の値を比較し、その予測誤差の値が小さい方の予測
モードを選択する。Frame/Field予測モード切り替え回
路312は、コントローラ330によって選択された予
測モードに対応するように信号処理を行い、それを演算
器313に供給する。The motion vector detection circuit 310 detects a prediction error in the frame prediction mode and a prediction error in the field prediction mode to determine whether the frame prediction mode or the field prediction mode should be selected. Error value of controller 3
30. The controller 330 compares the values of the prediction errors and selects the prediction mode with the smaller value of the prediction error. The Frame / Field prediction mode switching circuit 312 performs signal processing so as to correspond to the prediction mode selected by the controller 330, and supplies it to the arithmetic unit 313.
【0174】具体的には、Frame/Field予測モード切り
替え回路312は、フレーム予測モードが選択された場
合には、輝度信号に関しては、入力された状態のまま演
算器313に出力するように信号処理を行い、色差信号
に関しては、奇数フィールドラインと偶数フィールドラ
インとが混在するように信号処理する。一方、フィール
ド予測モードが選択された場合には、輝度信号に関して
は、輝度ブロックY[1]とY[2]を奇数フィールドライン
で構成し、輝度ブロックY[3]とY[4]を偶数フィールド
ラインで構成するように信号処理し、色差信号に関して
は、上4ラインを奇数フィールドラインで構成し、下4
ラインを偶数フィールドラインで構成するように信号処
理する。Specifically, when the frame prediction mode is selected, the frame / field prediction mode switching circuit 312 performs signal processing so that the luminance signal is output to the arithmetic unit 313 as it is input. Is performed on the color difference signal so that the odd field lines and the even field lines are mixed. On the other hand, when the field prediction mode is selected, for the luminance signal, the luminance blocks Y [1] and Y [2] are constituted by odd field lines, and the luminance blocks Y [3] and Y [4] are even. Signal processing is performed so as to be composed of field lines. Regarding color difference signals, the upper four lines are composed of odd field lines,
Signal processing is performed so that the line is composed of even field lines.
【0175】さらに、動きベクトル検出回路310は、
画像内予測モード、前方予測モード、後方予測モード、
または両方向予測モードのうちのいずれの予測モードを
選択するかを決定するために、各予測モードにおける予
測誤差を生成し、各予測モードにおける予測誤差をコン
トローラ330にそれぞれ供給する。コントローラ33
0は、前方予測、後方予測および両方向予測の予測誤差
のうちの最も小さいものを、インタ予測の予測誤差とし
て選択する。さらに、このインタ予測の予測誤差と、画
像内予測の予測誤差とを比較し、その小さい方を選択
し、この選択した予測誤差に対応するモードを予測モー
ドとして選択する。すなわち、画像内予測の予測誤差の
方が小さければ、画像内予測モードが設定される。イン
タ予測の予測誤差の方が小さければ、前方予測、後方予
測または両方向予測モードのうちの対応する予測誤差が
最も小さかったモードが設定される。コントローラ33
0は、選択した予測モードに対応するように、演算器3
13及び動き補償回路324を制御する。Further, the motion vector detection circuit 310
Intra-picture prediction mode, forward prediction mode, backward prediction mode,
Alternatively, in order to determine which of the bidirectional prediction modes to select, a prediction error in each prediction mode is generated, and the prediction error in each prediction mode is supplied to the controller 330. Controller 33
0 selects the smallest prediction error among the forward prediction, backward prediction and bidirectional prediction as the prediction error of inter prediction. Further, the prediction error of the inter prediction is compared with the prediction error of the intra prediction, and the smaller one is selected, and the mode corresponding to the selected prediction error is selected as the prediction mode. That is, if the prediction error of the intra prediction is smaller, the intra prediction mode is set. If the prediction error of the inter prediction is smaller, the mode with the smallest corresponding prediction error among the forward prediction, backward prediction, and bidirectional prediction modes is set. Controller 33
0 corresponds to the arithmetic unit 3 so as to correspond to the selected prediction mode.
13 and the motion compensation circuit 324.
【0176】DCTモード切り替え回路315は、フレ
ームDCTモードまたはフィールドDCTモードのいずれかを
選択するために、4個の輝度ブロックのデータを、奇数
フィールドラインと偶数フィールドラインが混在するよ
うな信号形態(フレームDCTモード)に変換するととも
に、奇数フィールドラインと偶数フィールドラインが分
離された信号形態(フィールドDCTモード)に変換し
て、それぞれの信号をDCT回路316に供給する。D
CT回路316は、奇数フィールドと偶数フィールドを
混在してDCT処理した場合における符号化効率と、奇数
フィールドと偶数フィールドを分離した状態においてDC
T処理した場合の符号化効率を計算し、その結果をコン
トローラ330に供給する。コントローラ330は、D
CT回路316から供給されたそれぞれの符号化効率を
比較し、符号化効率の良い方のDCTモードを選択し、
その選択したDCTモードとなるようにDCTモード切
り替え回路315を制御する。The DCT mode switching circuit 315 converts the data of the four luminance blocks into a signal form in which odd field lines and even field lines are mixed in order to select either the frame DCT mode or the field DCT mode. In addition to the conversion into the frame DCT mode, the signal is converted into a signal form in which the odd field lines and the even field lines are separated (field DCT mode), and the respective signals are supplied to the DCT circuit 316. D
The CT circuit 316 determines the coding efficiency when the odd field and the even field are mixed and performs the DCT processing, and the DC efficiency when the odd field and the even field are separated.
The coding efficiency in the case of performing the T processing is calculated, and the result is supplied to the controller 330. The controller 330
The respective coding efficiencies supplied from the CT circuit 316 are compared, and the DCT mode having the higher coding efficiency is selected.
The DCT mode switching circuit 315 is controlled so as to be in the selected DCT mode.
【0177】コントローラ330は、オペレータまたは
ホストコンピュータから供給された目標ビットレートを
示すターゲットビットレートと、送信バッファ319に
バッファリングされているビット量を示す信号、つま
り、バッファ残量を示す信号を受け取り、このターゲッ
トビットレートとバッファ残量に基づいて、量子化回路
317の量子化ステップサイズをコントロールするため
のfeedback_q_scale_code を生成する。このfeedback_q
_scale_codeは、この送信バッファ319がオーバーフ
ローまたはアンダーフローしないように、この送信バッ
ファ319のバッファ残量に応じて生成される制御信号
であって、また、送信バッファ319から出力されるビ
ットストリームのビットレートが、ターゲットビットレ
ートになるように制御する信号でもある。The controller 330 receives the target bit rate indicating the target bit rate supplied from the operator or the host computer, and the signal indicating the amount of bits buffered in the transmission buffer 319, that is, the signal indicating the remaining buffer amount. , Based on the target bit rate and the remaining buffer amount, generates feedback_q_scale_code for controlling the quantization step size of the quantization circuit 317. This feedback_q
_scale_code is a control signal generated according to the remaining buffer amount of the transmission buffer 319 so that the transmission buffer 319 does not overflow or underflow, and the bit rate of the bit stream output from the transmission buffer 319 Is a signal for controlling the target bit rate.
【0178】具体的には、例えば、送信バッファ319
にバッファリングされているビット量が少なくなってし
まった場合には、次に符号化するピクチャの発生ビット
量が増えるように、量子化ステップサイズを小さくし、
一方、送信バッファ319にバッファリングされている
ビット量が多くなってしまった場合には、次に符号化す
るピクチャの発生ビット量が少なくなるように、量子化
ステップサイズを大きくする。なお、feedback_q_scale
_codeと量子化ステップサイズは比例し、feedback_q_sc
ale_codeを大きくすると、量子化ステップサイズは大き
くなり、feedback_q_scale_codeを小さくすると、量子
化ステップサイズは小さくなる。More specifically, for example, the transmission buffer 319
If the amount of bits buffered in the buffer has decreased, the quantization step size is reduced so that the amount of bits generated in the next picture to be encoded increases.
On the other hand, if the amount of bits buffered in the transmission buffer 319 has increased, the quantization step size is increased so that the amount of generated bits of the next picture to be encoded decreases. Feedback_q_scale
_code and quantization step size are proportional, feedback_q_sc
Increasing ale_code increases the quantization step size, and decreasing feedback_q_scale_code decreases the quantization step size.
【0179】次に、このトランスコーディングシステム
1の特徴の1つでもある、パラメータ再利用符号化処理
について説明する。この処理をより分かりやすく説明す
るために、参照ピクチャは、第1世代の符号化処理にお
いてPピクチャとして符号化され、第2世代の符号化処
理においてIピクチャとして符号化処理され、第3世代
の符号化処理においてBピクチャとして符号化されてい
たものとし、今回の第4世代の符号化処理において、こ
の参照ピクチャをPピクチャとして符号化しなければい
けないものとする。Next, the parameter reuse encoding process, which is one of the features of the transcoding system 1, will be described. In order to explain this process more clearly, a reference picture is coded as a P-picture in the first-generation coding process, is coded as an I-picture in the second-generation coding process, It is assumed that the encoding process has been encoded as a B picture, and that the reference picture must be encoded as a P picture in the current fourth generation encoding process.
【0180】この場合には、第4世代のピクチャタイプ
としてアサインされたピクチャタイプと同じピクチャタ
イプ(Iピクチャ)で、この参照ピクチャは第1世代の
符号化処理において符号化されているので、コントロー
ラ330は、供給されたビデオデータから符号化パラメ
ータを新しく作成するのではなく、第1世代の符号化パ
ラメータを使用して符号化処理を行う。この第4の符号
化処理において再利用する符号化パラメータは、代表的
なパラメータとしては、量子化スケールステップサイズ
を示すquantiser_scale_code、予測方向モードを示すma
croblock_type、動きベクトルを示すmotion_vector、Fr
ame予測モードかField予測モードかを示すframe/field_
motion_type、及びFrameDCTモードかField DCTモ
ードかを示すdct_type等である。In this case, since the reference picture is of the same picture type (I picture) as the picture type assigned as the fourth generation picture type and has been encoded in the first generation encoding process, The 330 performs an encoding process using the first-generation encoding parameters, instead of newly creating encoding parameters from the supplied video data. Typical encoding parameters reused in the fourth encoding process are quantizer_scale_code indicating a quantization scale step size, and ma indicating a prediction direction mode.
croblock_type, motion_vector indicating motion vector, Fr
frame / field_ indicating whether the mode is ame prediction mode or field prediction mode
motion_type, dct_type indicating Frame DCT mode or Field DCT mode, and the like.
【0181】コントローラ330は、ヒストリ情報とし
て伝送されたすべての符号化パラメータを再利用するわ
けではなく、再利用した方が望ましいと想定される上述
したような符号化パラメータについては再利用し、再利
用しない方が望ましいと考えられる符号化パラメータに
ついては、新しく生成する。The controller 330 does not reuse all of the coding parameters transmitted as history information, but reuses the above-mentioned coding parameters for which it is considered desirable to reuse them. Encoding parameters that are considered to be desirably not used are newly generated.
【0182】次に、第4世代の符号化処理として、この
参照ピクチャに指定されたピクチャタイプが、過去の符
号化処理におけるいずれかのピクチャタイプと一致し、
かつ、比較装置114から供給される不連続パラメータ
が、画像が連続であることを示す値を有するとき実行さ
れる、符号化パラメータ再利用符号化処理について、上
述した通常符号化処理と異なる点を中心に説明する。Next, as a fourth generation encoding process, the picture type specified for this reference picture matches any of the picture types in the past encoding process,
Also, the discontinuous parameter supplied from the comparison device 114 is executed when the image has a value indicating that the image is continuous. The encoding parameter reuse encoding process is different from the above-described normal encoding process in that I will explain mainly.
【0183】動きベクトル検出回路310は、上述した
通常符号化処理においては、参照ピクチャの動きベクト
ルの検出を行ったが、このパラメータ再利用符号化処理
においては、動きベクトルmotion_vectorの検出処理は
行わずに、第1世代のヒストリ情報として供給された動
きベクトルmotion_vectorを再利用する。その理由につ
いて説明する。The motion vector detection circuit 310 detects the motion vector of the reference picture in the above-described normal encoding process, but does not perform the motion vector motion_vector detection process in the parameter reuse encoding process. Then, the motion vector motion_vector supplied as the first generation history information is reused. The reason will be described.
【0184】第3世代の符号化ストリームを復号したベ
ースバンドのビデオデータは、少なくとも3回の復号及
び符号化処理が行われているので、オリジナルビデオデ
ータに比べると、明らかに画質が劣化している。画質が
劣化しているビデオデータから動きベクトルを検出した
としても、正確な動きベクトルは検出できない。つま
り、第4世代の符号化処理において検出された動きベク
トルよりも、第1世代のヒストリ情報として供給されて
いる動きベクトルの方が、明らかに、精度の高い動きベ
クトルである。つまり、第1世代の符号化パラメータと
して伝送された動きベクトルを再利用することによっ
て、第4世代の符号化処理を行ったとしても画質が劣化
しない。コントローラ330は、この第1世代のヒスト
リ情報として供給された動きベクトルmotion_vector
を、第4世代の符号化処理において符号化されるこの参
照ピクチャの動きベクトル情報として、動き補償回路3
24及び可変長符号化回路318に供給する。Since the baseband video data obtained by decoding the third generation coded stream has been decoded and coded at least three times, the image quality is clearly deteriorated as compared with the original video data. I have. Even if a motion vector is detected from video data having deteriorated image quality, an accurate motion vector cannot be detected. That is, the motion vector supplied as the first generation history information is clearly a higher-precision motion vector than the motion vector detected in the fourth generation encoding process. That is, by reusing the motion vector transmitted as the first generation encoding parameter, the image quality does not deteriorate even when the fourth generation encoding process is performed. The controller 330 controls the motion vector motion_vector supplied as the first generation history information.
As motion vector information of the reference picture to be encoded in the fourth generation encoding process,
24 and the variable length coding circuit 318.
【0185】さらに、動きベクトル検出回路310は、
フレーム予測モードとフィールド予測モードのどちらが
選択されるかを判断するために、フレーム予測モードに
おける予測誤差とフィールド予測モードおける予測誤差
をそれぞれ検出したが、このパラメータ再利用符号化処
理においては、このフレーム予測モードにおける予測誤
差とフィールド予測モードおける予測誤差を検出する処
理は行わずに、第1世代のヒストリ情報として供給され
ているFrame予測モードかField予測モードかを示すfram
e/field_motion_typeを再利用する。なぜなら、第4世
代の符号化処理において検出された各予測モードにおけ
る予測誤差よりも、第1世代において検出された各予測
モードにおける予測誤差の方が精度が高いので、精度の
高い予測誤差によって決定された予測モードを選択した
方がより最適な符号化処理が行うことができるからであ
る。Furthermore, the motion vector detection circuit 310
In order to determine which of the frame prediction mode and the field prediction mode is selected, the prediction error in the frame prediction mode and the prediction error in the field prediction mode are detected, respectively. The fram indicating whether the frame prediction mode or the field prediction mode is supplied as the first generation history information without performing the process of detecting the prediction error in the prediction mode and the prediction error in the field prediction mode.
Reuse e / field_motion_type. The reason is that the prediction error in each prediction mode detected in the first generation is higher in accuracy than the prediction error in each prediction mode detected in the fourth generation encoding process, so that the prediction error is determined by the highly accurate prediction error. This is because the more optimal encoding process can be performed by selecting the predicted mode.
【0186】具体的には、コントローラ330は、この
第1世代のヒストリ情報として供給されているframe/fi
eld_motion_typeに対応する制御信号をFrame/Field予測
モード切り替え回路312に供給し、Frame/Field予測
モード切り替え回路312は、この再利用されたframe/
field_motion_typeに対応した信号処理を行う。More specifically, the controller 330 transmits the frame / fi supplied as the first generation history information.
The control signal corresponding to eld_motion_type is supplied to the Frame / Field prediction mode switching circuit 312, and the Frame / Field prediction mode switching circuit 312
Performs signal processing corresponding to field_motion_type.
【0187】さらには、動きベクトル検出回路310
は、通常符号化処理においては、画像内予測モード、前
方予測モード、後方予測モード、または両方向予測モー
ドのうちのいずれの予測モード(以下、この予測モード
を、予測方向モードとも称する)を選択するかを決定す
るために、各予測方向モードにおける予測誤差を計算し
ていたが、このパラメータ再利用符号化処理において
は、各予測方向モードにおける予測誤差の計算は行わ
ず、第1世代のヒストリ情報として供給されたmacroblo
ck_typeに基づいて予測方向モードを決定する。なぜな
ら、第4世代の符号化処理における各予測方向モードに
おける予測誤差よりも、第1世代の符号化処理における
各予測方向モードにおける予測誤差の方がより精度が高
いので、より精度の高い予測誤差によって決定された予
測方向モードを選択した方が、より効率の良い符号化処
理が行えるからである。具体的には、コントローラ33
0は、第1世代のヒストリ情報に含まれているmacroblo
ck_typeによって示される予測方向モードを選択し、そ
の選択した予測方向モードに対応するように、演算器3
13及び動き補償回路324をコントロールする。Further, the motion vector detecting circuit 310
Selects any one of an intra-picture prediction mode, a forward prediction mode, a backward prediction mode, and a bidirectional prediction mode (hereinafter, this prediction mode is also referred to as a prediction direction mode) in the normal encoding process. The prediction error in each prediction direction mode was calculated in order to determine whether or not the prediction error in each prediction direction mode was calculated in this parameter reuse encoding process. Macroblo supplied as
The prediction direction mode is determined based on ck_type. This is because the prediction error in each prediction direction mode in the first-generation encoding process has higher accuracy than the prediction error in each prediction direction mode in the fourth-generation encoding process. This is because, when the prediction direction mode determined by the above is selected, more efficient encoding processing can be performed. Specifically, the controller 33
0 is the macroblo included in the first generation history information.
The prediction direction mode indicated by the ck_type is selected, and the arithmetic unit 3 is set so as to correspond to the selected prediction direction mode.
13 and the motion compensation circuit 324.
【0188】DCTモード切り替え回路315は、通常
符号化処理においては、フレームDCTモードの符号化効
率と、フィールドDCTモードの符号化効率を比較するた
めに、フレームDCTモードの信号形態に変換した信号
と、フィールドDCTモードの信号形態に変換した信号の
両方をDCT回路316に供給していたが、このパラメ
ータ再利用符号化処理では、フレームDCTモードの信号
形態に変換した信号と、フィールドDCTモードの信号形
態に変換した信号の両方を生成する処理は行っておら
ず、第1世代のヒストリ情報に含まれれているdct_type
によって示されたDCTモードに対応する処理のみを行
っている。具体的には、コントローラ330は、第1世
代のヒストリ情報に含まれているdct_typeを再利用し、
DCTモード切り替え回路315がこのdct_typeによっ
て示されるDCTモードに対応した信号処理を行うよう
に、DCTモード切り替え回路315をコントロールす
る。In the normal coding process, the DCT mode switching circuit 315 compares the signal converted into the signal format of the frame DCT mode with the signal converted in the frame DCT mode in order to compare the coding efficiency of the frame DCT mode with the coding efficiency of the field DCT mode. , The signal converted into the field DCT mode signal form is supplied to the DCT circuit 316. In this parameter reuse coding process, the signal converted into the frame DCT mode signal form and the field DCT mode signal are The processing for generating both of the signals converted into the form is not performed, and the dct_type included in the first generation history information is not included.
Only the processing corresponding to the DCT mode indicated by is performed. Specifically, the controller 330 reuses the dct_type included in the first generation history information,
The DCT mode switching circuit 315 is controlled so that the DCT mode switching circuit 315 performs signal processing corresponding to the DCT mode indicated by the dct_type.
【0189】コントローラ330は、通常符号化処理で
は、オペレータによって指定されたターゲットビットレ
ートと送信バッファ残量に基づいて、量子化回路317
の量子化ステップサイズをコントロールしていたが、こ
のパラメータ再利用符号化処理では、ターゲットビット
レート、送信バッファ残量及びヒストリ情報に含まれて
いる過去の量子化スケールに基づいて、量子化回路31
7の量子化ステップサイズをコントロールする。なお、
以下の説明において、ヒストリ情報に含まれている過去
の量子化スケールをhistory_q_scale_code と記述する
ことにする。また、後述するヒストリストリームにおい
ては、この量子化スケールを、quantiser_scale_codeと
記述している。In the normal encoding process, the controller 330 uses the quantization circuit 317 based on the target bit rate specified by the operator and the remaining amount of the transmission buffer.
In the parameter reuse encoding process, the quantization step size is controlled based on the target bit rate, the remaining amount of the transmission buffer, and the past quantization scale included in the history information.
7 is controlled. In addition,
In the following description, the past quantization scale included in the history information will be described as history_q_scale_code. In the history stream described later, this quantization scale is described as quantizer_scale_code.
【0190】まず、コントローラ330は、通常符号化
処理と同じように、現在の量子化スケールfeedback_q_s
cale_code を生成する。このfeedback_q_scale_code
は、この送信バッファ319がオーバーフロー及びアン
ダーフローしないように、この送信バッファ319のバ
ッファ残量に応じて決定される値である。続いて、第1
世代のヒストリストリームに含まれている過去の量子化
スケールhistory_q_scale_codeの値と、この現在の量子
化スケールfeedback_q_scale_codeの値を比較し、どち
らの量子化スケールの方が大きいかを判断する。量子化
スケールが大きいとは、量子化ステップが大きいことを
意味する。もし、現在の量子化スケールfeedback_q_sca
le_codeが、過去の量子化スケールhistory_q_scale_cod
eよりも大きいのであれば、コントローラ330は、こ
の現在の量子化スケールfeedback_q_scale_codeを量子
化回路317に供給する。一方、過去の量子化スケール
history_q_scale_codeが、現在の量子化スケールfeedba
ck_q_scale_codeよりも大きいのであれば、コントロー
ラ330は、この過去の量子化スケールhistory_q_scal
e_codeを量子化回路317に供給する。First, the controller 330 controls the current quantization scale feedback_q_s in the same manner as in the normal encoding process.
Generate cale_code. This feedback_q_scale_code
Is a value determined according to the remaining buffer capacity of the transmission buffer 319 so that the transmission buffer 319 does not overflow or underflow. Then, the first
The value of the past quantization scale history_q_scale_code included in the history stream of the generation is compared with the value of the current quantization scale feedback_q_scale_code, and it is determined which quantization scale is larger. A large quantization scale means that the quantization step is large. If the current quantization scale feedback_q_sca
le_code is the past quantization scale history_q_scale_cod
If it is larger than e, the controller 330 supplies the current quantization scale feedback_q_scale_code to the quantization circuit 317. On the other hand, past quantization scale
history_q_scale_code is the current quantization scale feedba
If it is larger than ck_q_scale_code, the controller 330 returns this past quantization scale history_q_scal
The e_code is supplied to the quantization circuit 317.
【0191】つまり、コントローラ330は、ヒストリ
情報に含まれている複数の過去の量子化スケールと、送
信バッファの残量から計算された現在の量子化スケール
の中で、もっとも大きい量子化スケールコードを選択す
る。また、別の言葉で説明するのであれば、コントロー
ラ330は、過去(第1、第2及び第3世代)の符号化
処理における量子化ステップまたは現在(第4世代)の
符号化処理において使用された量子化ステップの中で、
もっとも大きい量子化ステップを使用して量子化を行う
ように量子化回路317を制御する。この理由を以下に
説明する。That is, the controller 330 determines the largest quantization scale code among a plurality of past quantization scales included in the history information and the current quantization scale calculated from the remaining amount of the transmission buffer. select. In other words, the controller 330 is used in a quantization step in a past (first, second, and third generation) encoding process or in a current (fourth generation) encoding process. In the quantization step
The quantization circuit 317 is controlled so as to perform quantization using the largest quantization step. The reason will be described below.
【0192】たとえば、第3世代の符号化処理において
生成されたストリームのビットレートが4[Mbps]であっ
て、この第4世代の符号化処理を行うエンコーダ301
に対して設定されたターゲットビットレートが15[Mbp
s]であったとする。このときに、ターゲットビットレー
トが上がっているので、単純に量子化ステップを小さく
すれば良いかというと、実際にはそうではない。過去の
符号化処理において大きい量子化ステップで符号化処理
されたピクチャを、現在の符号化処理において、量子化
ステップを小さくして符号化処理を行ったとしても、こ
のピクチャの画質は向上することはない。つまり、過去
の符号化処理における量子化ステップよりも小さい量子
化ステップで符号化することは、単にビット量が増える
だけであって、画質を向上させることにはならない。よ
って、過去(第1、第2及び第3世代)の符号化処理に
おける量子化ステップまたは現在(第4世代)の符号化
処理において使用された量子化ステップの中で、もっと
も大きい量子化ステップを使用して量子化を行うと、も
っとも効率の良い符号化処理が行える。For example, if the bit rate of the stream generated in the third-generation encoding process is 4 [Mbps], and the encoder 301 performs the fourth-generation encoding process,
Target bit rate set to 15 [Mbp
s]. At this time, since the target bit rate is increased, it is not actually the case that the quantization step should be simply reduced. Even if a picture coded in a large quantization step in a past coding process is coded with a small quantization step in a current coding process, the picture quality of the picture is improved. There is no. In other words, encoding with a quantization step smaller than the quantization step in the past encoding process merely increases the bit amount, but does not improve the image quality. Accordingly, the largest quantization step among the quantization steps in the past (first, second, and third generation) encoding processes or the quantization steps used in the current (fourth generation) encoding process is defined as When the quantization is performed using this, the most efficient encoding process can be performed.
【0193】更に、エンコーダ301は、「パラメータ
再利用符号化処理」を実行している場合、比較装置11
4から供給される不連続パラメータを基に、不連続な画
像の前後で「通常符号化処理」を実行するので、不連続
な点の前後の画像の劣化を防止することができる。Further, if the encoder 301 is executing the “parameter reuse encoding process”, the comparison device 11
Since the “normal encoding process” is performed before and after the discontinuous image based on the discontinuous parameters supplied from the step 4, deterioration of the image before and after the discontinuous point can be prevented.
【0194】次に、図4におけるヒストリデコーディン
グ装置104とヒストリエンコーディング装置117に
ついてさらに説明する。同図に示すように、ヒストリデ
コーディング装置104は、復号装置102より供給さ
れるユーザデータをデコードするユーザデータデコーダ
201、ユーザデータデコーダ201の出力を変換する
コンバータ202、およびコンバータ202の出力から
履歴情報を再生するヒストリVLD203により構成され
ている。Next, the history decoding device 104 and the history encoding device 117 in FIG. 4 will be further described. As shown in the figure, the history decoding device 104 includes a user data decoder 201 for decoding user data supplied from the decoding device 102, a converter 202 for converting the output of the user data decoder 201, and a history from the output of the converter 202. It comprises a history VLD 203 for reproducing information.
【0195】また、ヒストリエンコーディング装置11
7は、ヒストリ情報分離装置115より供給される3世
代分の符号化パラメータをフォーマット化するヒストリ
VLC211、ヒストリVLC211の出力を変換するコンバ
ータ212、コンバータ212の出力をユーザデータの
フォーマットにフォーマットするユーザデータフォーマ
ッタ213により構成されている。The history encoding device 11
Reference numeral 7 denotes a history for formatting the encoding parameters for three generations supplied from the history information separating device 115.
It comprises a VLC 211, a converter 212 for converting the output of the history VLC 211, and a user data formatter 213 for formatting the output of the converter 212 into a user data format.
【0196】ユーザデータデコーダ201は、復号装置
102より供給されるユーザデータをデコードして、コ
ンバータ202に出力する。詳細は図31を参照して後
述するが、ユーザデータ(user_data())は、user_data
_start_codeとuser_dataからなり、MPEG規格においては
user_dataの中に、連続する23ビットの”0”(start
_codeと同一のコード)を発生させることを禁止してい
る。これは、そのデータが、start_codeとして誤検出さ
れるのを防止するためである。履歴情報(history_stre
am())は、ユーザデータエリアに(MPEG規格のuser_dat
aの一種として)記述され、その中には、このような連
続する23ビット以上の”0”が存在することがあり得
るので、これを、連続する23ビット以上の”0”が発
生しないように、所定のタイミングで“1”を挿入処理
して、converted_history_stream()(後述する図18)
に変換する必要がある。この変換を行うのは、ヒストリ
エンコーディング装置117のコンバータ212であ
る。ヒストリデコーディング装置104のコンバータ2
02は、このコンバータ212と逆の変換処理を行う
(連続する23ビット以上の”0”を発生させないため
に挿入された”1”を除去する)ものである。[0196] User data decoder 201 decodes user data supplied from decoding apparatus 102 and outputs the result to converter 202. Although details will be described later with reference to FIG. 31, the user data (user_data ()) is
_start_code and user_data. In the MPEG standard,
In user_data, continuous 23-bit “0” (start
(the same code as _code) is prohibited. This is to prevent that data from being erroneously detected as start_code. History information (history_stre
am ()) is the user data area (user_dat
a), and there may be such continuous “0” s of 23 bits or more, so that such “0” s of 23 bits or more are not generated. At this time, "1" is inserted at a predetermined timing, and converted_history_stream () (FIG. 18 described later)
Need to be converted to It is the converter 212 of the history encoding device 117 that performs this conversion. Converter 2 of the history decoding device 104
Numeral 02 performs a conversion process reverse to that of the converter 212 (removes “1” inserted in order not to generate consecutive “0” of 23 bits or more).
【0197】ヒストリVLD203は、コンバータ202
の出力から履歴情報(いまの場合、第1世代の符号化パ
ラメータと第2世代の符号化パラメータ)を生成し、ヒ
ストリ情報多重化装置103に出力する。The history VLD 203 includes a converter 202
, The history information (in this case, the first-generation coding parameter and the second-generation coding parameter) is generated and output to the history information multiplexing device 103.
【0198】一方、ヒストリエンコーディング装置11
7においては、ヒストリVLC211がヒストリ情報分離
装置115より供給される3世代分の(第1世代、第2
世代、および第3世代の)符号化パラメータを履歴情報
のフォーマットに変換する。このフォーマットには、固
定長のもの(後述する図20乃至図26)と、可変長の
もの(後述する図27)とがある。これらの詳細につい
ては後述する。On the other hand, the history encoding device 11
7, the history VLC 211 corresponds to three generations (first generation, second generation) supplied from the history information separation device 115.
The encoding parameters of the generation and the third generation are converted into the format of the history information. This format includes a fixed-length format (FIGS. 20 to 26 described later) and a variable-length format (FIG. 27 described later). Details of these will be described later.
【0199】ヒストリVLC211により、フォーマット
化された履歴情報は、コンバータ212において、conv
erted_history_stream()に変換される。これは、上述し
たように、user_data()のstart_codeが誤検出されない
ようにするための処理である。すなわち、履歴情報内に
は連続する23ビット以上の”0”が存在するが、user
_data中には連続する23ビット以上の”0”を配置す
ることができないので、この禁止項目に触れないように
コンバータ212によりデータを変換する(“1”を所
定のタイミングで挿入する)のである。The history information formatted by the history VLC 211 is converted by the converter 212 into a conv
Converted to erted_history_stream (). This is a process for preventing the start_code of user_data () from being erroneously detected, as described above. That is, there are consecutive “0” s of 23 bits or more in the history information,
Since it is not possible to arrange consecutive “0” s of 23 bits or more in _data, the data is converted by the converter 212 (“1” is inserted at a predetermined timing) so as not to touch this prohibited item. .
【0200】ユーザデータフォーマッタ213は、コン
バータ212より供給されるconverted_history_stream
()に、後述する図18に基づいて、History_Data_IDを
付加し、さらに、user_data_stream_codeを付加して、v
ideo stream中に挿入できるMPEG規格のuser_dataを生成
し、符号化装置116に出力する。[0200] The user data formatter 213 converts the converted_history_stream supplied from the converter 212.
(), History_Data_ID is added based on FIG. 18 described later, and further, user_data_stream_code is added, and v
MPEG-format user_data that can be inserted into the ideo stream is generated and output to the encoding device 116.
【0201】図15は、例えば映像編集スタジオにおい
て、複数のトランスコーディングシステム1−1乃至1
−Nが直列に接続されて使用される状態を示している。
各トランスコーディングシステム1−i(i=1乃至
N)のヒストリ情報多重化装置103−iは、上述した
符号化パラメータ用の領域の最も古い符号化パラメータ
が記録されている区画に、自己が用いた最新の符号化パ
ラメータを上書きする。このことにより、ベースバンド
の画像データには、同一のマクロブロックに対応する直
近の4世代分の符号化パラメータ(世代履歴情報)が記
録されることになる(図7)。FIG. 15 shows a plurality of transcoding systems 1-1 to 1 in a video editing studio, for example.
−N is used in a state of being connected in series.
The history information multiplexing device 103-i of each transcoding system 1-i (i = 1 to N) stores its own information in the section where the oldest encoding parameter in the above-described encoding parameter area is recorded. Overwrites the latest encoding parameters that were used. As a result, the encoding parameters (generation history information) for the four most recent generations corresponding to the same macroblock are recorded in the baseband image data (FIG. 7).
【0202】各符号化装置116−iのエンコーダ30
1−i(図14)は、その可変長符号化回路318にお
いて、ヒストリ情報分離装置115−iから供給される
今回用いる符号化パラメータに基づいて、量子化回路3
17より供給されるビデオデータを符号化する。このよ
うにして生成されるビットストリーム(例えば、pictur
e_header())中に、その現符号化パラメータは多重化さ
れる。The encoder 30 of each encoder 116-i
1-i (FIG. 14) is generated by the variable-length coding circuit 318 based on the currently used coding parameter supplied from the history information separation device 115-i.
The video data supplied from 17 is encoded. The bit stream generated in this way (for example, pictur
During e_header ()), the current coding parameters are multiplexed.
【0203】可変長符号化回路318はまた、ヒストリ
エンコーディング装置117−iより供給されるユーザ
データ(世代履歴情報を含む)を、出力するビットスト
リーム中に多重化する(図7に示すような埋め込み処理
ではなく、ビットストリーム中に多重化する)。そし
て、符号化装置116−iの出力するビットストリーム
は、SDTI(Serial Data Transfer Interface)351
−iを介して、後段のトランスコーディングシステム1
−(i+1)に入力される。The variable length coding circuit 318 also multiplexes user data (including generation history information) supplied from the history encoding device 117-i into a bit stream to be output (embedding as shown in FIG. 7). Multiplexing in the bitstream, not processing). The bit stream output from the encoding device 116-i is an SDTI (Serial Data Transfer Interface) 351.
-I, the subsequent transcoding system 1
− (I + 1) is input.
【0204】トランスコーディングシステム1−iとト
ランスコーディングシステム1−(i+1)は、それぞ
れ図4に示すように構成されている。従って、その処理
は、図4を参照して説明した場合と同様となる。Each of the transcoding system 1-i and the transcoding system 1- (i + 1) is configured as shown in FIG. Therefore, the process is the same as the case described with reference to FIG.
【0205】実際の符号化パラメータの履歴を利用した
符号化として、現在Iピクチャとして符号化されていた
ものを、PもしくはBピクチャに変更したい場合、過去
の符号化パラメータの履歴を見て、過去にPもしくはB
ピクチャであった場合を探し、これらの履歴が存在した
場合は、その動きベクトルなどのパラメータを利用し
て、ピクチャタイプを変更する。反対に過去に履歴がな
い場合は、動き検出を行わないピクチャタイプの変更を
断念する。もちろん履歴がない場合であっても、動き検
出を行えばピクチャタイプを変更できる。When it is desired to change the coding currently used as an I picture to a P or B picture as the coding using the actual coding parameter history, look at the past coding parameter history and check the past coding parameter history. P or B
A search is made for a picture, and if these histories exist, the picture type is changed using parameters such as the motion vector. Conversely, if there is no history in the past, the change of the picture type for which no motion detection is performed is abandoned. Of course, even if there is no history, the picture type can be changed by performing motion detection.
【0206】なお、本実施の形態におけるトランスコー
ディングシステム1の内部においては、上述したよう
に、復号側と符号側が粗結合されており、符号化パラメ
ータを画像データに多重化させて伝送させたが、図16
に示すように、復号装置102と符号化装置116を直
接接続する(密結合する)ようにしてもよい。Note that, as described above, the decoding side and the code side are roughly coupled inside the transcoding system 1 in the present embodiment, and the coding parameters are multiplexed with the image data and transmitted. FIG.
, The decoding device 102 and the encoding device 116 may be directly connected (tightly coupled).
【0207】図4において説明したトランスコーディン
グシステム1は、第1世代から第3世代の過去の符号化
パラメータを符号化装置116に供給するために、ベー
スバンドビデオデータに過去の符号化パラメータを多重
化して伝送するようにしていた。しかしながら、本発明
においては、ベースバンドビデオデータに過去の符号化
パラメータを多重化する技術は必須ではなく、図16に
示されたように、ベースバンドビデオデータとは異なる
伝送路(たとえばデータ転送バス)を使用して、過去の
符号化パラメータを伝送するようにしても良い。The transcoding system 1 described with reference to FIG. 4 multiplexes the past coding parameters on the baseband video data in order to supply the first to third generation past coding parameters to the coding device 116. And transmitted it. However, in the present invention, a technique of multiplexing past coding parameters to baseband video data is not essential, and as shown in FIG. 16, a transmission path different from baseband video data (for example, a data transfer bus). ) May be used to transmit the past coding parameters.
【0208】つまり、図16に示した、復号装置10
2、ヒストリデコーディング装置104、符号化装置1
16及びヒストリエンコーディング装置117は、図4
において説明した復号装置102、ヒストリデコーディ
ング装置104、符号化装置116及びヒストリエンコ
ーディング装置117とまったく同じ機能及び構成を有
している。That is, the decoding device 10 shown in FIG.
2. History decoding device 104, coding device 1
16 and the history encoding device 117 are shown in FIG.
Has exactly the same functions and configurations as the decoding device 102, the history decoding device 104, the encoding device 116, and the history encoding device 117 described in.
【0209】復号装置102の可変長復号回路262
は、第3世代の符号化ストリームST(3rd)のシーケン
ス層、GOP層、ピクチャ層、スライス層及びマクロブロ
ック層から、第3世代の符号化パラメータを抽出し、そ
れを、ヒストリエンコーディング装置117及び符号化
装置116のコントローラ330にそれぞれ供給する。Variable length decoding circuit 262 of decoding apparatus 102
Extracts the third-generation coding parameters from the sequence layer, GOP layer, picture layer, slice layer, and macroblock layer of the third-generation encoded stream ST (3rd), and extracts them from the history encoding device 117 and It is supplied to the controller 330 of the encoding device 116, respectively.
【0210】復号装置102の可変長復号回路262
は、第3世代の符号化ストリームSTから分離されたカ
ウンタ値をフォーマット変換装置361に供給するとと
もに、フレームまたはフィールドに同期したFrame/Fiel
d同期信号をカウンタ362に供給する。Variable Length Decoding Circuit 262 of Decoding Device 102
Supplies the counter value separated from the third-generation encoded stream ST to the format converter 361, and also outputs a Frame / Fiel synchronized with the frame or field.
The d synchronization signal is supplied to the counter 362.
【0211】カウンタ362は、可変長復号回路262
から供給されるフレームまたはフィールドに同期したFr
ame/Field同期信号を基に、カウントアップされる16
ビットのカウンタである。カウンタ362は、0乃至65,
535のいずれかのカウンタ値を比較装置363に出力す
る。The counter 362 includes a variable length decoding circuit 262
Fr synchronized with frame or field supplied from
16 which is counted up based on the ame / Field synchronization signal
This is a bit counter. The counter 362 indicates 0 to 65,
One of the counter values 535 is output to the comparing device 363.
【0212】カウンタ362は、65,535のカウンタ値を
有する場合、可変長復号回路262からフレームまたは
フィールドに同期したFrame/Field同期信号が供給され
たとき、カウンタ値を0とし、その後も、可変長復号回
路262から供給されるFrame/Field同期信号を基に、
カウントアップを継続する。When the counter 362 has a counter value of 65,535, when the frame / field synchronization signal synchronized with the frame or field is supplied from the variable length decoding circuit 262, the counter value is set to 0, and thereafter, the variable length decoding circuit 262 sets the counter value to 0. Based on the Frame / Field synchronization signal supplied from the circuit 262,
Continue counting up.
【0213】なお、カウンタ362は、可変長復号回路
262から供給されるフレームまたはフィールドに同期
したFrame/Field同期信号を基に、カウントダウン(1
を減算)するようにしてもよい。The counter 362 counts down (1) based on the Frame / Field synchronization signal synchronized with the frame or field supplied from the variable length decoding circuit 262.
May be subtracted).
【0214】図17は、カウンタ362の構成例を示す
図である。カウンタ381は、Clock信号によりカウン
トアップされる、16ビットのバイナリカウンタであ
る。カウンタ381の全ての出力が"1"になったとき
(すなわち、出力が65,535となったとき)、AND回路
382の出力が"1"になるので、カウンタ381は、リ
セットされる(すなわち、カウンタ値が0になる)。FIG. 17 is a diagram showing a configuration example of the counter 362. The counter 381 is a 16-bit binary counter that is counted up by a Clock signal. When all the outputs of the counter 381 become "1" (that is, when the output becomes 65,535), the output of the AND circuit 382 becomes "1", so that the counter 381 is reset (that is, the counter 381 is reset). Value becomes 0).
【0215】なお、カウンタ101、カウンタ113、
および後述するカウンタ364も、カウンタ362と同
様に構成することかできる。Note that the counter 101, the counter 113,
A counter 364 described later can be configured similarly to the counter 362.
【0216】フォーマット変換装置361は、可変長復
号回路262から供給された、第3世代の符号化ストリ
ームSTから分離されたカウンタ値の方式を16ビット
のカウンタ値(例えば、カウンタ362が出力するカウ
ンタ値と同じ方式)に変換して、比較装置363に出力
する。The format conversion device 361 converts the format of the counter value separated from the third-generation encoded stream ST supplied from the variable length decoding circuit 262 into a 16-bit counter value (for example, a counter output by the counter 362). (The same method as the value) and outputs the result to the comparing device 363.
【0217】比較装置363は、フォーマット変換装置
361から供給されたカウンタ値とカウンタ362から
供給されたカウンタ値とを比較し、その値が同一である
とき、所定の値の不連続パラメータを符号化装置116
に出力し、その値が異なるとき、他の値の不連続パラメ
ータを符号化装置116に出力する。The comparison device 363 compares the counter value supplied from the format conversion device 361 with the counter value supplied from the counter 362, and when the values are the same, encodes a discontinuous parameter having a predetermined value. Device 116
And when the values are different, a discontinuous parameter of another value is output to the encoding device 116.
【0218】比較装置363にフォーマット変換装置3
61から供給されたカウンタ値とカウンタ362から供
給されたカウンタ値とが異なる値をとるとき、カウンタ
362は、フォーマット変換装置361が出力するカウ
ンタ値をロードして、自己のカウンタ値として設定す
る。このようにすることで、比較装置363は、一旦、
画像の不連続点を検出した後でも、再度、画像に不連続
点が含まれていた場合、他の値の不連続パラメータを符
号化装置116に出力することができる。The format converter 3 is added to the comparator 363.
When the counter value supplied from 61 and the counter value supplied from the counter 362 take different values, the counter 362 loads the counter value output by the format conversion device 361 and sets it as its own counter value. By doing so, the comparison device 363 once
Even after detecting a discontinuous point in the image, if the discontinuous point is included in the image again, the discontinuous parameter of another value can be output to the encoding device 116.
【0219】ヒストリエンコーディング装置117は、
受け取った第3世代の符号化パラメータをピクチャ層の
ユーザデータエリアに記述できるようにconverted_hist
ory_stream()に変換し、converted_history_stream()を
ユーザデータとして符号化装置116の可変長符号化回
路318に供給する。The history encoding device 117 is
Converted_hist so that the received third-generation coding parameters can be described in the user data area of the picture layer
The data is converted into ory_stream (), and the converted_history_stream () is supplied as user data to the variable length coding circuit 318 of the coding device 116.
【0220】さらに可変長復号回路262は、第3世代
の符号化ストリームのピクチャ層のユーザデータエリア
から、第1世代の符号化パラメータ及び第2の符号化パ
ラメータを含んでいるユーザデータuser_data を抽出
し、ヒストリデコーディング装置104及び符号化装置
116の可変長符号化回路318に供給する。ヒストリ
デコーディング装置104は、ユーザデータエリアにco
nverted_history_stream()として記述されたヒストリス
トリームから、第1世代の符号化パラメータ及び第2世
代の符号化パラメータを抽出し、それを符号化装置11
6のコントローラに供給する。Further, the variable length decoding circuit 262 extracts user data user_data including the first generation coding parameter and the second coding parameter from the user data area of the picture layer of the third generation coded stream. Then, the data is supplied to the history decoding device 104 and the variable length coding circuit 318 of the coding device 116. The history decoding device 104 stores co in the user data area.
A first-generation encoding parameter and a second-generation encoding parameter are extracted from a history stream described as nverted_history_stream (), and are extracted by the encoding device 11.
6 controller.
【0221】符号化装置116のコントローラ330
は、ヒストリデコーディング装置104から受け取った
第1世代及び第2世代の符号化パラメータと、符号化装
置102から受け取った第3世代の符号化パラメータと
に基づいて、符号化装置116の符号化処理をコントロ
ールする。The controller 330 of the encoding device 116
Is based on the first and second generation coding parameters received from the history decoding device 104 and the third generation coding parameters received from the coding device 102. Control.
【0222】符号化装置116の可変長符号化回路31
8は、復号装置102から第1世代の符号化パラメータ
及び第2の符号化パラメータを含んでいるユーザデータ
user_dataを受け取るとともに、ヒストリエンコーディ
ング装置117から第3世代の符号化パラメータを含ん
でいるユーザデータuser_dataを受け取り、それらのユ
ーザデータをヒストリ情報として、第4世代の符号化ス
トリームのピクチャ層のユーザデータエリアに記述す
る。Variable length coding circuit 31 of coding apparatus 116
Reference numeral 8 denotes user data including a first-generation encoding parameter and a second encoding parameter from the decoding device 102.
In addition to receiving the user_data, the user data user_data including the third-generation encoding parameter is received from the history encoding device 117, and the user data is used as history information, and the user data area of the picture layer of the fourth-generation encoded stream is used as the user information Describe in.
【0223】また、符号化装置116は、カウンタ36
4にフレームまたはフィールドに同期したFrame/Field
同期信号を供給する。The encoding device 116 has a counter 36
4. Frame / Field synchronized with frame or field
Provides a synchronization signal.
【0224】カウンタ364は、符号化装置116から
供給されるフレームまたはフィールドに同期したFrame/
Field同期信号を基に、カウントアップされる16ビッ
トのカウンタである。カウンタ364は、0乃至65,535
のいずれかのカウンタ値をフォーマット変換装置365
に出力する。[0224] The counter 364 has a frame / frame synchronized with the frame or field supplied from the encoding device 116.
It is a 16-bit counter that counts up based on the Field synchronization signal. The counter 364 is 0 to 65,535
The format conversion device 365
Output to
【0225】カウンタ364は、65,535のカウンタ値を
有する場合、符号化装置116からフレームまたはフィ
ールドに同期したFrame/Field同期信号が供給されたと
き、カウンタ値を0とし、その後も、符号化装置116
から供給されるFrame/Field同期信号を基に、カウント
アップを継続する。When the counter 364 has a counter value of 65,535, the counter value is set to 0 when a frame / field synchronization signal synchronized with a frame or a field is supplied from the encoding device 116, and thereafter, the counter device 364 sets the counter value to 0.
Count up is continued based on the Frame / Field synchronization signal supplied from.
【0226】なお、カウンタ364は、符号化装置11
6から供給されるフレームまたはフィールドに同期した
Frame/Field同期信号を基に、カウントダウン(1を減
算)するようにしてもよい。Note that the counter 364 indicates that the encoding device 11
Synchronized with frame or field supplied from 6
Countdown (subtraction of 1) may be performed based on the Frame / Field synchronization signal.
【0227】フォーマット変換装置365は、カウンタ
364から供給された16ビットのカウンタ値を、符号
化ストリームSTに多重化できる方式に変換して、符号
化装置116に出力する。The format conversion device 365 converts the 16-bit counter value supplied from the counter 364 into a format that can be multiplexed into the coded stream ST, and outputs it to the coding device 116.
【0228】符号化装置116は、フォーマット変換装
置365から供給されたカウンタ値を第4世代の符号化
ストリームに格納する。[0228] The coding device 116 stores the counter value supplied from the format conversion device 365 in the fourth generation coded stream.
【0229】図18は、MPEGのビデオストリームをデコ
ードするためのシンタックスを表わした図である。デコ
ーダは、このシンタックスに従ってMPEGビットストリー
ムをデコードすることによって、ビットストリームから
意味のある複数のデータ項目(データエレメント)を抽
出する。以下に説明するシンタックスは、図において、
その関数や条件文は細活字で表わされ、そのデータエレ
メントは、太活字で表されている。データ項目は、その
名称、ビット長、及びそのタイプと伝送順序を示すニー
モニック(Mnemonic)で記述されている。FIG. 18 is a diagram showing a syntax for decoding an MPEG video stream. The decoder extracts a plurality of meaningful data items (data elements) from the bit stream by decoding the MPEG bit stream according to this syntax. The syntax described below is
The functions and conditional statements are shown in fine print, and the data elements are shown in bold print. Each data item is described by a mnemonic (Mnemonic) indicating its name, bit length, and its type and transmission order.
【0230】まず、この図18に示されているシンタッ
クスにおいて使用されている関数について説明する。First, the functions used in the syntax shown in FIG. 18 will be described.
【0231】next_start_code()関数は、ビットストリ
ーム中に記述されているスタートコードを探すための関
数である。この図18に示されたシンタックスにおい
て、このnext_start_code()関数の次に、sequence_head
er()関数とsequence_extension()関数とが順に配置され
ているので、このビットストリームには、このsequence
_header()関数とsequence_extension()関数によって定
義されたデータエレメントが記述されている。従って、
ビットストリームのデコード時には、このnext_start_c
ode()関数によって、sequence_header()関数とsequence
_extension()関数の先頭に記述されているスタートコー
ド(データエレメントの一種)をビットストリーム中か
ら見つけ、それを基準にして、 sequence_header()関数
とsequence_extension()関数をさらに見つけ、それらに
よって定義された各データエレメントをデコードする。[0231] The next_start_code () function is a function for searching for a start code described in the bit stream. In the syntax shown in FIG. 18, next to this next_start_code () function, sequence_head
Since the er () function and the sequence_extension () function are arranged in order, this bit stream includes the sequence
A data element defined by the _header () function and the sequence_extension () function is described. Therefore,
When decoding the bit stream, this next_start_c
sequence_header () function and sequence
The start code (a kind of data element) described at the beginning of the _extension () function is found in the bit stream, and based on it, the sequence_header () function and the sequence_extension () function are further found and defined by them. Decode each data element.
【0232】尚、sequence_header()関数は、MPEGビッ
トストリームのシーケンス層のヘッダデータを定義する
ための関数であって、sequence_extension()関数は、MP
EGビットストリームのシーケンス層の拡張データを定義
するための関数である。The sequence_header () function is a function for defining the header data of the sequence layer of the MPEG bit stream, and the sequence_extension () function is
This is a function for defining extension data of the sequence layer of the EG bitstream.
【0233】sequence_extension()関数の次に配置され
ている do{ }while構文は、while文によって定義されて
いる条件が真である間、do文の{ }内の関数に基いて記
述されたデータエレメントをデータストリーム中から抽
出するための構文である。すなわち、 do{ }while構文
によって、while文によって定義されている条件が真で
ある間、ビットストリーム中から、do文内の関数に基い
て記述されたデータエレメントを抽出するデコード処理
が行われる。[0233] The do {} while syntax placed next to the sequence_extension () function is a data described based on the function in {} of the do statement while the condition defined by the while statement is true. This is a syntax for extracting an element from a data stream. That is, while the condition defined by the while statement is true, the decoding process of extracting the data element described based on the function in the do statement from the bit stream is performed by the do {} while syntax.
【0234】このwhile文に使用されているnextbits()
関数は、ビットストリーム中に現れるビット又はビット
列と、次にデコードされるデータエレメントとを比較す
るための関数である。この図18のシンタックスの例で
は、nextbits()関数は、ビットストリーム中のビット列
とビデオシーケンスの終わりを示すsequence_end_code
とを比較し、ビットストリーム中のビット列とsequence
_end_codeとが一致しないときに、このwhile文の条件が
真となる。従って、sequence_extension()関数の次に配
置されている do{ }while構文は、ビットストリーム中
に、ビデオシーケンスの終わりを示すsequence_end_cod
eが現れない間、do文中の関数によって定義されたデー
タエレメントがビットストリーム中に記述されているこ
とを示している。The nextbits () used in this while statement
The function is a function for comparing a bit or a bit string appearing in a bit stream with a data element to be decoded next. In the example of the syntax illustrated in FIG. 18, the nextbits () function includes a bit string in the bit stream and a sequence_end_code indicating the end of the video sequence.
Is compared with the bit sequence in the bit stream and sequence
When the _end_code does not match, the condition of this while statement is true. Therefore, the do {} while syntax located next to the sequence_extension () function uses sequence_end_cod indicating the end of the video sequence in the bit stream.
While e does not appear, it indicates that the data element defined by the function in the do statement is described in the bit stream.
【0235】ビットストリーム中には、sequence_exten
sion()関数によって定義された各データエレメントの次
には、extension_and_user_data(0)関数によって定義さ
れたデータエレメントが記述されている。このextensio
n_and_user_data(0)関数は、MPEGビットストリームのシ
ーケンス層の拡張データとユーザデータを定義するため
の関数である。[0235] In the bit stream, sequence_exten
Following each data element defined by the sion () function, a data element defined by the extension_and_user_data (0) function is described. This extensio
The n_and_user_data (0) function is a function for defining extended data of the sequence layer of the MPEG bit stream and user data.
【0236】このextension_and_user_data(0)関数の次
に配置されている do{ }while構文は、while文によって
定義されている条件が真である間、do文の{ }内の関数
に基いて記述されたデータエレメントを、ビットストリ
ーム中から抽出するための関数である。このwhile文に
おいて使用されているnextbits()関数は、ビットストリ
ーム中に現れるビット又はビット列と、picture_start_
code又はgroup_start_codeとの一致を判断するための関
数であって、ビットストリーム中に現れるビット又はビ
ット列と、picture_start_code又はgroup_start_codeと
が一致する場合には、while文によって定義された条件
が真となる。よって、このdo{ }while構文は、ビットス
トリーム中において、picture_start_code又はgroup_st
art_codeが現れた場合には、そのスタートコードの次
に、do文中の関数によって定義されたデータエレメント
のコードが記述されているので、このpicture_start_co
de又はgroup_start_codeによって示されるスタートコー
ドを探し出すことによって、ビットストリーム中からdo
文中に定義されたデータエレメントを抽出することがで
きる。The do {} while syntax located next to the extension_and_user_data (0) function is described based on the function in the {} of the do statement while the condition defined by the while statement is true. This is a function for extracting the data element from the bit stream. The nextbits () function used in this while statement is used to determine the bits or bit strings appearing in the bit stream and the picture_start_
A function for determining a match with code or group_start_code. If a bit or a bit string appearing in a bit stream matches picture_start_code or group_start_code, the condition defined by the while statement is true. Therefore, this do {} while syntax is used in the bit stream for picture_start_code or group_st
If art_code appears, the code of the data element defined by the function in the do statement is described after the start code, so this picture_start_co
By finding the start code indicated by de or group_start_code, do
Data elements defined in the sentence can be extracted.
【0237】このdo文の最初に記述されているif文は、
ビットストリーム中にgroup_start_codeが現れた場合、
という条件を示しいる。このif文による条件が真である
場合には、ビットストリーム中には、このgroup_start_
codeの次にgroup_of_picture_header(1)関数及びextens
ion_and_user_data(1)関数によって定義されているデー
タエレメントが順に記述されている。The if statement described at the beginning of the do statement is
If group_start_code appears in the bitstream,
The condition is shown. If the condition by this if statement is true, the group_start_
After code, group_of_picture_header (1) function and extens
Data elements defined by the ion_and_user_data (1) function are described in order.
【0238】このgroup_of_picture_header(1)関数は、
MPEGビットストリームのGOP層のヘッダデータを定義す
るための関数であって、 extension_and_user_data(1)
関数は、MPEGビットストリームのGOP層の拡張データ(e
xtension_data)及びユーザデータ(user_data)を定義
するための関数である。The group_of_picture_header (1) function is
Extension_and_user_data (1) is a function for defining the header data of the GOP layer of the MPEG bit stream.
The function is the GOP layer extension data (e
xtension_data) and user data (user_data).
【0239】さらに、このビットストリーム中には、gr
oup_of_picture_header(1)関数及びextension_and_user
_data(1)関数によって定義されているデータエレメント
の次に、picture_header()関数とpicture_coding_exten
sion()関数によって定義されたデータエレメントが記述
されている。もちろん、先に説明したif文の条件が真と
ならない場合には、 group_of_picture_header(1)関数
及びextension_and_user_data(1)関数によって定義され
ているデータエレメントは記述されていないので、 ext
ension_and_user_data(0)関数によって定義されている
データエレメントの次に、 picture_header()関数とpic
ture_coding_extension()関数によって定義されたデー
タエレメントが記述されている。Further, in this bit stream, gr
oup_of_picture_header (1) function and extension_and_user
After the data element defined by the _data (1) function, the picture_header () function and picture_coding_exten
Describes the data element defined by the sion () function. Of course, if the condition of the if statement described above is not true, the data element defined by the group_of_picture_header (1) function and the extension_and_user_data (1) function is not described.
After the data element defined by the extension_and_user_data (0) function, the picture_header () function and pic
A data element defined by the ture_coding_extension () function is described.
【0240】このpicture_header()関数は、 MPEGビッ
トストリームのピクチャ層のヘッダデータを定義するた
めの関数であって、 picture_coding_extension()関数
は、MPEGビットストリームのピクチャ層の第1の拡張デ
ータを定義するための関数である。[0240] The picture_header () function is for defining the header data of the picture layer of the MPEG bit stream, and the picture_coding_extension () function is for defining the first extension data of the picture layer of the MPEG bit stream. Function.
【0241】次のwhile文は、このwhile文によって定義
されている条件が真である間、次のif文の条件判断を行
うための関数である。このwhile文において使用されて
いるnextbits()関数は、ビットストリーム中に現れるビ
ット列と、extension_start_code又はuser_data_start_
codeとの一致を判断するための関数であって、ビットス
トリーム中に現れるビット列と、 extension_start_cod
e又はuser_data_start_codeとが一致する場合には、こ
のwhile文によって定義された条件が真となる。The next while statement is a function for determining the condition of the next if statement while the condition defined by the while statement is true. The nextbits () function used in this while statement includes a bit string appearing in the bit stream and extension_start_code or user_data_start_
A function to determine the match with code, a bit string appearing in the bit stream, and extension_start_cod
If e or user_data_start_code matches, the condition defined by this while statement is true.
【0242】第1のif文は、ビットストリーム中に現れ
るビット列とextension_start_codeとの一致を判断する
ための関数である。ビットストリーム中に現れるビット
列と32ビットのextension_ start_codeとが一致する
場合には、ビットストリーム中において、extension_st
art_codeの次にextension_data(2)関数によって定義さ
れるデータエレメントが記述されている。The first if sentence is a function for determining whether a bit string appearing in a bit stream matches extension_start_code. If the bit string appearing in the bit stream matches the 32-bit extension_start_code, the extension_st
Following the art_code, a data element defined by the extension_data (2) function is described.
【0243】第2のif文は、ビットストリーム中に現れ
るビット列とuser_data_start_codeとの一致を判断する
ための構文であって、ビットストリーム中に現れるビッ
ト列と32ビットのuser_data_start_codeとが一致する
場合には、第3のif文の条件判断が行われる。このuser
_data_start_codeは、MPEGビットストリームのピクチャ
層のユーザデータエリアの開始を示すためのスタートコ
ードである。The second if sentence is a syntax for judging the match between the bit string appearing in the bit stream and the user_data_start_code. When the bit string appearing in the bit stream matches the 32-bit user_data_start_code, The condition determination of the third if statement is performed. This user
_data_start_code is a start code indicating the start of the user data area in the picture layer of the MPEG bit stream.
【0244】video_continuity_counter_IDは、user_da
ta()がvideo_continuity_counter()であることを識別す
るために利用される。marker_bit_1は、”1”が設定さ
れ、スタートコードのエミュレーションを防止する。vi
deo_continuity_counterには、カウンタ値が設定され
る。marker_bit_2は、”1”が設定され、スタートコー
ドのエミュレーションを防止する。[0244] The video_continuity_counter_ID is user_da
It is used to identify that ta () is video_continuity_counter (). marker_bit_1 is set to “1” to prevent emulation of the start code. vi
A counter value is set in deo_continuity_counter. marker_bit_2 is set to “1” to prevent emulation of the start code.
【0245】video_continuity_counterには、video_co
ntinuity_counter_ID乃至marker_bit_2に対応したエラ
ーをチェックするための、CRC(Cyclic Redundancy Chec
k)が設定される。[0245] video_continuity_counter contains video_co
CRC (Cyclic Redundancy Checker) for checking errors corresponding to ntinuity_counter_ID to marker_bit_2
k) is set.
【0246】第3のif文は、ビットストリーム中に現れ
るビット列とHistory_Data_IDとの一致を判断するため
の構文である。ビットストリーム中に現れるビット列と
この32ビットのHistory_Data_IDとが一致する場合に
は、このMPEGビットストリームのピクチャ層のユーザデ
ータエリアにおいて、この32ビットのHistory_Data_I
Dによって示されるコードの次に、converted_history_s
tream()関数によって定義されるデータエレメントが記
述されている。The third if sentence is a syntax for judging whether a bit string appearing in a bit stream matches History_Data_ID. If the bit string appearing in the bit stream matches the 32-bit History_Data_ID, the 32-bit History_Data_I is stored in the user data area of the picture layer of the MPEG bit stream.
Following the code indicated by D, converted_history_s
A data element defined by the tream () function is described.
【0247】converted_history_stream()関数は、MPEG
符号化時に使用したあらゆる符号化パラメータを伝送す
るための履歴情報及び履歴データを記述するための関数
である。このconverted_history_stream()関数によって
定義されているデータエレメントの詳細は、図20乃至
図27を参照して、history_stream()として後述する。
また、このHistory_Data_IDは、MPEGビットストリーム
のピクチャ層のユーザデータエリアに記述されたこの履
歴情報及び履歴データが記述されている先頭を示すため
のスタートコードである。The converted_history_stream () function is used for MPEG
It is a function for describing history information and history data for transmitting all encoding parameters used at the time of encoding. Details of the data element defined by the converted_history_stream () function will be described later as history_stream () with reference to FIGS.
The History_Data_ID is a start code indicating the head of the history information and the history data described in the user data area of the picture layer of the MPEG bit stream.
【0248】else文は、第3のif文において、条件が非
真であることを示すための構文である。従って、このMP
EGビットストリームのピクチャ層のユーザデータエリア
において、converted_history_stream()関数によって定
義されたデータエレメントが記述されていない場合に
は、user_data()関数によって定義されたデータエレメ
ントが記述されている。The else sentence is a syntax for indicating that the condition is non-true in the third if sentence. So this MP
If the data element defined by the converted_history_stream () function is not described in the user data area of the picture layer of the EG bit stream, the data element defined by the user_data () function is described.
【0249】図18において、履歴情報は、converted_
history_stream()に記述され、user_data()に記述され
る訳ではないが、このconverted_history_stream()は、
MPEG規格のuser_dataの一種として記述される。そこ
で、本明細書中においては、場合によって、履歴情報が
user_dataに記述されるとも説明するが、それは、MPEG
規格のuser_dataの一種として記述されるということを
意味する。In FIG. 18, the history information is converted_converted_
Although described in history_stream () and not in user_data (), this converted_history_stream () is
It is described as a kind of user_data of the MPEG standard. Therefore, in this specification, the history information may
It is explained that it is described in user_data, but it is MPEG
It means that it is described as a kind of standard user_data.
【0250】picture_data()関数は、MPEGビットストリ
ームのピクチャ層のユーザデータの次に、スライス層及
びマクロブロック層に関するデータエレメントを記述す
るための関数である。通常は、このpicture_data()関数
によって示されるデータエレメントは、ビットストリー
ムのピクチャ層のユーザデータエリアに記述されたconv
erted_history_stream()関数によって定義されるデータ
エレメント又はuser_data()関数によって定義されたデ
ータエレメントの次に記述されているが、ピクチャ層の
データエレメントを示すビットストリーム中に、extens
ion_start_code又はuser_data_start_code が存在しな
い場合には、このpicture_data()関数によって示される
データエレメントは、 picture_coding_extension()関
数によって定義されるデータエレメントの次に記述され
ている。[0250] The picture_data () function is a function for describing data elements related to the slice layer and the macroblock layer after the user data of the picture layer of the MPEG bit stream. Normally, the data element indicated by the picture_data () function is the conv. Described in the user data area of the picture layer of the bit stream.
Although described next to the data element defined by the erted_history_stream () function or the data element defined by the user_data () function, the extens
If there is no ion_start_code or user_data_start_code, the data element indicated by the picture_data () function is described next to the data element defined by the picture_coding_extension () function.
【0251】このpicture_data()関数によって示される
データエレメントの次には、sequence_header()関数とs
equence_extension()関数とによって定義されたデータ
エレメントが順に配置されている。このsequence_heade
r()関数とsequence_extension()関数によって記述され
たデータエレメントは、ビデオストリームのシーケンス
の先頭に記述されたsequence_header()関数とsequence_
extension()関数によって記述されたデータエレメント
と全く同じである。このように同じデータをストリーム
中に記述する理由は、ビットストリーム受信装置側でデ
ータストリームの途中(例えばピクチャ層に対応するビ
ットストリーム部分)から受信が開始された場合に、シ
ーケンス層のデータを受信できなくなり、ストリームを
デコード出来なくなることを防止するためである。The data element indicated by the picture_data () function is followed by the sequence_header () function and s
Data elements defined by the equence_extension () function are arranged in order. This sequence_heade
The data element described by the r () function and the sequence_extension () function is composed of the sequence_header () function and the sequence_
Exactly the same as the data element described by the extension () function. The reason for describing the same data in the stream in this way is that when the bit stream receiving apparatus starts receiving data from the middle of the data stream (for example, the bit stream corresponding to the picture layer), the data in the sequence layer is received. This is to prevent the stream from being unable to be decoded.
【0252】この最後のsequence_header()関数とseque
nce_extension()関数とによって定義されたデータエレ
メントの次、つまり、データストリームの最後には、シ
ーケンスの終わりを示す32ビットのsequence_end_cod
eが記述されている。This last sequence_header () function and sequence
After the data element defined by the nce_extension () function, that is, at the end of the data stream, a 32-bit sequence_end_cod indicating the end of the sequence
e is described.
【0253】以上のシンタックスの基本的な構成の概略
を示すと、図19に示すようになる。FIG. 19 shows an outline of the basic structure of the syntax described above.
【0254】次に、converted_history_stream()関数に
よって定義されたヒストリストリームに関して説明す
る。Next, a history stream defined by the converted_history_stream () function will be described.
【0255】このconverted_history_stream()は、MPEG
のピクチャ層のユーザデータエリアに履歴情報を示すヒ
ストリストリームを挿入するための関数である。尚、
「converted」の意味は、スタートエミュレーションを
防止するために、ユーザエリアに挿入すべき履歴データ
から構成される履歴ストリームの少なくとも22ビット
毎にマーカービット(1ビット)を挿入する変換処理を
行ったストリームであることを意味している。This converted_history_stream () is an MPEG
Is a function for inserting a history stream indicating history information into the user data area of the picture layer. still,
“Converted” means a stream that has undergone a conversion process of inserting a marker bit (1 bit) at least every 22 bits of a history stream composed of history data to be inserted into the user area in order to prevent start emulation. It means that
【0256】このconverted_history_stream()は、以下
に説明する固定長の履歴ストリーム(図20乃至図2
6)又は可変長の履歴ストリーム(図27)のいずれか
の形式で記述される。エンコーダ側において固定長の履
歴ストリームを選択した場合には、デコーダ側において
履歴ストリームから各データエレメントをデコードする
ための回路及びソフトウエアが簡単になるというメリッ
トがある。一方、エンコーダ側において可変長の履歴ス
トリームを選択した場合には、エンコーダにおいてピク
チャ層のユーザエリアに記述される履歴情報(データエ
レメント)を必要に応じて任意に選択することができる
ので、履歴ストリームのデータ量を少なくすることがで
き、その結果、符号化されたビットストリーム全体のデ
ータレートを低減することができる。This converted_history_stream () is a fixed-length history stream described below (see FIGS. 20 to 2).
6) or a variable-length history stream (FIG. 27). When a fixed-length history stream is selected on the encoder side, there is an advantage that a circuit and software for decoding each data element from the history stream on the decoder side are simplified. On the other hand, when a variable-length history stream is selected on the encoder side, the history information (data element) described in the user area of the picture layer can be arbitrarily selected as needed by the encoder. Can be reduced, and as a result, the data rate of the entire coded bit stream can be reduced.
【0257】本発明において説明する「履歴ストリー
ム」、「ヒストリストリーム」、「履歴情報」、「ヒス
トリ情報」、「履歴データ」、「ヒストリデータ」、
「履歴パラメータ」、「ヒストリパラメータ」とは、過
去の符号化処理において使用した符号化パラメータ(又
はデータエレメント)を意味し、現在の(最終段の)符
号化処理において使用した符号化パラメータを意味する
ものではない。例えば、第1世代の符号化処理におい
て、あるピクチャをIピクチャで符号化して伝送し、次
なる第2世代の符号化処理において、このピクチャを今
度はPピクチャとして符号化して伝送し、さらに、第3
世代の符号化処理において、このピクチャをBピクチャ
で符号化して伝送する例をあげて説明する。The “history stream”, “history stream”, “history information”, “history information”, “history data”, “history data”,
The “history parameters” and “history parameters” mean the coding parameters (or data elements) used in the past coding process, and mean the coding parameters used in the current (last stage) coding process. It does not do. For example, in a first generation encoding process, a certain picture is encoded and transmitted by an I picture, and in a subsequent second generation encoding process, this picture is encoded and transmitted as a P picture, and further, Third
In the generation encoding process, an example will be described in which this picture is encoded with a B picture and transmitted.
【0258】第3世代の符号化処理において使用した符
号化パラメータが、第3世代の符号化処理において生成
された符号化ビットストリームのシーケンス層、GOP
層、ピクチャ層、スライス層及びマクロブロック層の所
定位置に記述されている。一方、過去の符号化処理であ
る第1世代及び第2世代の符号化処理において使用した
符号化パラメータは、第3世代の符号化処理において使
用した符号化パラメータが記述されるシーケンス層やGO
P層に記述されるのでは無く、既に説明したシンタック
スに従って、符号化パラメータの履歴情報として、ピク
チャ層のユーザデータエリアに記述される。The encoding parameters used in the third generation encoding process are the sequence layer of the encoded bit stream generated in the third generation encoding process, the GOP
Layer, picture layer, slice layer, and macroblock layer are described at predetermined positions. On the other hand, the encoding parameters used in the first-generation and second-generation encoding processes, which are the past encoding processes, are a sequence layer or GO that describes the encoding parameters used in the third-generation encoding process.
Instead of being described in the P layer, it is described in the user data area of the picture layer as coding parameter history information in accordance with the syntax described above.
【0259】まず、固定長の履歴ストリームシンタック
スについて図20乃至図26を参照して説明する。First, the fixed-length history stream syntax will be described with reference to FIGS.
【0260】最終段(例えば第3世代)の符号化処理に
おいて生成されたビットストリームのピクチャ層のユー
ザデータエリアには、まず最初に、過去(例えば第1世
代及び第2世代)の符号化処理において使用されていた
シーケンス層のシーケンスヘッダに含められる符号化パ
ラメータが、履歴ストリームとして挿入される。尚、過
去の符号化処理において生成されたビットストリームの
シーケンス層のシーケンスヘッダ等の履歴情報は、最終
段の符号化処理において生成されたビットストリームの
シーケンス層のシーケンスヘッダに挿入されることは無
いという点に注意すべきである。In the user data area of the picture layer of the bit stream generated in the encoding process of the last stage (for example, the third generation), first, the past (for example, the first generation and the second generation) encoding process is performed. The coding parameter included in the sequence header of the sequence layer used in is inserted as a history stream. Note that history information such as the sequence header of the sequence layer of the bit stream generated in the past encoding process is not inserted into the sequence header of the sequence layer of the bit stream generated in the last-stage encoding process. It should be noted that.
【0261】過去の符号化処理で使用したシーケンスヘ
ッダ(sequence_header)に含められるデータエレメン
トは、sequence_header_code、sequence_header_presen
t_flag、horizontal_size_value、marker_bit、vertica
l_size_value、aspect_ratio_information、frame_rate
_code、bit_rate_value、VBV_buffer_size_value、cons
trained_parameter_flag、load_intra_quantiser_matri
x、load_non_intra_quantiser_matrix、intra_quantise
r_matrix、及びnon_intra_quantiser_matrix等から構成
される。The data elements included in the sequence header (sequence_header) used in the past encoding process are sequence_header_code, sequence_header_presen
t_flag, horizontal_size_value, marker_bit, vertica
l_size_value, aspect_ratio_information, frame_rate
_code, bit_rate_value, VBV_buffer_size_value, cons
trained_parameter_flag, load_intra_quantiser_matri
x, load_non_intra_quantiser_matrix, intra_quantise
r_matrix, non_intra_quantiser_matrix, etc.
【0262】sequence_header_codeは、シーケンス層の
スタート同期コードを表すデータである。sequence_hea
der_present_flagは、sequence_header内のデータが有
効か無効かを示すデータである。 horizontal_size_val
ueは、画像の水平方向の画素数の下位12ビットから成る
データである。marker_bitは、スタートコードエミュレ
ーションを防止するために挿入されるビットデータであ
る。vertical_size_valueは、画像の縦のライン数の下
位12ビットからなるデータである。aspect_ratio_infor
mationは、画素のアスペクト比(縦横比)または表示画
面アスペクト比を表すデータである。frame_rate_code
は、画像の表示周期を表すデータである。[0262] sequence_header_code is data representing a start synchronization code of the sequence layer. sequence_hea
der_present_flag is data indicating whether data in sequence_header is valid or invalid. horizontal_size_val
ue is data composed of lower 12 bits of the number of pixels in the horizontal direction of the image. marker_bit is bit data inserted to prevent start code emulation. vertical_size_value is data composed of lower 12 bits of the number of vertical lines of the image. aspect_ratio_infor
“mation” is data representing an aspect ratio (aspect ratio) or a display screen aspect ratio of a pixel. frame_rate_code
Is data representing a display cycle of an image.
【0263】bit_rate_valueは、発生ビット量に対する
制限のためのビット・レートの下位18ビット(400bsp単
位で切り上げる)データである。VBV_buffer_size_value
は、発生符号量制御用の仮想バッファ(ビデオバッファ
ベリファイヤー)の大きさを決める値の下位10ビットデ
ータである。constrained_parameter_flagは、各パラメ
ータが制限以内であることを示すデータである。load_i
ntra_quantiser_matrixは、イントラMB用量子化マトリ
ックス・データの存在を示すデータである。load_non_i
ntra_quantiser_matrixは、非イントラMB用量子化マ
トリックス・データの存在を示すデータである。intra_
quantiser_matrixは、イントラMB用量子化マトリック
スの値を示すデータである。non_intra_quantiser_matr
ixは、非イントラMB用量子化マトリックスの値を表す
データである。Bit_rate_value is the lower 18 bits (rounded up in units of 400 bsp) of the bit rate for limiting the amount of generated bits. VBV_buffer_size_value
Is the lower 10-bit data of the value that determines the size of the virtual buffer (video buffer verifier) for controlling the generated code amount. constrained_parameter_flag is data indicating that each parameter is within the limit. load_i
ntra_quantiser_matrix is data indicating the existence of intra MB quantization matrix data. load_non_i
ntra_quantiser_matrix is data indicating the existence of non-intra MB quantization matrix data. intra_
quantiser_matrix is data indicating the value of the intra MB quantization matrix. non_intra_quantiser_matr
ix is data representing the value of the non-intra MB quantization matrix.
【0264】最終段の符号化処理において生成されたビ
ットストリームのピクチャ層のユーザデータエリアに
は、過去の符号化処理において使用されたシーケンス層
のシーケンスエクステンションを表わすデータエレメン
トが、履歴ストリームとして記述される。[0264] In the user data area of the picture layer of the bit stream generated in the encoding process of the last stage, a data element representing the sequence extension of the sequence layer used in the past encoding process is described as a history stream. You.
【0265】この過去の符号化処理で使用したシーケン
スエクステンション(sequence_extension)を表わすデ
ータエレメントは、 extension_start_code、extension
_start_code_identifier、sequence_extension_present
_flag、profile_and_level_indication、progressive_s
equence、chroma_format、horizontal_size_extensio
n、vertical_size_extension、bit_rate_extension、vb
v_buffer_size_extension、low_delay、frame_rate_ext
ension_n 、及び frame_rate_extension_d等のデータエ
レメントである。The data elements representing the sequence extension (sequence_extension) used in the past encoding process are extension_start_code, extension
_start_code_identifier, sequence_extension_present
_flag, profile_and_level_indication, progressive_s
equence, chroma_format, horizontal_size_extensio
n, vertical_size_extension, bit_rate_extension, vb
v_buffer_size_extension, low_delay, frame_rate_ext
data elements such as extension_n and frame_rate_extension_d.
【0266】extension_start_codeは、エクステンショ
ンデータのスタート同期コードを表すデータである。ex
tension_start_code_identifierは、どの拡張データが
送られるかを示すデータである。sequence_extension_p
resent_flagは、シーケンスエクステンション内のデー
タが有効であるか無効であるかを示すデータである。pr
ofile_and_level_indicationは、ビデオデータのプロフ
ァイルとレベルを指定するためのデータである。progre
ssive_sequenceは、ビデオデータが順次走査であること
を示すデータである。chroma_formatは、ビデオデータ
の色差フォーマットを指定するためのデータである。[0266] extension_start_code is data representing a start synchronization code of extension data. ex
tension_start_code_identifier is data indicating which extension data is sent. sequence_extension_p
resent_flag is data indicating whether the data in the sequence extension is valid or invalid. pr
ofile_and_level_indication is data for specifying the profile and level of video data. progre
ssive_sequence is data indicating that video data is sequentially scanned. chroma_format is data for specifying a color difference format of video data.
【0267】horizontal_size_extensionは、シーケン
スヘッダのhorizntal_size_valueに加える上位2ビット
のデータである。vertical_size_extensionは、シーケ
ンスヘッダのvertical_size_valueに加える上位2ビッ
トのデータである。bit_rate_extensionは、シーケンス
ヘッダのbit_rate_valueに加える上位12ビットのデー
タである。vbv_buffer_size_extensionは、シーケンス
ヘッダのvbv_buffer_size_valueに加える上位8ビット
のデータである。low_delayは、Bピクチャを含まない
ことを示すデータである。frame_rate_extension_nは、
シーケンスヘッダのframe_rate_codeと組み合わせてフ
レームレートを得るためのデータである。frame_rate_e
xtension_dは、シーケンスヘッダのframe_rate_codeと
組み合わせてフレームレートを得るためのデータであ
る。[0267] horizontal_size_extension is high-order 2 bits of data to be added to horizontal_size_value of the sequence header. vertical_size_extension is upper two bits of data added to vertical_size_value of the sequence header. bit_rate_extension is upper 12 bits of data to be added to bit_rate_value of the sequence header. vbv_buffer_size_extension is upper 8 bits of data added to vbv_buffer_size_value of the sequence header. low_delay is data indicating that a B picture is not included. frame_rate_extension_n is
This is data for obtaining a frame rate in combination with frame_rate_code of the sequence header. frame_rate_e
xtension_d is data for obtaining a frame rate in combination with frame_rate_code of the sequence header.
【0268】続いて、ビットストリームのピクチャ層の
ユーザエリアには、過去の符号化処理において使用され
たシーケンス層のシーケンスディスプレイエクステンシ
ョンを表わすデータエレメントが、履歴ストリームとし
て記述される。Subsequently, in the user area of the picture layer of the bit stream, a data element representing the sequence display extension of the sequence layer used in the past encoding processing is described as a history stream.
【0269】このシーケンスディスプレイエクステンシ
ョン(sequence_display_extension)として記述されて
いるデータエレメントは、extension_start_code、exte
nsion_start_code_identifier、sequence_display_exte
nsion_present_flag、video_format、colour_descripti
on、colour_primaries、transfer_characteristics、ma
trix_coeffients、display_horizontal_size、及びdisp
lay_vertical_sizeから構成される。The data elements described as the sequence display extension (sequence_display_extension) are extension_start_code, exte
nsion_start_code_identifier, sequence_display_exte
nsion_present_flag, video_format, colour_descripti
on, colour_primaries, transfer_characteristics, ma
trix_coeffients, display_horizontal_size, and disp
It consists of lay_vertical_size.
【0270】extension_start_codeは、エクステンショ
ンデータのスタート同期コードを表すデータである。ex
tension_start_code_identifierは、どの拡張データが
送られるかを示すコードである。sequence_display_ext
ension_present_flagは、シーケンスディスプレイエク
ステンション内のデータエレメントが有効か無効かを示
すデータである。video_formatは、原信号の映像フォー
マットを表すデータである。color_descriptionは、色
空間の詳細データがあることを示すデータである。colo
r_primariesは、原信号の色特性の詳細を示すデータで
ある。transfer_characteristicsは、光電変換がどのよ
うに行われたのかの詳細を示すデータである。matrix_c
oeffientsは、原信号が光の三原色からどのように変換
されたかの詳細を示すデータである。display_horizont
al_sizeは、意図するディスプレイの活性領域(水平サ
イズ)を表すデータである。display_vertical_size
は、意図するディスプレイの活性領域(垂直サイズ)を
表すデータである。[0270] extension_start_code is data representing a start synchronization code of extension data. ex
tension_start_code_identifier is a code indicating which extension data is sent. sequence_display_ext
The extension_present_flag is data indicating whether a data element in the sequence display extension is valid or invalid. video_format is data representing the video format of the original signal. color_description is data indicating that there is detailed data of a color space. colo
r_primaries is data indicating details of the color characteristics of the original signal. transfer_characteristics is data indicating details of how the photoelectric conversion was performed. matrix_c
The oeffients are data showing details of how the original signal was converted from the three primary colors of light. display_horizont
al_size is data representing the intended active area (horizontal size) of the display. display_vertical_size
Is data representing the intended active area (vertical size) of the display.
【0271】続いて、最終段の符号化処理において生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において生成されたマクロブロッ
クの位相情報を示すマクロブロックアサイメントデータ
(macroblock_assignment_in_user_data)が、履歴スト
リームとして記述される。Subsequently, macroblock assignment data (macroblock_assignment_in_user_data) indicating the phase information of the macroblock generated in the past encoding process is provided in the user area of the picture layer of the bit stream generated in the last-stage encoding process. ) Is described as a history stream.
【0272】このマクロブロックの位相情報を示すmacr
oblock_assignment_in_user_dataは、macroblock_assig
nment_present_flag、v_phase、h_phase等のデータエレ
メントから構成される。Macr indicating phase information of this macroblock
oblock_assignment_in_user_data is macroblock_assig
It is composed of data elements such as nment_present_flag, v_phase, and h_phase.
【0273】このmacroblock_assignment_present_flag
は、macroblock_assignment_in_user_data内のデータエ
レメントが有効か無効かを示すデータである。v_phase
は、画像データからマクロブロックを切り出す際の垂直
方向の位相情報を示すデータである。h_phaseは、画像
データからマクロブロックを切り出す際の水平方向の位
相情報を示すデータである。This macroblock_assignment_present_flag
Is data indicating whether a data element in macroblock_assignment_in_user_data is valid or invalid. v_phase
Is data indicating vertical phase information when a macroblock is cut out from image data. h_phase is data indicating horizontal phase information when a macroblock is cut out from image data.
【0274】続いて、最終段の符号化処理によって生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において使用されたGOP層のGOPヘ
ッダを表わすデータエレメントが、履歴ストリームとし
て記述されている。Subsequently, in the user area of the picture layer of the bit stream generated by the encoding process at the last stage, a data element representing the GOP header of the GOP layer used in the past encoding process is stored as a history stream. It has been described.
【0275】このGOPヘッダ(group_of_picture_heade
r)を表わすデータエレメントは、group_start_code、g
roup_of_picture_header_present_flag、time_code、cl
osed_gop、及びbroken_linkから構成される。The GOP header (group_of_picture_heade)
The data element representing r) is group_start_code, g
roup_of_picture_header_present_flag, time_code, cl
osed_gop and broken_link.
【0276】group_start_codeは、GOP層の開始同期コ
ードを示すデータである。group_of_picture_header_pr
esent_flagは、group_of_picture_header内のデータエ
レメントが有効であるか無効であるかを示すデータであ
る。time_codeは、GOPの先頭ピクチャのシーケンスの先
頭からの時間を示すタイムコードである。closed_gop
は、GOP内の画像が他のGOPから独立再生可能なことを示
すフラグデータである。broken_linkは、編集などのた
めにGOP内の先頭のBピクチャが正確に再生できないこ
とを示すフラグデータである。[0276] group_start_code is data indicating the start synchronization code of the GOP layer. group_of_picture_header_pr
esent_flag is data indicating whether the data element in group_of_picture_header is valid or invalid. time_code is a time code indicating the time from the beginning of the sequence of the first picture of the GOP. closed_gop
Is flag data indicating that an image in a GOP can be reproduced independently from another GOP. broken_link is flag data indicating that the first B picture in the GOP cannot be accurately reproduced due to editing or the like.
【0277】続いて、最終段の符号化処理によって生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において使用されたピクチャ層の
ピクチャヘッダを表わすデータエレメントが、履歴スト
リームとして記述されている。Subsequently, in the user area of the picture layer of the bit stream generated by the encoding process at the last stage, a data element representing the picture header of the picture layer used in the past encoding process is stored as a history stream. It has been described.
【0278】このピクチャヘッダ(picture_header)に
関するデータエレメントは、picture_start_code、temp
oral_reference、picture_coding_type、vbv_delay、fu
ll_pel_forward_vector、forward_f_code、full_pel_ba
ckward_vector、及びbackward_f_codeから構成される。Data elements related to the picture header (picture_header) are picture_start_code, temp
oral_reference, picture_coding_type, vbv_delay, fu
ll_pel_forward_vector, forward_f_code, full_pel_ba
It consists of ckward_vector and backward_f_code.
【0279】具体的には、picture_start_codeは、ピク
チャ層の開始同期コードを表すデータである。temporal
_referenceは、ピクチャの表示順を示す番号でGOPの先
頭でリセットされるデータである。picture_coding_typ
eは、ピクチャタイプを示すデータである。vbv_delay
は、ランダムアクセス時の仮想バッファの初期状態を示
すデータである。full_pel_forward_vectorは、順方向
動きベクトルの精度が整数単位か半画素単位かを示すデ
ータである。forward_f_codeは、順方向動きベクトル探
索範囲を表すデータである。full_pel_backward_vector
は、逆方向動きベクトルの精度が整数単位か半画素単位
かを示すデータである。backward_f_codeは、逆方向動
きベクトル探索範囲を表すデータである。[0279] Specifically, picture_start_code is data representing the start synchronization code of the picture layer. temporal
_reference is data indicating the display order of pictures and is reset at the beginning of the GOP. picture_coding_typ
e is data indicating a picture type. vbv_delay
Is data indicating the initial state of the virtual buffer at the time of random access. full_pel_forward_vector is data indicating whether the accuracy of the forward motion vector is an integer unit or a half pixel unit. forward_f_code is data representing a forward motion vector search range. full_pel_backward_vector
Is data indicating whether the accuracy of the backward motion vector is an integer unit or a half pixel unit. backward_f_code is data representing a backward motion vector search range.
【0280】続いて、最終段の符号化処理によって生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において使用されたピクチャ層の
ピクチャコーディングエクステンションが、履歴ストリ
ームとして記述されている。Subsequently, in the user area of the picture layer of the bit stream generated by the encoding process at the last stage, the picture coding extension of the picture layer used in the past encoding process is described as a history stream. I have.
【0281】このピクチャコーディングエクステンショ
ン(picture_coding_extension)に関するデータエレメ
ントは、extension_start_code、extension_start_code
_identifier、f_code[0][0]、f_code[0][1]、f_code[1]
[0]、f_code[1][1]、intra_dc_precision、picture_str
ucture、top_field_first、frame_predictive_frame_dc
t、concealment_motion_vectors、q_scale_type、intra
_vlc_format、alternate_scan、repeat_firt_field、ch
roma_420_type、progressive_frame、composite_displa
y_flag、v_axis、field_sequence、sub_carrier、burst
_amplitude、及びsub_carrier_phaseから構成される。Data elements related to the picture coding extension (picture_coding_extension) are extension_start_code and extension_start_code.
_identifier, f_code [0] [0], f_code [0] [1], f_code [1]
[0], f_code [1] [1], intra_dc_precision, picture_str
ucture, top_field_first, frame_predictive_frame_dc
t, concealment_motion_vectors, q_scale_type, intra
_vlc_format, alternate_scan, repeat_firt_field, ch
roma_420_type, progressive_frame, composite_displa
y_flag, v_axis, field_sequence, sub_carrier, burst
_amplitude and sub_carrier_phase.
【0282】extension_start_codeは、ピクチャ層のエ
クステンションデータのスタートを示す開始コードであ
る。extension_start_code_identifierは、どの拡張デ
ータが送られるかを示すコードである。f_code[0][0]
は、フォワード方向の水平動きベクトル探索範囲を表す
データである。f_code[0][1]は、フォワード方向の垂直
動きベクトル探索範囲を表すデータである。f_code[1]
[0]は、バックワード方向の水平動きベクトル探索範囲
を表すデータである。f_code[1][1]は、バックワード方
向の垂直動きベクトル探索範囲を表すデータである。[0282] The extension_start_code is a start code indicating the start of extension data in the picture layer. extension_start_code_identifier is a code indicating which extension data is sent. f_code [0] [0]
Is data indicating a horizontal motion vector search range in the forward direction. f_code [0] [1] is data representing the vertical motion vector search range in the forward direction. f_code [1]
[0] is data representing a horizontal motion vector search range in the backward direction. f_code [1] [1] is data representing the vertical motion vector search range in the backward direction.
【0283】intra_dc_precisionは、DC係数の精度を表
すデータである。picture_structureは、フレームスト
ラクチャかフィールドストラクチャかを示すデータであ
る。フィールドストラクチャの場合は、上位フィールド
か下位フィールドかもあわせて示すデータである。top_
field_firstは、フレームストラクチャの場合、最初の
フィールドが上位か下位かを示すデータである。frame_
predictive_frame_dctは、フレーム・ストラクチャの場
合、フレーム・モードDCTの予測がフレーム・モードだ
けであることを示すデータである。concealment_motion
_vectorsは、イントラマクロブロックに伝送エラーを隠
蔽するための動きベクトルがついていることを示すデー
タである。[0283] intra_dc_precision is data representing the accuracy of the DC coefficient. picture_structure is data indicating a frame structure or a field structure. In the case of the field structure, it is data indicating the upper field or the lower field. top_
field_first is data indicating whether the first field is higher or lower in the case of a frame structure. frame_
predictive_frame_dct is data indicating that, in the case of a frame structure, the prediction of the frame mode DCT is only the frame mode. concealment_motion
_vectors is data indicating that a motion vector for concealing a transmission error is attached to an intra macroblock.
【0284】q_scale_typeは、線形量子化スケールを利
用するか、非線形量子化スケールを利用するかを示すデ
ータである。intra_vlc_formatは、イントラマクロブロ
ックに、別の2次元VLCを使うかどうかを示すデータで
ある。alternate_scanは、ジグザグスキャンを使うか、
オルタネート・スキャンを使うかの選択を表すデータで
ある。repeat_firt_fieldは、2:3プルダウンの際に
使われるデータである。chroma_420_typeは、信号フォ
ーマットが4:2:0の場合、次のprogressive_frame
と同じ値、そうでない場合は0を表すデータである。pr
ogressive_frameは、このピクチャが、順次走査できて
いるかどうかを示すデータである。composite_display_
flagは、ソース信号がコンポジット信号であったかどう
かを示すデータである。[0284] q_scale_type is data indicating whether to use a linear quantization scale or a non-linear quantization scale. intra_vlc_format is data indicating whether another two-dimensional VLC is used for an intra macroblock. alternate_scan uses zigzag scan,
This is data indicating whether to use an alternate scan. repeat_firt_field is data used at the time of 2: 3 pull-down. chroma_420_type is the next progressive_frame when the signal format is 4: 2: 0.
Is the same value as, otherwise 0. pr
ogressive_frame is data indicating whether or not this picture has been sequentially scanned. composite_display_
The flag is data indicating whether the source signal is a composite signal.
【0285】v_axisは、ソース信号が、PALの場合に使
われるデータである。field_sequenceは、ソース信号
が、PALの場合に使われるデータである。sub_carrier
は、ソース信号が、PALの場合に使われるデータであ
る。burst_amplitudeは、ソース信号が、PALの場合に使
われるデータである。sub_carrier_phaseは、ソース信
号が、PALの場合に使われるデータである。V_axis is data used when the source signal is PAL. field_sequence is data used when the source signal is PAL. sub_carrier
Is data used when the source signal is PAL. burst_amplitude is data used when the source signal is PAL. sub_carrier_phase is data used when the source signal is PAL.
【0286】続いて、最終段の符号化処理によって生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において使用された量子化マトリ
ックスエクステンションが、履歴ストリームとして記述
されている。Subsequently, in the user area of the picture layer of the bit stream generated by the encoding process at the last stage, the quantization matrix extension used in the past encoding process is described as a history stream.
【0287】この量子化マトリックスエクステンション
(quant_matrix_extension)に関するデータエレメント
は、extension_start_code、extension_start_code_ide
ntifier、quant_matrix_extension_present_flag、load
_intra_quantiser_matrix、intra_quantiser_matrix[6
4]、load_non_intra_quantiser_matrix、non_intra_qua
ntiser_matrix[64]、load_chroma_intra_quantiser_mat
rix、chroma_intra_quantiser_matrix[64]、load_chrom
a_non_intra_quantiser_matrix、及びchroma_non_intra
_quantiser_matrix[64] から構成される。The data elements relating to the quantization matrix extension (quant_matrix_extension) are extension_start_code and extension_start_code_ide.
ntifier, quant_matrix_extension_present_flag, load
_intra_quantiser_matrix, intra_quantiser_matrix [6
4], load_non_intra_quantiser_matrix, non_intra_qua
ntiser_matrix [64], load_chroma_intra_quantiser_mat
rix, chroma_intra_quantiser_matrix [64], load_chrom
a_non_intra_quantiser_matrix and chroma_non_intra
_quantiser_matrix [64].
【0288】extension_start_codeは、この量子化マト
リックスエクステンションのスタートを示す開始コード
である。extension_start_code_identifierは、どの拡
張データが送られるかを示すコードである。quant_matr
ix_extension_present_flagは、この量子化マトリック
スエクステンション内のデータエレメントが有効か無効
かを示すためのデータである。load_intra_quantiser_m
atrixは、イントラマクロブロック用の量子化マトリッ
クスデータの存在を示すデータである。intra_quantise
r_matrixは、イントラマクロブロック用の量子化マトリ
ックスの値を示すデータである。Extension_start_code is a start code indicating the start of this quantization matrix extension. extension_start_code_identifier is a code indicating which extension data is sent. quant_matr
ix_extension_present_flag is data for indicating whether a data element in the quantization matrix extension is valid or invalid. load_intra_quantiser_m
atrix is data indicating the existence of quantization matrix data for an intra macroblock. intra_quantise
r_matrix is data indicating the value of a quantization matrix for an intra macroblock.
【0289】load_non_intra_quantiser_matrixは、非
イントラマクロブロック用の量子化マトリックスデータ
の存在を示すデータである。non_intra_quantiser_matr
ixは、非イントラマクロブロック用の量子化マトリック
スの値を表すデータである。load_chroma_intra_quanti
ser_matrixは、色差イントラマクロブロック用の量子化
マトリックス・データの存在を示すデータである。chro
ma_intra_quantiser_matrixは、色差イントラマクロブ
ロック用の量子化マトリックスの値を示すデータであ
る。load_chroma_non_intra_quantiser_matrixは、色差
非イントラマクロブロック用の量子化マトリックス・デ
ータの存在を示すデータである。chroma_non_intra_qua
ntiser_matrixは、色差非イントラマクロブロック用の
量子化マトリックスの値を示すデータである。Load_non_intra_quantiser_matrix is data indicating the existence of quantization matrix data for a non-intra macro block. non_intra_quantiser_matr
ix is data representing a value of a quantization matrix for a non-intra macroblock. load_chroma_intra_quanti
ser_matrix is data indicating the existence of quantization matrix data for a chrominance intra macroblock. chro
ma_intra_quantiser_matrix is data indicating a value of a quantization matrix for a chroma intra macroblock. load_chroma_non_intra_quantiser_matrix is data indicating the existence of quantization matrix data for a chrominance non-intra macroblock. chroma_non_intra_qua
ntiser_matrix is data indicating a value of a quantization matrix for a color difference non-intra macroblock.
【0290】続いて、最終段の符号化処理によって生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において使用されたコピーライト
エクステンションが、履歴ストリームとして記述されて
いる。Subsequently, in the user area of the picture layer of the bit stream generated by the encoding process at the last stage, the copyright extension used in the past encoding process is described as a history stream.
【0291】このコピーライトエクステンション(copy
right_extension)に関するデータエレメントは、exten
sion_start_code、extension_start_code_itentifier、
copyright_extension_present_flag、copyright_flag、
copyright_identifier、original_or_copy、copyright_
number_1、copyright_number_2、及びcopyright_number
_3から構成される。The copyright extension (copy
data element for right_extension) is exten
sion_start_code, extension_start_code_itentifier,
copyright_extension_present_flag, copyright_flag,
copyright_identifier, original_or_copy, copyright_
number_1, copyright_number_2, and copyright_number
_3.
【0292】extension_start_codeは、コピーライトエ
クステンションのスタート示す開始コードである。exte
nsion_start_code_itentifierのどのエクステンション
データが送られるかを示すコードである。copyright_ex
tension_present_flagは、このコピーライトエクステン
ション内のデータエレメントが有効か無効かを示すため
のデータである。copyright_flagは、次のコピーライト
エクステンション又はシーケンスエンドまで、符号化さ
れたビデオデータに対してコピー権が与えられているか
否かを示す。[0292] The extension_start_code is a start code indicating the start of the copyright extension. exte
This code indicates which extension data of nsion_start_code_itentifier is sent. copyright_ex
tension_present_flag is data for indicating whether a data element in the copyright extension is valid or invalid. copyright_flag indicates whether or not a copy right has been granted to the encoded video data until the next copyright extension or sequence end.
【0293】copyright_identifierは、ISO/IEC JTC/SC
29によって指定されたコピー権の登録機関を識別するた
めのデータである。original_or_copyは、ビットストリ
ーム中のデータが、オリジナルデータであるかコピーデ
ータであるかを示すデータである。copyright_number_1
は、コピーライトナンバーのビット44から63を表わ
すデータである。copyright_number_2は、コピーライト
ナンバーのビット22から43を表わすデータである。
copyright_number_3は、コピーライトナンバーのビット
0から21を表わすデータである。The copyright_identifier is ISO / IEC JTC / SC
This is data for identifying the registration authority of the copy right specified by 29. original_or_copy is data indicating whether the data in the bit stream is original data or copy data. copyright_number_1
Is data representing bits 44 to 63 of the copyright number. copyright_number_2 is data representing bits 22 to 43 of the copyright number.
copyright_number_3 is data representing bits 0 to 21 of the copyright number.
【0294】続いて、最終段の符号化処理によって生成
されたビットストリームのピクチャ層のユーザエリアに
は、過去の符号化処理において使用されたピクチャディ
スプレイエクステンション(picture_display_extensio
n)が、履歴ストリームとして記述されている。Subsequently, in the user area of the picture layer of the bit stream generated by the encoding process at the final stage, the picture display extension (picture_display_extensio) used in the past encoding process is stored.
n) is described as a history stream.
【0295】このピクチャディスプレイエクステンショ
ンを表わすデータエレメントは、extension_start_cod
e、extension_start_code_identifier、picture_displa
y_extension_present_flag、frame_center_horizontal_
offset_1、frame_center_vertical_offset_1、frame_ce
nter_horizontal_offset_2、frame_center_vertical_of
fset_2、frame_center_horizontal_offset_3、及びfram
e_center_vertical_offset_3から構成される。A data element representing this picture display extension is extension_start_cod
e, extension_start_code_identifier, picture_displa
y_extension_present_flag, frame_center_horizontal_
offset_1, frame_center_vertical_offset_1, frame_ce
nter_horizontal_offset_2, frame_center_vertical_of
fset_2, frame_center_horizontal_offset_3, and fram
It consists of e_center_vertical_offset_3.
【0296】extension_start_codeは、ピクチャディス
プレイエクステンションのスタートを示すための開始コ
ードである。extension_start_code_identifierは、ど
の拡張データが送られるかを示すコードである。pictur
e_display_extension_present_flagは、ピクチャディス
プレイエクステンション内のデータエレメントが有効か
無効かを示すデータである。frame_center_horizontal_
offsetは、表示エリアの水平方向のオフセットを示すデ
ータであって、3つのオフセット値まで定義することが
できる。frame_center_vertical_offsetは、表示エリア
を垂直方向のオフセットを示すデータであって、3つの
オフセット値まで定義することができる。[0296] extension_start_code is a start code for indicating the start of the picture display extension. extension_start_code_identifier is a code indicating which extension data is sent. pictur
e_display_extension_present_flag is data indicating whether the data element in the picture display extension is valid or invalid. frame_center_horizontal_
The offset is data indicating a horizontal offset of the display area, and can be defined up to three offset values. frame_center_vertical_offset is data indicating a vertical offset of the display area, and can define up to three offset values.
【0297】最終段の符号化処理において生成されたビ
ットストリームのピクチャ層のユーザエリアには、既に
説明したピクチャディスプレイエクステンションを表わ
す履歴情報の次に、過去の符号化処理において使用され
たユーザデータ(user_data)が、履歴ストリームとし
て記述されている。[0297] In the user area of the picture layer of the bit stream generated in the encoding process of the final stage, the user information (user information) used in the past encoding process is stored next to the history information indicating the picture display extension described above. user_data) is described as a history stream.
【0298】このユーザデータの次には、過去の符号化
処理において使用されたマクロブロック層に関する情報
が、履歴ストリームとして記述されている。[0298] Following this user data, information on the macroblock layer used in the past encoding process is described as a history stream.
【0299】このマクロブロック層に関する情報は、ma
croblock_address_h、macroblock_address_v、slice_he
ader_present_flag、skipped_macroblock_flag等のマク
ロブロック(macroblock)の位置に関するデータエレメ
ントと、macroblock_quant、macroblock_motion_forwar
d、macroblock_motion_backward、mocroblock_patter
n、macroblock_intra、spatial_temporal_weight_code_
flag、frame_motion_type、及びdct_type等のマクロブ
ロックモード(macroblock_modes[])に関するデータエ
レメントと、quantiser_scale_code等の量子化ステップ
制御に関するデータエレメントと、PMV[0][0][0]、PMV
[0][0][1]、motion_vertical_field_select[0][0]、PMV
[0][1][0]、PMV[0][1][1]、motion_vertical_field_sel
ect[0][1]、PMV[1][0][0]、PMV[1][0][1]、motion_vert
ical_field_select[1][0]、PMV[1][1][0]、PMV[1][1]
[1]、motion_vertical_field_select[1][1]等の動き補
償に関するデータエレメントと、coded_block_pattern
等のマクロブロックパターンに関するデータエレメント
と、num_mv_bits、num_coef_bits、及びnum_other_bits
等の発生符号量に関するデータエレメントから構成され
ている。The information on this macroblock layer is
croblock_address_h, macroblock_address_v, slice_he
ader_present_flag, skipped_macroblock_flag, and other data elements related to the position of the macroblock, and macroblock_quant, macroblock_motion_forwar
d, macroblock_motion_backward, macroblock_patter
n, macroblock_intra, spatial_temporal_weight_code_
Data elements related to macroblock modes (macroblock_modes []) such as flag, frame_motion_type, and dct_type, data elements related to quantization step control such as quantizer_scale_code, and PMV [0] [0] [0], PMV
[0] [0] [1], motion_vertical_field_select [0] [0], PMV
[0] [1] [0], PMV [0] [1] [1], motion_vertical_field_sel
ect [0] [1], PMV [1] [0] [0], PMV [1] [0] [1], motion_vert
ical_field_select [1] [0], PMV [1] [1] [0], PMV [1] [1]
Data elements related to motion compensation such as [1], motion_vertical_field_select [1] [1], and coded_block_pattern
Data elements related to macroblock patterns such as num_mv_bits, num_coef_bits, and num_other_bits
And so on.
【0300】以下にマクロブロック層に関するデータエ
レメントについて詳細に説明する。The data elements related to the macroblock layer will be described below in detail.
【0301】macroblock_address_hは、現在のマクロブ
ロックの水平方向の絶対位置を定義するためのデータで
ある。macroblock_address_vは、現在のマクロブロック
の垂直方向の絶対位置を定義するためのデータである。
slice_header_present_flagは、このマクロブロックが
スライス層の先頭であり、スライスヘッダを伴なうか否
かを示すデータである。skipped_macroblock_flagは、
復号処理においてこのマクロブロックをスキップするか
否かを示すデータでる。[0301] macroblock_address_h is data for defining the horizontal absolute position of the current macroblock. macroblock_address_v is data for defining the vertical absolute position of the current macroblock.
slice_header_present_flag is data indicating whether or not this macroblock is the head of a slice layer and has a slice header. skipped_macroblock_flag is
This data indicates whether to skip this macroblock in the decoding process.
【0302】macroblock_quantは、後述する図43と図
44に示されたマクロブロックタイプ( macroblock_ty
pe )から導かれるデータであって、quantiser_scale_c
odeがビットストリーム中に現れるか否かを示すデータ
である。macroblock_motion_forwardは、図43と図4
4に示されたマクロブロックタイプから導かれるデータ
であって、復号処理で使用されるデータである。macrob
lock_motion_backwardは、図43と図44に示されたマ
クロブロックタイプから導かれるデータであって、復号
処理で使用されるデータである。mocroblock_pattern
は、図43と図44に示されたマクロブロックタイプか
ら導かれるデータであって、coded_block_patternがビ
ットストリーム中に現れるか否かを示すデータである。The macroblock_quant is a macroblock type (macroblock_ty) shown in FIGS. 43 and 44 described later.
pe) data, quantizer_scale_c
This is data indicating whether or not ode appears in the bit stream. macroblock_motion_forward is shown in FIG. 43 and FIG.
4 is data derived from the macroblock type shown in FIG. 4 and used in the decoding process. macrob
lock_motion_backward is data derived from the macroblock type shown in FIGS. 43 and 44, and is data used in the decoding process. mocroblock_pattern
Is data derived from the macroblock types shown in FIGS. 43 and 44, and is data indicating whether or not coded_block_pattern appears in the bit stream.
【0303】macroblock_intraは、図43と図44に示
されたマクロブロックタイプから導かれるデータであっ
て、復号処理で使用されるデータである。spatial_temp
oral_weight_code_flagは、図43と図44に示された
マクロブロックタイプから導かれるデータであって、時
間スケーラビリティで下位レイヤ画像のアップサンプリ
ング方法を示すspatial_temporal_weight_codeは、ビッ
トストリーム中に存在するか否かを示すデータである。The macroblock_intra is data derived from the macroblock type shown in FIGS. 43 and 44, and is used in the decoding process. spatial_temp
oral_weight_code_flag is data derived from the macroblock types shown in FIGS. 43 and 44, and spatial_temporal_weight_code indicating a method of upsampling a lower layer image with time scalability is data indicating whether or not the bitstream exists. It is.
【0304】frame_motion_typeは、フレームのマクロ
ブロックの予測タイプを示す2ビットのコードである。
予測ベクトルが2個でフィールドベースの予測タイプで
あれば「00」であって、予測ベクトルが1個でフィー
ルドベースの予測タイプであれば「01」であって、予
測ベクトルが1個でフレームベースの予測タイプであれ
ば「10」であって、予測ベクトルが1個でディアルプ
ライムの予測タイプであれば「11」である。field_mo
tion_typeは、フィールドのマクロブロックの動き予測
を示す2ビットのコードである。予測ベクトルが1個で
フィールドベースの予測タイプであれば「01」であっ
て、予測ベクトルが2個で18×8マクロブロックベー
スの予測タイプであれば「10」であって、予測ベクト
ルが1個でディアルプライムの予測タイプであれば「1
1」である。dct_typeは、DCTがフレームDCTモードか、
フィールドDCTモードかを示すデータである。quantiser
_scale_codeはマクロブロックの量子化ステップサイズ
を示すデータである。[0304] frame_motion_type is a 2-bit code indicating the prediction type of the macroblock of the frame.
If the number of prediction vectors is two and the field-based prediction type is “00”, if the number of prediction vectors is one and the field-based prediction type is “01”, the number of prediction vectors is one and the frame is base Is "10" for the prediction type of "1", and "11" for the prediction type of one prediction vector and dual prime. field_mo
tion_type is a 2-bit code indicating motion prediction of a macroblock in the field. If the number of prediction vectors is one and the field-based prediction type is “01”, if the number of prediction vectors is two and the prediction type is a 18 × 8 macroblock-based “10”, the prediction vector is one If it is a forecast type of dual prime, "1
1 ". dct_type indicates whether the DCT is in frame DCT mode
This is data indicating whether the mode is the field DCT mode. quantiser
_scale_code is data indicating the quantization step size of the macroblock.
【0305】次に動きベクトルに関するデータエレメン
トについて説明する。動きベクトルは、復号時に必要な
動きベクトルを減少させるために、先に符号化されたベ
クトルに関し差分として符号化される。動きベクトルの
復号を行うために復号器は、4個の動きベクトル予測値
(それぞれ水平及び垂直成分を伴なう)を維持しなけれ
ばいけない。この予測動きベクトルをPMV[r][s][v]と表
わすことにしている。[r]は、マクロブロックにおける
動きベクトルが第1のベクトルであるのか、第2のベク
トルであるのかを示すフラグであって、マクロブロック
におけるベクトルが第1のベクトルである場合には
「0」となって、マクロブロックにおけるベクトルが第
2のベクトルである場合には「1」となる。[s]は、マ
クロブロックにおける動きベクトルの方向が、前方向で
あるのか後方向であるのかを示すフラグであって、前方
向動きベクトルの場合には「0」となって、後方向動き
ベクトルの場合には「1」となる。[v]は、マクロブロ
ックにおけるベクトルの成分が、水平方向であるのか垂
直方向であるのかを示すフラグであって、水平方向成分
の場合には「0」となって、垂直方向成分の場合には
「1」となる。Next, a data element relating to a motion vector will be described. The motion vector is coded as a difference with respect to the previously coded vector in order to reduce the motion vector required for decoding. In order to perform motion vector decoding, the decoder must maintain four motion vector predictions, each with a horizontal and vertical component. This predicted motion vector is represented as PMV [r] [s] [v]. [r] is a flag indicating whether the motion vector in the macroblock is the first vector or the second vector, and is “0” when the vector in the macroblock is the first vector. Becomes “1” when the vector in the macro block is the second vector. [s] is a flag indicating whether the direction of the motion vector in the macroblock is forward or backward. In the case of a forward motion vector, the flag is set to “0”, and the backward motion vector In this case, it becomes "1". [v] is a flag indicating whether the vector component in the macroblock is horizontal or vertical, and is “0” in the case of a horizontal component, and is “0” in the case of a vertical component. Becomes “1”.
【0306】従って、PMV[0][0][0]は、第1のベクトル
の前方向の動きベクトルの水平方向成分のデータを表わ
し、PMV[0][0][1]は、第1のベクトルの前方向の動きベ
クトルの垂直方向成分のデータを表わし、PMV[0][1][0]
は、第1のベクトルの後方向の動きベクトルの水平方向
成分のデータを表わし、PMV[0][1][1]は、第1のベクト
ルの後方向の動きベクトルの垂直方向成分のデータを表
わし、 PMV[1][0][0]は、第2のベクトルの前方向の動
きベクトルの水平方向成分のデータを表わし、PMV[1]
[0][1]は、第2のベクトルの前方向の動きベクトルの垂
直方向成分のデータを表わし、 PMV[1][1][0]は、第2
のベクトルの後方向の動きベクトルの水平方向成分のデ
ータを表わし、PMV[1][1][1] は、第2のベクトルの後
方向の動きベクトルの垂直方向成分のデータを表わして
いる。Accordingly, PMV [0] [0] [0] represents the data of the horizontal component of the forward motion vector of the first vector, and PMV [0] [0] [1] represents the first component. Represents the vertical component data of the motion vector in the forward direction of the vector of PMV [0] [1] [0]
Represents the data of the horizontal component of the backward motion vector of the first vector, and PMV [0] [1] [1] represents the data of the vertical component of the backward motion vector of the first vector. PMV [1] [0] [0] represents the horizontal component data of the forward motion vector of the second vector, and PMV [1]
[0] [1] represents the data of the vertical component of the forward motion vector of the second vector, and PMV [1] [1] [0] represents the second component.
Represents the horizontal component data of the backward motion vector of the second vector, and PMV [1] [1] [1] represents the vertical component data of the second motion vector of the second vector.
【0307】motion_vertical_field_select[r][s]は、
予測の形式にいずれの参照フィールドを使用するのかを
示すデータである。このmotion_vertical_field_select
[r][s]が「0」の場合には、トップ参照フィールドを使
用し、「1」の場合には、ボトム参照フィールドを使用
することを示している。[0307] motion_vertical_field_select [r] [s] is
This is data indicating which reference field is used for the prediction format. This motion_vertical_field_select
When [r] [s] is “0”, it indicates that the top reference field is used, and when “1”, the bottom reference field is used.
【0308】よって、motion_vertical_field_select
[0][0]は、第1のベクトルの前方向の動きベクトルを生
成する際の参照フィールドを示し、motion_vertical_fi
eld_select[0][1]は、第1のベクトルの後方向の動きベ
クトルを生成する際の参照フィールドを示し、motion_v
ertical_field_select[1][0]は、第2のベクトルの前方
向の動きベクトルを生成する際の参照フィールドを示
し、motion_vertical_field_select[1][1]は、第2ベク
トルの後方向の動きベクトルを生成する際の参照フィー
ルドを示している。[0308] Therefore, motion_vertical_field_select
[0] [0] indicates a reference field when a forward motion vector of the first vector is generated, and motion_vertical_fi
eld_select [0] [1] indicates a reference field when a backward motion vector of the first vector is generated, and motion_v
ertical_field_select [1] [0] indicates a reference field when a forward motion vector of the second vector is generated, and motion_vertical_field_select [1] [1] generates a backward motion vector of the second vector. Reference field at the time is shown.
【0309】coded_block_patternは、DCT係数を格納す
る複数のDCTブロックのうち、どのDCTブロックに、有意
係数(非0係数)があるかを示す可変長のデータであ
る。num_mv_bitsは、マクロブロック中の動きベクトル
の符号量を示すデータである。num_coef_bitsは、マク
ロブロック中のDCT係数の符号量を示すデータである。n
um_other_bitsは、マクロブロックの符号量で、動きベ
クトル及びDCT係数以外の符号量を示すデータである。[0309] The coded_block_pattern is variable-length data indicating which DCT block has a significant coefficient (non-zero coefficient) among a plurality of DCT blocks storing DCT coefficients. num_mv_bits is data indicating the code amount of a motion vector in a macroblock. num_coef_bits is data indicating the code amount of the DCT coefficient in the macro block. n
um_other_bits is the code amount of the macroblock and is data indicating the code amount other than the motion vector and the DCT coefficient.
【0310】次に、可変長の履歴ストリームから各デー
タエレメントをデコードするためのシンタックスについ
て、図27乃至図47を参照して説明する。Next, the syntax for decoding each data element from the variable-length history stream will be described with reference to FIGS.
【0311】この可変長の履歴ストリームは、next_sta
rt_code()関数、sequence_header()関数、sequence_ext
ension()関数、extension_and_user_data(0)関数、grou
p_of_picture_header()関数、extension_and_user_data
(1)関数、picture_header()関数、picture_coding_exte
nsion()関数、re_coding_stream_info()関数、extensio
n_and_user_data(2)関数、及びpicture_data()関数によ
って定義されたデータエレメントによって構成される。[0311] The variable-length history stream is next_sta.
rt_code () function, sequence_header () function, sequence_ext
extension () function, extension_and_user_data (0) function, grou
p_of_picture_header () function, extension_and_user_data
(1) function, picture_header () function, picture_coding_exte
nsion () function, re_coding_stream_info () function, extensio
It is composed of data elements defined by n_and_user_data (2) function and picture_data () function.
【0312】next_start_code()関数は、ビットストリ
ーム中に存在するスタートコードを探すための関数であ
るので、履歴ストリームの最も先頭には、図28に示す
ような、過去の符号化処理において使用されたデータエ
レメントであってsequence_header()関数によって定義
されたデータエレメントが記述されている。[0312] The next_start_code () function is a function for searching for a start code existing in the bit stream. Therefore, the next_start_code () function is used in the past encoding process as shown in FIG. A data element, which is a data element defined by the sequence_header () function, is described.
【0313】sequence_header()関数によって定義され
たデータエレメントは、sequence_header_code、sequen
ce_header_present_flag、horizontal_size_value、ver
tical_size_value、aspect_ratio_information、frame_
rate_code、bit_rate_value、marker_bit、VBV_buffer_
size_value、constrained_parameter_flag、load_intra
_quantiser_matrix、intra_quantiser_matrix、load_no
n_intra_quantiser_matrix、及びnon_intra_quantiser_
matrix等である。The data elements defined by the sequence_header () function are sequence_header_code, sequence
ce_header_present_flag, horizontal_size_value, ver
tical_size_value, aspect_ratio_information, frame_
rate_code, bit_rate_value, marker_bit, VBV_buffer_
size_value, constrained_parameter_flag, load_intra
_quantiser_matrix, intra_quantiser_matrix, load_no
n_intra_quantiser_matrix and non_intra_quantiser_
matrix.
【0314】sequence_header_codeは、シーケンス層の
スタート同期コードを表すデータである。sequence_hea
der_present_flagは、sequence_header内のデータが有
効か無効かを示すデータである。 horizontal_size_val
ueは、画像の水平方向の画素数の下位12ビットから成る
データである。vertical_size_valueは、画像の縦のラ
イン数の下位12ビットからなるデータである。aspect_r
atio_informationは、画素のアスペクト比(縦横比)ま
たは表示画面アスペクト比を表すデータである。frame_
rate_codeは、画像の表示周期を表すデータである。bit
_rate_valueは、発生ビット量に対する制限のためのビ
ット・レートの下位18ビット(400bsp単位で切り上げる)
データである。[0314] sequence_header_code is data representing a start synchronization code of the sequence layer. sequence_hea
der_present_flag is data indicating whether data in sequence_header is valid or invalid. horizontal_size_val
ue is data consisting of the lower 12 bits of the number of pixels in the horizontal direction of the image. vertical_size_value is data composed of lower 12 bits of the number of vertical lines of the image. aspect_r
atio_information is data representing the pixel aspect ratio (aspect ratio) or the display screen aspect ratio. frame_
rate_code is data representing a display cycle of an image. bit
_rate_value is the lower 18 bits of the bit rate for limiting the amount of generated bits (rounded up to the nearest 400 bsp)
Data.
【0315】marker_bitは、スタートコードエミュレー
ションを防止するために挿入されるビットデータであ
る。VBV_buffer_size_valueは、発生符号量制御用の仮
想バッファ(ビデオバッファベリファイヤー)の大きさ
を決める値の下位10ビットデータである。constrained_
parameter_flagは、各パラメータが制限以内であること
を示すデータである。load_intra_quantiser_matrix
は、イントラMB用量子化マトリックス・データの存在を
示すデータである。intra_quantiser_matrixは、イント
ラMB用量子化マトリックスの値を示すデータである。
load_non_intra_quantiser_matrixは、非イントラMB
用量子化マトリックス・データの存在を示すデータであ
る。non_intra_quantiser_matrixは、非イントラMB用
量子化マトリックスの値を表すデータである。[0315] Marker_bit is bit data inserted to prevent start code emulation. VBV_buffer_size_value is lower 10-bit data of a value that determines the size of a virtual buffer (video buffer verifier) for controlling the generated code amount. constrained_
parameter_flag is data indicating that each parameter is within the limit. load_intra_quantiser_matrix
Is data indicating the presence of intra MB quantization matrix data. intra_quantiser_matrix is data indicating the value of the quantization matrix for intra MB.
load_non_intra_quantiser_matrix is a non-intra MB
This is data indicating the existence of quantization matrix data for use. non_intra_quantiser_matrix is data representing the value of the non-intra MB quantization matrix.
【0316】sequence_header()関数によって定義され
たデータエレメントの次には、図29で示すような、se
quence_extension()関数によって定義されたデータエレ
メントが、履歴ストリームとして記述されている。Next to the data element defined by the sequence_header () function, as shown in FIG.
The data element defined by the quence_extension () function is described as a history stream.
【0317】sequence_extension()関数によって定義さ
れたデータエレメントとは、extension_start_code、ex
tension_start_code_identifier、sequence_extension_
present_flag、profile_and_level_indication、progre
ssive_sequence、chroma_format、horizontal_size_ext
ension、vertical_size_extension、bit_rate_extensio
n、vbv_buffer_size_extension、low_delay、frame_rat
e_extension_n 、及びframe_rate_extension_d等のデー
タエレメントである。[0317] The data elements defined by the sequence_extension () function are extension_start_code, ex
tension_start_code_identifier, sequence_extension_
present_flag, profile_and_level_indication, progre
ssive_sequence, chroma_format, horizontal_size_ext
tension, vertical_size_extension, bit_rate_extensio
n, vbv_buffer_size_extension, low_delay, frame_rat
Data elements such as e_extension_n and frame_rate_extension_d.
【0318】extension_start_codeは、エクステンショ
ンデータのスタート同期コードを表すデータである。ex
tension_start_code_identifierは、どの拡張データが
送られるかを示すデータである。sequence_extension_p
resent_flagは、シーケンスエクステンション内のデー
タが有効であるか無効であるかを示すスデータである。
profile_and_level_indicationは、ビデオデータのプロ
ファイルとレベルを指定するためのデータである。prog
ressive_sequenceは、ビデオデータが順次走査であるこ
とを示すデータである。chroma_formatは、ビデオデー
タの色差フォーマットを指定するためのデータである。
horizontal_size_extensionは、シーケンスヘッダのhor
izntal_size_valueに加える上位2ビットのデータであ
る。vertical_size_extensionは、シーケンスヘッダのv
ertical_size_value加える上位2ビットのデータであ
る。bit_rate_extensionは、シーケンスヘッダのbit_ra
te_valueに加える上位12ビットのデータである。vbv_
buffer_size_extensionは、シーケンスヘッダのvbv_buf
fer_size_valueに加える上位8ビットのデータである。[0318] The extension_start_code is data representing a start synchronization code of the extension data. ex
tension_start_code_identifier is data indicating which extension data is sent. sequence_extension_p
resent_flag is data indicating whether the data in the sequence extension is valid or invalid.
profile_and_level_indication is data for specifying the profile and level of video data. prog
ressive_sequence is data indicating that video data is sequentially scanned. chroma_format is data for specifying a color difference format of video data.
horizontal_size_extension is hor in the sequence header
Upper 2 bits of data to be added to izntal_size_value. vertical_size_extension is the v in the sequence header
Upper 2 bits of data to be added to ertical_size_value. bit_rate_extension is bit_ra of the sequence header
Upper 12 bits of data to be added to te_value. vbv_
buffer_size_extension is the sequence header vbv_buf
Upper 8 bits of data to be added to fer_size_value.
【0319】low_delayは、Bピクチャを含まないこと
を示すデータである。frame_rate_extension_nは、シー
ケンスヘッダのframe_rate_codeと組み合わせてフレー
ムレートを得るためのデータである。frame_rate_exten
sion_dは、シーケンスヘッダのframe_rate_codeと組み
合わせてフレームレートを得るためのデータである。[0319] low_delay is data indicating that a B picture is not included. frame_rate_extension_n is data for obtaining a frame rate in combination with frame_rate_code of the sequence header. frame_rate_exten
sion_d is data for obtaining a frame rate in combination with frame_rate_code of the sequence header.
【0320】sequence_extension()関数によって定義さ
れたデータエレメントの次には、図30に示すようなex
tension_and_user_data(0)関数によって定義されたデー
タエレメントが、履歴ストリームとして記述されてい
る。 extension_and_user_data(i)関数は、「i」が1以
外のときは、extension_data()関数によって定義される
データエレメントは記述せずに、user_data()関数によ
って定義されるデータエレメントのみを履歴ストリーム
として記述する。よって、 extension_and_user_data
(0)関数は、 user_data()関数によって定義されるデー
タエレメントのみを履歴ストリームとして記述する。The data element defined by the sequence_extension () function is followed by ex as shown in FIG.
The data element defined by the tension_and_user_data (0) function is described as a history stream. When "i" is other than 1, the extension_and_user_data (i) function describes only the data element defined by the user_data () function as a history stream without describing the data element defined by the extension_data () function. . Therefore, extension_and_user_data
The (0) function describes only a data element defined by the user_data () function as a history stream.
【0321】user_data()関数は、図31に示されたよ
うなシンタックスに基いて、ユーザデータを履歴ストリ
ームとして記述する。[0321] The user_data () function describes user data as a history stream based on the syntax as shown in FIG.
【0322】extension_and_user_data(0)関数によって
定義されたデータエレメントの次には、図32に示すよ
うなgroup_of_picture_header()関数によって定義され
たデータエレメント、及びextension_and_user_data(1)
関数によって定義されるデータエレメントが、履歴スト
リームとして記述されている。但し、履歴ストリーム中
に、GOP層のスタートコードを示すgroup_start_codeが
記述されている場合にのみ、 group_of_picture_header
()関数によって定義されたデータエレメント、及びexte
nsion_and_user_data(1)関数によって定義されるデータ
エレメントが記述されている。The data element defined by the extension_and_user_data (0) function is followed by the data element defined by the group_of_picture_header () function as shown in FIG. 32, and extension_and_user_data (1).
The data element defined by the function is described as a history stream. However, only when group_start_code indicating the start code of the GOP layer is described in the history stream, group_of_picture_header
Data elements defined by the () function, and exte
A data element defined by the nsion_and_user_data (1) function is described.
【0323】group_of_picture_header()関数によって
定義されたデータエレメントは、group_start_code、gr
oup_of_picture_header_present_flag、time_code、clo
sed_gop、及びbroken_linkから構成される。The data element defined by the group_of_picture_header () function is group_start_code, gr
oup_of_picture_header_present_flag, time_code, clo
It consists of sed_gop and broken_link.
【0324】group_start_codeは、GOP層の開始同期コ
ードを示すデータである。group_of_picture_header_pr
esent_flagは、group_of_picture_header内のデータエ
レメントが有効であるか無効であるかを示すデータであ
る。 time_codeは、GOPの先頭ピクチャのシーケンスの
先頭からの時間を示すタイムコードである。closed_gop
は、GOP内の画像が他のGOPから独立再生可能なことを示
すフラグデータである。broken_linkは、編集などのた
めにGOP内の先頭のBピクチャが正確に再生できないこ
とを示すフラグデータである。[0324] group_start_code is data indicating the start synchronization code of the GOP layer. group_of_picture_header_pr
esent_flag is data indicating whether the data element in group_of_picture_header is valid or invalid. time_code is a time code indicating the time from the beginning of the sequence of the first picture of the GOP. closed_gop
Is flag data indicating that an image in a GOP can be reproduced independently from another GOP. broken_link is flag data indicating that the first B picture in the GOP cannot be accurately reproduced due to editing or the like.
【0325】extension_and_user_data(1)関数は、exte
nsion_and_user_data(0)関数と同じように、user_dat
a()関数によって定義されるデータエレメントのみを履
歴ストリームとして記述する。[0325] The extension_and_user_data (1) function is
As with the nsion_and_user_data (0) function, user_dat
Describe only the data elements defined by the a () function as a history stream.
【0326】もし、履歴ストリーム中に、GOP層のスタ
ートコードを示すgroup_start_codeが存在しない場合に
は、これらのgroup_of_picture_header()関数及びexten
sion_and_user_data(1)関数によって定義されるデータ
エレメントは、履歴ストリーム中には記述されていな
い。その場合には、 extension_and_user_data(0)関数
によって定義されたデータエレメントの次に、picture_
headr()関数によって定義されたデータエレメントが履
歴ストリームとして記述されている。If there is no group_start_code indicating the start code of the GOP layer in the history stream, the group_of_picture_header () function and the exten
The data elements defined by the sion_and_user_data (1) function are not described in the history stream. In that case, after the data element defined by the extension_and_user_data (0) function,
The data element defined by the headr () function is described as a history stream.
【0327】picture_headr()関数によって定義された
データエレメントは、図33に示すように、picture_st
art_code、temporal_reference、picture_coding_typ
e、vbv_delay、full_pel_forward_vector、forward_f_c
ode、full_pel_backward_vector、backward_f_code、ex
tra_bit_picture、及びextra_information_pictureであ
る。[0327] The data element defined by the picture_headr () function, as shown in FIG.
art_code, temporal_reference, picture_coding_typ
e, vbv_delay, full_pel_forward_vector, forward_f_c
ode, full_pel_backward_vector, backward_f_code, ex
tra_bit_picture and extra_information_picture.
【0328】具体的には、picture_start_codeは、ピク
チャ層の開始同期コードを表すデータである。temporal
_referenceは、ピクチャの表示順を示す番号でGOPの先
頭でリセットされるデータである。picture_coding_typ
eは、ピクチャタイプを示すデータである。vbv_delay
は、ランダムアクセス時の仮想バッファの初期状態を示
すデータである。full_pel_forward_vectorは、順方向
動きベクトルの精度が整数単位か半画素単位かを示すデ
ータである。forward_f_codeは、順方向動きベクトル探
索範囲を表すデータである。full_pel_backward_vector
は、逆方向動きベクトルの精度が整数単位か半画素単位
かを示すデータである。backward_f_codeは、逆方向動
きベクトル探索範囲を表すデータである。extra_bit_pi
ctureは、後続する追加情報の存在を示すフラグであ
る。このextra_bit_pictureが「1」の場合には、次にe
xtra_information_pictureが存在し、extra_bit_pictur
eが「0」の場合には、これに続くデータが無いことを
示している。extra_information_pictureは、規格にお
いて予約された情報である。[0328] Specifically, picture_start_code is data representing the start synchronization code of the picture layer. temporal
_reference is data indicating the display order of pictures and is reset at the beginning of the GOP. picture_coding_typ
e is data indicating a picture type. vbv_delay
Is data indicating the initial state of the virtual buffer at the time of random access. full_pel_forward_vector is data indicating whether the accuracy of the forward motion vector is an integer unit or a half pixel unit. forward_f_code is data representing a forward motion vector search range. full_pel_backward_vector
Is data indicating whether the accuracy of the backward motion vector is an integer unit or a half pixel unit. backward_f_code is data representing a backward motion vector search range. extra_bit_pi
“cture” is a flag indicating the presence of subsequent additional information. If this extra_bit_picture is "1", then e
xtra_information_picture exists and extra_bit_pictur
When e is “0”, it indicates that there is no data following this. extra_information_picture is information reserved in the standard.
【0329】picture_headr()関数によって定義された
データエレメントの次には、図34に示すようなpictur
e_coding_extension()関数によって定義されたデータエ
レメントが、履歴ストリームとして記述されている。Next to the data element defined by the picture_headr () function, a pictur as shown in FIG.
The data element defined by the e_coding_extension () function is described as a history stream.
【0330】このpicture_coding_extension()関数によ
って定義されたデータエレメントとは、extension_star
t_code、extension_start_code_identifier、f_code[0]
[0]、f_code[0][1]、f_code[1][0]、f_code[1][1]、int
ra_dc_precision、picture_structure、top_field_firs
t、frame_predictive_frame_dct、concealment_motion_
vectors、q_scale_type、intra_vlc_format、alternate
_scan、repeat_firt_field、chroma_420_type、progres
sive_frame、composite_display_flag、v_axis、field_
sequence、sub_carrier、burst_amplitude、及びsub_ca
rrier_phaseから構成される。The data element defined by the picture_coding_extension () function is extension_star
t_code, extension_start_code_identifier, f_code [0]
[0], f_code [0] [1], f_code [1] [0], f_code [1] [1], int
ra_dc_precision, picture_structure, top_field_firs
t, frame_predictive_frame_dct, concealment_motion_
vectors, q_scale_type, intra_vlc_format, alternate
_scan, repeat_firt_field, chroma_420_type, progres
sive_frame, composite_display_flag, v_axis, field_
sequence, sub_carrier, burst_amplitude, and sub_ca
It is composed of rrier_phase.
【0331】extension_start_codeは、ピクチャ層のエ
クステンションデータのスタートを示す開始コードであ
る。extension_start_code_identifierは、どの拡張デ
ータが送られるかを示すコードである。 f_code[0][0]
は、フォワード方向の水平動きベクトル探索範囲を表す
データである。f_code[0][1]は、フォワード方向の垂直
動きベクトル探索範囲を表すデータである。f_code[1]
[0]は、バックワード方向の水平動きベクトル探索範囲
を表すデータである。f_code[1][1]は、バックワード方
向の垂直動きベクトル探索範囲を表すデータである。in
tra_dc_precisionは、DC係数の精度を表すデータであ
る。[0331] The extension_start_code is a start code indicating the start of extension data in the picture layer. extension_start_code_identifier is a code indicating which extension data is sent. f_code [0] [0]
Is data indicating a horizontal motion vector search range in the forward direction. f_code [0] [1] is data representing the vertical motion vector search range in the forward direction. f_code [1]
[0] is data representing a horizontal motion vector search range in the backward direction. f_code [1] [1] is data representing the vertical motion vector search range in the backward direction. in
tra_dc_precision is data representing the accuracy of the DC coefficient.
【0332】picture_structureは、フレームストラク
チャかフィールドストラクチャかを示すデータである。
フィールドストラクチャの場合は、上位フィールドか下
位フィールドかもあわせて示すデータである。top_fiel
d_firstは、フレームストラクチャの場合、最初のフィ
ールドが上位か下位かを示すデータである。frame_pred
ictive_frame_dctは、フレーム・ストラクチャの場合、
フレーム・モードDCTの予測がフレーム・モードだけで
あることを示すデータである。concealment_motion_vec
torsは、イントラマクロブロックに伝送エラーを隠蔽す
るための動きベクトルがついていることを示すデータで
ある。q_scale_typeは、線形量子化スケールを利用する
か、非線形量子化スケールを利用するかを示すデータで
ある。intra_vlc_formatは、イントラマクロブロック
に、別の2次元VLCを使うかどうかを示すデータであ
る。[0332] The picture_structure is data indicating a frame structure or a field structure.
In the case of the field structure, it is data indicating the upper field or the lower field. top_fiel
In the case of a frame structure, d_first is data indicating whether the first field is higher or lower. frame_pred
ictive_frame_dct is the frame structure
This is data indicating that the prediction of the frame mode DCT is only the frame mode. concealment_motion_vec
tors is data indicating that a motion vector for concealing a transmission error is attached to an intra macroblock. q_scale_type is data indicating whether to use a linear quantization scale or a non-linear quantization scale. intra_vlc_format is data indicating whether another two-dimensional VLC is used for an intra macroblock.
【0333】alternate_scanは、ジグザグスキャンを使
うか、オルタネート・スキャンを使うかの選択を表すデ
ータである。repeat_firt_fieldは、2:3プルダウン
の際に使われるデータである。chroma_420_typeは、信
号フォーマットが4:2:0の場合、次のprogressive_
frame と同じ値、そうでない場合は0を表すデータであ
る。progressive_frameは、このピクチャが、順次走査
できているかどうかを示すデータである。composite_di
splay_flagは、ソース信号がコンポジット信号であった
かどうかを示すデータである。v_axisは、ソース信号
が、PALの場合に使われるデータである。field_sequenc
eは、ソース信号が、PALの場合に使われるデータであ
る。sub_carrierは、ソース信号が、PALの場合に使われ
るデータである。burst_amplitudeは、ソース信号が、P
ALの場合に使われるデータである。sub_carrier_phase
は、ソース信号が、PALの場合に使われるデータであ
る。[0333] "alternate_scan" is data representing a selection of whether to use a zigzag scan or an alternate scan. repeat_firt_field is data used at the time of 2: 3 pull-down. chroma_420_type is the next progressive_type when the signal format is 4: 2: 0.
The same value as frame, otherwise it represents 0. progressive_frame is data indicating whether or not this picture has been sequentially scanned. composite_di
splay_flag is data indicating whether or not the source signal was a composite signal. v_axis is data used when the source signal is PAL. field_sequenc
e is data used when the source signal is PAL. sub_carrier is data used when the source signal is PAL. burst_amplitude indicates that the source signal is P
Data used in the case of AL. sub_carrier_phase
Is data used when the source signal is PAL.
【0334】picture_coding_extension()関数によって
定義されたデータエレメントの次には、re_coding_stre
am_info()関数によって定義されたデータエレメントが
履歴ストリームとして記述されている。このre_coding_
stream_info()関数は、主に履歴情報の組み合わせを記
述する場合に用いられるものであり、その詳細について
は、図51を参照して後述する。Following the data element defined by the picture_coding_extension () function, re_coding_stre
The data element defined by the am_info () function is described as a history stream. This re_coding_
The stream_info () function is mainly used when describing a combination of history information, and details thereof will be described later with reference to FIG.
【0335】re_coding_stream_info()関数によって定
義されたデータエレメントの次には、extensions_and_u
ser_data(2)によって定義されたデータエレメントが、
履歴ストリームとして記述されている。このextension_
and_user_data(2)関数は、図30に示したように、ビッ
トストリーム中にエクステンションスタートコード(ex
tension_start_code)が存在する場合には、extension_
data()関数によって定義されるデータエレメントが記述
されている。このデータエレメントの次には、ビットス
トリーム中にユーザデータスタートコード(user_data_
start_code)が存在する場合には、user_data()関数に
よって定義されるデータエレメントが記述されている。
但し、ビットストリーム中にエクステンションスタート
コード及びユーザデータスタートコードが存在しない場
合には extension_data()関数 及びuser_data()関数に
よって定義されるデータエレメントはビットトリーム中
には記述されていない。[0335] Following the data element defined by the re_coding_stream_info () function, extensions_and_u
The data element defined by ser_data (2)
It is described as a history stream. This extension_
The and_user_data (2) function includes an extension start code (ex
tension_start_code) if present
Describes a data element defined by the data () function. Following this data element, the user data start code (user_data_
If start_code) exists, a data element defined by the user_data () function is described.
However, when the extension start code and the user data start code do not exist in the bit stream, the data elements defined by the extension_data () function and the user_data () function are not described in the bit stream.
【0336】extension_data()関数は、図35に示すよ
うに、extension_start_codeを示すデータエレメント
と、quant_matrix_extension()関数、copyright_extens
ion()関数、及びpicture_display_extension()関数によ
って定義されるデータエレメンエトとを、ビットストリ
ーム中に履歴ストリームとして記述するための関数であ
る。As shown in FIG. 35, the extension_data () function includes a data element indicating the extension_start_code, a quant_matrix_extension () function, and a copyright_extens
This is a function for describing a data element defined by an ion () function and a picture_display_extension () function as a history stream in a bit stream.
【0337】quant_matrix_extension()関数によって定
義されるデータエレメントは、図36に示すように、ex
tension_start_code、extension_start_code_identifie
r、quant_matrix_extension_present_flag、load_intra
_quantiser_matrix、intra_quantiser_matrix[64]、loa
d_non_intra_quantiser_matrix、non_intra_quantiser_
matrix[64]、load_chroma_intra_quantiser_matrix、ch
roma_intra_quantiser_matrix[64]、load_chroma_non_i
ntra_quantiser_matrix、及びchroma_non_intra_quanti
ser_matrix[64] である。The data element defined by the quant_matrix_extension () function is, as shown in FIG.
tension_start_code, extension_start_code_identifie
r, quant_matrix_extension_present_flag, load_intra
_quantiser_matrix, intra_quantiser_matrix [64], loa
d_non_intra_quantiser_matrix, non_intra_quantiser_
matrix [64], load_chroma_intra_quantiser_matrix, ch
roma_intra_quantiser_matrix [64], load_chroma_non_i
ntra_quantiser_matrix and chroma_non_intra_quanti
ser_matrix [64].
【0338】extension_start_codeは、この量子化マト
リックスエクステンションのスタートを示す開始コード
である。extension_start_code_identifierは、どの拡
張データが送られるかを示すコードである。 quant_mat
rix_extension_present_flagは、この量子化マトリック
スエクステンション内のデータエレメントが有効か無効
かを示すためのデータである。load_intra_quantiser_m
atrixは、イントラマクロブロック用の量子化マトリッ
クスデータの存在を示すデータである。intra_quantise
r_matrixは、イントラマクロブロック用の量子化マトリ
ックスの値を示すデータである。[0338] extension_start_code is a start code indicating the start of this quantization matrix extension. extension_start_code_identifier is a code indicating which extension data is sent. quant_mat
rix_extension_present_flag is data for indicating whether a data element in the quantization matrix extension is valid or invalid. load_intra_quantiser_m
atrix is data indicating the existence of quantization matrix data for an intra macroblock. intra_quantise
r_matrix is data indicating the value of a quantization matrix for an intra macroblock.
【0339】load_non_intra_quantiser_matrixは、非
イントラマクロブロック用の量子化マトリックスデータ
の存在を示すデータである。non_intra_quantiser_matr
ixは、非イントラマクロブロック用の量子化マトリック
スの値を表すデータである。load_chroma_intra_quanti
ser_matrixは、色差イントラマクロブロック用の量子化
マトリックス・データの存在を示すデータである。chro
ma_intra_quantiser_matrixは、色差イントラマクロブ
ロック用の量子化マトリックスの値を示すデータであ
る。load_chroma_non_intra_quantiser_matrixは、色差
非イントラマクロブロック用の量子化マトリックス・デ
ータの存在を示すデータである。chroma_non_intra_qua
ntiser_matrixは、色差非イントラマクロブロック用の
量子化マトリックスの値を示すデータである。[0339] load_non_intra_quantiser_matrix is data indicating the existence of quantization matrix data for a non-intra macroblock. non_intra_quantiser_matr
ix is data representing a value of a quantization matrix for a non-intra macroblock. load_chroma_intra_quanti
ser_matrix is data indicating the existence of quantization matrix data for a chrominance intra macroblock. chro
ma_intra_quantiser_matrix is data indicating a value of a quantization matrix for a chroma intra macroblock. load_chroma_non_intra_quantiser_matrix is data indicating the existence of quantization matrix data for a chrominance non-intra macroblock. chroma_non_intra_qua
ntiser_matrix is data indicating a value of a quantization matrix for a color difference non-intra macroblock.
【0340】copyright_extension()関数によって定義
されるデータエレメントは、図37に示すように、 ext
ension_start_code、extension_start_code_itentifie
r、copyright_extension_present_flag、copyright_fla
g、copyright_identifier、original_or_copy、copyrig
ht_number_1、copyright_number_2、及び copyright_nu
mber_3から構成される。The data element defined by the copyright_extension () function is, as shown in FIG.
extension_start_code, extension_start_code_itentifie
r, copyright_extension_present_flag, copyright_fla
g, copyright_identifier, original_or_copy, copyrig
ht_number_1, copyright_number_2, and copyright_nu
Consists of mber_3.
【0341】extension_start_codeは、コピーライトエ
クステンションのスタート示す開始コードである。exte
nsion_start_code_itentifierどのエクステンションデ
ータが送られるかを示すコードである。 copyright_ext
ension_present_flagは、このコピーライトエクステン
ション内のデータエレメントが有効か無効かを示すため
のデータである。Extension_start_code is a start code indicating the start of the copyright extension. exte
nsion_start_code_itentifier This is a code indicating which extension data is sent. copyright_ext
The extension_present_flag is data for indicating whether the data element in the copyright extension is valid or invalid.
【0342】copyright_flagは、次のコピーライトエク
ステンション又はシーケンスエンドまで、符号化された
ビデオデータに対してコピー権が与えられているか否か
を示す。copyright_identifierは、ISO/IEC JTC/SC29に
よって指定されたコピー権の登録機関を識別するための
データである。original_or_copyは、ビットストリーム
中のデータが、オリジナルデータであるかコピーデータ
であるかを示すデータである。copyright_number_1は、
コピーライトナンバーのビット44から63を表わすデ
ータである。copyright_number_2は、コピーライトナン
バーのビット22から43を表わすデータである。copy
right_number_3は、コピーライトナンバーのビット0か
ら21を表わすデータである。[0342] copyright_flag indicates whether or not a copy right has been granted to the encoded video data until the next copyright extension or sequence end. copyright_identifier is data for identifying the registration authority of the copy right specified by ISO / IEC JTC / SC29. original_or_copy is data indicating whether the data in the bit stream is original data or copy data. copyright_number_1
Data representing bits 44 to 63 of the copyright number. copyright_number_2 is data representing bits 22 to 43 of the copyright number. copy
right_number_3 is data representing bits 0 to 21 of the copyright number.
【0343】picture_display_extension()関数によっ
て定義されるデータエレメントは、図38に示すよう
に、extension_start_code_identifier、frame_center_
horizontal_offset、frame_center_vertical_offset等
である。As shown in FIG. 38, the data elements defined by the picture_display_extension () function are extension_start_code_identifier, frame_center_
horizontal_offset, frame_center_vertical_offset, etc.
【0344】extension_start_code_identifierは、ど
の拡張データが送られるかを示すコードである。 frame
_center_horizontal_offsetは、表示エリアの水平方向
のオフセットを示すデータであって、number_of_frame_
center_offsetsによって定義される数のオフセット値を
定義することができる。frame_center_vertical_offset
は、表示エリアを垂直方向のオフセットを示すデータで
あって、 number_of_frame_center_offsetsによって定
義される数のオフセット値を定義することができる。[0344] The extension_start_code_identifier is a code indicating which extension data is to be sent. frame
_center_horizontal_offset is data indicating the horizontal offset of the display area, and number_of_frame_
You can define a number of offset values defined by center_offsets. frame_center_vertical_offset
Is data indicating the vertical offset of the display area, and can define the number of offset values defined by number_of_frame_center_offsets.
【0345】再び図27に戻って、extension_and_user
_data(2)関数によって定義されるデータエレメントの次
には、picture_data()関数によって定義されるデータエ
レメントが、履歴ストリームとして記述されている。但
し、このpicture_data()関数は、red_bw_flagが1では
ないか、または、red_bw_indicatorが2以下である場合
に存在する。このred_bw_flagとred_bw_indicatorは、r
e_coding_stream_info()関数に記述されており、これら
については、図51と図52を参照して後述する。Returning to FIG. 27 again, extension_and_user
Following the data element defined by the _data (2) function, the data element defined by the picture_data () function is described as a history stream. However, this picture_data () function exists when red_bw_flag is not 1 or red_bw_indicator is 2 or less. This red_bw_flag and red_bw_indicator are r
These are described in the e_coding_stream_info () function, which will be described later with reference to FIGS. 51 and 52.
【0346】picture_data()関数によって定義されるデ
ータエレメントは、図39に示すように、slice()関数
によって定義されるデータエレメントである。このslic
e()関数によって定義されるデータエレメントはビット
ストリーム中に少なくとも1個記述されている。The data element defined by the picture_data () function is a data element defined by the slice () function, as shown in FIG. This slic
At least one data element defined by the e () function is described in the bit stream.
【0347】slice()関数は、図40に示されるよう
に、slice_start_code、slice_quantiser_scale_code、
intra_slice_flag、intra_slice、reserved_bits、extr
a_bit_slice、extra_information_slice、及びextra_bi
t_slice 等のデータエレメントと、macroblock()関数に
よって定義されるデータエレメントを、履歴ストリーム
として記述するための関数である。[0347] As shown in Fig. 40, the slice () function includes slice_start_code, slice_quantiser_scale_code,
intra_slice_flag, intra_slice, reserved_bits, extr
a_bit_slice, extra_information_slice, and extra_bi
This is a function for describing a data element such as t_slice and a data element defined by the macroblock () function as a history stream.
【0348】slice_start_codeは、slice()関数によっ
て定義されるデータエレメントのスタートを示すスター
トコードである。slice_quantiser_scale_codeは、この
スライス層に存在するマクロブロックに対して設定され
た量子化ステップサイズを示すデータである。しかし、
各マクロブロック毎に、quantiser_scale_codeが設定さ
れている場合には、各マクロブロックに対して設定され
たmacroblock_quantiser_scale_codeのデータが優先し
て使用される。[0348] slice_start_code is a start code indicating the start of a data element defined by the slice () function. slice_quantiser_scale_code is data indicating a quantization step size set for a macroblock existing in this slice layer. But,
When quantizer_scale_code is set for each macroblock, the macroblock_quantiser_scale_code data set for each macroblock is used with priority.
【0349】intra_slice_flagは、ビットストリーム中
にintra_slice及びreserved_bitsが存在するか否かを示
すフラグである。intra_sliceは、スライス層中にノン
イントラマクロブロックが存在するか否かを示すデータ
である。スライス層におけるマクロブロックのいずれか
がノンイントラマクロブロックである場合には、intra_
sliceは「0」となり、スライス層におけるマクロブロ
ックの全てがノンイントラマクロブロックである場合に
は、intra_sliceは「1」となる。reserved_bitsは、7
ビットのデータであって「0」の値を取る。extra_bit_
sliceは、履歴ストリームとして追加の情報が存在する
ことを示すフラグであって、次にextra_information_sl
iceが存在する場合には「1」に設定される。追加の情
報が存在しない場合には「0」に設定される。[0349] Intra_slice_flag is a flag indicating whether intra_slice and reserved_bits are present in the bit stream. intra_slice is data indicating whether or not a non-intra macroblock exists in the slice layer. If any of the macroblocks in the slice layer is a non-intra macroblock, intra_
slice is “0”, and when all of the macroblocks in the slice layer are non-intra macroblocks, intra_slice is “1”. reserved_bits is 7
It is bit data and takes a value of "0". extra_bit_
slice is a flag indicating that additional information exists as a history stream, and then extra_information_sl
If ice exists, it is set to “1”. If there is no additional information, it is set to “0”.
【0350】これらのデータエレメントの次には、macr
oblock()関数によって定義されたデータエレメントが、
履歴ストリームとして記述されている。Next to these data elements, macr
The data element defined by the oblock () function
It is described as a history stream.
【0351】macroblock()関数は、図41に示すよう
に、macroblock_escape、macroblock_address_incremen
t、及びmacroblock_quantiser_scale_code、及びmarker
_bit等のデータエレメントと、macroblock_modes()関
数、motion_vectors(s)関数、及びcode_block_patter
n()関数によって定義されたデータエレメントを記述す
るための関数である。As shown in FIG. 41, the macroblock () function includes macroblock_escape and macroblock_address_incremen.
t, macroblock_quantiser_scale_code, and marker
data elements such as _bit, macroblock_modes () function, motion_vectors (s) function, and code_block_patter
This is a function for describing the data element defined by the n () function.
【0352】macroblock_escapeは、参照マクロブロッ
クと前のマクロブロックとの水平方向の差が34以上で
あるか否かを示す固定ビット列である。参照マクロブロ
ックと前のマクロブロックとの水平方向の差が34以上
の場合には、macroblock_address_incrementの値に33
をプラスする。macroblock_address_incrementは、参照
マクロブロックと前のマクロブロックとの水平方向の差
を示すデータである。もし、このmacroblock_address_i
ncrementの前にmacroblock_escapeが1つ存在するので
あれば、このmacroblock_address_incrementの値に33
をプラスした値が、実際の参照マクロブロックと前のマ
クロブロックとの水平方向の差分を示すデータとなる。Macroblock_escape is a fixed bit string indicating whether or not the horizontal difference between the reference macroblock and the previous macroblock is 34 or more. If the horizontal difference between the reference macroblock and the previous macroblock is 34 or more, the macroblock_address_increment value is set to 33.
Plus macroblock_address_increment is data indicating a horizontal difference between the reference macroblock and the previous macroblock. If this macroblock_address_i
If there is one macroblock_escape before ncrement, the value of this macroblock_address_increment is 33
Is the data indicating the horizontal difference between the actual reference macroblock and the previous macroblock.
【0353】macroblock_quantiser_scale_codeは、各
マクロブロック毎に設定された量子化ステップサイズで
あり、macroblock_quantが”1”のときだけ存在する。
各スライス層には、スライス層の量子化ステップサイズ
を示すslice_quantiser_scale_codeが設定されている
が、参照マクロブロックに対してmacroblock_quantiser
_scale_codeが設定されている場合には、この量子化ス
テップサイズを選択する。[0353] macroblock_quantiser_scale_code is a quantization step size set for each macroblock, and exists only when macroblock_quant is "1".
In each slice layer, slice_quantiser_scale_code indicating the quantization step size of the slice layer is set, but macroblock_quantiser
If _scale_code is set, this quantization step size is selected.
【0354】macroblock_address_incrementの次には、
macroblock_modes()関数によって定義されるデータエレ
メントが記述されている。macroblock_modes()関数は、
図42に示すように、macroblock_type、frame_motion_
type、field_motion_type、dct_type等のデータエレメ
ントを、履歴ストリームとして記述するための関数であ
る。Next to macroblock_address_increment,
Describes a data element defined by the macroblock_modes () function. macroblock_modes () function
As shown in FIG. 42, macroblock_type, frame_motion_
This is a function for describing data elements such as type, field_motion_type, and dct_type as a history stream.
【0355】macroblock_typeは、マクログブロックの
符号化タイプを示すデータである。その詳細は、図45
乃至図47を参照して後述する。[0355] macroblock_type is data indicating the coding type of the macroblock. The details are shown in FIG.
47 will be described later with reference to FIG.
【0356】もし、macroblock_motion_forward又はmac
roblock_motion_backwardが「1」であり、ピクチャ構
造がフレームであり、さらにframe_pred_frame_dctが
「0」である場合には、macroblock_typeを表わすデー
タエレメントの次にframe_motion_typeを表わすデータ
エレメントが記述されている。尚、このframe_pred_fra
me_dctは、 frame_motion_typeがビットストリーム中に
存在するか否かを示すフラグである。If macroblock_motion_forward or mac
When roblock_motion_backward is “1”, the picture structure is a frame, and frame_pred_frame_dct is “0”, a data element representing frame_motion_type is described next to a data element representing macroblock_type. This frame_pred_fra
me_dct is a flag indicating whether or not frame_motion_type exists in the bit stream.
【0357】frame_motion_typeは、フレームのマクロ
ブロックの予測タイプを示す2ビットのコードである。
予測ベクトルが2個でフィールドベースの予測タイプで
あれば「00」であって、予測ベクトルが1個でフィー
ルドベースの予測タイプであれば「01」であって、予
測ベクトルが1個でフレームベースの予測タイプであれ
ば「10」であって、予測ベクトルが1個でディアルプ
ライムの予測タイプであれば「11」である。[0357] frame_motion_type is a 2-bit code indicating the prediction type of the macroblock of the frame.
If the number of prediction vectors is two and the field-based prediction type is “00”, if the number of prediction vectors is one and the field-based prediction type is “01”, the number of prediction vectors is one and the frame is base Is "10" for the prediction type of "1", and "11" for the prediction type of one prediction vector and dual prime.
【0358】frame_motion_typeを記述する条件が満足
されない場合には、macroblock_typeを表わすデータエ
レメントの次にfield_motion_typeを表わすデータエレ
メントが記述されている。When the condition for describing frame_motion_type is not satisfied, a data element representing field_motion_type is described next to a data element representing macroblock_type.
【0359】field_motion_typeは、フィールドのマク
ロブロックの動き予測を示す2ビットのコードである。
予測ベクトルが1個でフィールドベースの予測タイプで
あれば「01」であって、予測ベクトルが2個で18×
8マクロブロックベースの予測タイプであれば「10」
であって、予測ベクトルが1個でディアルプライムの予
測タイプであれば「11」である。[0359] field_motion_type is a 2-bit code indicating motion prediction of the macroblock in the field.
If the number of prediction vectors is one and the field-based prediction type is “01”, the prediction vector is 18 ×
"10" for prediction type based on 8 macroblocks
And if the number of prediction vectors is one and the prediction type is dual prime, it is “11”.
【0360】もし、ピクチャ構造がフレームで、 frame
_pred_frame_dctがframe_motion_typeがビットストリー
ム中に存在することを示し、且つ、frame_pred_frame_d
ctがdct_typeがビットストリーム中に存在することを示
している場合には、macroblock_typeを表わすデータエ
レメントの次にdct_typeを表わすデータエレメントが記
述されている。尚、dct_typeは、DCTがフレームDCTモー
ドか、フィールドDCTモードかを示すデータである。If the picture structure is a frame,
_pred_frame_dct indicates that frame_motion_type exists in the bit stream, and frame_pred_frame_d
When ct indicates that dct_type exists in the bit stream, a data element representing dct_type is described next to a data element representing macroblock_type. Note that dct_type is data indicating whether the DCT is a frame DCT mode or a field DCT mode.
【0361】再び図41に戻って、もし、参照マクロブ
ロックが前方予測マクロブロックであるか、又は参照マ
クロブロックがイントラマクロブロックであって且つコ
ンシール処理のマクロブロックのいずれかの場合には、
motion_vectors(0)関数によって定義されるデータエレ
メントが記述される。また、参照マクロブロックが後方
予測マクロブロックである場合には、motion_vectors
(1)関数によって定義されるデータエレメントが記述さ
れる。尚、 motion_vectors(0)関数は、第1番目の動き
ベクトルに関するデータエレメントを記述するための関
数であって、motion_vectors(1)関数は、第2番目の動
きベクトルに関するデータエレメントを記述するための
関数である。Returning to FIG. 41 again, if the reference macroblock is a forward prediction macroblock, or if the reference macroblock is an intra macroblock and any of the concealed macroblocks,
A data element defined by the motion_vectors (0) function is described. If the reference macroblock is a backward prediction macroblock, motion_vectors
(1) A data element defined by a function is described. The motion_vectors (0) function is a function for describing a data element relating to a first motion vector, and the motion_vectors (1) function is a function for describing a data element relating to a second motion vector. It is.
【0362】motion_vectors(s)関数は、図43に示さ
れるように、動きベクトルに関するデータエレメントを
記述するための関数である。The motion_vectors (s) function is a function for describing a data element relating to a motion vector, as shown in FIG.
【0363】もし、動きベクトルが1個でディアルプラ
イム予測モードを使用していない場合には、motion_ver
tical_field_select[0][s]とmotion_vector(0,s)によっ
て定義されるデータエレメントが記述される。If the number of motion vectors is one and the dual prime prediction mode is not used, motion_ver
A data element defined by tical_field_select [0] [s] and motion_vector (0, s) is described.
【0364】このmotion_vertical_field_select[r][s]
は、第1番目の動きベクトル(前方又は後方のどちらの
ベクトルであっても良い)が、ボトムフィールドを参照
して作られたベクトルであるかトップフィールドを参照
して作られたベクトルであるかを示すフラグである。こ
の指標“r”は、第1番めのベクトル又は第2番めのベ
クトルのいずれのベクトルであるかを示す指標であっ
て、“s”は、予測方向が前方又は後方予測のいずれで
あるかを示す指標である。The motion_vertical_field_select [r] [s]
Indicates whether the first motion vector (whichever vector is forward or backward) is a vector created with reference to the bottom field or a vector created with reference to the top field Is a flag that indicates The index “r” is an index indicating which vector is the first vector or the second vector, and “s” is whether the prediction direction is forward or backward prediction. It is an index that indicates
【0365】motion_vector(r,s)関数は、図44に示さ
れるように、motion_code[r][s][t]に関するデータ列
と、motion_residual[r][s][t]に関するデータ列と、dm
vector[t]を表わすデータとを記述するための関数であ
る。As shown in FIG. 44, the motion_vector (r, s) function includes a data string related to motion_code [r] [s] [t], a data string related to motion_residual [r] [s] [t], dm
This is a function for describing data representing vector [t].
【0366】motion_code[r][s][t]は、動きベクトルの
大きさを−16〜+16の範囲で表わす可変長のデータ
である。 motion_residual[r][s][t]は、動きベクトル
の残差を表わす可変長のデータである。よって、このmo
tion_code[r][s][t]と motion_residual[r][s][t]との
値によって詳細な動きベクトルを記述することができ
る。 dmvector[t]は、ディユアルプライム予測モードの
ときに、一方のフィールド(例えばボトムフィールドに
対してトップフィールドを一方のフィールドとする)に
おける動きベクトルを生成するために、時間距離に応じ
て既存の動きベクトルがスケールされると共に、トップ
フィールドとボトムフィールドとのライン間の垂直方向
のずれを反映させるために垂直方向に対して補正を行う
データである。この指標“r”は、第1番めのベクトル
又は第2番めのベクトルのいずれのベクトルであるかを
示す指標であって、“s”は、予測方向が前方又は後方
予測のいずれであるかを示す指標である。“s”は、動
きベクトルが垂直方向の成分であるか水平方向の成分で
あるかを示すデータである。[0366] motion_code [r] [s] [t] is variable-length data representing the magnitude of a motion vector in the range of -16 to +16. motion_residual [r] [s] [t] is variable-length data representing a residual of a motion vector. So this mo
A detailed motion vector can be described by the values of tion_code [r] [s] [t] and motion_residual [r] [s] [t]. dmvector [t] is used in dual prime prediction mode to generate a motion vector in one field (for example, the top field is one field with respect to the bottom field). Are scaled, and are corrected in the vertical direction to reflect the vertical shift between the lines of the top field and the bottom field. The index “r” is an index indicating which vector is the first vector or the second vector, and “s” is whether the prediction direction is forward or backward prediction. It is an index that indicates “S” is data indicating whether the motion vector is a vertical component or a horizontal component.
【0367】図44に示されmotion_vector(r,s)関数に
よって、まず、水平方向のmotion_coder[r][s][0]を表
わすデータ列が、履歴ストリームとして記述される。mo
tion_residual[0][s][t]及びmotion_residual[1][s][t]
の双方のビット数は、f_code[s][t]で示されるので、 f
_code[s][t]が1でない場合には、 motion_residual[r]
[s][t] がビットストリーム中に存在することを示すこ
とになる。水平方向成分のmotion_residual[r][s][0]が
「1」でなくて、水平方向成分のmotion_code[r][s][0]
が「0」でないということは、ビットストリーム中にmo
tion_residual[r][s][0]を表わすデータエレメントが存
在し、動きベクトルの水平方向成分が存在するというこ
とを意味しているので、その場合には、水平方向成分の
motion_residual[r][s][0]を表わすデータエレメントが
記述されている。First, a data string representing motion_coder [r] [s] [0] in the horizontal direction is described as a history stream by the motion_vector (r, s) function shown in FIG. mo
tion_residual [0] [s] [t] and motion_residual [1] [s] [t]
Since the number of bits of both is indicated by f_code [s] [t], f
motion_residual [r] if _code [s] [t] is not 1
This indicates that [s] [t] is present in the bitstream. Motion_residual [r] [s] [0] of the horizontal component is not “1” and motion_code [r] [s] [0] of the horizontal component
Is not "0" means that mo
data_residual [r] [s] [0] exists, which means that the horizontal component of the motion vector exists.
A data element representing motion_residual [r] [s] [0] is described.
【0368】続いて、垂直方向のmotion_coder[r][s]
[1]を表わすデータ列が、履歴ストリームとして記述さ
れる。同じようにmotion_residual[0][s][t]及びmotion
_residual[1][s][t]の双方のビット数は、f_code[s][t]
で示されるので、 f_code[s][t]が1でない場合には、
motion_residual[r][s][t] がビットストリーム中に存
在することを表わすことになる。motion_residual[r]
[s][1]が「1」でなくて、motion_code[r][s][1]が
「0」でないということは、ビットストリーム中にmoti
on_residual[r][s][1]を表わすデータエレメントが存在
し、動きベクトルの垂直方向成分が存在するということ
を意味しているので、その場合には、垂直方向成分のmo
tion_residual[r][s][1]を表わすデータエレメントが記
述されている。Subsequently, motion_coder [r] [s] in the vertical direction
A data string representing [1] is described as a history stream. Similarly, motion_residual [0] [s] [t] and motion
The number of bits of both _residual [1] [s] [t] is f_code [s] [t]
In the case that f_code [s] [t] is not 1,
This indicates that motion_residual [r] [s] [t] is present in the bitstream. motion_residual [r]
That [s] [1] is not “1” and motion_code [r] [s] [1] is not “0” means that the moti
Since there is a data element representing on_residual [r] [s] [1], which means that the vertical component of the motion vector exists, in that case, the mo component of the vertical component
A data element representing tion_residual [r] [s] [1] is described.
【0369】次に、図45乃至図47を参照して、macr
oblock_typeについて説明する。macroblock_typeは、ma
croblock_quant、dct_type_flag、macroblock_motion_f
orward、及びmacroblock_motion_backwardなどのフラグ
から生成された可変長データである。 macroblock_quan
tは、マクロブロックに対して量子化ステップサイズを
設定するためのmacroblock_quantiser_scale_codeが設
定されているか否かを示すフラグあって、ビットストリ
ーム中にmacroblock_quantiser_scale_codeが存在する
場合には、 macroblock_quantは「1」の値を取る。Next, referring to FIG. 45 to FIG.
The oblock_type will be described. macroblock_type is ma
croblock_quant, dct_type_flag, macroblock_motion_f
Variable length data generated from flags such as orward and macroblock_motion_backward. macroblock_quan
t is a flag indicating whether or not macroblock_quantiser_scale_code for setting a quantization step size for a macroblock is set. If macroblock_quantiser_scale_code is present in the bit stream, macroblock_quant is a value of “1”. I take the.
【0370】dct_type_flagは、参照マクロブロックが
フレームDCT又はフィールドDCTで符号化されているかを
示すdct_typeが存在するか否かを示すためのフラグ(言
い換えるとDCTされているか否かを示すフラグ)であっ
て、ビットストリーム中にdct_typeが存在する場合に
は、このdct_type_flagは「1」の値を取る。 macroblo
ck_motion_forwardは、参照マクロブロックが前方予測
されているか否かを示すフラグであって、前方予測され
ている場合には「1」の値を取る。macroblock_motion_
backwardは、参照マクロブロックが後方予測されている
か否かを示すフラグであって、後方予測されている場合
には「1」の値を取る。[0370] dct_type_flag is a flag indicating whether there is a dct_type indicating whether or not the reference macroblock is encoded by the frame DCT or the field DCT (in other words, a flag indicating whether the reference macroblock is DCT). If dct_type exists in the bit stream, dct_type_flag takes a value of “1”. macroblo
ck_motion_forward is a flag indicating whether or not the reference macroblock is predicted forward, and takes a value of “1” when the reference macroblock is predicted forward. macroblock_motion_
backward is a flag indicating whether or not the reference macroblock is backward predicted, and takes a value of “1” when backward predicted.
【0371】なお、可変長フォーマットにおいては、伝
送するビットレートを減少させるために、履歴情報を削
減することができる。In the variable length format, history information can be reduced in order to reduce the bit rate to be transmitted.
【0372】すなわち、macroblock_typeとmotion_vect
ors()は転送するが、quantiser_scale_codeを転送しな
い場合には、slice_quantiser_scale_codeを”0000
0”とすることで、ビットレートを減少させることがで
きる。That is, the macroblock_type and motion_vect
When ors () is transferred but quantizer_scale_code is not transferred, slice_quantiser_scale_code is set to “0000”.
By setting it to 0 ", the bit rate can be reduced.
【0373】また、macroblock_typeのみ転送し、motio
n_vectors()、quantiser_scale_code、およびdct_type
を転送しない場合には、macroblock_typeとして、”not
coded”を使用することで、ビットレートを減少するこ
とができる。Also, only macroblock_type is transferred and motio
n_vectors (), quantiser_scale_code, and dct_type
Is not transferred, macroblock_type is set to "not
By using "coded", the bit rate can be reduced.
【0374】さらにまた、picture_coding_typeのみ転
送し、slice()以下の情報は全て転送しない場合には、s
lice_start_codeを持たないpicture_data()を使用する
ことで、ビットレートを減少させることができる。If only picture_coding_type is transferred and all information after slice () is not transferred, s
By using picture_data () without lice_start_code, the bit rate can be reduced.
【0375】以上においては、user_data内の23ビッ
トの連続する”0”が出ないようにする場合に、22ビ
ット毎に”1”を挿入するようにしたが、22ビット毎
でなくてもよい。また、連続する”0”の個数を数え
て”1”を挿入するのではなく、Byte_allignを調べて
挿入するようにすることも可能である。In the above description, in order to prevent consecutive “0” of 23 bits in user_data from being output, “1” is inserted every 22 bits. However, it is not limited to every 22 bits. . Also, instead of counting the number of consecutive “0” and inserting “1”, Byte_allign can be checked and inserted.
【0376】さらに、MPEGにおいては、23ビットの連
続する”0”の発生を禁止しているが、実際には、バイ
トの先頭から23ビット連続する場合だけが問題とさ
れ、バイトの先頭ではなく、途中から0が23ビット連
続する場合は、問題とされない。従って、例えば24ビ
ット毎に、LSB以外の位置に”1”を挿入するようにし
てもよい。[0376] Further, in MPEG, generation of 23-bit continuous "0" is prohibited. However, actually, only the case where 23 bits continue from the head of a byte is considered as a problem. If 0 bits continue for 23 bits from the middle, no problem occurs. Therefore, for example, "1" may be inserted at a position other than the LSB every 24 bits.
【0377】また、以上においては、履歴情報を、vide
o elementary streamに近い形式にしたが、packetized
elementary streamやtransport streamに近い形式にし
てもよい。また、Elementary Streamのuser_dataの場所
を、picture_dataの前としたが、他の場所にすることも
できる。In the above description, the history information is
o Format is close to elementary stream, but packetized
The format may be close to the elementary stream or the transport stream. Although the location of the user_data of the Elementary Stream is before the picture_data, it can be another location.
【0378】図4のトランスコーディングシステム1に
おいては、4世代分の符号化パラメータを履歴情報とし
て後段に出力するようにしたが、実際には、履歴情報の
全てが必要となるわけではなく、アプリケーション毎に
必要な履歴情報は異なってくる。また、実際の伝送路あ
るいは記録媒体(伝送メディア)には、容量に制限があ
り、圧縮しているとはいえ、全ての履歴情報を伝送する
ようにすると、容量的に負担となり、結果的に画像ビッ
トストリームのビットレートを抑圧してしまい、履歴情
報伝送の有効性が損なわれることになる。In the transcoding system 1 of FIG. 4, the encoding parameters for four generations are output as history information at the subsequent stage. However, not all of the history information is actually required. The required history information differs for each. In addition, the capacity of an actual transmission path or recording medium (transmission medium) is limited. Even if the history information is compressed, transmitting all the history information imposes a load on the capacity. The bit rate of the image bit stream is suppressed, and the effectiveness of history information transmission is impaired.
【0379】そこで、履歴情報として伝送する項目の組
み合わせを記述する記述子を履歴情報に組み込んで後段
に送信するようにし、全ての履歴情報を伝送するのでは
なく、様々なアプリケーションに対応した情報を伝送す
るようにすることができる。図48は、このような場合
のトランスコーディングシステム1の構成例を表してい
る。Therefore, a descriptor describing a combination of items to be transmitted as history information is incorporated in the history information and transmitted at a later stage, and information corresponding to various applications is transmitted instead of transmitting all the history information. It can be transmitted. FIG. 48 illustrates a configuration example of the transcoding system 1 in such a case.
【0380】図48において、図4における場合と対応
する部分には同一の符号を付してあり、その説明は適宜
省略する。図48の構成例においては、ヒストリ情報分
離装置115と符号化装置116の間、及びヒストリエ
ンコーディング装置117と符号化装置116の間に、
符号化パラメータ選択回路501が挿入されている。In FIG. 48, portions corresponding to those in FIG. 4 are denoted by the same reference numerals, and description thereof will be omitted as appropriate. In the configuration example of FIG. 48, between the history information separating device 115 and the encoding device 116, and between the history encoding device 117 and the encoding device 116,
An encoding parameter selection circuit 501 is inserted.
【0381】符号化パラメータ選択回路501は、ヒス
トリ情報分離装置115が出力するベースバンドビデオ
信号から符号化パラメータを算出する符号化パラメータ
算出部512、ヒストリ情報分離装置115が出力す
る、このトランスコーディングシステム1において、符
号化するのに最適と判定された符号化パラメータ(例え
ば、第2世代の符号化パラメータ)に関する情報から、
符号化パラメータと記述子(red_bw_flag,red_bw_indi
cator)(図52を参照して後述する)を分離する組合
せ記述子分離部511、並びに符号化パラメータ算出部
512が出力する符号化パラメータと、組合せ記述子分
離部511が出力する符号化パラメータのうち、いずれ
か一方を、組合せ記述子分離部511で分離された記述
子に対応して選択し、符号化装置116に出力するスイ
ッチ513を有している。その他の構成は、図4におけ
る場合と同様である。An encoding parameter selection circuit 501 calculates an encoding parameter from a baseband video signal output from the history information separating device 115, an encoding parameter calculating section 512, and the transcoding system output from the history information separating device 115. 1, information on the encoding parameters determined to be optimal for encoding (for example, second-generation encoding parameters)
Encoding parameters and descriptors (red_bw_flag, red_bw_indi
cator) (described later with reference to FIG. 52), a combination descriptor separation unit 511 for separating the coding parameters output by the coding parameter calculation unit 512, and a coding parameter output by the combination descriptor separation unit 511. A switch 513 for selecting one of them according to the descriptor separated by the combination descriptor separating unit 511 and outputting the selected one to the encoding device 116 is provided. Other configurations are the same as those in FIG.
【0382】ここで、履歴情報として伝送する項目の組
み合わせについて説明する。履歴情報は、分類すると、
picture単位の情報と、macroblock単位の情報に分ける
ことができる。slice単位の情報は、それに含まれるmac
roblockの情報を収集することで得ることができ、GOP単
位の情報は、それに含まれるpicture単位の情報を収集
することで得ることができる。Here, the combination of items transmitted as history information will be described. Historical information can be categorized as
The information can be divided into picture unit information and macroblock unit information. The information of the slice unit is the mac included in it.
The information can be obtained by collecting the information of the roblock, and the information of the GOP unit can be obtained by collecting the information of the picture unit included therein.
【0383】picture単位の情報は、1フレーム毎に1
回伝送されるだけなので、情報伝送に占めるビットレー
トは、それほど大きくはない。これに対して、macroblo
ck単位の情報は、各macroblock毎に伝送されるため、例
えば1フレームの走査線数が525本で、フィールドレ
ートが60フィールド/秒のビデオシステムの場合、1
フレームの画素数を720×480とすると、macroblo
ck単位の情報は、1フレームあたり1350(=(72
0/16)×(480/16))回伝送することが必要と
なる。このため、履歴情報の相当の部分がmacroblock毎
の情報で占められることになる。そこで、履歴情報とし
ては、少なくともpicture単位の情報は常に伝送する
が、macroblock単位の情報は、アプリケーションに応じ
て選択して伝送するようにすることで、伝送する情報量
を抑制することができる。[0383] Information in picture units is one for each frame.
Since the data is transmitted only once, the bit rate occupying the information transmission is not so large. In contrast, macroblo
Since information in units of ck is transmitted for each macroblock, for example, in a video system in which the number of scanning lines in one frame is 525 and the field rate is 60 fields / sec, 1
If the number of pixels in the frame is 720 × 480, macroblo
The information in units of ck is 1350 (= (72
0/16) × (480/16)) transmissions. For this reason, a considerable portion of the history information is occupied by information for each macroblock. Thus, as the history information, at least the information in picture units is always transmitted, but the information in macroblock units is selected and transmitted according to the application, so that the amount of information to be transmitted can be suppressed.
【0384】履歴情報として転送されるmacroblock単位
の情報には、例えばnum_coef_bits,num_mv_bits,num_
other_bits,q_scale_code,q_scale_type,motion_typ
e,mv_vert_field_sel[][],mv[][][],mb_mfwd,mb_mb
wd,mb_pattern,coded_block_pattern,mb_intra,sli
ce_start,dct_type,mb_quant,skipped_mbなどがあ
る。これらは、macroblock rate informationの要素を
用いて表現されたものである。The information in units of macroblocks transferred as history information includes, for example, num_coef_bits, num_mv_bits, num_
other_bits, q_scale_code, q_scale_type, motion_typ
e, mv_vert_field_sel [] [], mv [] [] [], mb_mfwd, mb_mb
wd, mb_pattern, coded_block_pattern, mb_intra, sli
There are ce_start, dct_type, mb_quant, skipped_mb, etc. These are expressed using elements of macroblock rate information.
【0385】num_coef_bitsは、macroblockの符号量の
うち、DCT係数に要した符号量を表す。num_mv_bitsは、
macroblockの符号量のうち、動きベクトルに要した符号
量を表す。num_other_bitsは、macroblockの符号量のう
ち、num_coef_bits及びnum_mv_bits以外の符号量を表
す。[0385] num_coef_bits represents the code amount required for the DCT coefficient among the code amounts of the macroblock. num_mv_bits is
Indicates the amount of code required for the motion vector among the amounts of code of the macroblock. num_other_bits represents a code amount other than num_coef_bits and num_mv_bits in the code amount of the macroblock.
【0386】q_scale_codeは、macroblockに適用された
q_scale_codeを表す。motion_typeは、macroblockに適
用された動きベクトルのtypeを表す。mv_vert_field_se
l[][]は、macroblockに適用された動きベクトルのfield
selectを表す。The q_scale_code is applied to the macroblock
Represents q_scale_code. motion_type represents the type of the motion vector applied to the macroblock. mv_vert_field_se
l [] [] is the field of the motion vector applied to the macroblock
Represents select.
【0387】mv[][][]は、macroblockに適用された動き
ベクトルを表す。mb_mfwdは、macroblockの予測モード
が前方向予測であることを示すフラグである。mb_mbwd
は、macroblockの予測モードが後方向予測であることを
示すフラグである。mb_patternは、macroblockのDCT係
数の非0のものの有無を示すフラグである。[0387] mv [] [] [] represents a motion vector applied to a macroblock. mb_mfwd is a flag indicating that the prediction mode of the macroblock is forward prediction. mb_mbwd
Is a flag indicating that the prediction mode of the macroblock is backward prediction. mb_pattern is a flag indicating the presence or absence of a non-zero DCT coefficient of the macroblock.
【0388】coded_block_patternは、macroblockのDCT
係数の非0のものの有無をDCTブロック毎に示すフラグ
である。mb_intraは、macroblockがintra_macroかそう
でないかを示すフラグである。slice_startは、macrobl
ockがsliceの先頭であるか否かを示すフラグである。dc
t_typeは、macroblockがfield_dctかflame_dctかを示す
フラグである。[0388] The coded_block_pattern is the DCT of the macroblock.
This flag indicates whether or not there is a non-zero coefficient for each DCT block. mb_intra is a flag indicating whether the macroblock is intra_macro or not. slice_start is macrobl
This is a flag indicating whether or not ock is the head of slice. dc
t_type is a flag indicating whether the macroblock is field_dct or flame_dct.
【0389】mb_quantは、macroblockがquantiser_scal
e_codeを伝送するか否かを示すフラグである。skipped_
mbは、macroblockがskipped macroblockであるか否かを
示すフラグである。Mb_quant is a macroblock whose quantizer_scal
This is a flag indicating whether or not to transmit e_code. skipped_
mb is a flag indicating whether the macroblock is a skipped macroblock.
【0390】これらの項目は、常に全て必要であるわけ
ではなく、アプリケーションに応じて必要となる項目が
変化する。例えば、num_coef_bitsやslice_startといっ
た項目は、再エンコードした際のビットストリームをで
きる限り元の形に戻したいというtransparentという要
求を有するアプリケーションにおいて必要となる。換言
すれば、ビットレートを変更するようなアプリケーショ
ンにおいては、これらの項目は必要ではない。また、非
常に伝送路の制限が厳しい場合には、各ピクチャの符号
化タイプが判るだけでもよいようなアプリケーションも
存在する。このような状況から、履歴情報を伝送する項
目の組み合わせの例として、例えば図49に示すような
組み合わせが考えられる。[0390] These items are not always necessary, and necessary items change depending on the application. For example, items such as num_coef_bits and slice_start are necessary for an application having a request of “transparent” to restore a bit stream after re-encoding as much as possible. In other words, these items are not necessary in an application that changes the bit rate. Also, there are applications in which when the transmission path is extremely restricted, it is only necessary to know the coding type of each picture. From such a situation, for example, a combination as shown in FIG. 49 can be considered as an example of a combination of items for transmitting history information.
【0391】図49において、各組み合わせの中の項目
に対応する値「2」は、その情報が存在し、利用可能で
あることを意味し、「0」は、その情報が存在しないこ
とを意味する。「1」は、他の情報の存在を補助する目
的のため、あるいは、構文上存在するが、元のビットス
トリーム情報とは関係がないなど、その情報自身には意
味がないことを表している。例えば、slice_startは、
履歴情報を伝送する際のsliceの先頭のmacroblockにお
いて、「1」になるが、本来のビットストリームに対し
て、sliceが必ずしも同一位置関係にあるわけではない
場合には、履歴情報としては無意味になる。In FIG. 49, a value “2” corresponding to an item in each combination means that the information exists and can be used, and “0” means that the information does not exist. I do. “1” indicates that the information itself has no meaning, such as for the purpose of assisting the existence of other information or in the syntax, but having no relation to the original bit stream information. . For example, slice_start is
In the macroblock at the head of the slice when transmitting the history information, it becomes “1”. However, if the slice is not necessarily in the same positional relationship with the original bit stream, it is meaningless as the history information. become.
【0392】図49の例においては、(num_coef_bit
s,num_mv_bits,num_other_bits),(q_scale_code,
q_scale_type),(motion_type,mv_vert_field_sel[]
[],mv[][][]),(mb_mfwd,mb_mbwd),(mb_patter
n),(coded_block_pattern),(mb_intra),(slic
e_start),(dct_type),(mb_quant),(skipped_m
b)の各項目の有無により、組み合わせ1乃至組み合わ
せ5の5つの組み合わせが用意されている。In the example of FIG. 49, (num_coef_bit
s, num_mv_bits, num_other_bits), (q_scale_code,
q_scale_type), (motion_type, mv_vert_field_sel []
[], Mv [] [] []), (mb_mfwd, mb_mbwd), (mb_patter
n), (coded_block_pattern), (mb_intra), (slic
e_start), (dct_type), (mb_quant), (skipped_m)
Five combinations of combinations 1 to 5 are prepared depending on the presence or absence of each item of b).
【0393】組み合わせ1は、完全にtransparentなビ
ットストリームを再構成することを目的とした組み合わ
せである。この組み合わせによれば、発生符号量情報を
用いることによる精度の高いトランスコーディングが実
現できる。組み合わせ2も、完全にtransparentなビッ
トストリームを再構成することを目的とした組み合わせ
である。組み合わせ3は、完全にtransparentなビット
ストリームを再構成することはできないが、視覚的にほ
ぼtransparentなビットストリームを再構成できるよう
にするための組み合わせである。組み合わせ4は、tran
sparentという観点からは組み合わせ3よりも劣るが、
視覚上問題がないビットストリームの再構成ができる組
み合わせである。組み合わせ5は、transparentという
観点からは組み合わせ4よりも劣るが、少ない履歴情報
でビットストリームの完全ではない再構成ができる組み
合わせである。The combination 1 is a combination for reconstructing a completely transparent bit stream. According to this combination, highly accurate transcoding by using the generated code amount information can be realized. The combination 2 is also a combination for reconstructing a completely transparent bit stream. Combination 3 is a combination that cannot completely reconstruct a completely transparent bit stream, but allows a visually almost transparent bit stream to be reconstructed. Combination 4 is tran
Inferior to combination 3 in terms of sparent,
This is a combination that can reconstruct the bit stream without any visual problem. The combination 5 is inferior to the combination 4 from the viewpoint of transparency, but is a combination that allows incomplete reconstruction of the bit stream with a small amount of history information.
【0394】これらの組み合わせのうち、組み合わせの
番号の数字が小さいものほど、機能的には上位である
が、履歴を転送するのに必要となる容量が多くなる。従
って、想定するアプリケーションと履歴に使用できる容
量を考慮することによって、伝送する組み合わせを決定
する必要がある。Of these combinations, the smaller the number of the combination is, the higher the function is, but the larger the capacity required to transfer the history is. Therefore, it is necessary to determine the combination to be transmitted by considering the assumed application and the capacity available for the history.
【0395】次に、図50のフローチャートを参照し
て、図48のトランスコーディングシステム1の動作に
ついて説明する。ステップS41において、トランスコ
ーディングシステム1の復号装置102は、入力された
ビットストリームを復号し、そのビットストリームを符
号化する際に使用された符号化パラメータ(4th)を抽
出し、その符号化パラメータ(4th)をヒストリ情報多
重化装置103に出力するとともに、復号したビデオデ
ータをやはりヒストリ情報多重化装置103に出力す
る。ステップS42において、復号装置102はまた、
入力されたビットストリームからuser_dataを抽出し、
ヒストリデコーディング装置104に出力する。ヒスト
リデコーディング装置104は、ステップS43におい
て、入力されたuser_dataから、組み合わせ情報(記述
子)を抽出し、さらにそれを用いて、履歴情報としての
符号化パラメータ(1st,2nd,3rd)を抽出し、ヒス
トリ情報多重化装置103に出力する。Next, the operation of the transcoding system 1 of FIG. 48 will be described with reference to the flowchart of FIG. In step S41, the decoding device 102 of the transcoding system 1 decodes the input bit stream, extracts an encoding parameter (4th) used when encoding the bit stream, and extracts the encoding parameter (4th). 4th) is output to the history information multiplexing device 103, and the decoded video data is also output to the history information multiplexing device 103. In step S42, the decoding device 102 also
Extract user_data from the input bit stream,
Output to the history decoding device 104. In step S43, the history decoding device 104 extracts combination information (descriptor) from the input user_data, and further uses the combination information (descriptor) to extract encoding parameters (1st, 2nd, 3rd) as history information. , To the history information multiplexer 103.
【0396】ヒストリ情報多重化装置103は、ステッ
プS44において、ステップS41で取り出された復号
装置102から供給される現在の符号化パラメータ(4
th)と、ステップS43でヒストリデコーディング装置
104が出力した過去の符号化パラメータ(1st,2n
d,3rd)とを、復号装置102から供給されるベース
バンドのビデオデータに、図7または図35に示すよう
なフォーマットに従って多重化し、ヒストリ情報分離装
置115に出力する。[0396] In step S44, the history information multiplexing apparatus 103 outputs the current encoding parameter (4) supplied from the decoding apparatus 102 extracted in step S41.
th) and the past encoding parameters (1st, 2n) output by the history decoding device 104 in step S43.
d, 3rd) are multiplexed with baseband video data supplied from the decoding device 102 according to a format as shown in FIG. 7 or FIG. 35, and output to the history information separating device 115.
【0397】ヒストリ情報分離装置115は、ステップ
S45において、ヒストリ情報多重化装置103より供
給されたベースバンドのビデオデータから符号化パラメ
ータを抽出し、その中から今回の符号化に最も適してい
る符号化パラメータ(例えば、第2世代の符号化パラメ
ータ)を選択し、記述子とともに、組合せ記述子分離部
511に出力する。また、ヒストリ情報分離装置115
は、今回の符号化に最適と判定された符号化パラメータ
以外の符号化パラメータ(例えば、最適な符号化パラメ
ータが第2世代の符号化パラメータであると判定された
場合には、それ以外の第1世代、第3世代、及び第4世
代の符号化パラメータ)をヒストリエンコーディング装
置117に出力する。ヒストリエンコーディング装置1
17は、ヒストリ情報分離装置115より入力された符
号化パラメータをステップS46において、user_data
に記述し、そのuser_data(converted_history_strea
m())を符号化装置116に出力する。[0397] In step S45, the history information separation device 115 extracts the coding parameters from the baseband video data supplied from the history information multiplexing device 103, and from these, extracts the code most suitable for the current coding. An encoding parameter (for example, a second-generation encoding parameter) is selected and output to the combination descriptor separating unit 511 together with the descriptor. Also, the history information separating device 115
Are the encoding parameters other than the encoding parameters determined to be optimal for the current encoding (for example, if the optimal encoding parameter is determined to be the second-generation encoding parameter, the other The first, third, and fourth generation encoding parameters) are output to the history encoding device 117. History encoding device 1
In step S46, user_data 17 encodes the encoding parameter input from the history information separation device 115.
And user_data (converted_history_strea
m ()) is output to the encoding device 116.
【0398】符号化パラメータ選択回路501の組合せ
記述子分離部511は、ヒストリ情報分離装置115よ
り供給されたデータから、符号化パラメータと記述子を
分離し、符号化パラメータ(2nd)をスイッチ513の
一方の接点に供給する。スイッチ513の他方の接点に
は、符号化パラメータ算出部512が、ヒストリ情報分
離装置115が出力するベースバンドのビデオデータか
ら、符号化パラメータを算出し、供給している。スイッ
チ513は、ステップS48において、組合せ記述子分
離部511が出力した記述子に対応して、組合せ記述子
分離部511が出力した符号化パラメータ、または符号
化パラメータ算出部512が出力した符号化パラメータ
のいずれかを選択し、符号化装置116に出力する。す
なわち、スイッチ513では、組合せ記述子分離部51
1から供給された符号化パラメータが有効である場合に
は、組合せ記述子分離部511が出力する符号化パラメ
ータが選択されるが、組合せ記述子分離部511が出力
する符号化パラメータが無効であると判定された場合に
は、符号化パラメータ算出部512がベースバンドビデ
オを処理することで算出した符号化パラメータが選択さ
れる。この選択は、伝送メディアの容量に対応して行わ
れる。The combination descriptor separation unit 511 of the coding parameter selection circuit 501 separates the coding parameter and the descriptor from the data supplied from the history information separation device 115, and sets the coding parameter (2nd) of the switch 513 Supply to one contact. To the other contact of the switch 513, an encoding parameter calculation unit 512 calculates and supplies an encoding parameter from baseband video data output by the history information separation device 115. The switch 513 determines in step S48 the encoding parameter output from the combination descriptor separating unit 511 or the encoding parameter output from the encoding parameter calculating unit 512, corresponding to the descriptor output from the combination descriptor separating unit 511. And outputs it to the encoding device 116. That is, in the switch 513, the combination descriptor separating unit 51
If the encoding parameter supplied from 1 is valid, the encoding parameter output by the combination descriptor separation unit 511 is selected, but the encoding parameter output by the combination descriptor separation unit 511 is invalid. Is determined, the encoding parameter calculated by the encoding parameter calculation unit 512 processing the baseband video is selected. This selection is made according to the capacity of the transmission medium.
【0399】符号化装置116は、ステップS49にお
いて、スイッチ513から供給された符号化パラメータ
に基づいて、ヒストリ情報分離装置115より供給され
たベースバンドビデオ信号を符号化する。また、ステッ
プS50において、符号化装置116は、符号化したビ
ットストリームに、ヒストリエンコーディング装置11
7より供給されたuser_dataを多重化し、出力する。[0399] In step S49, the encoding device 116 encodes the baseband video signal supplied from the history information separating device 115 based on the encoding parameter supplied from the switch 513. In step S50, the encoding device 116 adds the history encoding device 11 to the encoded bit stream.
7 is multiplexed and output from the user_data supplied from 7.
【0400】このようにして、各履歴によって得られる
符号化パラメータの組み合わせが異なっているような場
合でも、支障なくトランスコーディングすることが可能
となる。[0400] In this way, transcoding can be performed without any problem even when the combinations of the encoding parameters obtained for each history are different.
【0401】このように、履歴情報は、図18に示した
ように、ビデオストリームのuser_data()関数の一種と
してのhistory_stream()(より正確には、converted_hi
story_stream())で伝送される。そのhistory_stream()
のシンタックスは、図27に示した通りである。履歴情
報の項目の組み合わせを表す記述子(red_bw_flag,red
_bw_indicator)、およびMPEGのストリームではサポー
トされていない項目(num_other_bits,num_mv_bits,n
um_coef_bits)は、この図27の中のre_coding_stream
_info()関数により伝送される。As described above, the history information is, as shown in FIG. 18, history_stream () (more precisely, converted_hi
transmitted by story_stream ()). That history_stream ()
Is as shown in FIG. Descriptors (red_bw_flag, red
_bw_indicator) and items that are not supported in MPEG stream (num_other_bits, num_mv_bits, n
um_coef_bits) is re_coding_stream in FIG.
It is transmitted by the _info () function.
【0402】re_coding_stream_info()関数は、図51
に示すように、user_data_start_code,re_coding_stre
am_info_ID,red_bw_flag,red_bw_indicator,marker_
bit,num_other_bits,num_mv_bits,num_coef_bitsな
どのデータエレメントより構成される。[0402] The re_coding_stream_info () function is shown in FIG.
User_data_start_code, re_coding_stre
am_info_ID, red_bw_flag, red_bw_indicator, marker_
It is composed of data elements such as bit, num_other_bits, num_mv_bits, and num_coef_bits.
【0403】user_data_start_codeは、user_dataが開
始することを表すスタートコードである。re_coding_st
ream_info_IDは、16ビットの整数であり、re_coding_
stream_info()関数の識別のために用いられる。その値
は、具体的には、”1001 00011110 1100”(0x91ec)と
される。[0404] user_data_start_code is a start code indicating that user_data starts. re_coding_st
ream_info_ID is a 16-bit integer.
Used to identify the stream_info () function. Specifically, the value is set to “1001 00011110 1100” (0x91ec).
【0404】red_bw_flagは、1ビットのフラグであ
り、履歴情報が全ての項目を伝送する場合には0とさ
れ、このフラグの値が1である場合、このフラグに続く
red_bw_indicatorを調べることにより、図49に示した
5個の組み合わせのうち、どの組み合わせで項目が送ら
れているのかを決定することができる。[0404] red_bw_flag is a 1-bit flag, which is set to 0 when the history information transmits all items, and is followed by this flag when the value of the flag is 1.
By examining the red_bw_indicator, it is possible to determine which of the five combinations shown in FIG. 49 the item is sent.
【0405】red_bw_indicatorは、2ビットの整数であ
り、項目の組み合わせを図52に示すように記述する。[0405] red_bw_indicator is a 2-bit integer, and describes a combination of items as shown in FIG.
【0406】即ち、図49に示した5つの組み合わせの
うち、組み合わせ1の場合、red_bw_flagは0とされ、
組み合わせ2乃至組み合わせ5のとき、red_bw_flagは
1とされる。これに対して、red_bw_indicatorは、組み
合わせ2の場合0とされ、組み合わせ3の場合1とさ
れ、組み合わせ4の場合2とされ、組み合わせ5の場合
3とされる。That is, in the case of combination 1 among the five combinations shown in FIG. 49, red_bw_flag is set to 0,
For combinations 2 to 5, red_bw_flag is set to 1. On the other hand, red_bw_indicator is set to 0 for combination 2, 1 for combination 3, 2 for combination 4, and 3 for combination 5.
【0407】従って、red_bw_indicatorは、red_bw_fla
gが1の場合に(組み合わせ2乃至組み合わせ5の場合
に)規定される。[0407] Therefore, red_bw_indicator is equivalent to red_bw_fla
It is defined when g is 1 (for combinations 2 to 5).
【0408】さらに、図51に示すように、red_bw_fla
gが0である場合(組み合わせ1の場合)、マクロブロ
ック毎に、marker_bit,num_other_bits,num_mv_bit
s,num_coef_bitsが記述される。これら4つのデータエ
レメントは、組み合わせ2乃至組み合わせ5の場合(re
d_bw_flagが1の場合)規定されない。Further, as shown in FIG. 51, red_bw_fla
When g is 0 (in the case of combination 1), marker_bit, num_other_bits, num_mv_bit
s and num_coef_bits are described. These four data elements are used in combination 2 to combination 5 (re
Not specified if d_bw_flag is 1).
【0409】図39に示したように、picture_data()関
数は、1個以上のslice()関数から構成される。しかし
ながら、組み合わせ5の場合、picture_data()関数を含
めて、それ以下のシンタックス要素は伝送されない(図
49)。この場合、履歴情報は、picture_typeなどのpi
cture単位の情報の伝送を意図したものとなる。[0409] As shown in Fig. 39, the picture_data () function is composed of one or more slice () functions. However, in the case of the combination 5, syntax elements lower than that including the picture_data () function are not transmitted (FIG. 49). In this case, the history information is pi such as picture_type.
This is intended to transmit information in units of cture.
【0410】組み合わせ1乃至組み合わせ4の場合、図
40に示したslice()関数が存在する。しかしながら、
このslice()関数によって決定されるsliceの位置情報
と、元のビットストリームのsliceの位置情報は、履歴
情報の項目の組み合わせに依存する。組み合わせ1また
は組み合わせ2の場合、履歴情報の元となったビットス
トリームのsliceの位置情報と、slice()関数によって決
定されるsliceの位置情報とは、同一である必要があ
る。In the case of combinations 1 to 4, the slice () function shown in FIG. 40 exists. However,
The slice position information determined by the slice () function and the slice position information of the original bit stream depend on a combination of items of history information. In the case of combination 1 or combination 2, the position information of the slice of the bit stream that is the source of the history information and the position information of the slice determined by the slice () function need to be the same.
【0411】図41に示すmacroblock()関数のシンタッ
クス要素は、履歴情報の項目の組み合わせに依存する。
macroblock_escape,macroblock_address_increment,m
acroblock_modes()関数は、常に存在する。しかしなが
ら、macroblock_escapeとmacroblock_address_incremen
tの情報としての有効性は、組み合わせによって決定さ
れる。履歴情報の項目の組み合わせが、組み合わせ1ま
たは組み合わせ2の場合、元のビットストリームのskip
ped_mb情報と同じものが伝送される必要がある。[0411] The syntax element of the macroblock () function shown in Fig. 41 depends on the combination of items of history information.
macroblock_escape, macroblock_address_increment, m
The acroblock_modes () function always exists. However, macroblock_escape and macroblock_address_incremen
The validity of t as information is determined by the combination. When the combination of items of history information is combination 1 or combination 2, skip of the original bit stream
The same ped_mb information needs to be transmitted.
【0412】組み合わせ4の場合、motion_vectors()関
数は存在しない。組み合わせ1乃至組み合わせ3の場
合、macroblock_modes()関数のmacroblock_typeによっ
て、motion_vectors()関数の存在が決定される。組み合
わせ3または組み合わせ4の場合には、coded_block_pa
ttern()関数は存在しない。組み合わせ1と組み合わせ
2の場合、macroblock_modes()関数のmacroblock_type
によって、coded_block_pattern()関数の存在が決定さ
れる。In the case of the combination 4, the motion_vectors () function does not exist. In the case of the combinations 1 to 3, the existence of the motion_vectors () function is determined by the macroblock_type of the macroblock_modes () function. In the case of combination 3 or combination 4, coded_block_pa
There is no ttern () function. In case of combination 1 and combination 2, macroblock_type of macroblock_modes () function
Determines the existence of the coded_block_pattern () function.
【0413】図42に示したmacroblock_modes()関数の
シンタックス要素は、履歴情報の項目の組み合わせに依
存する。macroblock_typeは、常に存在する。組み合わ
せが組み合わせ4である場合、flame_motion_type,fie
ld_motion_type,dct_typeは存在しない。[0413] The syntax element of the macroblock_modes () function shown in Fig. 42 depends on the combination of items of history information. macroblock_type always exists. If the combination is combination 4, flame_motion_type, fie
ld_motion_type and dct_type do not exist.
【0414】macroblock_typeより得られるパラメータ
の情報としての有効性は、履歴情報の項目の組み合わせ
によって決定される。The validity of the parameter obtained from the macroblock_type as information is determined by a combination of items of history information.
【0415】履歴情報の項目の組み合わせが組み合わせ
1または組み合わせ2である場合、macroblock_quant
は、元のビットストリームと同じである必要がある。組
み合わせ3または組み合わせ4の場合、macroblock_qua
ntは、macroblock()関数内のquantiser_scale_codeの存
在を表し、元のビットストリームと同じである必要はな
い。When the combination of the items of the history information is combination 1 or combination 2, macroblock_quant
Must be the same as the original bitstream. Macroblock_qua for combination 3 or combination 4
nt indicates the presence of quantizer_scale_code in the macroblock () function, and need not be the same as the original bitstream.
【0416】組み合わせが組み合わせ1乃至組み合わせ
3である場合、macroblock_motion_forwardとmacrobloc
k_motion_backwardは、元のビットストリームと同一で
ある必要がある。組み合わせが組み合わせ4または組み
合わせ5である場合、その必要はない。When the combination is combination 1 to combination 3, macroblock_motion_forward and macrobloc
k_motion_backward needs to be the same as the original bitstream. If the combination is combination 4 or combination 5, it is not necessary.
【0417】組み合わせが組み合わせ1または組み合わ
せ2である場合、macroblock_patternは、元のビットス
トリームと同一である必要がある。組み合わせ3の場
合、macroblock_patternは、dct_typeの存在を示すのに
用いられる。組み合わせが組み合わせ4である場合、組
み合わせ1乃至組み合わせ3における場合のような関係
は成立しない。When the combination is combination 1 or combination 2, macroblock_pattern needs to be the same as the original bit stream. In the case of combination 3, macroblock_pattern is used to indicate the presence of dct_type. When the combination is combination 4, the relationship as in the case of combinations 1 to 3 is not established.
【0418】履歴情報の項目の組み合わせが組み合わせ
1乃至組み合わせ3の場合、macroblock_intraは、元の
ビットストリームと同一である必要がある。組み合わせ
4の場合には、その限りでない。When the combinations of items of the history information are combination 1 to combination 3, macroblock_intra needs to be the same as the original bit stream. In the case of combination 4, this is not always the case.
【0419】図27のhistory_stream()は、履歴情報を
可変長とする場合のシンタックスであるが、図20乃至
図26に示すように、固定長のシンタックスとする場
合、固定長の履歴情報内に、伝送される項目中のどれが
有効であるかを示す情報としての記述子(red_bw_flag
とred_bw_indicator)をベースバンド画像に重畳し、伝
送するようにする。その結果、この記述子を調べること
により、フィールドとして存在するが、その内容は無効
であるといった判断をすることが可能となる。[0419] The history_stream () in Fig. 27 is a syntax when the history information is of variable length. As shown in Figs. 20 to 26, when the syntax is of fixed length, the history_stream () is of a fixed length. In the descriptor (red_bw_flag) as information indicating which of the transmitted items is valid
And red_bw_indicator) are superimposed on the baseband image and transmitted. As a result, by examining this descriptor, it is possible to determine that the field exists as a field but its contents are invalid.
【0420】このため、図24に示すように、re_codin
g_stream_informationとして、user_data_start_code,
re_coding_stream_info_ID,red_bw_flag,red_bw_indi
cator,marker_bitが配置されている。それぞれの意味
は、図51における場合と同様である。For this reason, as shown in FIG.
As g_stream_information, user_data_start_code,
re_coding_stream_info_ID, red_bw_flag, red_bw_indi
cator and marker_bit are arranged. Each meaning is the same as in FIG.
【0421】このように履歴として伝送する符号化パラ
メータの要素をアプリケーションに応じた組み合わせで
伝送するようにすることで、アプリケーションに応じた
履歴を適当なデータ量で伝送するようにすることができ
る。As described above, by transmitting the elements of the encoding parameter transmitted as the history in a combination corresponding to the application, the history corresponding to the application can be transmitted with an appropriate data amount.
【0422】以上のように、履歴情報を可変長符号とし
て伝送する場合、re_coding_stream_info()関数は、図
51に示すように構成され、図27に示すように、hist
ory_stream()関数の一部として伝送される。これに対し
て、履歴情報を固定長符号として伝送する場合には、図
24に示したように、history_stream()関数の一部とし
て、re_coding_stream_information()が伝送される。図
24の例では、re_coding_stream_informationとして、
user_data_start_code,re_coding_stream_info_ID,re
d_bw_flag,red_bw_indicatorが伝送される。As described above, when transmitting the history information as a variable length code, the re_coding_stream_info () function is configured as shown in FIG. 51, and as shown in FIG.
Transmitted as part of the ory_stream () function. On the other hand, when the history information is transmitted as a fixed-length code, as shown in FIG. 24, re_coding_stream_information () is transmitted as a part of the history_stream () function. In the example of FIG. 24, as re_coding_stream_information,
user_data_start_code, re_coding_stream_info_ID, re
d_bw_flag and red_bw_indicator are transmitted.
【0423】また、図48のヒストリ情報多重化装置1
03が出力するベースバンドの信号中における履歴情報
の伝送のために、図53に示すようなRe_Coding inform
ation Bus macroblock formatが規定される。このマク
ロブロックは、16×16(=256)ビットで構成さ
れる。そして、そのうちの図53において上から3行目
と4行目に示す32ビットが、picrate_elementとされ
る。このpicrate_elementには、図54乃至図56に示
すPicture rate elementsが記述される。図54の上か
ら2行目に1ビットのred_bw_flagが規定されており、
また、3行目に3ビットのred_bw_indicatorが規定され
ている。即ち、これらのフラグred_bw_flag,red_bw_in
dicatorは、図53のpicrate_elementとして伝送され
る。The history information multiplexing device 1 shown in FIG.
In order to transmit the history information in the baseband signal output from the base station 03, Re_Coding inform as shown in FIG.
ation Bus macroblock format is specified. This macro block is composed of 16 × 16 (= 256) bits. In FIG. 53, 32 bits shown in the third and fourth rows from the top are set as picrate_element. The picture rate elements shown in FIGS. 54 to 56 are described in the picrate_element. In the second row from the top in FIG. 54, 1-bit red_bw_flag is defined.
In the third row, a 3-bit red_bw_indicator is defined. That is, these flags red_bw_flag, red_bw_in
The indicator is transmitted as picrate_element in FIG.
【0424】図53のその他のデータについて説明する
と、SRIB_sync_codeは、このフォーマットのマクロブロ
ックの最初の行が左詰めにアライメントされていること
を表すコードであり、具体的には、”11111”に設
定される。fr_fl_SRIBは、picture_structureがフレー
ムピクチャ構造の場合(その値が”11”である場
合)、1に設定され、Re_Coding Information Bus macr
oblockが16ラインを超えて伝送されることを表し、pi
cture_structureがフレーム構造ではない場合、0に設
定され、Re_Coding Information Busが16ラインを超
えて伝送されることを意味する。この機構により、Re_C
oding Information Busが、空間的かつ時間的にデコー
ドされたビデオフレームまたはフィールドの対応する画
素にロックされる。Explaining the other data in FIG. 53, SRIB_sync_code is a code indicating that the first row of a macroblock in this format is left-justified, and specifically, is set to “11111”. Is done. fr_fl_SRIB is set to 1 when picture_structure is a frame picture structure (when its value is “11”), and Re_Coding Information Bus macr
Indicates that oblock is transmitted over 16 lines, and pi
If the structure_structure is not a frame structure, it is set to 0, which means that the Re_Coding Information Bus is transmitted over 16 lines. By this mechanism, Re_C
The oding information bus is locked to the corresponding pixels of the video frame or field that have been decoded spatially and temporally.
【0425】SRIB_top_field_firstは、元のビットスト
リームに保持されているtop_field_firstと同じ値に設
定され、関連するビデオのRe_Coding Information Bus
の時間的アライメントをrepeat_first_fieldとともに表
している。SRIB_repeat_first_fieldは、元のビットス
トリームに保持されているrepeat_first_fieldと同じ値
に設定される。first fieldのRe_Coding Information B
usの内容は、このフラグに示されるように繰り返される
必要がある。[0425] SRIB_top_field_first is set to the same value as top_field_first held in the original bit stream, and the Re_Coding Information Bus of the related video is set.
Is shown together with repeat_first_field. SRIB_repeat_first_field is set to the same value as repeat_first_field held in the original bit stream. Re_Coding Information B of first field
The contents of us need to be repeated as indicated by this flag.
【0426】422_420_chromaは、元のビットストリーム
が4:2:2または4:2:0のいずれであるかを表
す。その値の0は、ビットストリームが4:2:0であ
り、色差信号のアップサンプリングが、4:2:2のビ
デオが出力されるように行われたことを表す。その値の
0は、色差信号のフィルタリング処理が実行されていな
いことを表す。[0426] 422_420_chroma indicates whether the original bit stream is 4: 2: 2 or 4: 2: 0. A value of 0 indicates that the bit stream is 4: 2: 0 and that the up-sampling of the chrominance signal has been performed such that a 4: 2: 2 video is output. The value 0 indicates that the filtering process of the color difference signal has not been executed.
【0427】rolling_SRIB_mb_refは、16ビットのモ
ジュロ65521を表し、この値は、毎マクロブロック毎に
インクリメントされる。この値は、フレームピクチャ構
造のフレームに渡って連続している必要がある。さもな
くば、この値は、フィールドに渡って連続している必要
がある。この値は、0から65520の間の所定の値に初期
化される。これにより、レコーダのシステムに、ユニー
クなRe_Coding Information Busの識別子を組み込むこ
とが許容される。[0447] rolling_SRIB_mb_ref represents a 16-bit modulo 65521, and this value is incremented for each macroblock. This value needs to be continuous over the frames of the frame picture structure. Otherwise, this value must be contiguous across fields. This value is initialized to a predetermined value between 0 and 65520. This allows a unique Re_Coding Information Bus identifier to be incorporated into the recorder system.
【0428】Re_Coding Information Bus macroblockの
その他のデータの意味は、上述した通りであるので、こ
こでは省略する。[0428] The meanings of the other data of the Re_Coding Information Bus macroblock are as described above, and are therefore omitted here.
【0429】図57に示すように、図53の256ビッ
トのRe_Coding Information Busのデータは、1ビット
ずつ、色差データのLSBであるCb[0][0],Cr[0][0],Cb
[1][0],Cr[1][0]に配置される。図57に示すフォーマ
ットにより、4ビットのデータを送ることができるの
で、図53の256ビットのデータは、図57のフォー
マットを64(=256/4)個送ることで伝送するこ
とができる。As shown in FIG. 57, the data of the 256-bit Re_Coding Information Bus in FIG. 53 is Cb [0] [0], Cr [0] [0], and Cb, which are LSBs of color difference data one bit at a time.
[1] [0], Cr [1] [0]. Since 4-bit data can be transmitted by the format shown in FIG. 57, the 256-bit data of FIG. 53 can be transmitted by transmitting 64 (= 256/4) data of the format of FIG.
【0430】本発明のトランスコーディングシステムに
よれば、過去の符号化処理において生成された符号化パ
ラメータを、現在の符号化処理において再利用するよう
にしているので、復号処理及び符号化処理を繰り返した
としても画質劣化が発生しない。つまり、復号処理及び
符号化処理の繰り返しによる画質劣化の蓄積を低減する
ことができる。According to the transcoding system of the present invention, since the encoding parameters generated in the past encoding process are reused in the current encoding process, the decoding process and the encoding process are repeatedly performed. Even if it does, the image quality does not deteriorate. That is, it is possible to reduce accumulation of image quality deterioration due to repetition of decoding processing and encoding processing.
【0431】本発明のトランスコーディングシステムに
よれば、過去の符号化処理において生成された符号化パ
ラメータを、現在の符号化処理において生成された符号
化ストリームのユーザデータエリアに記述するように
し、生成されたビットストリームは、MPEG規格に準じた
符号化ストリームであるので、既存のどのデコーダでも
復号処理を行うことができる。さらには、本発明のトラ
ンスコーディングシステムによれば、過去の符号化処理
における符号化パラメータを伝送するために専用線のよ
うなものを設ける必要がないので、従来のデータストリ
ーム伝送環境をそのまま使用して、過去の符号化パラメ
ータを伝送することができる。[0431] According to the transcoding system of the present invention, the coding parameters generated in the past coding processing are described in the user data area of the coded stream generated in the current coding processing. Since the bit stream thus obtained is an encoded stream conforming to the MPEG standard, any existing decoder can perform decoding processing. Furthermore, according to the transcoding system of the present invention, there is no need to provide a dedicated line for transmitting the encoding parameters in the past encoding process, so that the conventional data stream transmission environment can be used as it is. Thus, the past coding parameters can be transmitted.
【0432】本発明のトランスコーディングシステムに
よれば、過去の符号化処理において生成された符号化パ
ラメータを、選択的に現在の符号化処理において生成さ
れた符号化ストリーム中に記述するようにしているの
で、出力されるビットストリームのビットレートを極端
に上げることなく、過去の符号化パラメータを伝送する
ことができる。According to the transcoding system of the present invention, the encoding parameters generated in the past encoding processing are selectively described in the encoded stream generated in the current encoding processing. Therefore, past encoding parameters can be transmitted without extremely increasing the bit rate of the output bit stream.
【0433】本発明のトランスコーディングシステムに
よれば、過去の符号化パラメータと現在の符号化ラメー
タの中から、現在の符号化処理に最適な符号化パラメー
タを選択して符号化処理を行うようにしているので、復
号処理及び符号化処理を繰り返したとしても、画質劣化
が蓄積されることはない。According to the transcoding system of the present invention, an encoding parameter optimal for the current encoding process is selected from the past encoding parameters and the current encoding parameters to perform the encoding process. Therefore, even if the decoding process and the encoding process are repeated, the deterioration of the image quality is not accumulated.
【0434】本発明のトランスコーディングシステムに
よれば、過去の符号化パラメータの中から、ピクチャタ
イプに応じて現在の符号化処理に最適な符号化パラメー
タを選択して符号化処理を行うようにしているので、復
号処理及び符号化処理を繰り返したとしても、画質劣化
が蓄積されることはない。According to the transcoding system of the present invention, an encoding parameter optimal for the current encoding processing is selected from the past encoding parameters according to the picture type, and the encoding processing is performed. Therefore, even if the decoding process and the encoding process are repeated, the image quality degradation is not accumulated.
【0435】本発明のトランスコーディングシステムに
よれば、過去の符号化パラメータに含まれるピクチャタ
イプに基づいて、過去の符号化パラメータを再利用する
か否かを決定しているので、最適な符号化処理を行うこ
とができる。According to the transcoding system of the present invention, whether to reuse the past coding parameters is determined based on the picture type included in the past coding parameters. Processing can be performed.
【0436】なお、カウンタ101、カウンタ113、
カウンタ362、およびカウンタ364は、バイナリー
カウンタであるとして説明したが、グレーコード(巡回
2進符号)のカウンタでもよい。The counter 101, the counter 113,
Although the counter 362 and the counter 364 have been described as being binary counters, they may be gray code (cyclic binary code) counters.
【0437】また、ビデオ復号システム11または復号
装置102は、ベースバンドデジタルビデオ信号を出力
し、ビデオ符号化システム12または符号化装置116
は、ベースバンドデジタルビデオ信号を入力するとして
説明したが、ビデオ復号システム11または復号装置1
02は、アナログビデオ信号を出力し、ビデオ符号化シ
ステム12または符号化装置116は、アナログビデオ
信号を入力するようにしてもよい。[0437] Also, the video decoding system 11 or the decoding device 102 outputs a baseband digital video signal, and outputs the baseband digital video signal.
Has been described as inputting a baseband digital video signal, but the video decoding system 11 or the decoding device 1
02 outputs an analog video signal, and the video encoding system 12 or the encoding device 116 may receive the analog video signal.
【0438】なお、カウンタ値は、画像に多重化すると
して説明したが、画像に関連付けられている信号、例え
ば、オーディオ信号に多重化するようにしてもよい。[0438] Although the counter value has been described as being multiplexed on the image, it may be multiplexed on a signal associated with the image, for example, an audio signal.
【0439】また、上記各処理を行うコンピュータプロ
グラムは、磁気ディスク、光ディスク、光磁気ディス
ク、半導体メモリなどの記録媒体に記録して提供するほ
か、インターネット、デジタル衛星などのネットワーク
を介して伝送し、ユーザの記録媒体に記録させることで
提供することができる。[0439] The computer program for performing each of the above processes is provided by being recorded on a recording medium such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory. It can be provided by recording on a user's recording medium.
【0440】[0440]
【発明の効果】請求項1に記載のストリーム生成装置、
請求項13に記載のストリーム生成方法および請求項1
4に記載の記録媒体によれば、第1のストリームの過去
の符号化処理における符号化履歴が検出され、第1のス
トリームの画像の不連続が検出され、符号化履歴の検出
結果および画像の不連続の検出結果を利用して、第1の
ストリームを基に第2のストリームが生成されるように
したので、復号処理、符号化処理、および編集処理を繰
り返したとしても画質劣化が発生しない。The stream generation device according to claim 1,
A stream generation method according to claim 13, and claim 1
According to the recording medium described in No. 4, the encoding history in the past encoding process of the first stream is detected, the discontinuity of the image of the first stream is detected, the detection result of the encoding history and the image Since the second stream is generated based on the first stream using the detection result of discontinuity, even if the decoding process, the encoding process, and the editing process are repeated, the image quality does not deteriorate. .
【図1】画像の編集を説明する図である。FIG. 1 is a diagram illustrating editing of an image.
【図2】VBV Bufferのオーバーフローを説明する図であ
る。FIG. 2 is a diagram illustrating overflow of a VBV buffer.
【図3】本発明を適用したトランスコーディングシステ
ム1の構成を示すブロック図である。FIG. 3 is a block diagram showing a configuration of a transcoding system 1 to which the present invention has been applied.
【図4】図3のトランスコーディングシステム1のより
詳細な構成を示すブロック図である。FIG. 4 is a block diagram showing a more detailed configuration of the transcoding system 1 of FIG.
【図5】図3の復号装置102に内蔵されるデコーダ2
51の構成を示すブロック図である。FIG. 5 is a decoder 2 built in the decoding device 102 in FIG. 3;
It is a block diagram which shows the structure of 51.
【図6】マクロブロックの画素を説明する図である。FIG. 6 is a diagram illustrating pixels of a macroblock.
【図7】符号化パラメータが記録される領域を説明する
図である。FIG. 7 is a diagram illustrating an area where an encoding parameter is recorded.
【図8】Ancillary Data Packetの例を示す図である。FIG. 8 is a diagram illustrating an example of an ancillary data packet.
【図9】カウンタ値を分割して格納するデータを説明す
る図である。FIG. 9 is a diagram illustrating data stored by dividing a counter value.
【図10】カウンタ値を分割して格納するデータを説明
する図である。FIG. 10 is a diagram illustrating data stored by dividing a counter value.
【図11】カウンタ値を分割して格納するデータを説明
する図である。FIG. 11 is a diagram for explaining data stored by dividing a counter value.
【図12】ベースバンドデジタルビデオ信号のLSBに多
重化されている符号化パラメータにカウンタ値を多重化
するときの、ヒストリ情報多重化装置103およびカウ
ンタ値多重化装置105に対応する機能の構成を説明す
る図である。FIG. 12 shows a configuration of a function corresponding to the history information multiplexing device 103 and the counter value multiplexing device 105 when multiplexing the counter value to the encoding parameter multiplexed in the LSB of the baseband digital video signal. FIG.
【図13】ベースバンドデジタルビデオ信号の輝度また
は色差のブランキング部分に多重化されている符号化パ
ラメータにカウンタ値を多重化するときの、ヒストリ情
報多重化装置103およびカウンタ値多重化装置105
に対応する機能の構成を説明する図である。FIG. 13 shows a history information multiplexing device 103 and a counter value multiplexing device 105 when multiplexing a counter value with an encoding parameter multiplexed in a blanking portion of luminance or color difference of a baseband digital video signal.
FIG. 3 is a diagram illustrating a configuration of a function corresponding to FIG.
【図14】図3の符号化装置116に内蔵されるエンコ
ーダ301の構成を示すブロック図である。FIG. 14 is a block diagram illustrating a configuration of an encoder 301 incorporated in the encoding device 116 in FIG.
【図15】図3のトランスコーディングシステム1が実
際に使用される状態を示す図である。FIG. 15 is a diagram showing a state where the transcoding system 1 of FIG. 3 is actually used.
【図16】密結合されたトランスコーディングシステム
1の構成を示すブロック図である。FIG. 16 is a block diagram illustrating a configuration of a transcoding system 1 that is tightly coupled.
【図17】カウンタ362の構成例を示す図である。FIG. 17 is a diagram illustrating a configuration example of a counter 362.
【図18】ビデオシーケンスのストリームのシンタック
スを説明する図である。FIG. 18 is a diagram illustrating the syntax of a stream of a video sequence.
【図19】図18のシンタックスの構成を説明する図で
ある。FIG. 19 is a diagram illustrating the configuration of the syntax in FIG. 18.
【図20】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 20 is history_stream for recording fixed-length history information.
It is a figure explaining the syntax of ().
【図21】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 21 is history_stream for recording fixed-length history information.
It is a figure explaining the syntax of ().
【図22】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 22 history_stream for recording fixed-length history information
It is a figure explaining the syntax of ().
【図23】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 23: history_stream for recording fixed-length history information
It is a figure explaining the syntax of ().
【図24】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 24: history_stream for recording fixed-length history information
It is a figure explaining the syntax of ().
【図25】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 25: history_stream for recording fixed-length history information
It is a figure explaining the syntax of ().
【図26】固定長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 26 shows history_stream for recording fixed-length history information.
It is a figure explaining the syntax of ().
【図27】可変長の履歴情報を記録するhistory_stream
()のシンタックスを説明する図である。FIG. 27 shows history_stream for recording variable-length history information.
It is a figure explaining the syntax of ().
【図28】sequence_header()のシンタックスを説明す
る図である。FIG. 28 is a diagram for describing the syntax of sequence_header ().
【図29】sequence_extension()のシンタックスを説明
する図である。FIG. 29 is a diagram for describing the syntax of sequence_extension ().
【図30】extension_and_user_data()のシンタックス
を説明する図である。Fig. 30 is a diagram for describing the syntax of extension_and_user_data ().
【図31】user_data()のシンタックスを説明する図で
ある。FIG. 31 is a diagram for describing the syntax of user_data ().
【図32】group_of_pictures_header()のシンタックス
を説明する図である。Fig. 32 is a diagram illustrating the syntax of group_of_pictures_header ().
【図33】picture_header()のシンタックスを説明する
図である。FIG. 33 is a diagram for describing the syntax of picture_header ().
【図34】picture_coding_extension()のシンタックス
を説明する図である。Fig. 34 is a diagram for describing the syntax of picture_coding_extension ().
【図35】extension_data()のシンタックスを説明する
図である。FIG. 35 is a diagram illustrating the syntax of extension_data ().
【図36】quant_matrix_extension()のシンタックスを
説明する図である。FIG. 36 is a diagram for describing the syntax of quant_matrix_extension ().
【図37】copyright_extension()のシンタックスを説
明する図である。Fig. 37 is a diagram for describing the syntax of copyright_extension ().
【図38】picture_display_extension()のシンタック
スを説明する図である。[Fig. 38] Fig. 38 is a diagram for describing the syntax of picture_display_extension ().
【図39】picture_data()のシンタックスを説明する図
である。Fig. 39 is a diagram for describing the syntax of picture_data ().
【図40】slice()のシンタックスを説明する図であ
る。[Fig. 40] Fig. 40 is a diagram for describing the syntax of slice ().
【図41】macroblock()のシンタックスを説明する図で
ある。FIG. 41 is a diagram illustrating the syntax of macroblock ().
【図42】macroblock_modes()のシンタックスを説明す
る図である。Fig. 42 is a diagram for describing the syntax of macroblock_modes ().
【図43】motion_vectors(s)のシンタックスを説明す
る図である。Fig. 43 is a diagram illustrating the syntax of motion_vectors (s).
【図44】motion_vector(r,s)のシンタックスを説明す
る図である。FIG. 44 is a diagram illustrating the syntax of motion_vector (r, s).
【図45】Iピクチャに対するmacroblock_typeの可変
長符号を説明する図である。[Fig. 45] Fig. 45 is a diagram illustrating a macroblock_type variable-length code for an I picture.
【図46】Pピクチャに対するmacroblock_typeの可変
長符号を説明する図である。[Fig. 46] Fig. 46 is a diagram for describing a macroblock_type variable length code for a P picture.
【図47】Bピクチャに対するmacroblock_typeの可変
長符号を説明する図である。[Fig. 47] Fig. 47 is a diagram illustrating a macroblock_type variable length code for a B picture.
【図48】本発明を適用したトランスコーディングシス
テム1の他の構成を示すブロック図である。FIG. 48 is a block diagram showing another configuration of the transcoding system 1 to which the present invention has been applied.
【図49】履歴情報の項目の組み合わせを説明する図で
ある。FIG. 49 is a diagram illustrating a combination of items of history information.
【図50】図48のトランスコーディングシステム1の
動作を説明するフローチャートである。FIG. 50 is a flowchart illustrating the operation of the transcoding system 1 in FIG. 48.
【図51】re_coding_stream_info()のシンタックスを
説明する図である。Fig. 51 is a diagram for describing the syntax of re_coding_stream_info ().
【図52】red_bw_flag,red_bw_indicatorを説明する
図である。FIG. 52 is a view for explaining red_bw_flag and red_bw_indicator.
【図53】Re_Coding Information Bus macroblock for
mationを説明する図である。FIG. 53: Re_Coding Information Bus macroblock for
It is a figure explaining mation.
【図54】Picture rate elementsを説明する図であ
る。FIG. 54 is a diagram illustrating Picture rate elements.
【図55】Picture rate elementsを説明する図であ
る。FIG. 55 is a diagram illustrating Picture rate elements.
【図56】Picture rate elementsを説明する図であ
る。FIG. 56 is a diagram illustrating Picture rate elements.
【図57】Re_Coding Information Busが記録される領
域を説明する図である。[Fig. 57] Fig. 57 is a diagram illustrating an area where a Re_Coding Information Bus is recorded.
1 トランスコーディングシステム, 11 ビデオ復
号システム, 12ビデオ符号化システム, 101
カウンタ, 102 復号装置, 103ヒストリ情報
多重化装置, 104 ヒストリデコーディング装置,
105カウンタ値多重化装置, 111 カウンタ値
分離装置, 112 フォーマット変換装置, 113
カウンタ, 114 比較装置, 115 ヒストリ
情報分離装置, 116 符号化装置, 117 ヒス
トリエンコーディング装置, 201 ユーザデータデ
コーダ, 202 コンバータ, 203 ヒストリV
LD, 211 ヒストリVLC, 212 コンバー
タ, 213 ユーザデータフォーマッタ, 251
デコーダ, 261 受信バッファ, 262 可変長
復号回路, 263 逆量子化回路, 264 IDCT回
路, 265演算器, 266 動き補償回路, 26
7 フレームメモリ, 271 タイミング信号発生装
置, 272 カウンタ値フォーマット変換装置, 2
73符号化パラメータフォーマット変換装置, 274
シリアル−パラレル変換装置, 275 スイッチ,
281 タイミング信号発生回路, 282 スイッ
チ, 301 エンコーダ, 310 動きベクトル検
出回路, 311フレームメモリ, 312 Frame/Fi
eld予測モード切り替え回路, 313演算器, 31
5 Frame/FieldDCTモード切り替え回路, 316 DC
T回路,317 量子化回路, 318 可変長符号化
回路, 319 送信バッファ, 320 逆量子化回
路, 321 IDCT回路, 322 演算器, 323
フレームメモリ, 324 動き補償回路, 330
コントローラ, 351 SDTI, 361 フォー
マット変換装置, 362 カウンタ, 363 比較
装置, 364 カウンタ, 365 フォーマット変
換装置, 381 カウンタ, 382 AND回路1 transcoding system, 11 video decoding system, 12 video encoding system, 101
Counter, 102 decoding device, 103 history information multiplexing device, 104 history decoding device,
105 counter value multiplexer, 111 counter value separator, 112 format converter, 113
Counter, 114 comparing device, 115 history information separating device, 116 encoding device, 117 history encoding device, 201 user data decoder, 202 converter, 203 history V
LD, 211 history VLC, 212 converter, 213 user data formatter, 251
Decoder, 261 reception buffer, 262 variable length decoding circuit, 263 inverse quantization circuit, 264 IDCT circuit, 265 arithmetic unit, 266 motion compensation circuit, 26
7 frame memory, 271 timing signal generator, 272 counter value format converter, 2
73 encoding parameter format converter, 274
Serial-parallel converter, 275 switch,
281 timing signal generation circuit, 282 switch, 301 encoder, 310 motion vector detection circuit, 311 frame memory, 312 Frame / Fi
eld prediction mode switching circuit, 313 arithmetic unit, 31
5 Frame / FieldDCT mode switching circuit, 316 DC
T circuit, 317 quantization circuit, 318 variable length coding circuit, 319 transmission buffer, 320 inverse quantization circuit, 321 IDCT circuit, 322 arithmetic unit, 323
Frame memory, 324 motion compensation circuit, 330
Controller, 351 SDTI, 361 format converter, 362 counter, 363 comparator, 364 counter, 365 format converter, 381 counter, 382 AND circuit
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 7/32 Fターム(参考) 5C053 FA03 FA14 FA22 GB06 GB08 GB17 GB21 GB29 GB37 LA15 5C059 KK01 KK35 KK39 KK41 MA01 MA15 MA23 PP05 PP06 PP07 RC00 RC24 RC31 RE09 SS02 TA16 TB03 TC27 TC37 TC41 TC42 UA02 UA05 5C063 AB03 AC01 CA11 CA23 DA07 DA13 DB01 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 7/32 F term (Reference) 5C053 FA03 FA14 FA22 GB06 GB08 GB17 GB21 GB29 GB37 LA15 5C059 KK01 KK35 KK39 KK41 MA01 MA15 MA23 PP05 PP06 PP07 RC00 RC24 RC31 RE09 SS02 TA16 TB03 TC27 TC37 TC41 TC42 UA02 UA05 5C063 AB03 AC01 CA11 CA23 DA07 DA13 DB01
Claims (14)
ストリームを生成し、出力するストリーム生成装置にお
いて、 前記第1のストリームの過去の符号化処理における符号
化履歴を検出する第1の検出手段と、 前記第1のストリームの画像の不連続を検出する第2の
検出手段と、 前記第1の検出手段の検出結果および前記第2の検出手
段の検出結果を利用して、前記第1のストリームを基に
前記第2のストリームを生成する生成手段とを含むこと
を特徴とするストリーム生成装置。1. A stream generation device for generating and outputting a second stream from an input first stream, wherein a first detection for detecting an encoding history in a past encoding process of the first stream is performed. Means, second detection means for detecting discontinuity of the image of the first stream, and the first detection means using a detection result of the first detection means and a detection result of the second detection means. Generating means for generating the second stream based on the stream.
て、前記第2のストリームを生成することを特徴とする
請求項1に記載のストリーム生成装置。2. The stream generation apparatus according to claim 1, wherein the generation unit generates the second stream by encoding in an MPEG system.
での符号化処理における符号化履歴を記述する第1の記
述手段を更に含むことを特徴とする請求項1に記載のス
トリーム生成装置。3. The stream generation apparatus according to claim 1, further comprising: a first description unit that describes an encoding history of the second stream in an encoding process performed so far.
の情報を、前記MPEG方式の前記第2のストリームのuser
_dataとして記述することを特徴とする請求項3に記載
のストリーム生成装置。4. The first description means stores the information of the encoding history as a user of the second stream of the MPEG system.
The stream generation apparatus according to claim 3, wherein the stream generation apparatus describes the data as _data.
連続を表す連続情報を記述する第2の記述手段を更に含
むことを特徴とする請求項1に記載のストリーム生成装
置。5. The stream generation apparatus according to claim 1, further comprising: a second description unit that describes continuity information indicating continuation of an image with respect to the second stream.
を表す前記連続情報を、前記MPEG方式の前記第2のスト
リームのuser_dataとして記述することを特徴とする請
求項5に記載のストリーム生成装置。6. The stream according to claim 5, wherein the second description unit describes the continuity information indicating the continuation of the image as user_data of the second stream of the MPEG system. Generator.
ト毎に加算または減算により連続情報を生成して記述す
ることを特徴とする請求項5に記載のストリーム生成装
置。7. The stream generation apparatus according to claim 5, wherein said second description means generates and describes continuous information by addition or subtraction for each access unit.
信号の輝度信号または色差信号の所定のビットのブラン
キング部分に前記連続情報を記述することを特徴とする
請求項5に記載のストリーム生成装置。8. The apparatus according to claim 5, wherein the second description unit describes the continuous information in a blanking portion of a predetermined bit of a luminance signal or a color difference signal of the decoded image signal. Stream generator.
信号のブランキング部分に前記連続情報を記述すること
を特徴とする請求項5に記載のストリーム生成装置。9. The stream generation apparatus according to claim 5, wherein the second description unit describes the continuous information in a blanking portion of the decoded image signal.
ることを特徴とする請求項5に記載のストリーム生成装
置。10. The stream generation device according to claim 5, wherein the continuous information is packetized.
像信号の輝度信号または色差信号の所定のビットのブラ
ンキング部分に多重化されている前記符号化履歴の情報
に、前記連続情報を多重化することを特徴とする請求項
5に記載のストリーム生成装置。11. The continuity information is added to the information of the coding history multiplexed in a blanking portion of a predetermined bit of a luminance signal or a chrominance signal of a decoded image signal. The stream generating apparatus according to claim 5, wherein the stream is multiplexed.
像信号のブランキング部分に多重化されている前記符号
化履歴の情報に、前記連続情報を多重化することを特徴
とする請求項5に記載のストリーム生成装置。12. The apparatus according to claim 1, wherein the second description unit multiplexes the continuous information with information of the coding history multiplexed in a blanking portion of a decoded image signal. 6. The stream generation device according to 5.
のストリームを生成し、出力するストリーム生成装置の
ストリーム生成方法において、 前記第1のストリームの過去の符号化処理における符号
化履歴を検出する第1の検出ステップと、 前記第1のストリームの画像の不連続を検出する第2の
検出ステップと、 前記第1の検出ステップの処理での検出結果および前記
第2の検出ステップの処理での検出結果を利用して、前
記第1のストリームを基に前記第2のストリームを生成
する生成ステップとを含むことを特徴とするストリーム
生成方法。13. A second stream from the input first stream.
In the stream generation method of the stream generation device that generates and outputs the stream of the first stream, a first detection step of detecting an encoding history in a past encoding process of the first stream; A second detection step of detecting a discontinuity; and a detection result of the processing of the first detection step and a detection result of the processing of the second detection step, based on the first stream. A generating step of generating the second stream.
のストリームを生成し、出力するストリーム生成装置を
制御するプログラムにおいて、 前記第1のストリームの過去の符号化処理における符号
化履歴を検出する第1の検出ステップと、 前記第1のストリームの画像の不連続を検出する第2の
検出ステップと、 前記第1の検出ステップの処理での検出結果および前記
第2の検出ステップの処理での検出結果を利用して、前
記第1のストリームを基に前記第2のストリームを生成
する生成ステップとを含むことを特徴とするコンピュー
タが読み取り可能なプログラムが記録されている記録媒
体。14. A second stream from an input first stream.
A program that controls a stream generation device that generates and outputs a stream of a first stream, a first detection step of detecting an encoding history in a past encoding process of the first stream, and an image of an image of the first stream. A second detection step of detecting a discontinuity; and a detection result of the processing of the first detection step and a detection result of the processing of the second detection step, based on the first stream. Generating a second stream, the computer-readable recording medium storing a computer-readable program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34633099A JP3874153B2 (en) | 1999-12-06 | 1999-12-06 | Re-encoding device and re-encoding method, encoding device and encoding method, decoding device and decoding method, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34633099A JP3874153B2 (en) | 1999-12-06 | 1999-12-06 | Re-encoding device and re-encoding method, encoding device and encoding method, decoding device and decoding method, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2001169278A true JP2001169278A (en) | 2001-06-22 |
JP3874153B2 JP3874153B2 (en) | 2007-01-31 |
Family
ID=18382688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP34633099A Expired - Fee Related JP3874153B2 (en) | 1999-12-06 | 1999-12-06 | Re-encoding device and re-encoding method, encoding device and encoding method, decoding device and decoding method, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3874153B2 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004066636A1 (en) * | 2003-01-20 | 2004-08-05 | Matsushita Electric Industrial Co., Ltd. | Image encoding method |
WO2004110062A1 (en) * | 2003-06-06 | 2004-12-16 | Sony Corporation | Data edition system, data edition method, data processing device, and server device |
JP2005123829A (en) * | 2003-10-15 | 2005-05-12 | Nec Electronics Corp | Transcoder, data recorder having same, and method for recording data |
JP2007129746A (en) * | 2006-12-14 | 2007-05-24 | Sony Corp | Stream converting apparatus and stream converting method, program, and recording medium |
US7425986B2 (en) | 2002-03-29 | 2008-09-16 | Canon Kabushiki Kaisha | Conversion apparatus for image data delivery |
JP2009189058A (en) * | 2002-04-26 | 2009-08-20 | Nec Corp | Code conversion/transmission method and apparatus for moving image data, and code conversion/reception method and apparatus |
US7729425B2 (en) | 2003-09-19 | 2010-06-01 | Sony Corporation | Image processing apparatus and method, program, and recording medium |
US7839895B2 (en) | 2002-01-22 | 2010-11-23 | Microsoft Corporation | Methods and systems 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 |
-
1999
- 1999-12-06 JP JP34633099A patent/JP3874153B2/en not_active Expired - Fee Related
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7839895B2 (en) | 2002-01-22 | 2010-11-23 | Microsoft Corporation | Methods and systems for start code emulation prevention and data stuffing |
US7595834B2 (en) | 2002-03-29 | 2009-09-29 | Canon Kabushiki Kaisha | Camera system with display for displaying superimposed information |
US7425986B2 (en) | 2002-03-29 | 2008-09-16 | Canon Kabushiki Kaisha | Conversion apparatus for image data delivery |
EP1501310A4 (en) * | 2002-04-26 | 2012-07-11 | Nec Corp | Moving picture data code conversion/transmission method and device, code conversion/reception method and device |
JP2009189058A (en) * | 2002-04-26 | 2009-08-20 | Nec Corp | Code conversion/transmission method and apparatus for moving image data, and code conversion/reception method and apparatus |
WO2004066636A1 (en) * | 2003-01-20 | 2004-08-05 | Matsushita Electric Industrial Co., Ltd. | Image encoding method |
KR101025505B1 (en) * | 2003-06-06 | 2011-04-04 | 소니 주식회사 | Data processing apparatus and data processing method, editing processing apparatus and editing processing method, recording medium |
US7944976B2 (en) | 2003-06-06 | 2011-05-17 | Sony Corporation | Data edition system, data edition method, data processing device, and server device |
US8134738B2 (en) | 2003-06-06 | 2012-03-13 | Sony Corporation | Data edition system, data edition method, data processing device, and server device |
WO2004110062A1 (en) * | 2003-06-06 | 2004-12-16 | Sony Corporation | Data edition system, data edition method, data processing device, and server device |
US7729425B2 (en) | 2003-09-19 | 2010-06-01 | Sony Corporation | Image processing apparatus and method, program, and recording medium |
JP2005123829A (en) * | 2003-10-15 | 2005-05-12 | Nec Electronics Corp | Transcoder, data recorder having same, and method for recording data |
JP2007129746A (en) * | 2006-12-14 | 2007-05-24 | Sony Corp | Stream converting apparatus and stream converting method, program, and recording medium |
US10271069B2 (en) | 2016-08-31 | 2019-04-23 | Microsoft Technology Licensing, Llc | Selective use of start code emulation prevention |
Also Published As
Publication number | Publication date |
---|---|
JP3874153B2 (en) | 2007-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3694888B2 (en) | Decoding device and method, encoding device and method, information processing device and method, and recording medium | |
JP3672185B2 (en) | CODING SYSTEM, DEVICE USING THE SAME, AND RECORDING MEDIUM | |
KR100729541B1 (en) | Transcoding System Using Coding History Information | |
JP3724205B2 (en) | Decoding device and method, and recording medium | |
JP3874153B2 (en) | Re-encoding device and re-encoding method, encoding device and encoding method, decoding device and decoding method, and recording medium | |
JP3724204B2 (en) | Encoding apparatus and method, and recording medium | |
JP3724203B2 (en) | Encoding apparatus and method, and recording medium | |
JP3890838B2 (en) | Encoded stream conversion apparatus, encoded stream conversion method, and recording medium | |
JP4139983B2 (en) | Encoded stream conversion apparatus, encoded stream conversion method, stream output apparatus, and stream output method | |
JP4016290B2 (en) | Stream conversion device, stream conversion method, encoding device, encoding method, and recording medium | |
JP2005304065A (en) | Decoding device and method, coding device and method, information processing device and method, and recording medium | |
JP4539637B2 (en) | Stream recording apparatus and stream recording method, stream reproduction apparatus and stream reproduction method, stream transmission apparatus and stream transmission method, and program storage medium | |
JP3817952B2 (en) | Re-encoding device and method, encoding device and method, and recording medium | |
JP3817951B2 (en) | Stream transmission apparatus and method, and recording medium | |
JP4543321B2 (en) | Playback apparatus and method | |
JP4482811B2 (en) | Recording apparatus and method | |
JP4016294B2 (en) | Encoding apparatus and encoding method, stream conversion apparatus and stream conversion method, and recording medium | |
JP3724202B2 (en) | Image data processing apparatus and method, and recording medium | |
JP4478630B2 (en) | Decoding device, decoding method, program, and recording medium | |
JP4016349B2 (en) | Stream conversion apparatus, stream conversion method, and recording medium | |
JP4016293B2 (en) | Encoding apparatus, encoding method, and recording medium | |
JP4016347B2 (en) | Stream conversion apparatus, stream conversion method, and recording medium | |
JP4016348B2 (en) | Stream conversion apparatus, stream conversion method, and recording medium | |
JP2007259492A (en) | Information processing apparatus and method | |
JP2000059770A (en) | Data transmitter and its transmitting method, and providing medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20020514 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050324 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050329 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050530 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051129 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060123 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060818 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060831 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060904 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060904 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20061005 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061018 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091102 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101102 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111102 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121102 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |