JP2003229828A - Method for inserting synchronous pattern and method for removing synchronous pattern - Google Patents

Method for inserting synchronous pattern and method for removing synchronous pattern

Info

Publication number
JP2003229828A
JP2003229828A JP2002026188A JP2002026188A JP2003229828A JP 2003229828 A JP2003229828 A JP 2003229828A JP 2002026188 A JP2002026188 A JP 2002026188A JP 2002026188 A JP2002026188 A JP 2002026188A JP 2003229828 A JP2003229828 A JP 2003229828A
Authority
JP
Japan
Prior art keywords
pattern
byte
sync pattern
bit string
synchronization pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002026188A
Other languages
Japanese (ja)
Inventor
Makoto Hagai
誠 羽飼
Shinya Sumino
眞也 角野
Yoshinori Matsui
義徳 松井
Toshiyuki Kondo
敏志 近藤
Seishi Abe
清史 安倍
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002026188A priority Critical patent/JP2003229828A/en
Publication of JP2003229828A publication Critical patent/JP2003229828A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To realize synchronous pattern removal processing for performing conversion so as not to be a synchronous pattern by inserting delimiter data into a bit string coinciding with a synchronous pattern in an encoded signal with a small amount of processing. <P>SOLUTION: If a bit string coinciding with a synchronous pattern is detected at any place other than a place where a synchronous pattern is originally located in the encoded signal, a prescribed bit string whose insertion result does not become a synchronous pattern is inserted before the last bit in the bit string coinciding with the synchronous pattern and also at the last byte boundary in the bit string. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、符号化信号中の同
期パターンを除去・挿入する同期パターン挿入方法およ
び同期パターン除去方法、並びにそれをソフトウェアで
実施するためのプログラムが記録された記録媒体に係る
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronization pattern insertion method and a synchronization pattern removal method for removing / inserting a synchronization pattern in a coded signal, and a recording medium having a program for implementing the same implemented by software. It is related.

【0002】[0002]

【従来の技術】近年、マルチメディアアプリケーション
の発展に伴い、画像・音声・テキストなど、あらゆるメ
ディアの情報を統一的に扱うことが一般的になってき
た。この時、全てのメディアをディジタル化することに
より統一的にメディアを扱うことが可能になる。しかし
ながら、ディジタル化された画像は膨大なデータ量を持
つため、蓄積・伝送のためには、画像の情報圧縮技術が
不可欠である。一方で、圧縮した画像データを相互運用
するためには、圧縮技術の標準化も重要である。画像圧
縮技術の標準規格としては、ITU(国際電気通信連合
電気通信標準化部門)のH.261、H.263、ISO(国際
標準化機構)のMPEG(Moving Picture Experts Gro
up)-1、MPEG-2、MPEG-4などがある。
2. Description of the Related Art In recent years, with the development of multimedia applications, it has become common to uniformly handle information of all media such as images, voices and texts. At this time, it becomes possible to handle media in a unified manner by digitizing all media. However, since a digitized image has a huge amount of data, an image information compression technique is indispensable for storage and transmission. On the other hand, standardization of compression technology is also important in order to interoperate compressed image data. Image compression technology standards include ITU (International Telecommunication Union Telecommunication Standardization Sector) H.261, H.263, and ISO (International Organization for Standardization) MPEG (Moving Picture Experts Gro).
up) -1, MPEG-2, MPEG-4 and so on.

【0003】MPEGなどの画像符号化方式では、符号
化信号のフレームやスライス等の先頭にスタートコード
と呼ばれる特定のビット列を付加する。スタートコード
は画像復号装置が符号化信号のどの位置から復号を開始
可能かを示す有用な情報であり、再生開始時や符号化信
号に回復できない誤りが発生した際に復号の復帰に用い
られる。ここでは、スタートコードのように復号開始・
復帰の同期のために使用される特定のビット列を同期パ
ターンと呼ぶ。ところで、同期を正しく行うためには、
同期パターンのビット列が符号化信号中で同期パターン
が本来あるべき場所以外に出現しないことが重要であ
る。MPEGでは同期パターンがフレーム・スライスの
先頭など所定の位置以外に現れないように符号化に使用
する可変長符号化コードが設計されている。一方、算術
符号化を用いる画像符号化方式の場合には、算術符号化
の結果、同期パターンと同じビット列が現れる場合には
区切りとなるビットを符号化信号に挿入して同期パター
ンと同じビット列になるのを防止する場合が多い。例え
ば、H.263では、0値ビットが15個以上連続するスタ
ートコードを定義しており、算術符号化を使用する場合
には、0値ビットが連続して14個出現した時には、直
後に1値ビットを挿入し0値ビットが連続して15個以
上現れないようにしている。
In an image coding system such as MPEG, a specific bit string called a start code is added to the beginning of a frame or slice of a coded signal. The start code is useful information indicating from which position of the coded signal the image decoding apparatus can start decoding, and is used to restore decoding at the start of reproduction or when an unrecoverable error occurs in the coded signal. Here, start decoding like the start code
A specific bit string used for synchronization of return is called a synchronization pattern. By the way, in order to synchronize correctly,
It is important that the bit string of the sync pattern does not appear in the encoded signal except where the sync pattern should be. In MPEG, a variable length coding code used for coding is designed so that a synchronization pattern does not appear at a position other than a predetermined position such as the beginning of a frame / slice. On the other hand, in the case of an image coding method using arithmetic coding, if the result of arithmetic coding is that the same bit string as the synchronization pattern appears, delimiter bits are inserted into the coded signal to form the same bit string as the synchronization pattern. In many cases, it is prevented. For example, in H.263, a start code in which 15 or more 0-valued bits are consecutive is defined. When arithmetic coding is used, when 14 consecutive 0-valued bits appear, the start code immediately follows 1 Value bits are inserted so that 15 or more 0 value bits do not appear consecutively.

【0004】明細書では、同期パターンが符号化信号中
に現れないように符号化信号を変換する装置を同期パタ
ーン除去装置と呼ぶ。逆に同期パターンが現れないよう
に変換された符号化信号を元に戻す装置を同期パターン
挿入装置と呼ぶ。
In the specification, a device for converting a coded signal so that the sync pattern does not appear in the coded signal is called a sync pattern removing device. On the contrary, a device for returning the encoded signal converted so that the sync pattern does not appear is called a sync pattern insertion device.

【0005】図14は、従来の同期パターン除去装置2
00aの構成を示すブロック図である。まず、同期パタ
ーン除去装置は、外部から画像信号Imgを入力し、画像
符号化手段ImgEncで符号化し、符号化信号BitStrm21を
生成する。ゼロ値ビットカウント手段ZeroBitCは、符号
化信号BitStrm21中の連続する0値ビット数をカウント
し、規定の数を超えた場合には信号FindZeroBitsで区切
りビット挿入指示手段BitIに通知する。区切りビット挿
入指示手段BitIは、0値ビット数が規定の数を超えた場
合に、スイッチSW01を1側に切り替え、区切りビットと
して1値ビットを挿入する。多重化手段Mux01は音声な
どの他のデータを伝送フォーマットに多重化して、符号
化信号BitStrm02として出力する。
FIG. 14 shows a conventional sync pattern removing device 2.
It is a block diagram which shows the structure of 00a. First, the synchronization pattern removing device receives an image signal Img from the outside and encodes it by the image encoding means ImgEnc to generate an encoded signal BitStrm21. The zero-value bit counting means ZeroBitC counts the number of consecutive zero-valued bits in the encoded signal BitStrm21, and when the number exceeds the prescribed number, it notifies the delimiter bit insertion instructing means BitI by the signal FindZeroBits. The delimiter bit insertion instruction means BitI switches the switch SW01 to the 1 side when the number of 0-valued bits exceeds a prescribed number, and inserts a 1-valued bit as a delimiter bit. The multiplexing means Mux01 multiplexes other data such as voice into a transmission format and outputs it as a coded signal BitStrm02.

【0006】図15は、従来の同期パターン挿入装置2
00bの構成を示すブロック図である。該装置は、図1
4の同期パターン除去装置が出力する符号化信号BitStr
m02を入力し復号するものである。分離手段Demux01は、
符号化信号BitStrm02を分離し、区切りビットを含む符
号化信号BitStrm03を出力する。ゼロ値ビットカウント
手段ZeroBitCは、符号化信号BitStrm21中の連続する0
値ビット数をカウントし、規定の数(同期パターン除去
装置の区切りビット挿入条件の連続0値ビットの数と同
じ値)を超えた場合には、これを信号FindZeroBitsで区
切りビット除去指示手段BitIに通知する。区切りビット
除去指示手段BitIは、区切りビットが含まれる箇所で、
信号RmvBitによりスイッチSW02を1側に切り替え、区切
りビットを除去する。画像復号手段ImgDecは、区切りビ
ットを除去した符号化信号BitStrm04を復号し、画像信
号DecImgとして出力する。
FIG. 15 shows a conventional sync pattern insertion device 2.
It is a block diagram which shows the structure of 00b. The device is shown in FIG.
Coded signal BitStr output from the synchronization pattern removal device of No. 4
It inputs m02 and decrypts it. The separation means Demux01
The encoded signal BitStrm02 is separated and the encoded signal BitStrm03 including the delimiter bit is output. Zero value bit counting means ZeroBitC is a sequence of zeros in the encoded signal BitStrm21.
When the number of value bits is counted and exceeds a prescribed number (the same value as the number of consecutive 0 value bits of the delimiter bit insertion condition of the synchronization pattern removal device), this is signaled to the delimiter bit removal instruction means BitI by the signal FindZeroBits. Notice. Delimiter bit removal instruction means BitI is a place where a delimiter bit is included,
The switch R02 is switched to the 1 side by the signal RmvBit to remove the delimiter bit. The image decoding means ImgDec decodes the encoded signal BitStrm04 from which the delimiter bits have been removed, and outputs it as an image signal DecImg.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、従来の
同期パターン除去・挿入は、ビット単位のデータ操作で
あり、ビット単位のデータ挿入・削除には、ビット処理
が伴うことになる。例えば、1ビットの区切りビットを
符号化信号から削除する場合には、区切りビットに後続
する全ての符号化信号に対しビットシフトなどのビット
単位の演算処理が必要になり、変換に要する処理量が大
きくなってしまうという問題が発生する。
However, the conventional sync pattern removal / insertion is a bit-unit data operation, and bit-unit data insertion / deletion involves bit processing. For example, when deleting a 1-bit delimiter bit from a coded signal, bit-based arithmetic processing such as bit shift is required for all coded signals that follow the delimiter bit, and the amount of processing required for conversion is reduced. There is a problem that it becomes large.

