JP2002099407A - Start-code retrieval circuit - Google Patents

Start-code retrieval circuit

Info

Publication number
JP2002099407A
JP2002099407A JP2000290289A JP2000290289A JP2002099407A JP 2002099407 A JP2002099407 A JP 2002099407A JP 2000290289 A JP2000290289 A JP 2000290289A JP 2000290289 A JP2000290289 A JP 2000290289A JP 2002099407 A JP2002099407 A JP 2002099407A
Authority
JP
Japan
Prior art keywords
bit stream
start code
shift amount
circuit
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000290289A
Other languages
Japanese (ja)
Other versions
JP3737352B2 (en
Inventor
Akihiro Ogami
晃弘 大上
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2000290289A priority Critical patent/JP3737352B2/en
Publication of JP2002099407A publication Critical patent/JP2002099407A/en
Application granted granted Critical
Publication of JP3737352B2 publication Critical patent/JP3737352B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten detecting time for detecting a start-code by retrieving a bit stream. SOLUTION: In accordance with the results of comparison between shift output of a shifter circuit S1 shifting the bit stream and comparison information of a shifting-amount output table T3, the start-code retrieval circuit is provided so that a shifting amount of the shifter circuit S1 is given and the start-code is detected in retrieving the bit stream.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ビットストリー
ムを検索してビットストリームに含まれるスタートコー
ドを検出するスタートコード検索回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a start code search circuit for searching a bit stream and detecting a start code included in the bit stream.

【0002】[0002]

【従来の技術】例えば、情報の圧縮規格の一つであるM
PEGに準拠した圧縮画像データ(以下、ビットストリ
ームと呼ぶ)をデコードするデコード装置としては、例
えば図5に示すようなものがある。図5において、デコ
ード装置は、可変長符号デコーダ回路B1、RLD回路
B2、逆量子化回路B3、逆DCT回路B4、動き補償
・フレーム予測回路B5ならびにフレームメモリM1を
備えて構成されている。
2. Description of the Related Art For example, M which is one of information compression standards
As a decoding device for decoding compressed image data (hereinafter, referred to as a bit stream) based on PEG, for example, there is a decoding device as shown in FIG. In FIG. 5, the decoding device includes a variable length code decoder circuit B1, an RLD circuit B2, an inverse quantization circuit B3, an inverse DCT circuit B4, a motion compensation / frame prediction circuit B5, and a frame memory M1.

【0003】このようなデコード装置において、ビット
ストリームは例えば外部、例えば衛星電波受信機やDV
Dなどから入力される。入力されたビットストリームか
ら、ビットストリーム内の目印であるスタートコードが
可変長符号デコード回路B1で検索される。検索におい
て、順次ビットストリームから画像のDCT係数のラン
レベル情報や、動きベクトル及びその他のヘッダ情報が
復号される。復号されたDCT係数のランレベル情報は
RLD回路B2でDCT係数へ変換され、更に逆量子化
回路B3で量子化特性と量子化マトリクスによって決定
される値で逆量子化される。そして、逆DCT回路B4
で逆離散コサイン変換され、復号画像として動き補償・
フレーム予測回路B5に入力される。動き補償・フレー
ム予測回路B5では、Iピクチャの場合は復号画像を復
号信号として出力する。P、Bピクチャの場合は、各画
像タイプに従って適時フレームメモリM1に格納された
画像情報から動きベクトルを用いて予測画像を生成し、
復号画像と予測画像を足し合わせたものを復号信号とし
て出力する。
In such a decoding device, a bit stream is transmitted to, for example, an external device such as a satellite radio receiver or a DV.
D or the like. From the input bit stream, a variable length code decoding circuit B1 searches for a start code as a mark in the bit stream. In the search, run level information of a DCT coefficient of an image, a motion vector, and other header information are sequentially decoded from a bit stream. The decoded run level information of the DCT coefficient is converted into a DCT coefficient by the RLD circuit B2, and further inversely quantized by the inverse quantization circuit B3 with a value determined by the quantization characteristic and the quantization matrix. And the inverse DCT circuit B4
Inverse discrete cosine transform by
It is input to the frame prediction circuit B5. In the case of an I picture, the motion compensation / frame prediction circuit B5 outputs a decoded image as a decoded signal. In the case of a P or B picture, a predicted image is generated using a motion vector from the image information stored in the frame memory M1 as appropriate according to each image type,
The sum of the decoded image and the predicted image is output as a decoded signal.

【0004】図6は、従来のスタートコード検索機能付
可変長符号デコード回路の構成を示す図である。図6に
おいて、スタートコード検索機能付可変長符号デコード
回路は、レジスタR1〜R5、加算器A1、シフタ回路
S1、ビットストリームからDCT係数のランレベル形
式等に変換する変換テーブルT1、ビットストリームの
先頭にある符号語から符号長を出力する符号長出力テー
ブルT2、ならびにスタートコードを検出する判定回路
C1を備えて構成されている。なお、MPEGではスタ
ートコードは32ビット長であり、最上位ビットから2
3ビット目までが“0”で、24ビット目が“1”とい
う特徴を有している。また、スタートコードは、ビット
ストリーム内でバイトアラインされているものとする。
FIG. 6 is a diagram showing a configuration of a conventional variable length code decoding circuit with a start code search function. In FIG. 6, a variable-length code decoding circuit with a start code search function includes registers R1 to R5, an adder A1, a shifter circuit S1, a conversion table T1 for converting a bit stream into a run-level format of DCT coefficients, and the like. Is provided with a code length output table T2 for outputting a code length from a code word in the above, and a determination circuit C1 for detecting a start code. Note that in MPEG, the start code is 32 bits long, and 2 bits from the most significant bit.
The third bit is characterized by "0" and the 24th bit is "1". It is assumed that the start code is byte-aligned in the bit stream.

【0005】図6において、FIFOに構成されたレジ
スタR2、R3、R4にビットストリームが先頭から順
に格納される。レジスタR2〜R4に格納されたビット
ストリームの先頭ビット位置をレジスタR1に保持す
る。この状態で1サイクル分クロックを進めると、レジ
スタR2〜R4から出力されたビットストリームからシ
フタ回路S1によって頭出しが行われ、レジスタR5に
格納される。これを初期状態とする。
In FIG. 6, a bit stream is stored in a register R2, R3, R4 in the FIFO in order from the head. The first bit position of the bit stream stored in the registers R2 to R4 is held in the register R1. In this state, when the clock is advanced by one cycle, the bit stream output from the registers R2 to R4 is searched by the shifter circuit S1 and stored in the register R5. This is an initial state.

【0006】次に、判定回路C1をレジスタR5の値で
参照することにより、頭出しされてレジスタR5に格納
されたデータがスタートコードか否かが判定される。ス
タートコードであると判定されるまで、8ビット分ビッ
トストリームを先頭から切り捨てる。すなわち、以下の
処理を行う。
Next, by referring to the determination circuit C1 with the value of the register R5, it is determined whether or not the cueed data stored in the register R5 is a start code. Until the start code is determined, the bit stream for 8 bits is truncated from the beginning. That is, the following processing is performed.

【0007】1.レジスタR1の値と“8”を加算器A
1で加えた値(これをnとする)が、新たなビットスト
リーム先頭の位置となる。この値nの下位5ビットを、
レジスタR1に格納する。
[0007] 1. Adder A adds the value of register R1 and "8"
The value added by 1 (this is referred to as n) becomes the position of the head of a new bit stream. The lower 5 bits of this value n are
It is stored in the register R1.

【0008】2.FIFO(レジスタR2、R3、R
4)からの出力を、シフタ回路S1を用いてnビットシ
フトさせ、頭出ししたビットストリームをレジスタR5
に格納する。
[0008] 2. FIFO (registers R2, R3, R
The output from 4) is shifted by n bits using the shifter circuit S1, and the cueed bit stream is stored in a register R5.
To be stored.

【0009】3.nが32以上の値であった場合は、F
IFOを32ビット分更新する。
3. If n is a value of 32 or more, F
Update the IFO by 32 bits.

【0010】このような検索処理を行うことにより、与
えられたビットストリームからスタートコードが検出さ
れ、検出されたスタートコードがレジスタR5に格納さ
れる。
By performing such a search process, a start code is detected from a given bit stream, and the detected start code is stored in the register R5.

【0011】[0011]

【発明が解決しようとする課題】以上説明したように、
ビットストリームからスタートコードを検索する従来の
検索回路においては、ビットストリームから32ビット
のスタートコードを検出する場合には、一連のビットス
トリームの先頭から1サイクル当たり8ビット(=スタ
ートコードのバイト間隔)ずつ検索を進めていた。この
ため、ビットストリームからスタートコードを検出する
ためには、多大な検索時間が必要になるといった不具合
を招いていた。
As described above,
In a conventional search circuit that searches for a start code from a bit stream, when a 32-bit start code is detected from the bit stream, 8 bits per cycle from the head of a series of bit streams (= byte interval of the start code) Search was progressing one by one. For this reason, in order to detect a start code from a bit stream, a problem that a long search time is required is caused.

【0012】そこで、この発明は、上記に鑑みてなされ
たものであり、その目的とするところは、ビットストリ
ームを検索してスタートコードを検出する検出時間を短
縮したスタートコード検索回路を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above, and it is an object of the present invention to provide a start code search circuit in which a bit stream is searched for a start code to reduce a detection time. It is in.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するため
に、課題を解決するための第1の手段は、与えられたシ
フト量にしたがって入力された圧縮データ(ビットスト
リーム)をシフトし、シフトしたビットストリームから
スタートコードと同じビット数の単位ビットストリーム
を出力するシフタ回路と、前記シフタ回路から出力され
た単位ビットストリームがスタートコードであるか否か
を判定する判定回路とを具備し、前記シフタ回路により
一連のビットストリームをシフトしながら順次検索し
て、一連のビットストリームの中からスタートコードを
検出するスタートコード検索回路において、前記シフタ
回路から出力された単位ビットストリームを受けて、単
位ビットストリームと、スタートコードのビット配列に
応じて予め用意された複数の比較情報とを比較し、比較
結果に応じて前記シフタ回路のシフト量を与えるシフト
量出力テーブルを具備したことを特徴とする。
In order to achieve the above object, a first means for solving the problem is to shift input compressed data (bit stream) according to a given shift amount, and A shifter circuit that outputs a unit bit stream having the same number of bits as the start code from the bit stream obtained, and a determination circuit that determines whether the unit bit stream output from the shifter circuit is a start code, A start code search circuit for sequentially searching while shifting a series of bit streams by a shifter circuit and detecting a start code from the series of bit streams receives a unit bit stream output from the shifter circuit, It is prepared in advance according to the stream and the bit array of the start code. Comparing the plurality of comparison information, characterized by comprising the shift amount output table giving the shift amount of the shifter circuit according to the comparison result.

【0014】第2の手段は、前記第1の手段において、
前記シフト量出力テーブルは、比較情報(ビットストリ
ーム)と、該比較情報に対応するシフト量(切り捨て
量)との関係が、
[0014] The second means is the first means,
The shift amount output table indicates that the relationship between the comparison information (bit stream) and the shift amount (cutoff amount) corresponding to the comparison information is as follows:

【0015】[0015]

【表3】 であることを特徴とする。[Table 3] It is characterized by being.

【0016】第3の手段は、前記シフト量出力テーブル
は、比較情報(ビットストリーム)と、該比較情報に対
応するシフト量(切り捨て量)との関係が、
A third means is that, in the shift amount output table, the relationship between the comparison information (bit stream) and the shift amount (cutoff amount) corresponding to the comparison information is as follows.

【0017】[0017]

【表4】 であることを特徴とする。[Table 4] It is characterized by being.

【0018】[0018]

【発明の実施の形態】以下、図面を用いてこの発明の実
施形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】図1はこの発明の一実施形態に係るスター
トコード検索回路の構成を示す図である。図1におい
て、この実施形態のスタートコード検索回路は、図6に
示す構成に加えて、シフト量出力テーブルT3を備えて
構成され、図6に示す回路と同様にビットストリームか
ら可変長符号をデコードする機能(この発明の特徴とな
るものではない)も備えており、図6に示すと同様の変
換テーブルT1ならびに符号長出力テーブルT2は、専
らビットストリームから可変長符号をデコードする際に
使用される構成要素である。また、レジスタR1〜R
5、加算器A1、シフタ回路S1は、ビットストリーム
からスタートコードを検出する際に用いられるととも
に、ビットストリームから可変長符号をデコードする際
にも使用されるものである。なお、この実施形態では、
スタートコードは、従来と同様なビット構成とし、ビッ
トストリーム内でバイトアラインされているものとす
る。
FIG. 1 is a diagram showing a configuration of a start code search circuit according to one embodiment of the present invention. In FIG. 1, the start code search circuit of this embodiment includes a shift amount output table T3 in addition to the configuration shown in FIG. 6, and decodes a variable length code from a bit stream in the same manner as the circuit shown in FIG. (Not a feature of the present invention), the conversion table T1 and the code length output table T2 similar to those shown in FIG. 6 are exclusively used when decoding a variable length code from a bit stream. Components. Also, the registers R1 to R
5. The adder A1 and the shifter circuit S1 are used when detecting a start code from a bit stream and also when decoding a variable length code from a bit stream. In this embodiment,
The start code has the same bit configuration as in the related art, and is assumed to be byte-aligned in the bit stream.

【0020】シフト量出力テーブルT3は、レジスタR
5に格納された32ビットのビットストリームと、図2
に示す32ビットの4つの比較情報とを比較し、比較結
果に応じて切り捨て量(シフト量)mを出力する。32
ビットの比較情報は、図2に示すように、
The shift amount output table T3 includes a register R
5 and the 32-bit bit stream stored in FIG.
Is compared with four pieces of comparison information of 32 bits shown in (1), and a truncation amount (shift amount) m is output according to the comparison result. 32
The bit comparison information is, as shown in FIG.

【表5】 (1) 00000000_00000000_00000001_XXXXXXXX (2) XXXXXXXX_00000000_00000000_00000001 (3) XXXXXXXX_XXXXXXXX_00000000_00000000 (4) XXXXXXXX_XXXXXXXX_XXXXXXXX_00000000 となる。レジスタR5に格納された32ビットのビット
ストリームと、上記(1)に示す比較情報との比較にお
いて両者が一致した場合には、レジスタR5に格納され
たビットストリームは、スタートコードであり、判定回
路C1によりスタートコードであると検出される。した
がって、切り捨ては行われず、切り捨て量mとしては
“0”となる。次に、レジスタR5に格納された32ビ
ットのビットストリームと、上記(2)に示す比較情報
との比較において両者が一致した場合には、シフト量出
力テーブルT3は、切り捨て量mとして“8”を出力す
る。レジスタR5に格納された32ビットのビットスト
リームと、上記(3)に示す比較情報との比較において
両者が一致した場合には、シフト量出力テーブルT3
は、切り捨て量mとして“16”を出力する。レジスタ
R5に格納された32ビットのビットストリームと、上
記(4)に示す比較情報との比較において両者が一致し
た場合には、シフト量出力テーブルT3は、切り捨て量
mとして“24”を出力する。レジスタR5に格納され
た32ビットのビットストリームが、シフト量出力テー
ブルのいずれの値とも一致(マッチ)しなかった場合に
は、シフト量出力テーブルT3は、切り捨て量mとして
“32”を出力する。このようなシフト量出力テーブル
T3は、例えば論理ゲートやメモリのRAM、ROM等
により構成される。
[Table 5] (1) 00000000_00000000_00000001_XXXXXXXX (2) XXXXXXXX_00000000_00000000_00000001 (3) XXXXXXXX_XXXXXXXX_00000000_00000000 (4) XXXXXXXX_XXXXXXXX_XXXXXXXX_00000000 When the 32-bit bit stream stored in the register R5 matches the comparison information shown in the above (1), if both match, the bit stream stored in the register R5 is a start code and the determination circuit The start code is detected by C1. Therefore, no truncation is performed, and the truncation amount m is “0”. Next, in the comparison between the 32-bit bit stream stored in the register R5 and the comparison information shown in the above (2), if both match, the shift amount output table T3 sets “8” as the truncation amount m. Is output. In the comparison between the 32-bit bit stream stored in the register R5 and the comparison information shown in the above (3), if both match, the shift amount output table T3
Outputs “16” as the truncation amount m. In the comparison between the 32-bit bit stream stored in the register R5 and the comparison information shown in the above (4), if both match, the shift amount output table T3 outputs “24” as the truncation amount m. . If the 32-bit bit stream stored in the register R5 does not match any of the values in the shift amount output table, the shift amount output table T3 outputs “32” as the truncation amount m. . Such a shift amount output table T3 is composed of, for example, a logic gate, a RAM of a memory, a ROM, and the like.

【0021】このような構成において、まずFIFO
(レジスタR2、R3、R4)にビットストリームが先
頭から順に格納される。FIFOに格納されたビットス
トリームの先頭ビット位置をレジスタR1に保持する。
この状態で1サイクル分クロックを進めると、FIFO
から出力されたビットストリームからシフタ回路S1に
よって32ビットのビットストリームが出力されて頭出
しが行われ、レジスタR5に格納される。これを初期状
態とする。
In such a configuration, first, the FIFO
(Registers R2, R3, R4) store bit streams in order from the top. The first bit position of the bit stream stored in the FIFO is held in the register R1.
If the clock is advanced by one cycle in this state, the FIFO
The shifter circuit S1 outputs a 32-bit bit stream from the bit stream output from, and performs cueing, and stores it in the register R5. This is an initial state.

【0022】このような初期状態において、判定回路C
1をレジスタR5の値で参照することにより、レジスタ
R5に格納された値がスタートコードであるか否かを判
定する。スタートコードと判定されるまで、mビット分
ビットストリームを先頭から順次切り捨てる。切り捨て
量mの値は、レジスタR5の値をシフト量出力テーブル
T3の図2に示す値と先頭から順次比較して、マッチあ
るいはマッチしないときのシフト量出力テーブルT3の
値となる。レジスタR5の下位24ビットの値が、「00
000000_00000000_00000001」にマッチするか否かが判定
され、マッチした場合はm=8とする。レジスタR5の
下位16ビットの値が、「00000000_00000000 」にマッ
チするか否かが判定され、マッチした場合はm=16と
する。レジスタR5の下位8ビットの値が、「0000000
0」にマッチするか否かが判定され、マッチした場合は
m=24とする。いずれでもない場合には、m=32と
する。
In such an initial state, the judgment circuit C
By referring to 1 by the value of the register R5, it is determined whether or not the value stored in the register R5 is a start code. Until the start code is determined, the bit stream for m bits is sequentially discarded from the beginning. The value of the truncation amount m is the value of the shift amount output table T3 when the value of the register R5 is sequentially compared with the value shown in FIG. When the value of the lower 24 bits of the register R5 is “00”
000000_00000000_00000001 ”is determined, and if they match, m = 8. It is determined whether or not the value of the lower 16 bits of the register R5 matches "00000000_00000000". If the value matches, m = 16. When the value of the lower 8 bits of the register R5 is “0000000”
It is determined whether or not it matches "0", and if matched, m = 24. If neither is the case, m = 32.

【0023】このようにして、切り捨て量mがシフト量
出力テーブルT3から出力されると、この切り捨て量に
基づいてFIFO(レジスタR2、R3、R4)からシ
フタ回路S1に与えられるビットストリームがシフタ回
路S1でシフトされて切り捨てが行われる。切り捨て処
理は、従来と同様に行われて、シフト量出力テーブルT
3から出力された切り捨て量mとレジスタR1に格納さ
れた値とを加算器A1で加算し、加算結果のシフト量と
してFIFO(レジスタR2、R3、R4)からシフタ
回路S1に与えられてビットストリームがシフタ回路S
1でシフトされる。
As described above, when the truncation amount m is output from the shift amount output table T3, the bit stream supplied from the FIFO (registers R2, R3, R4) to the shifter circuit S1 is based on the truncation amount. The data is shifted in S1 and truncated. The truncation process is performed in the same manner as in the related art, and the shift amount output table T
3 is added to the value stored in the register R1 by the adder A1, and the result of the addition is given to the shifter circuit S1 from the FIFO (registers R2, R3, R4) as a shift amount. Is the shifter circuit S
Shifted by one.

【0024】このような検索処理をビットストリームか
らスタートコードが検出されるまで順次行われる。した
がって、上記実施形態においては、シフト量出力テーブ
ルT3を備えることによって、1サイクル当たり最大で
32ビットずつビットストリームの検索を進めることが
可能となる。これにより、ビットストリームからスター
トコードを検出するまでの時間を従来に比べて短縮する
ことができるようになる。
Such search processing is sequentially performed until a start code is detected from the bit stream. Therefore, in the above-described embodiment, the provision of the shift amount output table T3 makes it possible to advance the search of the bit stream at a maximum of 32 bits per cycle. As a result, the time required to detect the start code from the bit stream can be reduced as compared with the related art.

【0025】図3はこの発明の他の実施形態に係るスタ
ートコード検索回路の構成を示す図である。図3におい
て、この実施形態の特徴とするところは、スタートコー
ドが、ビットストリーム内でバイトアラインされていな
いものに適用できることを特徴とし、図1に示すシフト
量出力テーブルT3に代えてシフト量出力テーブルT4
を備え、他の構成は図1と同様である。なお、図3にお
いて、図1と同符号のものは同様な構成であり、その説
明は省略する。
FIG. 3 is a diagram showing a configuration of a start code search circuit according to another embodiment of the present invention. In FIG. 3, the feature of this embodiment is that the start code can be applied to a code that is not byte-aligned in the bit stream, and the shift amount output table T3 shown in FIG. Table T4
The other configuration is the same as that of FIG. In FIG. 3, components having the same reference numerals as those in FIG. 1 have the same configuration, and a description thereof will be omitted.

【0026】シフト量出力テーブルT4は、レジスタR
5に格納された32ビットのビットストリームと、図4
に示す32ビットの比較情報とを比較し、比較結果に応
じて切り捨て量(シフト量)mを出力する。32ビット
の比較情報は、図4に示すように、「00000000_0000000
0_00000001_XXXXXXXX」〜 「XXXXXXXX_XXXXXXXX_XXXXXX
XX_XXXXXXX0 」となり、切り捨て量mは、それぞれの比
較情報に対応して図4に示すようにm=0〜31とな
り、いずれにもマッチしない場合には、m=32とな
る。
The shift amount output table T4 includes a register R
4 and the 32-bit bit stream stored in FIG.
And outputs a truncation amount (shift amount) m according to the comparison result. As shown in FIG. 4, the 32-bit comparison information is “00000000_0000000”.
0_00000001_XXXXXXXX ''-`` XXXXXXXX_XXXXXXXX_XXXXXX ''
XX_XXXXXXX0 ", and the truncation amount m is m = 0 to 31, as shown in FIG. 4, corresponding to the respective pieces of comparison information. If no match is found, m = 32.

【0027】このようなシフト量出力テーブルT4を用
い、先の実施形態と全く同様にしてシフト量出力テーブ
ルT4から出力された切り捨て量mに基づいてシフタ回
路S1でシフトを行い、ビットストリームを検索してビ
ットストリームからスタートコードを検出する。したが
って、このような実施形態においては、スタートコード
が、ビットストリーム内でバイトアラインされていない
場合であっても、先の実施形態と同様の効果を得ること
ができる。
Using such a shift amount output table T4, the shifter circuit S1 shifts based on the truncation amount m output from the shift amount output table T4 in exactly the same manner as in the previous embodiment, and searches for a bit stream. To detect the start code from the bit stream. Therefore, in such an embodiment, even when the start code is not byte-aligned in the bit stream, the same effect as in the previous embodiment can be obtained.

【0028】[0028]

【発明の効果】以上説明したように、この発明によれ
ば、ビットストリームをシフトするシフタ回路のシフト
出力とシフト量出力テーブルの比較情報との比較結果に
応じて、シフタ回路のシフト量を与えるようにしたの
で、ビットストリームを検索してスタートコードを検出
するようにしたので、スタートコードを検出する時間を
従来に比べて短縮することができる。
As described above, according to the present invention, the shift amount of the shifter circuit is given according to the comparison result between the shift output of the shifter circuit for shifting the bit stream and the comparison information of the shift amount output table. With this configuration, the start code is detected by searching the bit stream, so that the time required to detect the start code can be reduced as compared with the related art.

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

【図1】この発明の一実施形態に係るスタートコード検
索回路の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a start code search circuit according to one embodiment of the present invention.

【図2】図1に示すシフト量出力テーブルT3の内容を
示す図である。
FIG. 2 is a diagram showing the contents of a shift amount output table T3 shown in FIG. 1;

【図3】この発明の他の実施形態に係るスタートコード
検索回路の構成を示す図である。
FIG. 3 is a diagram showing a configuration of a start code search circuit according to another embodiment of the present invention.

【図4】図3に示すシフト量出力テーブルT4の内容を
示す図である。
4 is a diagram showing the contents of a shift amount output table T4 shown in FIG.

【図5】圧縮画像データをデコードする従来の装置の構
成を示す図である。
FIG. 5 is a diagram showing a configuration of a conventional device for decoding compressed image data.

【図6】スタートコード検索機能を有する従来の可変長
符号デコード回路の構成を示す図である。
FIG. 6 is a diagram showing a configuration of a conventional variable-length code decoding circuit having a start code search function.

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

R1,R2,R3,R4,R5 レジスタ A1 加算器 S1 シフタ回路 C1 判定回路 T1 変換テーブル T2 符号長出力テーブル T3,T4 シフト量出力テーブル R1, R2, R3, R4, R5 Register A1 Adder S1 Shifter circuit C1 Judgment circuit T1 Conversion table T2 Code length output table T3, T4 Shift amount output table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 与えられたシフト量にしたがって入力さ
れた圧縮データ(ビットストリーム)をシフトし、シフ
トしたビットストリームからスタートコードと同じビッ
ト数の単位ビットストリームを出力するシフタ回路と、 前記シフタ回路から出力された単位ビットストリームが
スタートコードであるか否かを判定する判定回路とを具
備し、 前記シフタ回路により一連のビットストリームをシフト
しながら順次検索して、一連のビットストリームの中か
らスタートコードを検出するスタートコード検索回路に
おいて、 前記シフタ回路から出力された単位ビットストリームを
受けて、単位ビットストリームと、スタートコードのビ
ット配列に応じて予め用意された複数の比較情報とを比
較し、比較結果に応じて前記シフタ回路のシフト量を与
えるシフト量出力テーブルを具備したことを特徴とする
スタートコード検索回路。
1. A shifter circuit for shifting input compressed data (bit stream) according to a given shift amount, and outputting a unit bit stream having the same number of bits as a start code from the shifted bit stream; A determination circuit for determining whether or not the unit bit stream output from is a start code. The shifter circuit sequentially searches a series of bit streams while shifting, and starts from a series of bit streams. In a start code search circuit for detecting a code, receiving the unit bit stream output from the shifter circuit, and comparing the unit bit stream with a plurality of pieces of comparison information prepared in advance according to the bit arrangement of the start code, The shift amount of the shifter circuit is given according to the comparison result. A start code search circuit comprising a shift amount output table.
【請求項2】 前記シフト量出力テーブルは、比較情報
(ビットストリーム)と、該比較情報に対応するシフト
量(切り捨て量)との関係が、 【表1】 であることを特徴とする請求項1記載のスタートコード
検索回路。
2. The relationship between the comparison information (bit stream) and the shift amount (truncated amount) corresponding to the comparison information in the shift amount output table is as follows. 2. The start code search circuit according to claim 1, wherein:
【請求項3】 前記シフト量出力テーブルは、比較情報
(ビットストリーム)と、該比較情報に対応するシフト
量(切り捨て量)との関係が、 【表2】 であることを特徴とする請求項1記載のスタートコード
検索回路。
3. The shift amount output table shows a relationship between comparison information (bit stream) and a shift amount (cutoff amount) corresponding to the comparison information. 2. The start code search circuit according to claim 1, wherein:
JP2000290289A 2000-09-25 2000-09-25 Start code search circuit Expired - Fee Related JP3737352B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000290289A JP3737352B2 (en) 2000-09-25 2000-09-25 Start code search circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000290289A JP3737352B2 (en) 2000-09-25 2000-09-25 Start code search circuit

Publications (2)

Publication Number Publication Date
JP2002099407A true JP2002099407A (en) 2002-04-05
JP3737352B2 JP3737352B2 (en) 2006-01-18

Family

ID=18773536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000290289A Expired - Fee Related JP3737352B2 (en) 2000-09-25 2000-09-25 Start code search circuit

Country Status (1)

Country Link
JP (1) JP3737352B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002080566A1 (en) * 2001-03-29 2002-10-10 Matsushita Electric Industrial Co., Ltd. Data processing apparatus, data processing method, data reproduction apparatus, data reproduction method, data transmission apparatus, data transmission method, and data storage medium
WO2004084062A1 (en) * 2003-02-21 2004-09-30 Sony Corporation Pattern detection device
US7505485B2 (en) 2002-01-22 2009-03-17 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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002080566A1 (en) * 2001-03-29 2002-10-10 Matsushita Electric Industrial Co., Ltd. Data processing apparatus, data processing method, data reproduction apparatus, data reproduction method, data transmission apparatus, data transmission method, and data storage medium
US7505485B2 (en) 2002-01-22 2009-03-17 Microsoft Corporation Methods and systems for start code emulation prevention and data stuffing
WO2004084062A1 (en) * 2003-02-21 2004-09-30 Sony Corporation Pattern detection device
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
JP3737352B2 (en) 2006-01-18

Similar Documents

Publication Publication Date Title
US7132963B2 (en) Methods and apparatus for processing variable length coded data
US7289047B2 (en) Decoding variable length codes while using optimal resources
US7804903B2 (en) Hardware-based CABAC decoder
TW392391B (en) Variable length code detection in a signal processing system
JP4139330B2 (en) Improved variable length decoder
KR100748485B1 (en) A variable length codeword decoder and a variable length codeword decoding method
US6389171B1 (en) Method and apparatus for a digital video cassette (DVC) decode system
US6285789B1 (en) Variable length code decoder for MPEG
US6809665B2 (en) Apparatus and method for decoding variable length code
US6987811B2 (en) Image processor and image processing method
JP3737352B2 (en) Start code search circuit
US20050174270A1 (en) Programmable variable length decoder including interface of cpu processor
US7142603B2 (en) Method and system for predictive table look-up code length of variable length code
US8228214B2 (en) Variable-length code decoding apparatus and method
KR100509009B1 (en) A fifo write/lifo read trace buffer with software and hardware loop compression
JP3417684B2 (en) Image processing device
JPH11512271A (en) Two-word bit stream segmented high performance variable length decoder and related decoding method
US7072400B2 (en) Inverse zigzag scanning of a matrix of video data values and manipulation
KR0122326B1 (en) Bit stream decoder of video
JP2003529252A (en) Method and apparatus for concatenating bits of odd length words
KR0125125B1 (en) High-speed apparatus for decoding variable length code
JP2000216743A (en) Method and device for detecting special code, and decoder
KR0125126B1 (en) High-speed apparatus for decoding variable length code
JP2000209100A (en) Decoder and decoding method
JP2007104155A (en) Image decoding apparatus

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050607

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050803

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: 20051018

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051026

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

Free format text: PAYMENT UNTIL: 20081104

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20091104

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101104

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101104

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111104

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121104

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees