JP2001054109A - Alignment device - Google Patents

Alignment device

Info

Publication number
JP2001054109A
JP2001054109A JP22894799A JP22894799A JP2001054109A JP 2001054109 A JP2001054109 A JP 2001054109A JP 22894799 A JP22894799 A JP 22894799A JP 22894799 A JP22894799 A JP 22894799A JP 2001054109 A JP2001054109 A JP 2001054109A
Authority
JP
Japan
Prior art keywords
parallel
video stream
circuit
bit
start code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP22894799A
Other languages
Japanese (ja)
Inventor
Masanori Ishizuka
正則 石塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP22894799A priority Critical patent/JP2001054109A/en
Publication of JP2001054109A publication Critical patent/JP2001054109A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an alignment device that can detect a start code of an MPEG video decoder at a high-speed with a simple circuit configuration. SOLUTION: In the case that a pre-processing circuit 1 aligns a coded video stream in compliance with the MPEG standards into a coded video stream of a parallel 8-bit configuration and also aligns the coded video stream of the parallel 8-bit configuration into a coded video stream of a parallel 32-bit configuration, the pre-processing circuit 1 inserts dummy data of a parallel 8-bit configuration to the coded video stream of the parallel 8-bit configuration as required so as to apply word-alignment to a start code, and a 32-bit alignment circuit 2 aligns the coded video stream of the parallel 8-bit configuration outputted from the pre-processing circuit 1 into a coded video stream of a parallel 32-bit configuration and gives it to a video decoder.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEG(Moving
Picture Experts Group)規格の符号化ビデオストリー
ムを復号する場合に使用して好適なアライン装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an MPEG (Moving
The present invention relates to an aligning apparatus suitable for decoding an encoded video stream of the Picture Experts Group standard.

【0002】[0002]

【従来の技術】MPEG1規格やMPEG2規格によっ
て符号化されたビデオストリームにはスタートコードと
呼ばれる特殊なビットパターンが含まれており、MPE
Gシステム用のビデオ復号装置は、符号化ビデオストリ
ームからスタートコードを検出することにより、これを
基点として、これに続くビデオデータの復号動作に入る
ことができる。
2. Description of the Related Art A video stream encoded according to the MPEG1 or MPEG2 standard contains a special bit pattern called a start code.
By detecting the start code from the encoded video stream, the video decoding device for the G system can start the decoding operation of the subsequent video data based on the start code.

【0003】スタートコードは、3バイトの前置き部分
と1バイトのID部分とからなり、前置き部分には、
“0000 0000 0000 0000 0000
0001”というコード値が割り振られており、スタ
ートコード以外に、このコード値が存在することはな
い。
[0003] The start code consists of a 3-byte prefix and a 1-byte ID.
“0000 0000 0000 0000 0000
A code value of "0001" is assigned, and there is no code value other than the start code.

【0004】また、ID部分には、たとえば、ピクチャ
・スタートコードならば、 “0000 0000” というコード値が割り振られ、シーケンス・ヘッドコー
ドならば、 “1011 0011” というコード値が割り振られている。
For example, a code value "0000 0000" is assigned to the ID portion for a picture start code, and a code value "1011 0011" is assigned to a sequence head code.

【0005】[0005]

【発明が解決しようとする課題】従来のMPEGシステ
ム用のビデオ復号装置では、符号化ビデオストリームを
1ビットずつずらしながらパターンマッチングを行うこ
とによりスタートコードを検出するようにしているた
め、スタートコードを高速に検出することができないと
いう問題点があった。
In a conventional video decoding apparatus for an MPEG system, a start code is detected by performing pattern matching while shifting an encoded video stream one bit at a time. There is a problem that high-speed detection cannot be performed.

【0006】本発明は、かかる点に鑑み、MPEGシス
テム用のビデオ復号装置におけるスタートコードの検出
を簡単な回路構成で、かつ、高速に行うことができるよ
うにしたアライン装置を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the foregoing, it is an object of the present invention to provide an alignment apparatus which can detect a start code in a video decoding apparatus for an MPEG system with a simple circuit configuration and at a high speed. And

【0007】[0007]

【課題を解決するための手段】本発明のアライン装置
は、MPEG規格の符号化ビデオストリームを並列32
ビット構成の符号化ビデオストリームにアラインした場
合、スタートコードがワードアラインされているよう
に、必要に応じて、MPEG規格の符号化ビデオストリ
ームにダミーデータを挿入する前処理回路と、この前処
理回路から出力される符号化ビデオストリームを並列3
2ビット構成の符号化ビデオストリームにアラインする
32ビットアライン回路とを備えているというものであ
る。
SUMMARY OF THE INVENTION The aligning apparatus of the present invention converts an encoded video stream of the MPEG standard into a parallel stream.
A preprocessing circuit for inserting dummy data into an MPEG standard encoded video stream, if necessary, so that the start code is word-aligned when the encoded video stream is bit-aligned; The encoded video stream output from
And a 32-bit aligning circuit for aligning the encoded video stream with a 2-bit configuration.

【0008】本発明によれば、スタートコードをワード
アラインすることができるので、MPEGシステム用の
ビデオ復号装置は、符号化ビデオストリームを1ビット
ずつずらしてパターンマッチングを行うことなく、単に
32ビット単位のデータを監視するだけで、スタートコ
ードを検出することができる。
According to the present invention, since a start code can be word-aligned, a video decoding apparatus for an MPEG system can simply execute a 32-bit unit without shifting a coded video stream by one bit and performing pattern matching. The start code can be detected only by monitoring the data.

【0009】[0009]

【発明の実施の形態】図1は本発明の一実施形態の要部
を示すブロック回路図であり、図1中、1はMPEG規
格の多重符号化ストリームを個別符号化ストリームに分
離する分離装置から出力される符号化ビデオストリーム
を入力して、これを並列8ビット構成の符号化ビデオス
トリームにアラインし、さらに、この並列8ビット構成
の符号化ビデオストリームを並列32ビット構成の符号
化ビデオストリームにアラインした場合、スタートコー
ドがワードアラインされているように、必要に応じて、
並列8ビット構成の符号化ビデオストリームに並列8ビ
ット構成のダミーデータ“00000000”を挿入す
る前処理回路である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block circuit diagram showing a main part of one embodiment of the present invention. In FIG. The encoded video stream output from is input, and the encoded video stream having the parallel 8-bit configuration is aligned with the encoded video stream having the parallel 8-bit configuration. If necessary, as if the start code were word aligned,
This is a preprocessing circuit for inserting dummy data “00000000” having a parallel 8-bit configuration into an encoded video stream having a parallel 8-bit configuration.

【0010】また、2は前処理回路1から出力される並
列8ビット構成の符号化ビデオストリームを並列32ビ
ット構成の符号化ビデオストリームにアラインする32
ビットアライン回路、3は前処理回路1及び32ビット
アライン回路2を制御する制御回路である。
Reference numeral 2 denotes a unit for aligning a parallel 8-bit coded video stream output from the preprocessing circuit 1 with a parallel 32-bit coded video stream.
The bit alignment circuit 3 is a control circuit for controlling the preprocessing circuit 1 and the 32-bit alignment circuit 2.

【0011】図2は前処理回路1及び制御回路3の構成
を示すブロック回路図であり、図2中、4は分離装置か
ら出力される符号化ビデオストリームを並列8ビット構
成の符号化ビデオストリームにアラインするバイトアラ
イン回路である。
FIG. 2 is a block circuit diagram showing the configuration of the pre-processing circuit 1 and the control circuit 3. In FIG. 2, reference numeral 4 denotes an encoded video stream of a parallel 8-bit configuration which is output from the demultiplexer. Is a byte-aligned circuit.

【0012】また、5−1〜5−8はバイトアライン回
路4の並列出力BAをラッチするラッチ回路を構成する
フリップフロップ回路、6−1〜6−8はフリップフロ
ップ回路5−1〜5−8の並列出力をラッチするラッチ
回路を構成するフリップフロップ回路であり、これらフ
リップフロップ回路5−1〜5−8、6−1〜6−8
は、ライトイネーブル信号WEがHレベルの場合には、
書き込みを可とされ、ライトイネーブル信号WEがLレ
ベルの場合には、書き込みを不可とされるものである。
Reference numerals 5-1 to 5-8 denote flip-flop circuits constituting a latch circuit for latching the parallel output BA of the byte alignment circuit 4, and reference numerals 6-1 to 6-8 denote flip-flop circuits 5-1 to 5--8. And a flip-flop circuit constituting a latch circuit for latching eight parallel outputs. These flip-flop circuits 5-1 to 5-8, 6-1 to 6-8
Is, when the write enable signal WE is at the H level,
When the writing is enabled and the write enable signal WE is at the L level, the writing is disabled.

【0013】また、7はセレクタ制御信号SLによりセ
レクト動作が制御されるセレクタであり、セレクタ制御
信号SLがLレベルの場合には、フリップフロップ回路
6−1〜6−8の並列出力を選択し、セレクタ制御信号
SLがHレベルの場合には、並列8ビット構成のダミー
データ“00000000”を選択するものである。
Reference numeral 7 denotes a selector whose selection operation is controlled by the selector control signal SL. When the selector control signal SL is at the L level, the selector 7 selects the parallel outputs of the flip-flop circuits 6-1 to 6-8. When the selector control signal SL is at the H level, the dummy data "00000000" having a parallel 8-bit configuration is selected.

【0014】また、8はバイトアライン回路4における
バイトアライン処理回数をカウントして、カウント値B
Cを0→1→2→3→0→1→2→3の順に繰り返して
更新するバイトカウンタ、9はバイトアライン回路4の
並列出力と、フリップフロップ回路5−1〜5−8の並
列出力と、フリップフロップ回路6−1〜6−8の並列
出力とからスタートコードの前置き部分を検出するスタ
ートコード前置き部分検出回路である。
Reference numeral 8 denotes the number of times of byte alignment processing in the byte alignment circuit 4 and a count value B
A byte counter that repeatedly updates C in the order of 0 → 1 → 2 → 3 → 0 → 1 → 2 → 3, 9 is a parallel output of the byte align circuit 4 and a parallel output of the flip-flop circuits 5-1 to 5-8 And a start code front part detection circuit for detecting the front part of the start code from the parallel outputs of the flip-flop circuits 6-1 to 6-8.

【0015】また、10はセレクタ制御信号SLを発生
してセレクタ7を制御するセレクタ制御回路であり、ス
タートコード前置き部分検出回路9がスタートコードの
前置き部分を検出したときは、バイトカウンタ8のカウ
ント値BCがゼロ以外の場合、次にバイトカウンタ8の
カウント値BCがゼロとなるまで、セレクタ制御信号S
LをHレベルとし、それ以外の場合には、セレクタ制御
信号SLをLレベルとするものである。
Reference numeral 10 denotes a selector control circuit for controlling the selector 7 by generating a selector control signal SL. When the start code preceding part detecting circuit 9 detects the preceding part of the start code, the count of the byte counter 8 is counted. If the value BC is not zero, the selector control signal S is output until the count value BC of the byte counter 8 becomes zero next time.
L is set to H level, and otherwise, the selector control signal SL is set to L level.

【0016】また、11はライトイネーブル信号WEを
発生するライトイネーブル信号発生回路であり、このラ
イトイネーブル信号発生回路11は、スタートコード前
置き部分検出回路9がスタートコードの前置き部分を検
出したときは、バイトカウンタ8のカウント値BCがゼ
ロ以外の場合には、次にバイトカウンタ8のカウント値
BCがゼロとなるまで、ライトイネーブル信号WEをL
レベルとし、それ以外の場合には、ライトイネーブル信
号WEをHレベルとするものである。
Reference numeral 11 denotes a write enable signal generating circuit for generating a write enable signal WE. This write enable signal generating circuit 11 detects when the start code preceding portion detecting circuit 9 detects the preceding portion of the start code. If the count value BC of the byte counter 8 is not zero, the write enable signal WE is changed to L until the count value BC of the byte counter 8 becomes zero next time.
In other cases, the write enable signal WE is set to the H level.

【0017】図3は32ビットアライン回路2の構成を
示すブロック回路図であり、図3中、12−1〜12−
8はセレクタ7の並列出力をラッチするラッチ回路を構
成するフリップフロップ回路、13−1〜13−8はフ
リップフロップ回路12−1〜12−8の並列出力をラ
ッチするラッチ回路を構成するフリップフロップ回路、
14−1〜14−8はフリップフロップ回路13−1〜
13−8の並列出力をラッチするラッチ回路を構成する
フリップフロップ回路、15−1〜15−8はフリップ
フロップ回路14−1〜14−8の並列出力をラッチす
るラッチ回路を構成するフリップフロップ回路である。
FIG. 3 is a block circuit diagram showing the configuration of the 32-bit alignment circuit 2. In FIG.
Reference numeral 8 denotes a flip-flop circuit forming a latch circuit for latching the parallel output of the selector 7, and reference numerals 13-1 to 13-8 denote flip-flops forming a latch circuit for latching the parallel outputs of the flip-flop circuits 12-1 to 12-8. circuit,
14-1 to 14-8 are flip-flop circuits 13-1 to 13-8
Flip-flop circuits constituting latch circuits for latching parallel outputs of 13-8, 15-1 to 15-8 represent flip-flop circuits constituting latch circuits for latching parallel outputs of flip-flop circuits 14-1 to 14-8 It is.

【0018】これらフリップフロップ回路12−1〜1
2−8、13−1〜13−8、14−1〜14−8、1
5−1〜15−8は、ライトイネーブル信号WEがHレ
ベルの場合には、書き込みを可とされ、ライトイネーブ
ル信号WEがLレベルの場合には、書き込みを不可とさ
れるものである。
These flip-flop circuits 12-1 to 12-1
2-8, 13-1 to 13-8, 14-1 to 14-8, 1
In 5-1 to 15-8, writing is enabled when the write enable signal WE is at the H level, and writing is disabled when the write enable signal WE is at the L level.

【0019】図4は本発明の一実施形態の動作例を示す
タイミングチャートであり、動作サイクル、動作クロッ
クCLK、バイトアライン回路4の並列出力BA、フリ
ップフロップ回路(FF)5−1〜5−8、6−1〜6
−8、12−1〜12−8、13−1〜13−8、14
−1〜14−8、15−1〜15−8の並列出力、バイ
トカウンタ8のカウント値BC、セレクタ制御信号SL
及びライトイネーブル信号WEを示している。
FIG. 4 is a timing chart showing an operation example of one embodiment of the present invention. The operation cycle, the operation clock CLK, the parallel output BA of the byte alignment circuit 4, and the flip-flop circuits (FF) 5-1 to 5- 8, 6-1 to 6
-8, 12-1 to 12-8, 13-1 to 13-8, 14
-1 to 14-8, parallel output of 15-1 to 15-8, count value BC of byte counter 8, selector control signal SL
And a write enable signal WE.

【0020】ここでは、バイトアライン回路4から出力
される並列8ビット構成の符号化ビデオストリームの第
6列〜第9列の部分(散点模様を付した部分)にスター
トコードが存在しており、第1サイクルで、バイトアラ
イン回路4から並列8ビット構成の符号化ビデオストリ
ームの第0列が出力される場合を例としている。
Here, a start code is present in the sixth to ninth column portions (dotted portions) of the encoded 8-bit video stream output from the byte-aligned circuit 4. In the first cycle, the byte alignment circuit 4 outputs the 0-th column of the encoded video stream having a parallel 8-bit configuration as an example.

【0021】この結果、第2サイクルでは、バイトアラ
イン回路4から並列8ビット構成の符号化ビデオストリ
ームの第1列が出力され、フリップフロップ回路5−1
〜5−8から並列8ビット構成の符号化ビデオストリー
ムの第0列が出力されることになる。
As a result, in the second cycle, the byte alignment circuit 4 outputs the first column of the coded video stream having a parallel 8-bit configuration, and the flip-flop circuit 5-1.
From 0 to 5-8, the 0th column of the encoded video stream having a parallel 8-bit configuration is output.

【0022】そして、その後、第7サイクルでは、フリ
ップフロップ回路12−1〜12−8から並列8ビット
構成の符号化ビデオストリームの第3列が出力され、フ
リップフロップ回路13−1〜13−8から並列8ビッ
ト構成の符号化ビデオストリームの第2列が出力され、
フリップフロップ回路14−1〜14−8から並列8ビ
ット構成の符号化ビデオストリームの第1列が出力さ
れ、フリップフロップ回路15−1〜15−8から並列
8ビット構成の符号化ビデオストリームの第0列が出力
されることになる。
Then, in the seventh cycle, the flip-flop circuits 12-1 to 12-8 output the third column of the encoded video stream having a parallel 8-bit configuration, and the flip-flop circuits 13-1 to 13-8. Output a second column of the encoded video stream having a parallel 8-bit configuration,
The first column of the parallel 8-bit coded video stream is output from the flip-flop circuits 14-1 to 14-8, and the first column of the parallel 8-bit coded video stream is output from the flip-flop circuits 15-1 to 15-8. Zero columns will be output.

【0023】ここに、この例では、第7サイクルでバイ
トカウンタ8のカウンタ値BC=0となるように初期化
されているので、第7サイクル時に、フリップフロップ
回路12−1〜12−8、13−1〜13−8、14−
1〜14−8、15−1〜15−8から出力される並列
32ビットの符号化ビデオデータ(D1)が並列32ビ
ットにアラインされた符号化ビデオデータとしてビデオ
復号装置に供給されるように制御されることになる。
In this example, since the counter value BC of the byte counter 8 is initialized to be zero in the seventh cycle, the flip-flop circuits 12-1 to 12-8, 13-1 to 13-8, 14-
1 to 14-8 and 15-1 to 15-8 are supplied to the video decoding apparatus as parallel 32-bit encoded video data (D1) output as parallel 32-bit encoded video data. Will be controlled.

【0024】その後、第9サイクルになると、バイトア
ライン回路4の並列出力は、 “0000 0001” となり、フリップフロップ回路5−1〜5−8の並列出
力は、 “0000 0000” となり、フリップフロップ回路6−1〜6−8の並列出
力は、 “0000 0000” となるので、スタートコード前置き部分検出回路9は、
スタートコードの前置き部分に割り当てられているコー
ド値 “0000 0000 0000 0000 0000
0001” を検出することになる。
Thereafter, in the ninth cycle, the parallel output of the byte align circuit 4 becomes “0000 0001”, the parallel outputs of the flip-flop circuits 5-1 to 5-8 become “0000 0000”, and Since the parallel outputs of 6-1 to 6-8 are "0000 0000", the start code preceding part detection circuit 9
Code value assigned to the front part of the start code “0000 0000 0000 0000 0000
0001 "is detected.

【0025】ここに、第9サイクルでは、バイトカウン
タ8のカウント値BCは2であり、次にバイトカウンタ
8のカウント値BCが0となるのは、第11サイクルで
あるから、第10サイクル及び第11サイクルの期間、
セレクタ制御信号SL=Hレベル、ライトイネーブル信
号WE=Lレベルとされる。
Here, in the ninth cycle, the count value BC of the byte counter 8 is 2 and the count value BC of the byte counter 8 becomes 0 next in the eleventh cycle. Period of the eleventh cycle,
The selector control signal SL is at H level and the write enable signal WE is at L level.

【0026】この結果、第10サイクル及び第11サイ
クルにおいては、セレクタ7は、フリップフロップ回路
6−1〜6−8の並列出力ではなく、ダミーデータを選
択することになるので、並列8ビット構成の符号化ビデ
オストリームの第5列の後に並列8ビット構成の2列の
ダミーデータ “0000 0000” “0000 0000” が挿入されることになる。
As a result, in the tenth cycle and the eleventh cycle, the selector 7 selects the dummy data instead of the parallel outputs of the flip-flop circuits 6-1 to 6-8. After the fifth column of the coded video stream, two columns of dummy data “0000 0000” and “0000 0000” having a parallel 8-bit configuration are inserted.

【0027】また、この結果、第11サイクルでは、フ
リップフロップ回路12−1〜12−8、13−1〜1
3−8からそれぞれ並列8ビット構成のダミーデータが
出力され、フリップフロップ回路14−1〜14−8か
ら並列8ビット構成の符号化ビデオストリームの第5列
が出力され、フリップフロップ回路15−1〜15−8
から並列8ビット構成の符号化ビデオストリームの第4
列が出力されることになる。
As a result, in the eleventh cycle, the flip-flop circuits 12-1 to 12-8, 13-1 to 1
3-8 outputs dummy data having a parallel 8-bit configuration, and flip-flop circuits 14-1 to 14-8 output the fifth column of the encoded video stream having a parallel 8-bit configuration. ~ 15-8
From the encoded video stream of parallel 8-bit configuration
The columns will be output.

【0028】そして、第11サイクルでは、バイトカウ
ンタ8のカウンタ値BCは0となるので、第11サイク
ル時に、フリップフロップ回路12−1〜12−8、1
3−1〜13−8、14−1〜14−8、15−1〜1
5−8から出力される並列32ビット構成の符号化ビデ
オデータ(D2)が並列32ビットにアラインされた符
号化ビデオデータとしてビデオ復号装置に供給されるよ
うに制御されることになる。
In the eleventh cycle, the counter value BC of the byte counter 8 becomes 0. Therefore, in the eleventh cycle, the flip-flop circuits 12-1 to 12-8, 1
3-1 to 13-8, 14-1 to 14-8, 15-1 to 1
Control is performed so that the encoded video data (D2) of the parallel 32-bit configuration output from 5-8 is supplied to the video decoding device as encoded video data aligned in parallel 32-bit.

【0029】その後、第15サイクルでは、フリップフ
ロップ回路12−1〜12−8から並列8ビット構成の
符号化ビデオストリームの第9列が出力され、フリップ
フロップ回路13−1〜13−8から並列8ビット構成
の符号化ビデオストリームの第8列が出力され、フリッ
プフロップ回路14−1〜14−8から並列8ビット構
成の符号化ビデオストリームの第7列が出力され、フリ
ップフロップ回路15−1〜15−8から並列8ビット
構成の符号化ビデオストリームの第6列が出力されるこ
とになる。
Thereafter, in the fifteenth cycle, the ninth column of the encoded video stream having a parallel 8-bit configuration is output from the flip-flop circuits 12-1 to 12-8, and the flip-flop circuits 13-1 to 13-8 output the ninth column. The eighth column of the 8-bit coded video stream is output, and the flip-flop circuits 14-1 to 14-8 output the seventh column of the parallel 8-bit coded video stream, and the flip-flop circuit 15-1 From 15 to 15-8, the sixth column of the encoded video stream having the parallel 8-bit configuration is output.

【0030】そして、第15サイクルでは、バイトカウ
ンタ8のカウンタ値BCは0となるので、第15サイク
ル時に、フリップフロップ回路12−1〜12−8、1
3−1〜13−8、14−1〜14−8、15−1〜1
5−8から出力される並列32ビット構成の符号化ビデ
オデータ(D3)が並列32ビットにアラインされた符
号化ビデオデータとしてビデオ復号装置に供給されるよ
うに制御されることになる。
In the fifteenth cycle, the counter value BC of the byte counter 8 becomes 0. Therefore, in the fifteenth cycle, the flip-flop circuits 12-1 to 12-8, 1
3-1 to 13-8, 14-1 to 14-8, 15-1 to 1
The control is performed so that the encoded video data (D3) of the parallel 32-bit configuration output from 5-8 is supplied to the video decoding device as encoded video data aligned in parallel 32-bit.

【0031】以下、同様の動作が行われる。なお、D4
は並列32ビット構成の符号化ビデオデータの次にビデ
オ復号装置に供給される並列32ビット構成の符号化ビ
デオデータを示している。
Hereinafter, the same operation is performed. Note that D4
Shows encoded 32-bit encoded video data supplied to the video decoding device after the encoded 32-bit encoded video data.

【0032】ここに、たとえば、分離装置から出力され
る符号化ビデオストリームが 20h FCh 39h00h 00h 01h B3h 52h 3Ch ・ ・ ・ のような符号化ビデオストリームである場合に(下線を
付した部分は、スタートコード)、これを、そのまま並
列32ビット構成の符号化ビデオストリームにアライン
すると、 20h,FCh,39h,00h 00h01hB3h,52h 3ch, ・ , ・ , ・ のようにアラインされ、スタートコードはワードアライ
ンされないが、本発明の一実施形態によれば、 20h,FCh,39h,00h(ダミーデータ)00h00h01hB3h 52h,3Ch, ・ , ・ のように、必要に応じて、スタートコードの前にダミー
コードを挿入することによりスタートコードをワードア
ラインすることができる。
Here, for example, when the encoded video stream output from the separation device is an encoded video stream such as 20h FCh 39h 00h 00h 01h B3h 52h 3Ch... (The underlined portion is Start code), when this is directly aligned with the encoded video stream of the parallel 32-bit configuration, the alignment is performed as follows: 20h, FCh, 39h, 00h 00h , 01h , B3h , 52h 3ch ,. Are not word-aligned, but according to one embodiment of the invention, as required, such as 20h, FCh, 39h, 00h (dummy data) 00h , 00h , 01h , B3h 52h, 3Ch,. By inserting a dummy code before the start code It can be word-aligned the start code.

【0033】図5は本発明の一実施形態を備えるMPE
G復号装置の一例の要部を示すブロック回路図であり、
図5中、16はMPEG規格の多重符号化ストリームを
符号化ビデオストリーム、符号化オーディオストリーム
及び符号化プライベートストリームに分離する分離装置
である。
FIG. 5 shows an MPE having an embodiment of the present invention.
It is a block circuit diagram which shows the principal part of an example of a G decoding device,
In FIG. 5, reference numeral 16 denotes a separating device for separating a multiplexed coded stream of the MPEG standard into a coded video stream, a coded audio stream, and a coded private stream.

【0034】また、17は本発明の一実施形態のアライ
ン装置、18は本発明の一実施形態のアライン装置17
から出力される並列32ビット構成の符号化ビデオスト
リームを復号するビデオ復号装置である。
Reference numeral 17 denotes an aligning device according to an embodiment of the present invention, and reference numeral 18 denotes an aligning device 17 according to an embodiment of the present invention.
This is a video decoding device that decodes an encoded video stream of a parallel 32-bit configuration output from a.

【0035】また、19は分離装置16から出力される
符号化オーディオストリームを復号するオーディオ復号
装置、20は分離装置16から出力される符号化プライ
ベートストリームを復号するプライベート復号装置であ
る。
Reference numeral 19 denotes an audio decoding device for decoding the encoded audio stream output from the separation device 16, and reference numeral 20 denotes a private decoding device for decoding the encoded private stream output from the separation device 16.

【0036】図6はビデオ復号装置18の構成を示すブ
ロック回路図であり、図6中、21は本発明の一実施形
態のアライン装置17から出力される並列32ビット構
成の符号化ビデオストリームを格納するビデオデータバ
ッファである。
FIG. 6 is a block circuit diagram showing the structure of the video decoding device 18. In FIG. 6, reference numeral 21 denotes a parallel 32-bit coded video stream output from the aligning device 17 according to one embodiment of the present invention. This is a video data buffer to be stored.

【0037】また、22はビデオデータバッファ21に
格納された並列32ビット構成のビデオストリームから
スタートコードを検出するスタートコード検出部、23
は可変長符号を復号して量子化係数や動きベクトルを求
める可変長復号部である。
A start code detector 22 detects a start code from a video stream of a parallel 32-bit structure stored in the video data buffer 21.
Is a variable length decoding unit that decodes a variable length code to obtain a quantization coefficient and a motion vector.

【0038】また、24は逆量子化を行う逆量子化部、
25は逆離散コサイン変換を行う逆DCT部、26はフ
レーム間予測動き補償を行う動き補償部、27はモニタ
における表示を制御する表示制御部である。
An inverse quantization unit 24 performs inverse quantization.
Reference numeral 25 denotes an inverse DCT unit that performs an inverse discrete cosine transform, 26 denotes a motion compensation unit that performs an inter-frame prediction motion compensation, and 27 denotes a display control unit that controls display on a monitor.

【0039】図5に示すMPEG復号装置においては、
分離装置16から出力される符号化ビデオストリーム
は、本発明の一実施形態のアライン装置17により、ス
タートコードがワードアラインされるように並列32ビ
ット構成の符号化ビデオストリームにアラインされてビ
デオ復号装置18に供給されることになる。
In the MPEG decoding device shown in FIG.
The encoded video stream output from the separation device 16 is aligned by an aligning device 17 according to an embodiment of the present invention into an encoded video stream having a parallel 32-bit configuration so that the start code is word-aligned, and the video decoding device 18.

【0040】したがって、ビデオ復号装置18のスター
トコード検出部22においては、ビデオデータバッファ
21から出力される符号化ビデオストリームを1ビット
ずつずらしてパターンマッチングを行うことなく、単に
並列32ビット構成のデータを監視するだけで、スター
トコードを検出することができるので、スタートコード
の検出を簡単な回路構成で、かつ、高速に行うことがで
きる。
Therefore, the start code detecting section 22 of the video decoding device 18 does not perform pattern matching by shifting the coded video stream output from the video data buffer 21 by 1 bit, but simply executes the parallel 32-bit data. The start code can be detected simply by monitoring the start code, so that the start code can be detected at a high speed with a simple circuit configuration.

【0041】このように、スタートコードの検出を高速
に行うことができることから、たとえば、符号化ビデオ
ストリームの復号時に、正規の画像の復号をスキップ
し、前方や後方の画像のスタートコードを検出する必要
がある場合においても、このスタートコードの検出を高
速に行うことができるので、画像表示の高速化を図るこ
とができる。
As described above, since the start code can be detected at a high speed, for example, when decoding an encoded video stream, decoding of a normal image is skipped, and the start code of a forward or backward image is detected. Even when necessary, the start code can be detected at a high speed, so that the speed of image display can be increased.

【0042】また、符号化ビデオストリームに文法上の
エラーが含まれている場合には、次のスタートコードの
検出を行うことが必要になるが、このスタートコードの
検出も高速に行うことができるので、符号化ビデオスト
リームに文法上のエラーが含まれている場合における画
像の乱れを最小限に抑えることができる。
If the encoded video stream contains a grammatical error, it is necessary to detect the next start code, but this start code can also be detected at high speed. Therefore, it is possible to minimize image disturbance when a grammatical error is included in the encoded video stream.

【0043】また、符号化ビデオストリームが欠損して
いる場合には、データ欠損直後のスタートコードを検出
する必要があるが、このスタートコードの検出も高速に
行うことができるので、符号化ビデオストリームが欠損
している場合における画像の乱れを最小限に抑えること
ができる。
When the encoded video stream is missing, it is necessary to detect the start code immediately after the data loss. However, the start code can be detected at high speed. Can be minimized when the image is missing.

【0044】また、スタートコードはワードアラインさ
れてビデオ復号装置18に供給されることから、スター
トコード検出部22において、上位階層のスタートコー
ドを検出した場合、この検出ポイントを記憶しておくよ
うにする場合には、以後、この検出ポイントを基点にし
て、バイト単位で容易に下位階層のスタートコードを検
出することができる。
Since the start code is word-aligned and supplied to the video decoding device 18, when the start code detecting section 22 detects a start code of an upper layer, the start point is stored. In this case, the start code of the lower hierarchy can be easily detected in byte units from this detection point.

【0045】ここで、本発明の一実施形態の内容を整理
すると、少なくとも、本発明には、以下のようなアライ
ン装置が含まれる。
Here, when the contents of one embodiment of the present invention are arranged, at least the present invention includes the following aligning apparatus.

【0046】(1)MPEG規格の符号化ビデオストリ
ームを並列32ビット構成の符号化ビデオストリームに
アラインした場合、スタートコードがワードアラインさ
れているように、必要に応じて、MPEG規格の符号化
ビデオストリームにダミーデータを挿入する前処理回路
と、この前処理回路から出力される符号化ビデオストリ
ームを並列32ビット構成の符号化ビデオストリームに
アラインする32ビットアライン回路とを備えているこ
とを特徴とするアライン装置。
(1) When the encoded video stream of the MPEG standard is aligned with the encoded video stream of the parallel 32-bit configuration, the encoded video stream of the MPEG standard is used as necessary so that the start code is word-aligned. A pre-processing circuit for inserting dummy data into the stream; and a 32-bit aligning circuit for aligning the encoded video stream output from the pre-processing circuit with a parallel 32-bit encoded video stream. Alignment equipment.

【0047】(2)前記(1)に記載のアライン装置に
おいて、前記ダミーデータは、“0”を並列に8ビット
配列してなるデータを単位とするデータであることを特
徴とするアライン装置。
(2) The aligning apparatus according to (1), wherein the dummy data is data in units of data in which "0" s are arranged in 8 bits in parallel.

【0048】(3)前記(2)に記載のアライン装置に
おいて、前記前処理回路は、符号化ビデオストリームを
並列8ビット構成の符号化ビデオストリームにアライン
するバイトアライン回路と、このバイトアライン回路の
並列出力をラッチする第1のラッチ回路と、この第1の
ラッチ回路の並列出力をラッチする第2のラッチ回路
と、この第2のラッチ回路の並列出力又はダミーデータ
を選択するセレクタとを備えていることを特徴とするア
ライン装置。
(3) In the aligning apparatus according to (2), the pre-processing circuit includes a byte-aligned circuit that aligns the encoded video stream with a parallel 8-bit encoded video stream; A first latch circuit for latching a parallel output; a second latch circuit for latching the parallel output of the first latch circuit; and a selector for selecting the parallel output or dummy data of the second latch circuit. An aligning device.

【0049】(4)前記(3)に記載のアライン装置に
おいて、前記バイトアライン回路におけるバイトアライ
ン処理の回数をカウントするバイトカウンタと、前記バ
イトアライン回路の並列出力と前記第1、第2のラッチ
回路の並列出力とからスタートコードの前置き部分を検
出するスタートコード前置き部分検出回路と、前記バイ
トカウンタのカウント値と前記スタートコード前置き部
分検出回路の出力に基づいてライトイネーブル信号を出
力して前記第1、第2のラッチ回路の書き込み許否動作
を制御するライトイネーブル信号発生回路と、前記バイ
トカウンタのカウント値と前記スタートコード前置き部
分検出回路の出力に基づいてセレクタ制御信号を出力し
て前記セレクタのセレクト動作を制御するセレクタ制御
回路とを備えていることを特徴とするアライン装置。
(4) In the alignment apparatus according to (3), a byte counter for counting the number of times of byte alignment processing in the byte alignment circuit, a parallel output of the byte alignment circuit, and the first and second latches A start code front part detection circuit for detecting a front part of a start code from the parallel output of the circuit; anda write enable signal based on the count value of the byte counter and the output of the start code front part detection circuit, and A write enable signal generation circuit for controlling a write permission / non-permission operation of the second latch circuit; and a selector control signal based on the count value of the byte counter and the output of the start code preceding part detection circuit to output a selector control signal. A selector control circuit for controlling the select operation. Aligned and wherein the.

【0050】(5)前記(4)に記載のアライン装置に
おいて、前記32ビットアライン回路は、前記ライトイ
ネーブル信号により書き込み許否動作を制御され、前記
セレクタの並列出力をラッチする第3のラッチ回路と、
前記ライトイネーブル信号により書き込み許否動作を制
御され、前記第3のラッチ回路の並列出力をラッチする
第4のラッチ回路と、前記ライトイネーブル信号により
書き込み許否動作を制御され、前記第4のラッチ回路の
並列出力をラッチする第5のラッチ回路とを備え、前記
第3、第4及び第5のラッチ回路の並列出力を前記32
ビットアライン回路の出力とするように構成されている
ことを特徴とするアライン装置。
(5) In the aligning device according to (4), the 32-bit align circuit has a third latch circuit that controls a write enable / disable operation by the write enable signal and latches a parallel output of the selector. ,
A write enable / disable operation controlled by the write enable signal, a fourth latch circuit for latching a parallel output of the third latch circuit, and a write enable / disable operation controlled by the write enable signal; A fifth latch circuit for latching a parallel output, wherein the parallel output of the third, fourth and fifth latch circuits is
An alignment device, which is configured to be an output of a bit alignment circuit.

【0051】(6)前記(5)に記載のアライン装置に
おいて、前記バイトアライン回路は、カウント値をn
(但し、nは整数)→n+1→n+2→n+3→n→n
+1→n+2→n+3の順に繰り返して更新するように
構成され、前記セレクタ制御回路は、前記スタートコー
ド前置き部分検出回路がスタートコードの前置き部分を
検出したときは、前記バイトカウンタのカウント値がn
以外の場合、次に前記バイトカウンタのカウント値がn
となるまで、前記セレクタが前記ダミーデータを選択
し、それ以外の場合には、前記セレクタが前記第2のラ
ッチ回路の並列出力を選択するように前記セレクタを制
御するように構成され、前記ライトイネーブル信号発生
回路は、前記スタートコード前置き部分検出回路がスタ
ートコードの前置き部分を検出したときは、前記バイト
カウンタのカウント値がn以外の場合には、次に前記バ
イトカウンタのカウント値がnとなるまで、前記第1〜
第5のラッチ回路を書き込み不可の状態とし、それ以外
の場合には、前記第1〜第5のラッチ回路を書き込み可
の状態とするようなライトイネーブル信号を発生するよ
うに構成されていることを特徴とするアライン装置。
(6) In the aligning apparatus according to the above (5), the byte aligning circuit sets the count value to n.
(Where n is an integer) → n + 1 → n + 2 → n + 3 → n → n
The selector control circuit is configured to update the count value of the byte counter to n when the start code preceding portion detection circuit detects the preceding portion of the start code.
Otherwise, the count value of the byte counter is n
And the selector controls the selector so that the selector selects the parallel output of the second latch circuit otherwise. The enable signal generating circuit, when the count value of the byte counter is other than n, when the count value of the byte counter is other than n, when the count value of the byte code is other than n, the count value of the byte counter is n. Until said
It is configured to generate a write enable signal for setting the fifth latch circuit to a non-writable state, and otherwise setting the first to fifth latch circuits to a writable state. An alignment device characterized by the following.

【0052】[0052]

【発明の効果】以上のように、本発明によれば、MPE
Gシステム用のビデオ復号装置は、符号化ビデオストリ
ームを1ビットずつずらしてパターンマッチングを行う
ことなく、単に並列32ビット構成のデータを監視する
だけで、スタートコードを検出することができるので、
スタートコードの検出を簡単な回路構成で、かつ、高速
に行うことができる。
As described above, according to the present invention, the MPE
Since the video decoding device for the G system can detect the start code simply by monitoring the data of the parallel 32-bit configuration without performing pattern matching by shifting the encoded video stream one bit at a time,
The start code can be detected at a high speed with a simple circuit configuration.

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

【図1】本発明の一実施形態の要部を示すブロック回路
図である。
FIG. 1 is a block circuit diagram showing a main part of an embodiment of the present invention.

【図2】本発明の一実施形態が備える前処理回路及び制
御回路の構成を示すブロック回路図である。
FIG. 2 is a block circuit diagram illustrating a configuration of a preprocessing circuit and a control circuit included in an embodiment of the present invention.

【図3】本発明の一実施形態が備える32ビットアライ
ン回路の構成を示すブロック回路図である。
FIG. 3 is a block circuit diagram showing a configuration of a 32-bit alignment circuit included in an embodiment of the present invention.

【図4】本発明の一実施形態の動作例を示すタイミング
チャートである。
FIG. 4 is a timing chart showing an operation example of one embodiment of the present invention.

【図5】本発明の一実施形態を備えるMPEG復号装置
の一例の要部を示すブロック回路図である。
FIG. 5 is a block circuit diagram illustrating a main part of an example of an MPEG decoding device including an embodiment of the present invention.

【図6】図5に示すMPEG復号装置が備えるビデオ復
号装置の構成を示すブロック回路図である。
6 is a block circuit diagram showing a configuration of a video decoding device provided in the MPEG decoding device shown in FIG.

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

(図1) 1 前処理回路 2 32ビットアライン回路 3 制御回路 (図2) 4 バイトアライン回路 5−1〜5−8 フリップフロップ回路 6−1〜6−8 フリップフロップ回路 7 セレクタ 8 バイトカウンタ 9 スタートコード前置き部分検出回路 10 セレクタ制御回路 11 ライトイネーブル信号発生回路 (図3) 12−1〜12−8 フリップフロップ回路 13−1〜13−8 フリップフロップ回路 14−1〜14−8 フリップフロップ回路 15−1〜15−8 フリップフロップ回路 (図5) 16 分離装置 17 本発明の一実施形態のアライン装置 18 ビデオ復号装置 19 オーディオ復号装置 20 プライベート復号装置 (図6) 21 ビデオデータバッファ 22 スタートコード検出部 23 可変長復号部 24 逆量子化部 25 逆DCT部 26 動き補償部 27 表示制御部 (FIG. 1) 1 Pre-processing circuit 2 32-bit align circuit 3 Control circuit (FIG. 2) 4 Byte align circuit 5-1 to 5-8 Flip-flop circuit 6-1 to 6-8 Flip-flop circuit 7 Selector 8 Byte counter 9 Start code preceding part detection circuit 10 Selector control circuit 11 Write enable signal generation circuit (FIG. 3) 12-1 to 12-8 flip-flop circuits 13-1 to 13-8 flip-flop circuits 14-1 to 14-8 flip-flop circuits 15-1 to 15-8 Flip-Flop Circuit (FIG. 5) 16 Separation Device 17 Alignment Device of One Embodiment of the Present Invention 18 Video Decoding Device 19 Audio Decoding Device 20 Private Decoding Device (FIG. 6) 21 Video Data Buffer 22 Start Code Detection unit 23 variable length decoding unit 24 inverse quantization unit 2 Inverse DCT unit 26 the motion compensation unit 27 display control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】MPEG規格の符号化ビデオストリームを
並列32ビット構成の符号化ビデオストリームにアライ
ンした場合、スタートコードがワードアラインされてい
るように、必要に応じて、前記MPEG規格の符号化ビ
デオストリームにダミーデータを挿入する前処理回路
と、 前記前処理回路から出力される符号化ビデオストリーム
を並列32ビット構成の符号化ビデオストリームにアラ
インする32ビットアライン回路とを備えていることを
特徴とするアライン装置。
When an encoded video stream of the MPEG standard is aligned with an encoded video stream of a parallel 32-bit configuration, the encoded video stream of the MPEG standard is processed as necessary so that the start code is word-aligned. A pre-processing circuit that inserts dummy data into the stream; and a 32-bit alignment circuit that aligns the encoded video stream output from the pre-processing circuit with a parallel 32-bit encoded video stream. Alignment equipment.
JP22894799A 1999-08-13 1999-08-13 Alignment device Withdrawn JP2001054109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22894799A JP2001054109A (en) 1999-08-13 1999-08-13 Alignment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22894799A JP2001054109A (en) 1999-08-13 1999-08-13 Alignment device

Publications (1)

Publication Number Publication Date
JP2001054109A true JP2001054109A (en) 2001-02-23

Family

ID=16884358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22894799A Withdrawn JP2001054109A (en) 1999-08-13 1999-08-13 Alignment device

Country Status (1)

Country Link
JP (1) JP2001054109A (en)

Similar Documents

Publication Publication Date Title
KR100234265B1 (en) Caption data processing circuit and method therefor
KR0152916B1 (en) Data synchronization apparatus and method thereof
TWI310137B (en) Methods and systems for preventing start code emulation at locations that include non-byte aligned and/or bit-shifted positions
US6389171B1 (en) Method and apparatus for a digital video cassette (DVC) decode system
KR100748485B1 (en) A variable length codeword decoder and a variable length codeword decoding method
JPH11136225A (en) Method and system for detecting start code in bit stream
KR950017981A (en) Method and apparatus for parallel encoding and decoding of data
KR960036641A (en) High speed decoding device for decoding low speed video bit stream
US5940016A (en) Syntax parser for a MPEG2 video decoder
KR20070046761A (en) Stream data processor
US8867900B2 (en) Emulation prevention byte removers for video decoder
US20070159653A1 (en) Method for running state machines
JP2001054109A (en) Alignment device
KR100296684B1 (en) Decoding method and decoder for decoding audio / video compression code data
JP3450553B2 (en) Variable length code decoding device
US6496602B2 (en) Sorting device of variable-length code
KR100297992B1 (en) Moving picture decoding method and apparatus, and moving picture reproducing apparatus
KR0159564B1 (en) Demultiplexer for stream of the mpeg2
KR0122326B1 (en) Bit stream decoder of video
JP2827945B2 (en) Reverse playback device for video decoding
WO2005038643A1 (en) A forming method of data stream which can be random accessed and corresponding decoding method
JPH11136681A (en) Device and method for dynamic picture decoding
KR100250982B1 (en) Mpeg-2 system multiplexer
KR20020004689A (en) Apparatus and method for controlling time stamp generation in MPEG multiple
JP3088785B2 (en) Variable length code decoding device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20061107