【0008】本発明では、これらの課題を解決するた
め、バイト単位の区切り信号を導入し、符号化信号中か
ら同期パターンと同一のビット列を容易に削除可能な方
法である同期パターン挿入方法および同期パターン除去
方法を提供することを目的としている。
In order to solve these problems, the present invention introduces a byte-unit delimiter signal so as to easily delete the same bit string as the sync pattern from the coded signal. It is intended to provide a pattern removal method.

【0009】[0009]

【課題を解決するための手段】第1の発明(請求項1)
は、符号化信号中で本来同期パターンが存在する場所以
外で同期パターンと一致するビット列を検出した場合
に、前記同期パターンと一致するビット列中の最後のビ
ットより前、かつ、上記ビット列中の最後のバイト境界
に、挿入結果が同期パターンとならない所定のバイト列
を挿入し、同期パターンを除去することを特徴とした同
期パターン除去方法である。
[Means for Solving the Problems] First invention (Claim 1)
When a bit string that matches the synchronization pattern is detected at a position other than the place where the synchronization pattern originally exists in the encoded signal, is before the last bit in the bit string that matches the synchronization pattern and at the end of the bit string. Is a method for removing a synchronization pattern by inserting a predetermined byte sequence whose insertion result does not become a synchronization pattern at the byte boundary of.

【0010】第2の発明(請求項2)は、符号化信号中
で本来同期パターンが存在する場所以外で同期パターン
と一致するビット列に対して所定のバイト列を挿入し同
期パターンを除去した結果の符号化信号を入力し、バイ
ト境界の位置から始まる前記所定のバイト列を含み、か
つ、前記所定のバイト列を符号化信号中から除去した結
果の位置に同期パターンと一致するビット列が存在する
場合に、前記所定のバイト列を上記符号化信号から除去
し、同期パターンを挿入することを特徴とした同期パタ
ーン挿入方法である。
A second aspect of the present invention (claim 2) is a result of removing a sync pattern by inserting a predetermined byte string into a bit string that coincides with the sync pattern at a position other than where the sync pattern originally exists in the encoded signal. The encoded signal is input, the predetermined byte sequence starting from the position of the byte boundary is included, and the bit sequence that matches the synchronization pattern is present at the position resulting from the removal of the predetermined byte sequence from the encoded signal. In this case, the synchronization pattern insertion method is characterized in that the predetermined byte string is removed from the encoded signal and a synchronization pattern is inserted.

【0011】第3の発明(請求項3)は、符号化信号中
で本来同期パターンが存在する場所以外で同期パターン
と一致するビット列を検出した場合に、前記同期パター
ンと一致するビット列中の最後のビットより前、かつ、
ビット列中の最後のバイト境界に、挿入結果が同期パタ
ーンとならない所定のバイト列を挿入して同期パターン
を除去し、前記所定のバイト列を挿入した結果の符号化
信号に対し所定の位置に同期パターンを挿入する、こと
を特徴とした同期パターン除去方法である。
According to a third aspect of the present invention (claim 3), when a bit string that matches the sync pattern is detected in a coded signal other than the place where the sync pattern originally exists, the last bit string that matches the sync pattern is detected. Before the bit, and
At the last byte boundary in the bit string, a predetermined byte string whose insertion result does not become a sync pattern is inserted to remove the sync pattern, and the predetermined byte string is inserted, and the sync signal is synchronized at a predetermined position with respect to the encoded signal. It is a method of removing a synchronization pattern, which is characterized by inserting a pattern.

【0012】第4の発明(請求項4)は、符号化信号中
で本来同期パターンが存在する場所以外で同期パターン
と一致するビット列に対して所定のバイト列を挿入して
同期パターンを除去した結果に対し所定の位置に同期パ
ターンを挿入した符号化信号を入力し、該符号化信号の
所定の位置から同期パターンを除去し、バイト境界の位
置から始まる前記所定のバイト列を含み、かつ、前記所
定のバイト列を符号化信号中から除去した結果の位置に
同期パターンと一致するビット列が存在する場合に前記
所定のバイト列を上記符号化信号から除去し、該所定の
バイト列を除去して、同期パターンを挿入した結果の符
号化信号を出力する、ことを特徴とした同期パターン挿
入方法である。
According to a fourth aspect of the present invention (claim 4), a predetermined byte string is inserted into a bit string that coincides with the sync pattern in a coded signal except where the sync pattern originally exists, and the sync pattern is removed. A coded signal with a sync pattern inserted at a predetermined position for the result is input, the sync pattern is removed from the predetermined position of the coded signal, and the predetermined byte string starting from a byte boundary position is included, and If there is a bit string that matches the synchronization pattern at the position resulting from the removal of the predetermined byte sequence from the encoded signal, the predetermined byte sequence is removed from the encoded signal and the predetermined byte sequence is removed. And outputs a coded signal as a result of inserting the synchronization pattern.

【0013】[0013]

【発明の実施の形態】以下、本発明の具体的な実施の形
態について、図面を参照しながら説明する。 (実施の形態1)図1は、本発明の実施の形態による同
期パターン除去装置101(請求項1に該当)の構成を
示すブロック図である。図14におけるブロック図と同
じ動作をするユニット、および同じ動作の信号は同じ記
号を付し、説明を省略する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Specific embodiments of the present invention will be described below with reference to the drawings. (Embodiment 1) FIG. 1 is a block diagram showing a configuration of a synchronization pattern removing apparatus 101 (corresponding to claim 1) according to an embodiment of the present invention. Units that operate in the same manner as those in the block diagram of FIG. 14 and signals that operate in the same manner are denoted by the same symbols, and description thereof is omitted.

【0014】バッファBuf1は、画像符号化手段ImgEncが
出力する符号化信号BitStrm10を、同期パターン検出の
ため一時的に保存するバッファである。同期パターン検
出手段SyncF1が符号化信号中に同期パターンと一致する
ビット列を検出した場合、同期パターン検出手段SyncF1
は、信号FindSyncにより同期パターンを検出したことを
バイト境界検出手段BAlignFに通知する。同期パターン
検出処理済みの符号化信号BitStrm11は、バッファBuf1
から符号化信号BitStrm11として出力する。同期パター
ンを検出したことが通知された場合、バイト境界検出手
段BAlignFは、符号化信号BitStrm11中で同期パターンと
一致するビット列中の最後のビットより前、かつ、ビッ
ト列中の最後のバイト境界を検出する。バイト境界検出
手段BAlignFは、バイト境界を検出した時点で、信号Ins
DeliによりスイッチSW1を1側に切り替え、区切りバイト
Deliを符号化信号BitStrm11に挿入し、BitStrm13として
出力する。区切りバイト挿入後、スイッチSW1は0側に
切り替える。同期パターン検出手段SyncF1からの通知が
ない場合には、スイッチSW1を0側にし、符号化信号Bit
Strm11をそのままBitStrm13として出力する。多重化手
段Mux1は符号化信号BitStrm13を音声などの他のデータ
とともに伝送フォーマットに多重化し符号化信号BitStr
m14として出力する。
The buffer Buf1 is a buffer for temporarily storing the coded signal BitStrm10 output by the image coding means ImgEnc for detecting a synchronization pattern. When the sync pattern detecting means SyncF1 detects a bit string that matches the sync pattern in the encoded signal, the sync pattern detecting means SyncF1
Notifies the byte boundary detection means BAlignF that the sync pattern has been detected by the signal FindSync. The encoded signal BitStrm11 that has undergone the synchronization pattern detection processing is stored in the buffer Buf1.
To output as a coded signal BitStrm11. When notified that the sync pattern has been detected, the byte boundary detection means BAlignF detects the last byte boundary in the bit string that is before the last bit in the bit string that matches the sync pattern in the encoded signal BitStrm11 and in the bit string. To do. The byte boundary detecting means BAlignF detects the signal Ins when the byte boundary is detected.
Switch SW1 to 1 side by Deli, delimiter byte
Deli is inserted into the encoded signal BitStrm11 and output as BitStrm13. After inserting the delimiter byte, the switch SW1 is switched to the 0 side. When there is no notification from the synchronization pattern detection means SyncF1, the switch SW1 is set to the 0 side and the encoded signal Bit
Strm11 is output as BitStrm13 as it is. The multiplexing means Mux1 multiplexes the coded signal BitStrm13 into a transmission format together with other data such as voice and encodes the coded signal BitStrm13.
Output as m14.

【0015】図2は、同期パターン検出と区切りバイト
挿入処理の概念図である。ここでは、同期パターンSync
は23ビットの0と1ビットの1から成るビット列とす
る。区切りバイトDeli1は1バイトで全てビット値が1と
する。同期パターン検出手段SyncF1は、符号化信号BitS
trm12に対し、同期パターンが本来存在すべき場所以外
に同期パターンに一致するビット列が存在しないか調べ
る。この同期パターンの検出は、例えば、符号化信号と
同期パターンの各ビットが一致するか調べることで行
う。図2の符号化信号BS1の場合には、SyncMatchの矩形
の位置に同期パターンSyncを検出する。このとき、同期
パターンSyncと一致するビット列の最後のビットより前
で、最もビット列の最後に近いバイト境界に区切りバイ
トDeliを挿入する。図2の符号化信号BS1の場合には、I
nsPosの位置に区切りバイトDeliを挿入する。図2の符
号化信号BS2は、符号化信号BS1に対する区切りバイトDe
li挿入した結果の符号化信号を示す。このように区切り
データのサイズをバイト単位にし、区切りデータの挿入
位置をバイト境界にすることにより、同期パターン除去
の処理をビット単位の区切りデータ挿入に比べて減らす
ことができ、処理負荷を減少することができる。また、
区切りデータが1バイトなので、1ビットの区切りデー
タ挿入に比べて挿入しなければいけないデータ量は増え
るが、通常、同期パターンには符号化信号中に現れる可
能性が少ないビット列が使用されるため、区切りデータ
が1バイトになったことによる符号化効率の低下は殆ど
無視できる程度になる。
FIG. 2 is a conceptual diagram of synchronization pattern detection and delimiter byte insertion processing. Here, the synchronization pattern Sync
Is a bit string consisting of 23-bit 0 and 1-bit 1. The delimiter byte Deli1 is 1 byte and all bit values are 1. Sync pattern detecting means SyncF1 is a coded signal BitS
For trm12, check whether there is a bit string that matches the sync pattern other than the place where the sync pattern should originally exist. The synchronization pattern is detected by, for example, checking whether or not each bit of the encoded signal and the synchronization pattern match. In the case of the coded signal BS1 of FIG. 2, the synchronization pattern Sync is detected at the rectangular position of SyncMatch. At this time, the delimiter byte Deli is inserted at the byte boundary closest to the end of the bit string before the last bit of the bit string that matches the synchronization pattern Sync. In the case of the coded signal BS1 of FIG. 2, I
Insert the delimiter byte Deli at the position of nsPos. The coded signal BS2 of FIG. 2 is a delimiter byte De for the coded signal BS1.
li shows the coded signal resulting from the insertion. In this way, the size of the delimiter data is set in bytes and the insertion position of the delimiter data is set at the byte boundary, so that the synchronization pattern removal processing can be reduced compared to the insertion of the delimiter data in bit units, and the processing load is reduced. be able to. Also,
Since the delimiter data is 1 byte, the amount of data that must be inserted is increased compared to the insertion of 1-bit delimiter data, but since a bit string that is unlikely to appear in the encoded signal is used for the synchronization pattern, The decrease in encoding efficiency due to the delimiter data being 1 byte is almost negligible.

【0016】以上説明したように、本発明の同期パター
ン除去装置により、区切りデータをバイト単位で扱うこ
とができ、ビット単位の区切りデータ挿入に比べて処理
負荷を軽減することができる。
As described above, the sync pattern removing device of the present invention can handle delimiter data in byte units, and can reduce the processing load as compared with inserting delimiter data in bit units.

【0017】なお、区切りバイトDeliとして使用する値
は、本実施の形態で示した値以外でもよいが、同期パタ
ーンと挿入された区切りバイトの組み合わせがとり得る
いずれのビット列も同期パターンのビット列とならない
値にする必要がある。
The value used as the delimiter byte Deli may be other than the value shown in the present embodiment, but any bit string that can be taken by the combination of the sync pattern and the inserted delimiter byte does not become the bit string of the sync pattern. Must be a value.

【0018】(実施の形態2)図3は、本発明の実施の
形態2による同期パターン挿入装置102(請求項2に
該当)の構成を示すブロック図である。図3において、
図15におけるブロック図と同じ動作をするユニットお
よび同じ動作の信号は同じ記号を付し、説明を省略す
る。本実施の形態の同期パターン挿入装置は、例えば、
実施の形態1で作成された符号化信号のように、符号化
信号中で本来同期パターンが存在する場所以外で同期パ
ターンと一致するビット列に対して所定のバイト列を挿
入し同期パターンを除去した結果の符号化信号の復号に
用いることができる。
(Embodiment 2) FIG. 3 is a block diagram showing the configuration of a synchronization pattern insertion device 102 (corresponding to claim 2) according to Embodiment 2 of the present invention. In FIG.
Units that perform the same operations as those in the block diagram of FIG. 15 and signals that have the same operations are denoted by the same symbols, and description thereof is omitted. The synchronization pattern insertion device of the present embodiment, for example,
Like the coded signal created in the first embodiment, a predetermined byte string is inserted into a bit string that matches the sync pattern at a position other than the position where the sync pattern originally exists in the coded signal, and the sync pattern is removed. It can be used to decode the resulting encoded signal.

【0019】分離手段Demux1は、多重化された符号化信
号BitStrm20を区切りバイトを含む符号化信号bitStrm21
に分離する。バッファBuf2は、分離手段Demux1が出力す
る符号化信号BitStrm21を、区切りバイト検出のため一
時的に保存するバッファである。区切りバイト・同期パ
ターン検出手段DeliFは、バッファBuf2中の符号化信号B
itStrm23に対して、区切りバイトを含む同期パターンの
検出を行う。区切りバイト・同期パターン検出手段Deli
Fは、区切りバイトを含む同期パターンが検出した場合
には、信号FindDeliにより、区切りバイト除去指示手段
DeliRに通知を行う。区切りバイト除去指示手段DeliR
は、同期パターンを検出したことが通知された場合に
は、信号RmvDeliによりスイッチSW2を開放し、区切りバ
イトのデータを除去する。画像復号手段ImgDecは、区切
りバイトを除去した結果の符号化信号BitStrm24を復号
し、復号画像DImgとして出力する。
The demultiplexing means Demux1 separates the coded signal BitStrm20 multiplexed into a coded signal bitStrm21 including delimiter bytes.
To separate. The buffer Buf2 is a buffer that temporarily stores the encoded signal BitStrm21 output by the separating unit Demux1 for detecting a delimiter byte. Delimiter byte / sync pattern detection means DeliF is the encoded signal B in the buffer Buf2.
For itStrm23, a sync pattern including delimiter bytes is detected. Delimiter byte / sync pattern detection means Deli
F is a delimiter byte removal instruction means by the signal FindDeli when a sync pattern including a delimiter byte is detected.
Notify DeliR. Delimiter byte removal instruction means DeliR
When it is notified that the sync pattern has been detected, the switch opens the switch SW2 by the signal RmvDeli and removes the delimiter byte data. The image decoding means ImgDec decodes the encoded signal BitStrm24 resulting from removing the delimiter byte and outputs it as a decoded image DImg.

【0020】図2を用いて、本発明の区切りバイト除去
の操作について説明する。区切りバイトを含む符号化信
号として符号化信号BS2が入力したとする。区切りバイ
トを含む同期パターンの検出は、例えば、まず、区切り
バイトを検出し、その後、区切りバイトを除いたビット
列に同期パターンが含まれるか調べることにより検出で
きる。図2の符号化信号BS2の場合、Bn+1の区切りバイ
トを除去したバイト列Bn-2,Bn-1,Bn,Bn+2に同期パター
ンが含まれるか調べることで区切りパターンを含む同期
パターンを検出することができる。符号化信号BS2から
検出された区切りバイトを除去するには、区切りバイト
を含むバイトデータBn+1を符号化信号から削除すればよ
い。
The operation of removing the delimiter byte according to the present invention will be described with reference to FIG. It is assumed that the coded signal BS2 is input as the coded signal including the delimiter byte. The detection of the synchronization pattern including the delimiter byte can be performed, for example, by first detecting the delimiter byte and then checking whether or not the bit string excluding the delimiter byte includes the synchronization pattern. In the case of the coded signal BS2 of FIG. 2, the synchronization pattern including the delimiter pattern is checked by checking whether the byte string Bn-2, Bn-1, Bn, Bn + 2 in which the delimiter byte of Bn + 1 is removed includes the synchronization pattern. Can be detected. To remove the delimiter byte detected from the encoded signal BS2, the byte data Bn + 1 including the delimiter byte may be deleted from the encoded signal.

【0021】以上説明したように、本発明の同期パター
ン挿入装置により、区切りデータをバイト単位で扱うこ
とができ、ビット単位の区切りデータ削除に比べて処理
負荷を軽減することができる。
As described above, the sync pattern insertion device of the present invention can handle delimiter data in units of bytes, and can reduce the processing load as compared with the case of deleting delimiter data in units of bit.

【0022】(実施の形態3)図4は、本実施の形態3
によるの同期パターン除去装置103(請求項3に該
当)の構成を示すブロック図である。図5において、図
1におけるブロック図と同じ動作をするユニットおよび
同じ動作の信号は同じ記号を付し、説明を省略する。
(Third Embodiment) FIG. 4 shows the third embodiment.
4 is a block diagram showing a configuration of a synchronization pattern removing device 103 (corresponding to claim 3) according to FIG. In FIG. 5, units that perform the same operations as those in the block diagram of FIG. 1 and signals that have the same operations are denoted by the same symbols, and description thereof will be omitted.

【0023】本実施の形態3の同期パターン除去装置
が、実施の形態1の同期パターン除去方法と異なる点
は、区切りバイトを挿入した符号化信号に同期パターン
挿入の処理を行うことである。
The synchronization pattern removing apparatus according to the third embodiment differs from the synchronization pattern removing method according to the first embodiment in that a synchronization pattern insertion process is performed on a coded signal in which delimiter bytes are inserted.

【0024】画像の符号化方式によっては符号化信号に
同期パターンを含まない場合がある。一方、例えば、M
PEG−2のプログラムストリームのように、画像符号
化信号にスタートコード(同期パターン)を含むことを
前提に設計された多重化方式も存在する。このような多
重化方式に同期パターンを含まない画像符号化信号を多
重化する場合には、画像符号化信号を多重化する前に実
施の形態1で示した同期パターン除去方法を行い、その
結果に対して同期パターンを挿入すればよい。
Depending on the image encoding method, the encoded signal may not include the synchronization pattern. On the other hand, for example, M
There is also a multiplexing method designed on the assumption that a start code (synchronization pattern) is included in an image coded signal like a PEG-2 program stream. When an image coded signal that does not include a synchronization pattern is multiplexed in such a multiplexing method, the synchronization pattern removal method shown in the first embodiment is performed before the image coded signal is multiplexed, and the result is obtained. A synchronization pattern may be inserted for

【0025】区切りバイトを挿入した符号化信号BitStr
m13を出力するまでの処理は、実施の形態1の同期パタ
ーン除去装置と同じである。符号化信号BitStrm13に対
し、同期パターン挿入指示手段SyncIは、同期パターン
を挿入すべき位置のときに、スイッチSW3を1側に切り
替え同期パターンSyncを挿入する。例えば、同期パター
ンは画像符号化信号のフレーム・スライスの直前に挿入
することができ、符号化信号中フレーム・スライスの先
頭位置は画像符号化手段ImgEncから同期位置情報SyncPo
sにより、画像符号化手段ImgEncから同期パターン挿入
指示手段SyncIに挿入する。多重化手段Mux2は、同期パ
ターンSync挿入後の符号化信号BitStrm15を多重化し、
符号化信号BitStrm16として出力する。
Coded signal BitStr with delimiter bytes inserted
The processing up to the output of m13 is the same as that of the synchronization pattern removing apparatus of the first embodiment. For the encoded signal BitStrm13, the synchronization pattern insertion instructing means SyncI switches the switch SW3 to the 1 side and inserts the synchronization pattern Sync at the position where the synchronization pattern should be inserted. For example, the synchronization pattern can be inserted immediately before the frame slice of the coded image signal, and the start position of the frame slice in the coded signal is synchronized with the sync position information SyncPo from the image coding means ImgEnc.
By s, the image coding means ImgEnc is inserted into the synchronization pattern insertion instructing means SyncI. The multiplexing means Mux2 multiplexes the coded signal BitStrm15 after inserting the synchronization pattern Sync,
Output as encoded signal BitStrm16.

【0026】図5は同期パターンを挿入した符号化信号
を示す概念図で、符号化信号BS51は同期パターン挿入前
の符号化信号、符号化信号BS52は同期パターン挿入後の
符号化信号を示す。この例では、符号化信号BS51のフレ
ームやスライスの直前に同期信号Syncを挿入している。
FIG. 5 is a conceptual diagram showing a coded signal with a sync pattern inserted. Coded signal BS51 shows a coded signal before the sync pattern is inserted, and coded signal BS52 shows a coded signal after the sync pattern is inserted. In this example, the synchronization signal Sync is inserted immediately before the frame or slice of the encoded signal BS51.

【0027】以上説明したように、本発明の同期パター
ン除去装置により、区切りバイトを挿入した符号化信号
に同期パターンを挿入して多重化することにより、符号
化信号に同期パターンが必要な多重化方式に、同期パタ
ーンを含まない符号化信号を多重化することが可能にな
る。
As described above, the synchronization pattern removing apparatus of the present invention inserts a synchronization pattern into a coded signal in which delimiter bytes are inserted and multiplexes the coded signal, so that the coded signal requires a sync pattern. It is possible to multiplex a coded signal that does not include a synchronization pattern in the system.

【0028】(実施の形態4)図6は、本発明の実施の
形態4による同期パターン挿入装置104(請求項4に
該当)の構成を示すブロック図である。図6において、
図3におけるブロック図と同じ動作をするユニットおよ
び同じ動作の信号は同じ記号を付し、説明を省略する。
本実施の形態の同期パターン挿入装置は、例えば、実施
の形態3で作成された符号化信号のように、所定のバイ
ト列を挿入し同期パターンと同一のビット列を符号化信
号中から除去した結果に対し、所定の位置に同期パター
ンを挿入した符号化信号、の復号に用いることができ
る。
(Embodiment 4) FIG. 6 is a block diagram showing the structure of a synchronization pattern insertion device 104 (corresponding to claim 4) according to Embodiment 4 of the present invention. In FIG.
Units that perform the same operations as those in the block diagram in FIG.
The sync pattern insertion device of the present embodiment inserts a predetermined byte string and removes the same bit string as the sync pattern from the coded signal, such as the coded signal created in the third embodiment. On the other hand, it can be used for decoding an encoded signal in which a synchronization pattern is inserted at a predetermined position.

【0029】分離手段Demux2は、多重化された符号化信
号BitStrm30を分離して、同期パターンを含む符号化信
号BitStrm31に分離する。バッファBuf3は、分離手段Dem
ux2が出力する符号化信号BitStrm31を、同期パターン検
出のため一時的に保存するバッファである。同期パター
ン検出手段SyncF2は、バッファBuf3に蓄積された符号化
信号BitStrm33に対して同期パターンの検出を行う。同
期パターン検出手段SyncF2は、同期パターンを検出した
場合には、信号FindSyncにより同期パターン除去手段Sy
ncRに通知を行う。同期パターン除去手段SyncRは、同期
パターンの検出が通知された場合には、信号RmvSyncに
よりスイッチSW4を開放し、同期パターンを除去する。
同期パターンを除去した符号化信号BitStrm21に対する
以降の処理は、実施の形態2の同期パターン挿入装置と
同じである。
The separating means Demux2 separates the multiplexed coded signal BitStrm30 into coded signals BitStrm31 including a synchronization pattern. The buffer Buf3 is a separation means Dem
This is a buffer that temporarily stores the coded signal BitStrm31 output by ux2 for detecting a synchronization pattern. The sync pattern detection means SyncF2 detects a sync pattern for the coded signal BitStrm33 accumulated in the buffer Buf3. When the sync pattern detecting means SyncF2 detects the sync pattern, the sync pattern detecting means SyncF2 receives the sync pattern removing means Sy by the signal FindSync.
Notify ncR. When notified of the detection of the synchronization pattern, the synchronization pattern removal means SyncR opens the switch SW4 by the signal RmvSync and removes the synchronization pattern.
Subsequent processing on the encoded signal BitStrm21 from which the synchronization pattern is removed is the same as that of the synchronization pattern insertion device of the second embodiment.

【0030】以上説明したように、本発明の同期パター
ン挿入装置により、区切りバイトを挿入した符号化信号
に同期パターンを挿入して多重化した符号化信号を、復
号することが可能になる。
As described above, the sync pattern insertion device of the present invention makes it possible to decode a coded signal in which a sync pattern is inserted into a coded signal in which delimiter bytes are inserted and multiplexed.

【0031】(実施の形態5)図7は、本発明の実施の
形態5による同期パターン除去装置105(請求項5に
該当)の構成を示すブロック図である。図7において、
図1におけるブロック図と同じ動作をするユニットおよ
び同じ動作の信号は同じ記号を付し、説明を省略する。
(Fifth Embodiment) FIG. 7 is a block diagram showing the structure of a synchronization pattern removing apparatus 105 (corresponding to claim 5) according to a fifth embodiment of the present invention. In FIG.
Units that perform the same operations as those in the block diagram of FIG. 1 and signals that have the same operations are denoted by the same symbols, and description thereof will be omitted.

【0032】本実施の形態で用いる同期パターンは、図
2の同期パターンSyncのように連続する0値ビットを含
むビット列とする。このように同期パターンに連続した
Nビットの0値が含まれる場合、同期パターンがビット
列中のどの位置に存在しても、少なくともバイト境界か
ら連続するMバイト(Mは(N-7)を8で除算した商)
でビット値が0のパターンを検出することができる。そ
のため、符号化信号中で図2の同期パターンと一致する
ビット列を見つけるには、符号化信号をバイト毎に入力
し、入力したバイト列中の連続した2バイトの0が検出
された場合のみ、その箇所が同期パターンと一致するか
調べればよい。画像符号化信号などの圧縮データは0、
1の出現頻度に統計的な偏りが少ないため、0が2バイ
ト連続することはまれである。従って、殆どの場合、バ
イト列に0が2バイト連続するか調べるだけでよく、同
期パターンの検出に必要な処理量を減少することができ
る。図8は同期パターン検出と区切りバイト挿入処理の
流れを示した処理フローである。Bnは符号化信号のn番
目のバイトデータ(n=0が符号化信号の先頭バイトを示
す)、Lは符号化信号の総バイト数とする。連続する2バ
イトのデータが0か判定し(処理F82)、そうならば、
さらに、同期パターンが含まれるか判定する(処理F8
4)。同期パターンが含まれれば、Bnの後に区切りバイ
トを挿入する(処理F85)。上記の処理を符号化信号の
各バイト毎に繰り返し、n=Lになり符号化信号の全ての
バイトを入力した場合には処理を終了する(処理F87)。
The synchronization pattern used in this embodiment is a bit string including consecutive 0-valued bits like the synchronization pattern Sync in FIG. When the sync pattern includes consecutive 0-bits of N bits, no matter where the sync pattern exists in the bit string, at least M consecutive bytes from the byte boundary (M is (N-7) is 8 Quotient divided by)
It is possible to detect a pattern in which the bit value is 0. Therefore, in order to find a bit string that matches the synchronization pattern of FIG. 2 in the encoded signal, the encoded signal is input for each byte, and only when two consecutive 0s in the input byte sequence are detected, It suffices to check whether that portion matches the synchronization pattern. Compressed data such as image coded signals is 0,
Since there is little statistical bias in the appearance frequency of 1s, it is rare that 0s continue for 2 bytes. Therefore, in most cases, it suffices to check whether two 0's continue in the byte string, and the amount of processing required to detect the synchronization pattern can be reduced. FIG. 8 is a processing flow showing the flow of the synchronization pattern detection and delimiter byte insertion processing. Bn is the n-th byte data of the encoded signal (n = 0 indicates the first byte of the encoded signal), and L is the total number of bytes of the encoded signal. It is judged whether the continuous 2-byte data is 0 (process F82), and if so,
Furthermore, it is determined whether a synchronization pattern is included (process F8
Four). If the synchronization pattern is included, a delimiter byte is inserted after Bn (process F85). The above process is repeated for each byte of the coded signal, and when n = L and all bytes of the coded signal are input, the process ends (process F87).

【0033】図7の同期パターン除去装置は上記のフロ
ーの処理を行う。バイト入力手段ByteInputは、符号化
信号BitStrm10をバイト単位で入力する。バッファBuf4
は入力したバイト単位の符号化信号BitStrm70を同期パ
ターン検出のために一時的に保存する。0値バイトカウ
ンタZeroCは符号化信号BitStrm71中の連続する0値バイ
トをカウントする。0値バイト数カウンタZeroCは、0
値バイトが2個連続した場合に、信号FindZeroにより同
期パターン検出手段FSync2に通知を行う。同期パターン
検出手段FSync2は、0値バイトが2個連続した箇所とそ
の前後のバイトに同期パターンのビット列が含まれてい
ないか調べる。同期パターンを検出した場合には、実施
の形態1と同様の処理により、符号化信号BitStrm11に
区切りバイトDeliを挿入する。
The synchronous pattern removing apparatus of FIG. 7 performs the processing of the above flow. The byte input means ByteInput inputs the encoded signal BitStrm10 in byte units. Buffer Buf4
Temporarily stores the input coded signal BitStrm70 in byte units for detecting a synchronization pattern. The zero-value byte counter ZeroC counts consecutive zero-value bytes in the encoded signal BitStrm71. Zero value byte number counter ZeroC is 0
When two value bytes continue, the signal FindZero notifies the sync pattern detecting means FSync2. The sync pattern detecting means FSync2 checks whether or not two consecutive zero-value bytes and the bytes before and after the byte contain a bit string of the sync pattern. When the synchronization pattern is detected, the delimiter byte Deli is inserted into the encoded signal BitStrm11 by the same processing as that of the first embodiment.

【0034】以上説明したように、本発明の同期パター
ン除去装置により、同期パターンに一致するビット列検
出のための処理負荷を軽減することができる。
As described above, the sync pattern removing apparatus of the present invention can reduce the processing load for detecting the bit string that matches the sync pattern.

【0035】なお、本実施の形態では、同期パターンの
ビット列に0が連続する場合について説明したが、同期
パターンのビット列に1が連続する場合にも同様の考え
方で対応することができる。
In this embodiment, the case where 0s are continuous in the bit string of the synchronization pattern has been described, but the same idea can be applied to the case where 1s are continuous in the bit string of the synchronization pattern.

【0036】(実施の形態6)図9は、本発明の実施の
形態6による同期パターン挿入装置106(請求項6に
該当)の構成を示すブロック図である。図9において、
図2におけるブロック図と同じ動作をするユニットおよ
び同じ動作の信号は同じ記号を付し、説明を省略する。
(Sixth Embodiment) FIG. 9 is a block diagram showing the structure of a synchronization pattern insertion device 106 (corresponding to claim 6) according to the sixth embodiment of the present invention. In FIG.
Units that perform the same operations as those in the block diagram in FIG.

【0037】本実施の形態の同期パターン挿入装置は、
例えば、実施の形態2で作成された符号化信号のよう
に、符号化信号中で本来同期パターンが存在する場所以
外で同期パターンと一致するビット列に対して所定のバ
イト列を挿入し同期パターンを除去した結果の符号化信
号の復号に用いることができる。
The synchronization pattern insertion device of this embodiment is
For example, as in the coded signal created in the second embodiment, a predetermined byte string is inserted into a bit string that matches the sync pattern at a position other than where the sync pattern originally exists in the coded signal, and the sync pattern is created. It can be used for decoding the encoded signal resulting from the removal.

【0038】図10は、区切りバイトを含む同期パター
ン検出と区切りバイト除去処理の流れを示した処理フロ
ーである。Bnは符号化信号のn番目のバイトデータ(n=0
が符号化信号の先頭バイトを示す)、Lは符号化信号の
総バイト数とする。連続する2バイトのデータが0か判
定し(処理F102)、そうならば、2バイトの0に後続す
るバイトが区切りバイトと一致するか判定する(処理F1
03)。区切りバイトと一致すれば、さらに、同期パター
ンが含まれるか判定する(処理F104)。同期パターンが
含まれれば、区切りバイトを除去する(処理F105)。上
記の処理を符号化信号の各バイト毎に繰り返し、n=Lに
なり符号化信号の全てのバイトを入力した場合には処理
を終了する(処理F107)。
FIG. 10 is a processing flow showing the flow of the synchronization pattern detection including the delimiter byte and the delimiter byte removal processing. Bn is the nth byte data of the encoded signal (n = 0
Indicates the first byte of the encoded signal), and L is the total number of bytes of the encoded signal. It is determined whether consecutive 2 bytes of data are 0 (processing F102), and if so, it is determined whether the byte following the 2 bytes of 0 matches the delimiter byte (processing F1).
03). If it matches the delimiter byte, it is further determined whether a sync pattern is included (process F104). If the synchronization pattern is included, the delimiter byte is removed (process F105). The above process is repeated for each byte of the coded signal, and when n = L and all bytes of the coded signal are input, the process ends (process F107).

【0039】図9の同期パターン挿入装置は上記のフロ
ーの処理を行う。バイト入力手段ByteInputは、符号化
信号BitStrm21をバイト単位で入力する。バッファBuf5
は入力したバイト単位の符号化信号BitStrm90を同期パ
ターン検出のために一時的に保存する。0値バイトカウ
ンタZeroCは符号化信号BitStrm91中の連続する0値バイ
トをカウントする。0値バイト数カウンタZeroCは、0
値バイトが2個連続した場合に、信号FindZeroにより、
区切りバイト・同期パターン検出手段FSync2に通知を行
う。区切りバイト・同期パターン検出手段FSync2は、0
値バイトが2個連続した箇所とその前後のバイトに区切
りバイトを含む同期パターンのビット列が含まれていな
いか調べる。区切りバイトを含む同期パターンを検出し
た場合には、実施の形態2と同様の処理により、符号化
信号BitStrm22から区切りバイトDeliを除去する。
The synchronization pattern insertion device of FIG. 9 performs the processing of the above flow. The byte input means ByteInput inputs the encoded signal BitStrm21 in byte units. Buffer Buf5
Stores the input coded signal BitStrm90 in byte units temporarily for the synchronization pattern detection. The zero-value byte counter ZeroC counts consecutive zero-value bytes in the encoded signal BitStrm91. Zero value byte number counter ZeroC is 0
If two value bytes are consecutive, the signal FindZero causes
Notify the delimiter byte / sync pattern detection means FSync2. Delimiter byte / sync pattern detection means FSync2 is 0
Check whether the bit string of the synchronization pattern including the delimiter byte is included in the place where two value bytes are consecutive and the bytes before and after it. When the synchronization pattern including the delimiter byte is detected, the delimiter byte Deli is removed from the encoded signal BitStrm22 by the same process as in the second embodiment.

【0040】以上説明したように、本発明の同期パター
ン挿入装置により、区切りバイトを含む同期パターンに
一致するビット列検出のための処理負荷を軽減すること
ができる。
As described above, the sync pattern insertion device of the present invention can reduce the processing load for detecting a bit string that matches a sync pattern including delimiter bytes.

【0041】なお、本実施の形態では、同期パターンの
ビット列に0が連続する場合について説明したが、同期
パターンのビット列に1が連続する場合にも同様の考え
方で対応することができる。
In this embodiment, the case where 0s are continuous in the bit string of the synchronization pattern has been described, but the same idea can be applied to the case where 1s are continuous in the bit string of the synchronization pattern.

【0042】(実施の形態7)図11は、本発明の実施
の形態7による同期パターン除去装置107(請求項7
に該当)の構成を示すブロック図である。図11におい
て、図7、および図4におけるブロック図と同じ動作を
するユニット、および同じ動作の信号は同じ記号を付
し、説明を省略する。
(Seventh Embodiment) FIG. 11 shows a synchronization pattern removing apparatus 107 according to a seventh embodiment of the present invention (claim 7).
Is a block diagram showing the configuration of (corresponding to). In FIG. 11, units that perform the same operations as those in the block diagrams in FIGS. 7 and 4 and signals that perform the same operations are denoted by the same symbols, and description thereof will be omitted.

【0043】実施の形態3に示した理由により、区切り
バイトを挿入した符号化信号に同期パターンを挿入する
ことが必要な場合がある。本実施の形態7は、実施の形
態3と同様に、区切りバイトを挿入した符号化信号に同
期パターンの挿入処理を行うものである。具体的には、
実施の形態5と同じ処理により生成した符号化信号BitS
trm13に対し、実施の形態3と同じ同期パターンの挿入
処理を行う。
For the reason shown in the third embodiment, it may be necessary to insert the synchronization pattern in the encoded signal in which the delimiter byte is inserted. In the seventh embodiment, similar to the third embodiment, a synchronization pattern insertion process is performed on a coded signal in which delimiter bytes are inserted. In particular,
Coded signal BitS generated by the same processing as in the fifth embodiment
The same sync pattern insertion processing as in the third embodiment is performed on trm13.

【0044】以上説明したように、本発明の同期パター
ン除去装置により、区切りバイトを含む同期パターンに
一致するビット列検出のための処理負荷を軽減すること
ができる。
As described above, the sync pattern removing apparatus of the present invention can reduce the processing load for detecting a bit string that matches a sync pattern including delimiter bytes.

【0045】なお、本実施の形態では、同期パターンの
ビット列に0が連続する場合について説明したが、同期
パターンのビット列に1が連続する場合にも同様の考え
方で対応することができる。
In this embodiment, the case where 0s are continuous in the bit string of the synchronization pattern has been described, but the same idea can be applied to the case where 1s are continuous in the bit string of the synchronization pattern.

【0046】(実施の形態8)図12は、本発明の実施
の形態8による同期パターン挿入装置108(請求項8
に該当)の構成を示すブロック図である。図12におい
て、図9、および、図6におけるブロック図と同じ動作
をするユニットおよび同じ動作の信号は同じ記号を付
し、説明を省略する。本実施の形態の同期パターン挿入
装置は、例えば、実施の形態3で作成された符号化信号
のように、所定のバイト列を挿入し同期パターンと同一
のビット列を符号化信号中から除去した結果に対し、所
定の位置に同期パターンを挿入した符号化信号の復号に
用いることができる。
(Embodiment 8) FIG. 12 shows a synchronization pattern insertion device 108 (claim 8) according to Embodiment 8 of the present invention.
Is a block diagram showing the configuration of (corresponding to). In FIG. 12, units that perform the same operations as those in the block diagrams of FIGS. 9 and 6 and signals of the same operations are denoted by the same symbols, and description thereof will be omitted. The sync pattern insertion device of the present embodiment inserts a predetermined byte string and removes the same bit string as the sync pattern from the coded signal, such as the coded signal created in the third embodiment. On the other hand, it can be used for decoding an encoded signal in which a synchronization pattern is inserted at a predetermined position.

【0047】本実施の形態8は、実施の形態4と同様
に、区切りバイトを挿入した符号化信号に同期パターン
が挿入された符号化信号から同期パターンと区切りバイ
トの除去を行うものである。具体的には、実施の形態4
と同じ処理により同期パターンを除去した符号化信号Bi
tStrm21に対し、実施の形態6と同じ同期パターンの除
去処理を行う。
Like the fourth embodiment, the eighth embodiment removes the sync pattern and the delimiter byte from the coded signal in which the sync pattern is inserted in the coded signal in which the delimiter byte is inserted. Specifically, the fourth embodiment
Coded signal Bi with the synchronization pattern removed by the same processing as
For tStrm21, the same synchronization pattern removal processing as in the sixth embodiment is performed.

【0048】以上説明したように、本発明の同期パター
ン挿入装置により、区切りバイトを含む同期パターンに
一致するビット列検出のための処理負荷を軽減すること
ができる。
As described above, the sync pattern insertion device of the present invention can reduce the processing load for detecting a bit string that matches a sync pattern including delimiter bytes.

【0049】なお、本実施の形態では、同期パターンの
ビット列に0が連続する場合について説明したが、同期
パターンのビット列に1が連続する場合にも同様の考え
方で対応することができる。
In this embodiment, the case where 0s are continuous in the bit string of the synchronization pattern has been described, but the same idea can be applied to the case where 1s are continuous in the bit string of the synchronization pattern.

【0050】(実施の形態9)さらに、上記各実施の形
態で示した同期パターン除去方法または同期パターン挿
入方法の構成を実現するためのプログラムを、フレキシ
ブルディスク等の記憶媒体に記録するようにすることに
より、上記各実施の形態で示した処理を、独立したコン
ピュータシステムにおいて簡単に実施することが可能と
なる。
(Ninth Embodiment) Further, a program for realizing the structure of the synchronous pattern removing method or the synchronous pattern inserting method shown in each of the above embodiments is recorded in a storage medium such as a flexible disk. This makes it possible to easily carry out the processing shown in each of the above-described embodiments in an independent computer system.

【0051】図13は、上記実施の形態1から実施の形
態8の同期パターン除去方法または同期パターン挿入方
法を格納したフレキシブルディスクを用いて、コンピュ
ータシステムにより実施する場合の説明図である。
FIG. 13 is an explanatory diagram of a case where a flexible disk storing the synchronous pattern removing method or the synchronous pattern inserting method of the above-described first to eighth embodiments is used to carry out by a computer system.

【0052】図13(b)は、フレキシブルディスクの
正面からみた外観、断面構造、及びフレキシブルディス
クを示し、図6(a)は、記録媒体本体であるフレキシ
ブルディスクの物理フォーマットの例を示している。フ
レキシブルディスクFDはケースF内に内蔵され、該デ
ィスクの表面には、同心円状に外周からは内周に向かっ
て複数のトラックTrが形成され、各トラックは角度方
向に16のセクタSeに分割されている。従って、上記
プログラムを格納したフレキシブルディスクでは、上記
フレキシブルディスクFD上に割り当てられた領域に、
上記プログラムとしての画像符号化方法が記録されてい
る。
FIG. 13B shows the appearance, sectional structure, and flexible disk of the flexible disk as viewed from the front, and FIG. 6A shows an example of the physical format of the flexible disk, which is the recording medium body. . The flexible disk FD is built in a case F, and a plurality of tracks Tr are formed concentrically from the outer circumference to the inner circumference on the surface of the flexible disk FD, and each track is angularly divided into 16 sectors Se. ing. Therefore, in the flexible disk storing the above program, in the area allocated on the flexible disk FD,
An image encoding method as the above program is recorded.

【0053】また、図13(c)は、フレキシブルディ
スクFDに上記プログラムの記録再生を行うための構成
を示す。上記プログラムをフレキシブルディスクFDに
記録する場合は、コンピュータシステムCsから上記プ
ログラムとしての画像符号化方法または画像復号化方法
をフレキシブルディスクドライブFDDを介して書き込
む。また、フレキシブルディスク内のプログラムにより
上記画像符号化方法をコンピュータシステム中に構築す
る場合は、フレキシブルディスクドライブによりプログ
ラムをフレキシブルディスクから読み出し、コンピュー
タシステムに転送する。
FIG. 13C shows a structure for recording / reproducing the above program on / from the flexible disk FD. When the program is recorded on the flexible disk FD, the image encoding method or the image decoding method as the program is written from the computer system Cs via the flexible disk drive FDD. Further, when the image coding method is constructed in the computer system by the program in the flexible disk, the program is read from the flexible disk by the flexible disk drive and transferred to the computer system.

【0054】なお、上記説明では、記録媒体としてフレ
キシブルディスクを用いて説明を行ったが、光ディスク
を用いても同様に行うことができる。また、記録媒体は
これに限らず、ICカード、ROMカセット等、プログ
ラムを記録できるものであれば同様に実施することがで
きる。
In the above description, the flexible disk is used as the recording medium, but the same can be applied by using the optical disk. Further, the recording medium is not limited to this, and any recording medium such as an IC card and a ROM cassette that can record the program can be similarly used.

【0055】[0055]

【発明の効果】以上、詳細に説明したように、本発明の
同期パターン除去方法・同期パターン挿入方法により、
符号化信号中からの同期パターンの除去・挿入を、ビッ
ト単位の区切りデータを挿入する従来方法より少ない処
理量で実現することができ、同期パターンの除去・挿入
処理の高速化に効果が高いものを得ることができる。
As described above in detail, according to the sync pattern removing method / sync pattern inserting method of the present invention,
The removal / insertion of the sync pattern from the coded signal can be realized with a smaller processing amount than the conventional method of inserting the delimiter data in bit units, which is highly effective in speeding up the removal / insertion process of the sync pattern. Can be obtained.

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

【図1】実施の形態1の同期パターン除去装置を示した
ブロック図
FIG. 1 is a block diagram showing a synchronization pattern removing device according to a first embodiment.

【図2】実施の形態1の同期パターン検出・除去処理の
概念図
FIG. 2 is a conceptual diagram of synchronization pattern detection / removal processing according to the first embodiment.

【図3】実施の形態2の同期パターン挿入装置を示した
ブロック図
FIG. 3 is a block diagram showing a synchronization pattern insertion device according to a second embodiment.

【図4】実施の形態3の同期パターン除去装置を示した
ブロック図
FIG. 4 is a block diagram showing a synchronization pattern removing device according to a third embodiment.

【図5】実施の形態3の符号化信号を示した概念図FIG. 5 is a conceptual diagram showing an encoded signal according to the third embodiment.

【図6】実施の形態4の同期パターン挿入装置を示した
ブロック図
FIG. 6 is a block diagram showing a synchronization pattern insertion device according to a fourth embodiment.

【図7】実施の形態5の同期パターン除去装置を示した
ブロック図
FIG. 7 is a block diagram showing a synchronization pattern removing device according to a fifth embodiment.

【図8】実施の形態5の同期パターン検出・除去処理の
処理フロー図
FIG. 8 is a processing flow chart of synchronization pattern detection / removal processing according to the fifth embodiment.

【図9】実施の形態6の同期パターン挿入装置を示した
ブロック図
FIG. 9 is a block diagram showing a synchronization pattern insertion device according to a sixth embodiment.

【図10】実施の形態6の区切りバイトと同期パターン
検出、区切りバイト除去処理の処理フロー図
FIG. 10 is a processing flowchart of delimiter byte and synchronization pattern detection and delimiter byte removal processing according to the sixth embodiment.

【図11】実施の形態7の同期パターン除去装置を示し
たブロック図
FIG. 11 is a block diagram showing a synchronization pattern removing device according to a seventh embodiment.

【図12】実施の形態8の同期パターン挿入装置を示し
たブロック図
FIG. 12 is a block diagram showing a synchronization pattern insertion device according to an eighth embodiment.

【図13】実施の形態1から実施の形態8の同期パター
ン除去方法および同期パターン挿入方法をコンピュータ
システムにより実現するためのプログラムを格納するた
めの記憶媒体についての説明図
FIG. 13 is an explanatory diagram of a storage medium for storing a program for realizing the synchronization pattern removing method and the synchronization pattern inserting method of the first to eighth embodiments by a computer system.

【図14】従来の同期パターン除去装置を示したブロッ
ク図
FIG. 14 is a block diagram showing a conventional synchronization pattern removing device.

【図15】従来の同期パターン挿入装置を示したブロッ
ク図
FIG. 15 is a block diagram showing a conventional synchronization pattern insertion device.

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

Img 画像信号 ImgEnc 画像符号化手段 Buf1, Buf2, Buf3, Buf4, Buf5 バッファ BitStrm10, BitStrm11, BitStrm13, BitStrm14, BitStr
m15, BitStrm16, BitStrm20, BitStrm21, BitStrm22, B
itStrm23, BitStrm24, BitStrm30, BitStrm31,BitStrm3
2, BitStrm70, BitStrm71, BitStrm90, BitStrm91, Bit
Strm01, BitStrm02, BitStrm03, BS1, BS2, BS51, BS52
符号化信号 SyncF1, SyncF2 同期パターン検出手段 FindSync, RmvSync, FindDeli, InsDeli, RmvDeli, Fin
dZero, FindeZeroBits, InsBit, RmvBit 通知・指示信
号 BAlignF バイト境界検出手段 SW1, SW2, SW3, SW4, SW01, SW02 スイッチ Deli 区切りバイト Mux1, Mux2 多重化手段 Sync 同期パターン InsPos 区切りバイト挿入場所 Demux1, Demux2 分離手段 DeliF, DeliF2 区切りバイト・同期パターン検出手段 DeliR 区切りバイト除去手段 ImgDec 画像復号手段 DImg 復号画像 SyncI 同期パターン挿入指示手段 Frm フレーム/スライス SyncR 同期パターン除去手段 ByteInput バイト入力手段 ZeroC 0値バイトカウンタ ZeroBitC ゼロ値ビットカウント手段 BitI 区切りビット挿入指示手段 Bit 区切りビット BitR 区切りビット除去指示手段 F81〜F87, F101〜F107 フロー図の処理項目 Cs コンピュータ・システム FD フレキシブルディスク FDD フレキシブルディスクドライブ
Img Image signal ImgEnc Image coding means Buf1, Buf2, Buf3, Buf4, Buf5 Buffer BitStrm10, BitStrm11, BitStrm13, BitStrm14, BitStr
m15, BitStrm16, BitStrm20, BitStrm21, BitStrm22, B
itStrm23, BitStrm24, BitStrm30, BitStrm31, BitStrm3
2, BitStrm70, BitStrm71, BitStrm90, BitStrm91, Bit
Strm01, BitStrm02, BitStrm03, BS1, BS2, BS51, BS52
Encoded signal SyncF1, SyncF2 Sync pattern detection means FindSync, RmvSync, FindDeli, InsDeli, RmvDeli, Fin
dZero, FindeZeroBits, InsBit, RmvBit Notification / instruction signal BAlignF Byte boundary detection means SW1, SW2, SW3, SW4, SW01, SW02 Switch Deli Delimiter byte Mux1, Mux2 Multiplexing means Sync Sync pattern InsPos Delimiter byte inserting location Demux1, Demux2 Separating means DeliF, DeliF2 Delimiter byte / sync pattern detection means DeliR Delimiter byte removal means ImgDec Image decoding means DImg Decoded image SyncI Sync pattern insertion instruction means Frm Frame / slice SyncR Sync pattern removal means ByteInput Byte input means ZeroC 0 value Byte counter ZeroBitC Zero value bit Counting means BitI Delimiter bit insertion instruction means Bit Delimiter bit BitR Delimiter bit removal instruction means F81 to F87, F101 to F107 Processing items of flow chart Cs Computer system FD Flexible disk FDD Flexible disk drive

───────────────────────────────────────────────────── フロントページの続き (72)発明者 松井 義徳 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 近藤 敏志 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 安倍 清史 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 5C059 MA00 RB10 RC02 RE01 SS20 UA34 5C063 AB03 AB05 AC01 AC05 AC10 CA11 CA14 CA23 DA01 DA05 DA07 DA13 5K028 EE07 KK13 MM16 NN05 5K047 AA02 DD01 DD02 HH01 HH12 HH45    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Yoshinori Matsui             1006 Kadoma, Kadoma-shi, Osaka Matsushita Electric             Sangyo Co., Ltd. (72) Inventor Toshishi Kondo             1006 Kadoma, Kadoma-shi, Osaka Matsushita Electric             Sangyo Co., Ltd. (72) Inventor Kiyoshi Abe             1006 Kadoma, Kadoma-shi, Osaka Matsushita Electric             Sangyo Co., Ltd. F-term (reference) 5C059 MA00 RB10 RC02 RE01 SS20                       UA34                 5C063 AB03 AB05 AC01 AC05 AC10                       CA11 CA14 CA23 DA01 DA05                       DA07 DA13                 5K028 EE07 KK13 MM16 NN05                 5K047 AA02 DD01 DD02 HH01 HH12                       HH45

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 符号化信号中で本来同期パターンが存在
する場所以外で同期パターンと一致するビット列を検出
した場合に、前記同期パターンと一致するビット列中の
最後のビットより前、かつ、ビット列中の最後のバイト
境界に、挿入結果が同期パターンとならない所定のバイ
ト列を挿入して、同期パターンを除去する、 ことを特徴とした同期パターン除去方法。
1. When a bit string that matches a sync pattern is detected in a coded signal other than the place where the sync pattern originally exists, before the last bit in the bit string that matches the sync pattern, and in the bit string. A synchronization pattern removal method characterized by inserting a predetermined byte sequence whose insertion result does not become a synchronization pattern at the last byte boundary of, and removing the synchronization pattern.
【請求項2】 符号化信号中で本来同期パターンが存在
する場所以外で同期パターンと一致するビット列に対し
て所定のバイト列を挿入し同期パターンを除去した結果
の符号化信号を入力し、バイト境界の位置から始まる前
記所定のバイト列を含み、かつ、前記所定のバイト列を
符号化信号中から除去した結果の位置に同期パターンと
一致するビット列が存在する場合に、前記所定のバイト
列を上記符号化信号から除去して、同期パターンを挿入
する、 ことを特徴とした同期パターン挿入方法。
2. A coded signal as a result of inserting a predetermined byte string into a bit string that coincides with a sync pattern at a position other than where the sync pattern originally exists in the coded signal and removing the sync pattern, and inputting the byte. If the bit string that includes the predetermined byte string starting from the boundary position and that coincides with the synchronization pattern exists at the position resulting from the removal of the predetermined byte string from the encoded signal, the predetermined byte string is A synchronization pattern insertion method, characterized in that the synchronization pattern is inserted by removing it from the encoded signal.
【請求項3】 符号化信号中で本来同期パターンが存在
する場所以外で同期パターンと一致するビット列を検出
した場合に、前記同期パターンと一致するビット列中の
最後のビットより前、かつ、ビット列中の最後のバイト
境界に、挿入結果が同期パターンとならない所定のバイ
ト列を挿入して、同期パターンを除去し、前記所定のバ
イト列を挿入した結果の符号化信号に対し所定の位置に
同期パターンを挿入する、 ことを特徴とした同期パターン除去方法。
3. When a bit string matching the sync pattern is detected in a coded signal other than the place where the sync pattern originally exists, before the last bit in the bit string matching the sync pattern and in the bit string. At the last byte boundary of the, a predetermined byte string whose insertion result does not become a sync pattern is inserted, the sync pattern is removed, and a sync pattern is placed at a predetermined position with respect to the encoded signal resulting from the insertion of the predetermined byte string. A method for removing a sync pattern, characterized in that
【請求項4】 符号化信号中で本来同期パターンが存在
する場所以外で同期パターンと一致するビット列に対し
て所定のバイト列を挿入して同期パターンを除去した結
果に対し所定の位置に同期パターンを挿入した符号化信
号を入力し、該符号化信号の所定の位置から同期パター
ンを除去し、バイト境界の位置から始まる前記所定のバ
イト列を含み、かつ、前記所定のバイト列を符号化信号
中から除去した結果の位置に同期パターンと一致するビ
ット列が存在する場合に前記所定のバイト列を上記符号
化信号から除去し、該所定のバイト列を除去して、同期
パターンを挿入した結果の符号化信号を出力する、 ことを特徴とした同期パターン挿入方法。
4. A sync pattern at a predetermined position with respect to a result of removing a sync pattern by inserting a predetermined byte string into a bit string that matches the sync pattern at a position other than the place where the sync pattern originally exists in the encoded signal. Is input, the sync pattern is removed from a predetermined position of the coded signal, and the predetermined byte sequence starting from a byte boundary position is included, and the predetermined byte sequence is encoded signal. When there is a bit string that coincides with the sync pattern at the position resulting from the removal from the inside, the predetermined byte string is removed from the encoded signal, the predetermined byte string is removed, and the result of inserting the sync pattern A synchronization pattern insertion method characterized by outputting an encoded signal.
【請求項5】 請求項1の同期パターン除去方法におい
て、 ビット列に連続するN個のビット値0を含む同期パター
ンを使用し、符号化信号中のバイト境界から連続するM
バイト(Mは(N-7)を8で除算した商)のビット値が全て0
の場合のときのみ、そのバイト位置の前後のバイトデー
タと連続するMバイトから成るビット列が同期パターン
のビット列を含むか調べることにより同期パターンを検
出する、 ことを特徴とした同期パターン除去方法。
5. The synchronization pattern removing method according to claim 1, wherein a synchronization pattern including N bit values 0 consecutive in a bit string is used and M consecutive from a byte boundary in the encoded signal.
All bit values of bytes (M is a quotient of (N-7) divided by 8) are all 0
In the case of, the sync pattern removal method is characterized in that the sync pattern is detected by checking whether or not the bit string consisting of M bytes continuous with the byte data before and after the byte position includes the bit string of the sync pattern.
【請求項6】 請求項2の同期パターン挿入方法におい
て、 ビット列に連続するN個のビット値0を含む同期パター
ンを使用し、符号化信号中のバイト境界から連続するM
バイト(Mは(N-7)を8で除算した商)のビット値が全て0
の場合のときのみ、そのバイト位置の前後のバイトデー
タと連続するMバイトから成るビット列が同期パターン
のビット列を含むか調べることにより同期パターンを検
出する、 ことを特徴とした同期パターン挿入方法。
6. The synchronization pattern insertion method according to claim 2, wherein a synchronization pattern including N bit values 0 consecutive in a bit string is used, and M consecutive from a byte boundary in the encoded signal.
All bit values of bytes (M is a quotient of (N-7) divided by 8) are all 0
Only in the case of, the sync pattern insertion method is characterized in that the sync pattern is detected by checking whether or not the bit string consisting of M bytes continuous with the byte data before and after the byte position includes the bit string of the sync pattern.
【請求項7】 請求項3の同期パターン除去方法におい
て、 ビット列に連続するN個のビット値0を含む同期パター
ンを使用し、符号化信号中のバイト境界から連続するM
バイト(Mは(N-7)を8で除算した商)のビット値が全て0
の場合のときのみ、そのバイト位置の前後のバイトデー
タと連続するMバイトから成るビット列が同期パターン
のビット列を含むか調べることにより同期パターンを検
出する、 ことを特徴とした同期パターン除去方法。
7. The synchronization pattern removing method according to claim 3, wherein a synchronization pattern including N bit values 0 consecutive in a bit string is used and M consecutive from a byte boundary in the encoded signal.
All bit values of bytes (M is a quotient of (N-7) divided by 8) are all 0
In the case of, the sync pattern removal method is characterized in that the sync pattern is detected by checking whether or not the bit string consisting of M bytes continuous with the byte data before and after the byte position includes the bit string of the sync pattern.
【請求項8】 請求項4の同期パターン挿入方法におい
て、 ビット列に連続するN個のビット値0を含む同期パター
ンを使用し、符号化信号中のバイト境界から連続するM
バイト(Mは(N-7)を8で除算した商)のビット値が全て0
の場合のときのみ、そのバイト位置の前後のバイトデー
タと連続するMバイトから成るビット列が同期パターン
のビット列を含むか調べることにより同期パターンを検
出する、 ことを特徴とした同期パターン挿入方法。
8. The synchronization pattern insertion method according to claim 4, wherein a synchronization pattern including N bit values 0 consecutive in a bit string is used, and M consecutive from a byte boundary in a coded signal is used.
All bit values of bytes (M is a quotient of (N-7) divided by 8) are all 0
Only in the case of, the sync pattern insertion method is characterized in that the sync pattern is detected by checking whether or not the bit string consisting of M bytes continuous with the byte data before and after the byte position includes the bit string of the sync pattern.
【請求項9】 コンピュータにより、同期パターン除去
方法を行うためのプログラムを格納した記憶媒体であっ
て、上記プログラムはコンピュータに、 符号化信号中で本来同期パターンが存在する場所以外で
同期パターンと一致するビット列を検出した場合に、前
記同期パターンと一致するビット列中の最後のビットよ
り前、かつ、ビット列中の最後のバイト境界に、挿入結
果が同期パターンとならない所定のバイト列を挿入する
ことを特徴とした同期パターン除去方法、を、行わせる
ものであることを特徴とする記憶媒体。
9. A storage medium for storing a program for performing a synchronization pattern removal method by a computer, wherein the program matches the synchronization pattern in a computer except where the synchronization pattern originally exists in the encoded signal. When a bit string to be detected is detected, a predetermined byte string whose insertion result does not become a synchronization pattern is inserted before the last bit in the bit string that matches the synchronization pattern and at the last byte boundary in the bit string. A storage medium characterized in that the characteristic synchronization pattern removing method is performed.
【請求項10】 コンピュータにより、画像符号化方法
を行うためのプログラムを格納した記憶媒体であって、
上記プログラムはコンピュータに、 符号化信号中で本来同期パターンが存在する場所以外で
同期パターンと一致するビット列に対して所定のバイト
列を挿入し同期パターンを除去した結果の符号化信号を
入力し、バイト境界の位置から始まる前記所定のバイト
列を含み、かつ、前記所定のバイト列を符号化中から除
去した結果の位置に同期パターンと一致するビット列が
存在する場合に前記所定のバイト列を符号化信号から除
去することを特徴とした同期パターン挿入方法、を、 行わせるものであることを特徴とする記憶媒体。
10. A storage medium that stores a program for performing an image encoding method by a computer,
The above program inputs a coded signal as a result of removing a sync pattern by inserting a predetermined byte string into a bit string that matches the sync pattern at a position other than where the sync pattern originally exists in the coded signal, The predetermined byte sequence is encoded when including the predetermined byte sequence starting from the position of the byte boundary, and when there is a bit sequence that matches the synchronization pattern at the position resulting from the removal of the predetermined byte sequence from encoding. A storage medium characterized by causing a synchronization pattern insertion method characterized by removing the synchronization signal from the encoded signal.
【請求項11】 コンピュータにより、画像符号化方法
を行うためのプログラムを格納した記憶媒体であって、
上記プログラムはコンピュータに、符号化信号中で本来
同期パターンが存在する場所以外で同期パターンと一致
するビット列を検出した場合に、前記同期パターンと一
致するビット列中の最後のビットより前、かつ、ビット
列中の最後のバイト境界に、挿入結果が同期パターンと
ならない所定のバイト列を挿入し、前記所定のバイト列
を挿入した結果の符号化信号に対し所定の位置に同期パ
ターンを挿入することを特徴とした同期パターン除去方
法、を、 行わせるものであることを特徴とする記憶媒体。
11. A storage medium storing a program for performing an image encoding method by a computer,
The above program causes the computer to detect a bit string that matches the sync pattern at a position other than the place where the sync pattern originally exists in the encoded signal, before the last bit in the bit string that matches the sync pattern, and the bit string. A predetermined byte sequence whose insertion result does not become a synchronization pattern is inserted at the last byte boundary in the inside, and a synchronization pattern is inserted at a predetermined position with respect to the encoded signal resulting from the insertion of the predetermined byte sequence. And a method for removing a synchronization pattern.
【請求項12】 コンピュータにより、画像符号化方法
を行うためのプログラムを格納した記憶媒体であって、
上記プログラムはコンピュータに、 符号化信号中で本来同期パターンが存在する場所以外で
同期パターンと一致するビット列に対して所定のバイト
列を挿入して同期パターンを除去した結果に対し所定の
位置に同期パターンを挿入した符号化信号を入力し、符
号化信号の所定の位置から同期パターンを除去し、バイ
ト境界の位置から始まる前記所定のバイト列を含み、か
つ、前記所定のバイト列を符号化中から除去した結果の
位置に同期パターンと一致するビット列が存在する場合
に前記所定のバイト列を符号化信号から除去し、前記所
定のバイト列を除去した結果の符号化信号を出力するこ
とを特徴とした同期パターン挿入方法、を、 行わせるものであることを特徴とする記憶媒体。
12. A storage medium storing a program for performing an image encoding method by a computer,
The above program synchronizes to the computer at a predetermined position with respect to the result of removing the sync pattern by inserting a predetermined byte string into a bit string that matches the sync pattern at a position other than where the sync pattern originally exists in the encoded signal. A coded signal with a pattern inserted is input, a sync pattern is removed from a predetermined position of the coded signal, the predetermined byte sequence starting from a byte boundary position is included, and the predetermined byte sequence is being encoded. When there is a bit string that coincides with the synchronization pattern at the position resulting from the removal from the predetermined byte sequence, the predetermined byte sequence is removed from the encoded signal, and the encoded signal obtained as a result of removing the predetermined byte sequence is output. And a synchronization pattern inserting method.
JP2002026188A 2002-02-01 2002-02-01 Method for inserting synchronous pattern and method for removing synchronous pattern Pending JP2003229828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002026188A JP2003229828A (en) 2002-02-01 2002-02-01 Method for inserting synchronous pattern and method for removing synchronous pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002026188A JP2003229828A (en) 2002-02-01 2002-02-01 Method for inserting synchronous pattern and method for removing synchronous pattern

Publications (1)

Publication Number Publication Date
JP2003229828A true JP2003229828A (en) 2003-08-15

Family

ID=27748106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002026188A Pending JP2003229828A (en) 2002-02-01 2002-02-01 Method for inserting synchronous pattern and method for removing synchronous pattern

Country Status (1)

Country Link
JP (1) JP2003229828A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312272A (en) * 2006-05-22 2007-11-29 Victor Co Of Japan Ltd Variable length decoder
JP2009200595A (en) * 2008-02-19 2009-09-03 Fujitsu Ltd Signature management program, signature management method and signature management apparatus
JP2011061815A (en) * 2010-10-12 2011-03-24 Fujitsu Ltd Signature management method, and signature management system
JP2013527996A (en) * 2010-02-22 2013-07-04 ドルビー ラボラトリーズ ライセンシング コーポレイション Video display with rendering control using metadata embedded in the bitstream

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007312272A (en) * 2006-05-22 2007-11-29 Victor Co Of Japan Ltd Variable length decoder
JP2009200595A (en) * 2008-02-19 2009-09-03 Fujitsu Ltd Signature management program, signature management method and signature management apparatus
US8909921B2 (en) 2008-02-19 2014-12-09 Fujitsu Limited Signature management method and signature management device
JP2013527996A (en) * 2010-02-22 2013-07-04 ドルビー ラボラトリーズ ライセンシング コーポレイション Video display with rendering control using metadata embedded in the bitstream
JP2011061815A (en) * 2010-10-12 2011-03-24 Fujitsu Ltd Signature management method, and signature management system

Similar Documents

Publication Publication Date Title
JP3657972B2 (en) Decoding method and apparatus
JPH11112454A (en) Mpeg ii system with peg decoder
GB2326048A (en) Embedding digital watermarks in compressed image data
JP2002519941A (en) Image encoding device and image decoding device
US5404166A (en) Variable-length to fixed-length data word reformatting apparatus
JPH07105638A (en) Picture data recording and reproducing device
JP4174960B2 (en) Signal processing apparatus and method, and file generation method
EP0574917B1 (en) Method and system for dubbing a digital video signal on a record medium
WO2001006455A1 (en) Embedding auxiliary data in an information signal
JP2003229828A (en) Method for inserting synchronous pattern and method for removing synchronous pattern
JP2822940B2 (en) Video and audio data editing device
JP2989417B2 (en) Digital information playback device
JP2011061281A (en) Media file restoration method, media file preparing method, and media file reproducing method and device
EP0920019A2 (en) Method for cancelling abnormal synchronization signal
JP2735728B2 (en) Variable length code decoding circuit
JP3158603B2 (en) Digital image signal transmission equipment
JP3563733B2 (en) Compression encoded audio data playback device
JPH0983983A (en) Video telephone system
TW389020B (en) Method for coding moving picture information, method for replacing key signal information
JP2000508146A (en) Data compression / expansion for multiple digital information signals
JPH05207293A (en) Variable length coding decoding circuit
JP2003233396A (en) Decoding device
JPH10285210A (en) Method for converting packet and its device
JPH0668616A (en) Method for dubbing digital video signal
CN1335717A (en) Information processing apparatus, information processing method and recording media