JPH06178281A - Bit error detection method - Google Patents

Bit error detection method

Info

Publication number
JPH06178281A
JPH06178281A JP32532492A JP32532492A JPH06178281A JP H06178281 A JPH06178281 A JP H06178281A JP 32532492 A JP32532492 A JP 32532492A JP 32532492 A JP32532492 A JP 32532492A JP H06178281 A JPH06178281 A JP H06178281A
Authority
JP
Japan
Prior art keywords
line
block
eob
code
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP32532492A
Other languages
Japanese (ja)
Inventor
Sachihiro Noguchi
祥宏 野口
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.)
Asahi Chemical Industry Co Ltd
Original Assignee
Asahi Chemical Industry 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 Asahi Chemical Industry Co Ltd filed Critical Asahi Chemical Industry Co Ltd
Priority to JP32532492A priority Critical patent/JPH06178281A/en
Publication of JPH06178281A publication Critical patent/JPH06178281A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Error Detection And Correction (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To simplify the bit error detection of compression data by counting the number of EOB codes for each line of macro block layer and checking the relation in the block number and macro block line number. CONSTITUTION:Two-dimension quantization coefficient data being a quantization output of an orthogonal transformation coefficient are converted into a Huffman code while being subjected to zigzag scanning from a low-order (low frequency component) to a high-order (high frequency component) at a variable length coding section 5. In this case, compression picture data in use adopt a hierarchical structure and header attribute information representing the order of macro block line is given to each line of macro block layer and one EOB (end of block) code is inserted without fail to each block independently of whether or not a final quantization coefficient of zigzag scanning is zero. Then an error check section 26 of a compression picture reproduction device detects the EOB code to count the number of EOBs in one line of macro block.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は高能率符号化による圧縮
画像データを再生する際のビットエラーの検出が簡単な
ビットエラー検出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bit error detecting method for easily detecting a bit error when reproducing compressed image data by high efficiency coding.

【0002】[0002]

【従来の技術】従来、圧縮画像データが4つのレイヤか
らなる階層構造をとる画像圧縮符号化方式が知られてい
る。この4つのレイヤとは、ブロック,マクロブロッ
ク,ライン・オブ・マクロブロックおよびピクチュアで
ある。各ブロックには圧縮画像データが入っており、ブ
ロック単位の2次元の直交変換を考慮した階層構造とな
っている。
2. Description of the Related Art Conventionally, there has been known an image compression coding system in which compressed image data has a hierarchical structure composed of four layers. The four layers are a block, a macroblock, a line of macroblock and a picture. Each block contains compressed image data, and has a hierarchical structure that takes into account two-dimensional orthogonal transformation in block units.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像圧縮符号化方式では、各ブロックに圧縮
画像データが入っているので、例え1ビットでもエラー
が生ずると、このエラーは以後のブロックに伝搬するの
で画像品質が大きく劣化してしまうこととなるが、その
ビットエラーの検出は困難であった。
However, in such a conventional image compression coding method, since compressed image data is contained in each block, if an error occurs even in one bit, this error will occur in the subsequent blocks. However, it is difficult to detect the bit error.

【0004】本発明の目的は、上述のように従来の画像
圧縮符号化方式がビットエラーの検出に困難であった点
を解決し、階層構造を用いた圧縮画像データの再生に際
して簡単にビットエラーを検出できるビットエラー検出
方法を提供することにある。
An object of the present invention is to solve the problem that the conventional image compression encoding system is difficult to detect bit errors as described above, and to easily reproduce bit errors when reproducing compressed image data using a hierarchical structure. An object of the present invention is to provide a bit error detection method capable of detecting the error.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明の方法は、画像信号を複数のブロックに分割
する画像データ前処理工程と、前記ブロックの可変長符
号化に際し各前記ブロック毎に必ずEOB符号を付加し
て階層構造の圧縮画像データを得る可変長符号化工程
と、前記圧縮画像データを再生するに際し、前記EOB
符号の個数を数え、当該EOBの数が所定数となるか否
かに応じてビットエラーの判断をする圧縮データ再生工
程とを有することを特徴とする。
In order to achieve the above object, the method of the present invention comprises an image data preprocessing step of dividing an image signal into a plurality of blocks, and a variable length coding of each block for each block. To the variable length coding step for obtaining the compressed image data of the hierarchical structure by always adding the EOB code to the
It is characterized by including a compressed data reproducing step of counting the number of codes and judging a bit error according to whether or not the number of the EOB becomes a predetermined number.

【0006】また、本発明は好ましくは、前記圧縮デー
タはブロック,マクロブロック,ライン・オブ・マクロ
ブロックおよびピクチュアの各レイヤからなり、前記圧
縮データ再生工程において、ライン・オブ・マクロブロ
ック・レイヤのヘッダ属性情報中のマクロブロックのラ
イン番号とカウントしたEOB符号の個数との関係が正
しいか否かで圧縮画像データのビットエラーを検出する
ことを特徴とすることができる。
Further, in the present invention, preferably, the compressed data comprises layers of a block, a macroblock, a line of macroblock and a picture, and in the compressed data reproducing step, a line of macroblock layer is formed. It can be characterized in that a bit error of the compressed image data is detected depending on whether or not the relationship between the line number of the macroblock in the header attribute information and the number of counted EOB codes is correct.

【0007】[0007]

【作用】本発明では、階層構造の圧縮画像データのブロ
ック毎にEOB符号を必ず付加し、再生系においてライ
ン・オブ・マクロブロック・レイヤごとにEOB符号の
個数を数えて、ブロックの数とマクロブロック・ライン
数の関係をチェックすることによりビットエラーの検出
をする。従って、本発明では圧縮率は多少低下するもの
の、エラー検出の精度が向上し、結果的に画質が良くな
る。
According to the present invention, the EOB code is always added to each block of the compressed image data having the hierarchical structure, and the number of EOB codes is counted for each line of macroblock layer in the reproducing system to determine the number of blocks and the macro. Bit errors are detected by checking the relationship between the number of block lines. Therefore, in the present invention, although the compression rate is slightly lowered, the accuracy of error detection is improved and the image quality is improved as a result.

【0008】[0008]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0009】図1は本発明の一実施例で用いる圧縮画像
データの階層構成例を示す。圧縮画像データは、ブロッ
ク(B),マクロブロック(MB),ライン・オブ・マ
クロブロック(LMB)およびピクチュア(P)からな
る階層構造をとる。1つのブロックは4画素×4画素か
らなり、1つのマクロブロックは輝度と色差情報を含む
6つのブロックからなり、1つのライン・オブ・マクロ
ブロックは31のマクロブロックからなり、1つのピク
チュアは26ラインのライン・オブ・マクロブロックか
らなる。これにより1つのピクチュアは4836個のブ
ロックを有し、208画素×248画素の1画面を表す
こととなる。
FIG. 1 shows an example of a hierarchical structure of compressed image data used in an embodiment of the present invention. The compressed image data has a hierarchical structure composed of a block (B), a macroblock (MB), a line of macroblock (LMB) and a picture (P). One block is composed of 4 pixels × 4 pixels, one macroblock is composed of 6 blocks containing luminance and color difference information, one line of macroblock is composed of 31 macroblocks, and one picture is composed of 26 macroblocks. It consists of a line of macroblocks of lines. As a result, one picture has 4836 blocks and represents one screen of 208 pixels × 248 pixels.

【0010】1つのピクチュア・レイヤごとに図2に示
すような1つのヘッダ属性情報を付ける。図2におい
て、PSCはピクチュア・スタート・コードであり、P
TYPEはタイプインフォーメションであり、QBSは
量子化インデックスビットシフトであり、属性情報には
各種ファクタ値,Y/C量子化係数テーブル値などが入
る。
One header attribute information as shown in FIG. 2 is attached to each picture layer. In FIG. 2, PSC is a picture start code, and P
TYPE is a type information, QBS is a quantized index bit shift, and various factor values, Y / C quantized coefficient table values, etc. are entered in the attribute information.

【0011】また、1つのライン・オブ・マクロブロッ
ク・レイヤごとに図3に示すような1つのヘッダ属性情
報をつける。図3において、LMBSCはライン・オブ
・マクロブロック・スタートコードであり、LMBNは
何マクロブロック・ライン目かを示す1〜26が入るラ
イン・オブ・マクロブロック・ナンバーである。マクロ
ブロック・レイヤとブロック・レイヤにはヘッダ属性情
報は無い。
Further, one header attribute information as shown in FIG. 3 is attached to each line of macroblock layer. In FIG. 3, LMBSC is a line-of-macroblock start code, and LMBN is a line-of-macroblock number containing 1 to 26 indicating which macroblock line. There is no header attribute information in the macroblock layer and block layer.

【0012】図4は本発明の一実施例の画像圧縮符号化
器で実行する画像圧縮アルゴリズムの機能ブロックを示
す。図4の内容を処理の流れに沿って説明する。画像の
各画素間で相関が比較的高いのは一般に近傍数画素まで
であるので、圧縮効果を上げるため、まず画像データ前
処理部1において、入力デジタル画像データの1画面5
12×480画素を248×208画素にディジタイズ
し、小さな領域にブロック化して前述の図1に示すよう
な階層構造の画像データを得る。
FIG. 4 shows the functional blocks of the image compression algorithm executed by the image compression encoder according to the embodiment of the present invention. The contents of FIG. 4 will be described along the flow of processing. Generally, the correlation between the pixels of the image is relatively high up to several pixels in the vicinity. Therefore, in order to improve the compression effect, first, in the image data preprocessing unit 1, one screen of the input digital image data
The 12 × 480 pixels are digitized to 248 × 208 pixels and are divided into blocks to obtain image data having a hierarchical structure as shown in FIG.

【0013】次に、直交変換符号化部2において、4×
4画素の2次元画像ブロック毎に座標軸回転を伴う2次
元アダマール変換あるいは2次元離散コサイン変換(D
CT)等により周波数領域への変換をし、電力の大きな
係数から順に並び線形結合で表現する各々の周波数成分
の変換係数を符号化する。その際、高圧縮符号化を実現
するために電力成分の小さい高周波成分を削除する。
Next, in the orthogonal transform coding unit 2, 4 ×
Two-dimensional Hadamard transform or two-dimensional discrete cosine transform (D) with coordinate axis rotation for each 4-pixel two-dimensional image block
CT) and the like are converted into the frequency domain, and the conversion coefficients of the respective frequency components that are arranged in order from the highest power and are expressed by linear combination are encoded. At that time, in order to realize high compression coding, high frequency components having small power components are deleted.

【0014】次に、フレーム内予測符号化部3におい
て、直交変換出力に対し、Y(輝度),Cb(ブルー系
色差),Cr(レッド系色差)のそれぞれのDC成分の
フレーム内予測符号化を行う。すなわち、1つ前のマク
ロブロックのデータから現在の注目画素のデータを予測
して、その予測値と入力信号の値との差のみを符号化す
る。つまり、予測がはずれた画素を有意画素としてその
画素間距離を符号化する。その際、1画面の一番最初の
マクロブロックには前の画面の頭のマクロブロックのデ
ータを配分する。
Next, in the intra-frame predictive coding unit 3, intra-frame predictive coding of DC components of Y (luminance), Cb (blue color difference), and Cr (red color difference) is performed on the orthogonal transform output. I do. That is, the data of the current pixel of interest is predicted from the data of the previous macroblock, and only the difference between the predicted value and the value of the input signal is encoded. In other words, the inter-pixel distance is coded with a pixel that is out of prediction as a significant pixel. At this time, the data of the head macroblock of the previous screen is distributed to the first macroblock of one screen.

【0015】次に、量子化部4において、視覚系に整合
させるため、予測符号化出力に対し周波数成分ごとに異
なった量子化幅の量子化(非直線量子化)を行う。すな
わち、エネルギー成分が少なく視覚的にも感度の鈍い周
波数の高い部分はステップ幅を大きくすることにより減
らし、視覚的に感度の鋭い周波数の低い部分はステップ
幅を小さくすることにより細かくするという適応ビット
配分を行う。
Next, in the quantizer 4, in order to match with the visual system, the predictive coding output is quantized with a different quantization width for each frequency component (non-linear quantization). That is, an adaptive bit that has a small energy component and is visually insensitive and has a high frequency is reduced by increasing the step width, and a portion having a visually sharp sensitivity and a low frequency is reduced by decreasing the step width. Make an allocation.

【0016】次に、可変長符号化部5において、直交変
換係数の量子化出力であるブロックの2次元量子化係数
データを低次(低周波成分)から高次(高周波成分)に
向ってジグザグ走査しながらハフマン符号に変換する。
Next, in the variable length coding unit 5, the two-dimensional quantized coefficient data of the block, which is the quantized output of the orthogonal transform coefficient, is zigzagged from the low order (low frequency component) to the high order (high frequency component). Convert to Huffman code while scanning.

【0017】すなわち、一般に次数を上げて行くと、変
換された成分のうち事実上“0”とみなされる項が増加
する。これが伝送の効率化につながる。そこで、符号化
は走査の順番に従って行い、量子化係数が非“0”とな
る最後の係数まで符号化の対象にし、あとは打ち切り走
査の終りを示すEOB(End of Block)符
号を付ける。
That is, generally, as the order is increased, the number of terms which are considered to be "0" in the converted components increases. This leads to efficient transmission. Therefore, the encoding is performed according to the scanning order, and the last coefficient at which the quantized coefficient is non- “0” is the object of encoding, and the EOB (End of Block) code indicating the end of the abort scanning is added.

【0018】上記ジグザグ走査で得られる1次元データ
はいくつかの連続する“0”と、“0”でないデータと
が含まれており、“0”の連続する個数(ラン長)と
“0”でないデータ(有意変換係数という)との組み合
わせの2次元符号(シンボル)に対し、1つのコードを
発生するような2次元ハフマン符号化を行う。ハフマン
符号化では生起確率の高いシンボルほど短いコードが与
えられ、これにより平均符号長を最小にし、伝送効率を
高める。ハフマン符号化後のデータ量は絵柄により変動
するので一度バッファメモリに蓄えた後、一定のスピー
ドで読み出される。
The one-dimensional data obtained by the above-mentioned zigzag scanning includes some continuous "0" s and non-zero "0" s, and the continuous number (run length) of "0s" and "0" s. Two-dimensional Huffman coding that generates one code is performed on a two-dimensional code (symbol) that is combined with non-data (called a significant conversion coefficient). In Huffman coding, shorter symbols are given to symbols with higher occurrence probability, which minimizes the average code length and improves transmission efficiency. Since the amount of data after Huffman coding varies depending on the design, it is stored once in the buffer memory and then read at a constant speed.

【0019】最後に、ビデオフレーム符号化部6におい
て、前述の図2および図3に示すようなヘッダ属性情報
を付けてフレーム構成へのフォーマット化を行う。
Finally, the video frame encoding unit 6 adds the header attribute information as shown in FIG. 2 and FIG. 3 to format the frame structure.

【0020】このようにしてデータ圧縮された圧縮画像
データはフロッピーディスク等の記録媒体に記録された
り、あるいは並直列変換して伝送路を介して遠方の装置
へ送信されたりする。
The compressed image data thus data-compressed is recorded on a recording medium such as a floppy disk, or parallel-serial converted and transmitted to a distant device via a transmission path.

【0021】図5は上述の可変長符号化部5において1
ブロックの量子化係数のデータをハフマン符号に変換す
る手順を具体的数値例を用いて示したものである。ま
ず、図5の(A)の矢印で示すように、4×4ブロック
内の量子化係数QINDXをジグザグ・スキャンする。
この量子化係数のスキャニング結果を図5の(B)に示
す。そして、図5の(C)に示すように、スキャンの最
終非零係数の直後にEOBを入れることにより以後の零
係数の伝送効率を高める。量子化係数は、図5の(D)
に示すように零係数のラン長:Rと、それに続く非零係
数のレベル:Lを組み合わせた2次元符号(R,L)を
用いる。2次元符号(R,L)のRは非零成分に先立つ
零成分の個数を4bits(ビット)の符号無し整数で
示し、Lは非零成分のレベルを8bitsの符号付き整
数で表す。さらに、2次元符号の事象に対し、ハフマン
符号化を適用する。ハフマン符号化の際にはEOBも発
生事項の1つとしてカウントされ、これに特定のビット
・コードが割り付けられる。ハフマン符号長は最長14
bitsまでとする。
FIG. 5 is a block diagram of the variable length coding unit 5 described above.
The procedure of converting the data of the quantized coefficient of the block into the Huffman code is shown by using a specific numerical example. First, as shown by the arrow in FIG. 5A, the quantized coefficient QINDX in the 4 × 4 block is zigzag-scanned.
The result of scanning the quantized coefficient is shown in FIG. Then, as shown in FIG. 5C, by inserting EOB immediately after the final non-zero coefficient of the scan, the transmission efficiency of the subsequent zero coefficient is improved. The quantization coefficient is (D) in FIG.
A two-dimensional code (R, L) in which a run length R of zero coefficient and a level L of non-zero coefficient following it are combined is used as shown in FIG. R of the two-dimensional code (R, L) represents the number of zero components preceding the non-zero component by an unsigned integer of 4 bits (bits), and L represents the level of the non-zero component by a signed integer of 8 bits. Furthermore, Huffman coding is applied to the event of the two-dimensional code. During Huffman coding, EOB is also counted as one of the occurrences, and a specific bit code is assigned to it. Maximum Huffman code length is 14
up to bits.

【0022】図6は上述のジグザグ・スキャンの結果、
最後の量子化係数が“0”では有意変換係数である場合
の本発明に係る取扱いを示す。図6の(A)のようなブ
ロックの量子化係数のジグザグ・スキャニングの結果は
図6の(B)のようになる。このように最後の量子化係
数が“0”でない場合は従来技術では図7の(A)およ
び(B)に示すように、EOB符号を付けなかった。本
発明では後述のようにこのEOBをビットエラー検出の
チェック・コードとして画像データの再生時に用いるた
め、図6の(C)および(D)に示すように、最後の量
子化係数が“0”でない場合にもEOBを入れる。すな
わち、本発明ではブロックごとに必ずEOB(エンド・
オブ・ブロック)符号を挿入する。
FIG. 6 shows the result of the zigzag scan described above.
The handling according to the present invention when the last quantized coefficient is a significant conversion coefficient when "0" is shown. The result of the zigzag scanning of the quantized coefficient of the block as shown in FIG. 6A is as shown in FIG. In this way, when the last quantization coefficient is not "0", the EOB code is not added in the prior art as shown in FIGS. 7 (A) and 7 (B). In the present invention, since this EOB is used as a check code for bit error detection at the time of reproducing image data as described later, as shown in FIGS. 6C and 6D, the last quantization coefficient is “0”. If not, add EOB. That is, in the present invention, EOB (end
Of block) code is inserted.

【0023】次に、図8を参照して本発明実施例におけ
る圧縮画像データの再生処理について説明する。記録媒
体に記録され、あるいは送信された上述の圧縮データは
バッファメモリ(不図示)に一時格納された後、図8の
圧縮画像再生器に供給される。この圧縮画像再生器で
は、可変長符号復号部11,逆量子化部12,予測符号
復号部13および逆アダマール変換部14により、図4
の画像圧縮符号化器とは逆の動作を行って符号化前の画
像信号に再生する。まず、可変長符号復号部11では後
述のように可変長符号化処理とは逆の動作を行ってハフ
マン符号を1ブロックの量子化係数データに変換する。
次に、逆量子化部12において入力データの量子化係数
QINDXの値に応じて量子化係数QINDXのデータ
を変換することにより、非線形量子化を実現する。次に
予測符号復号部13において入力データと予測値との加
算処理により予測符号化前の状態のデータを得る。次に
逆アダマール変換部14では逆量子化部12から来た
1,0ビットのアダマール・インデックスをパイプライ
ン処理により4×4の2次元逆アダマール変換を行っ
て、実画像データを求める。
Next, the reproduction processing of the compressed image data in the embodiment of the present invention will be described with reference to FIG. The above-mentioned compressed data recorded or transmitted on the recording medium is temporarily stored in a buffer memory (not shown) and then supplied to the compressed image reproducing device shown in FIG. In this compressed image reproducing device, the variable length code decoding unit 11, the dequantization unit 12, the prediction code decoding unit 13 and the inverse Hadamard transform unit 14 are used in FIG.
The image compression encoder of FIG. First, the variable length code decoding unit 11 converts the Huffman code into one block of quantized coefficient data by performing an operation opposite to that of the variable length coding process as described later.
Next, the inverse quantization unit 12 transforms the data of the quantization coefficient QINDX according to the value of the quantization coefficient QINDX of the input data to realize the non-linear quantization. Next, the predictive code decoding unit 13 obtains data in a state before predictive coding by adding the input data and the predicted value. Next, the inverse Hadamard transform unit 14 performs a 4 × 4 two-dimensional inverse Hadamard transform on the 1,0-bit Hadamard index from the inverse quantization unit 12 by pipeline processing to obtain actual image data.

【0024】図9は図8の可変長符号復号部11の詳細
な構成を示す。まず、最初にヘッダ属性情報抽出部21
において入力した画像符号化データ(圧縮画像データ)
における以下のヘッダ属性情報について抽出し、所定の
処理を行う。すなわち、ピクチュア・レイヤのヘッダ属
性情報の中の19ビットのPSC(ピクチュア・スター
ト・コード)を検出し、ピクチュア・ヘッダのオクテッ
ト・カウンタを初期化する。また、ピクチュア属性情報
の中のY,Cファクター、Y,C量子化テーブル情報を
抽出し、量子化係数QINDXのデータ出力に同期させ
て、所定のタイミング・チャートのタイミングでピクチ
ュア属性情報を出力する。ライン・オブ・マクロブロッ
ク・レイヤのヘッダ属性情報の19ビットのLMBSC
(ライン・オブ・マクロブロック・スタート・コード)
とLMBN(ライン・オブ・マクロブロック・ナンバ
ー)を検出し、可変長符号復号部(VLCD部)11を
1マクロブロック・ラインごとに初期化する。
FIG. 9 shows a detailed configuration of the variable length code decoding unit 11 of FIG. First, the header attribute information extraction unit 21
Image coded data input in (compressed image data)
The following header attribute information in is extracted and a predetermined process is performed. That is, a 19-bit PSC (picture start code) in the header attribute information of the picture layer is detected, and the octet counter of the picture header is initialized. Also, Y, C factors, Y, C quantization table information are extracted from the picture attribute information, and the picture attribute information is output at the timing of a predetermined timing chart in synchronization with the data output of the quantization coefficient QINDX. . 19-bit LMBSC of header attribute information of line of macroblock layer
(Line of Macroblock Start Code)
And LMBN (line of macroblock number) are detected, and the variable length code decoding unit (VLCD unit) 11 is initialized for each macroblock line.

【0025】ハフマン符号の2次元符号への復号はハフ
マン符号復号部22の内部のハフマンROMテーブルを
34.92nsのサイクルで引いて行う。まず、2次元
符号復号部24は動かさずにハフマン符号復号部22の
みを2kサイクル動作させることにより、いかなるハフ
マン符号の組み合わせの場合にも、128ワード×12
ビットのFIFO(ファストイン・ファストアウト・メ
モリ)23がいっぱいになるまで12ビットの2次元符
号(図5の(D)、または図6の(D)を参照)をスタ
ックする。FIFO23がいっぱいになった時点でハフ
マン符号復号部22の動作を一時停止し、2次元符号復
号部24を139.68nsのバースト・サイクルで動
かし初め、以降停止することなく、1画面のデータを処
理し続ける。2次元符号復号部24が動作し、FIFO
23に空きが生じると、ハフマン符号復号部22はまた
FIFO23がいっぱいになるまで動作を続ける。
Decoding of the Huffman code into a two-dimensional code is performed by drawing the Huffman ROM table inside the Huffman code decoding unit 22 at a cycle of 34.92 ns. First, by operating only the Huffman code decoding unit 22 for 2k cycles without moving the two-dimensional code decoding unit 24, 128 words × 12 can be obtained in any combination of Huffman codes.
A 12-bit two-dimensional code (see FIG. 5D or FIG. 6D) is stacked until the bit FIFO (fast-in / fast-out memory) 23 is full. When the FIFO 23 becomes full, the operation of the Huffman code decoding unit 22 is temporarily stopped, the two-dimensional code decoding unit 24 is started to operate in a burst cycle of 139.68 ns, and one screen of data is processed without stopping thereafter. Keep doing The two-dimensional encoding / decoding unit 24 operates, and the FIFO
When 23 becomes available, the Huffman code decoding unit 22 continues to operate until the FIFO 23 becomes full again.

【0026】2次元符号復号部24では零係数のラン
長:Rと、それに続く非零係数のレベル:Lを組み合わ
せた2次元符号(R,L)を、量子化係数のスキャニン
グ結果(図5の(B),図6の(B)を参照)に復号す
る。
In the two-dimensional code decoding unit 24, the two-dimensional code (R, L) in which the run length of the zero coefficient: R and the level of the following non-zero coefficient: L are combined is used to scan the quantized coefficient (see FIG. (B) of FIG. 6 and (B) of FIG. 6).

【0027】2次元符号復号部24の出力はブロック内
スキャン順序変換部25へ供給される。この変換部25
ではブロック内のジグザグ・スキャン順序を、図10に
示すように、1行ごとのスキャン順序に戻し、さらにそ
れぞれの行方向,列方向のスキャン順序を逆アダマール
変換部14に適合する高速パイプライン演算のためのス
キャン順序に変換し、量子化係数QINDXとして出力
する。
The output of the two-dimensional code decoding unit 24 is supplied to the intra-block scan order conversion unit 25. This conversion unit 25
Then, the zigzag scan order in the block is returned to the scan order for each row as shown in FIG. 10, and the scan order in each row direction and column direction is adapted to the inverse Hadamard transform unit 14 in a high-speed pipeline operation. The scan order is converted into a scan order for and output as a quantized coefficient QINDX.

【0028】上記のヘッダ属性情報抽出部21で検出さ
れたヘッダ属性情報の一部はエラー検出部26にも供給
される。エラー検出部26ではデータ中のLMBN(ラ
イン・オブ・マクロブロック・ナンバー)とEOB(エ
ンド・オブ・ブロック)の数の関係を常に監視すること
により圧縮画像データの誤りを検出する。
Part of the header attribute information detected by the header attribute information extracting section 21 is also supplied to the error detecting section 26. The error detection unit 26 detects an error in the compressed image data by constantly monitoring the relationship between the number of LMBN (line of macroblock number) and EOB (end of block) in the data.

【0029】すなわち、前述したように、本発明で用い
る圧縮画像データは階層構造をとり、1つのライン・オ
ブ・マクロブロック・レイヤごとにヘッダ属性情報とし
て何マクロブロック・ライン目かを入れ、またブロック
ごとに図5および図6で示すように、ジグザグ走査の最
後の量子化係数が零か否かにかかわらず必ず1つのEO
B符号を挿入している。1つのライン・オブ・マクロブ
ロックのブロックの数は一定(本実施例では31×6
個)であり、上記のように各ブロックには必ずEOB符
号が1個挿入されているのであるから、各ライン・オブ
・マクロブロックに存在するEOB符号の個数は一定で
ある。しかし、伝送によりビットエラーが発生した場合
はデータがずれ、EOB符号の数とLMBNの関係が変
化してしまう。
That is, as described above, the compressed image data used in the present invention has a hierarchical structure, and the number of macroblock lines is inserted as header attribute information for each line of macroblock layer. For each block, as shown in FIGS. 5 and 6, there is always one EO regardless of whether or not the last quantization coefficient of the zigzag scan is zero.
B code is inserted. The number of blocks in one line of macroblock is constant (31 × 6 in this embodiment).
Since one EOB code is always inserted in each block as described above, the number of EOB codes existing in each line of macroblock is constant. However, when a bit error occurs due to transmission, the data shifts and the relationship between the number of EOB codes and LMBN changes.

【0030】そこで、圧縮画像再生器のエラー検出部2
6はこのEOB符号を検出し、1つのライン・オブ・マ
クロブロックの中に何個のEOBが存在するかをカウン
トする。例えば、本実施例の場合は、31×6個のEO
B符号ごとにライン・オブ・マクロブロック・ヘッダが
来て、なおかつヘッダ属性情報の中のマクロブロックの
ライン番号(LMBN)との関係が正しいか否かで、エ
ラー検出部26は圧縮画像データのビットエラーを検出
する。
Therefore, the error detecting section 2 of the compressed image reproducing device
6 detects this EOB code and counts how many EOBs are present in one line of macroblock. For example, in the case of this embodiment, 31 × 6 EO
A line of macroblock header comes for each B code, and the error detection unit 26 determines whether the relationship with the macroblock line number (LMBN) in the header attribute information is correct. Detects bit errors.

【0031】このようにして、ビットエラーが検出され
た場合は、エラー検出部26からその旨を示す誤り検出
信号が不図示の制御部へ送られる。制御部では誤り検出
信号に応じて、該当の画面を捨てる、あるいは同一画面
の圧縮データを再度受信する、または圧縮再生処理を中
止する等の所定の制御動作が行われる。
In this way, when a bit error is detected, the error detection section 26 sends an error detection signal to that effect to a control section (not shown). According to the error detection signal, the control unit performs a predetermined control operation such as discarding the corresponding screen, receiving the compressed data of the same screen again, or stopping the compression reproduction process.

【0032】なお、本発明は、上記実施例で述べた画像
圧縮・復号の処理方式に限定されず、各種の階層構造,
直交変換方式,予測符号化方式,量子化方式,可変長符
号化方式に適用できる。
The present invention is not limited to the image compression / decoding processing method described in the above embodiment, but various hierarchical structures,
It can be applied to orthogonal transform method, predictive coding method, quantization method, and variable length coding method.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
階層構造の圧縮画像データのブロック毎にEOB符号を
必ず付加し、再生系においてライン・オブ・マクロブロ
ック・レイヤごとにEOB符号の個数を数えて、ブロッ
クの数とマクロブロック・ライン数の関係をチェックす
ることによりビットエラーの検出をするようにしている
ので、圧縮データのビットエラーの検出が簡単に簡潔な
ハードウエアで実現することができ、かつ圧縮率は多少
低下するものの、エラー検出の精度が向上し、結果的に
画質が良くなるという顕著な効果がある。
As described above, according to the present invention,
An EOB code is always added to each block of the compressed image data having a hierarchical structure, the number of EOB codes is counted for each line of macroblock layer in the reproduction system, and the relationship between the number of blocks and the number of macroblock lines is calculated. Since bit error detection is performed by checking, it is possible to easily detect bit errors in compressed data with simple hardware, and the compression rate is slightly reduced, but error detection accuracy is low. Is improved, resulting in a better image quality.

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

【図1】本発明の一実施例で用いる圧縮画像データの階
層構成例を示す概念図である。
FIG. 1 is a conceptual diagram showing an example of a hierarchical structure of compressed image data used in an embodiment of the present invention.

【図2】図1の1つのピクチュア・レイヤごとに付けら
れるヘッダ属性情報の構成を示すフォーマット図であ
る。
2 is a format diagram showing a configuration of header attribute information attached to each one picture layer of FIG. 1. FIG.

【図3】図1の1つのライン・オブ・マクロブロック・
レイヤごとに付けられるヘッダ属性情報の構成を示すフ
ォーマット図である。
FIG. 3 shows one line-of-macroblock of FIG.
It is a format figure which shows the structure of the header attribute information added for every layer.

【図4】本発明の一実施例の画像圧縮符号器で実行する
画像圧縮アルゴリズムの機能ブロックを示すブロック図
である。
FIG. 4 is a block diagram showing functional blocks of an image compression algorithm executed by the image compression encoder according to the embodiment of the present invention.

【図5】図4の可変長符号化部において1ブロックの量
子化係数データをハフマン符号に変換する際の本発明実
施例の変換手順を示す説明図である。
5 is an explanatory diagram showing a conversion procedure of an embodiment of the present invention when converting one block of quantized coefficient data into a Huffman code in the variable length coding unit of FIG.

【図6】最後の量子化係数が零でない場合の本発明実施
例の変換手順を示す説明図である。
FIG. 6 is an explanatory diagram showing a conversion procedure of the embodiment of the present invention when the final quantized coefficient is not zero.

【図7】図6との比較のために掲げた従来例における変
換手順を示す説明図である。
FIG. 7 is an explanatory diagram showing a conversion procedure in a conventional example provided for comparison with FIG.

【図8】本発明の一実施例の圧縮画像再生器の構成を示
すブロック図である。
FIG. 8 is a block diagram showing a configuration of a compressed image reproducing device according to an embodiment of the present invention.

【図9】図8の可変長符号復号部の内部の詳細な構成を
示すブロック図である。
9 is a block diagram showing a detailed internal configuration of a variable length code decoding unit in FIG. 8. FIG.

【図10】図9のブロック内スキャン順序変換部におけ
る走査順序変換動作を示す説明図である。
FIG. 10 is an explanatory diagram showing a scan order conversion operation in the intra-block scan order conversion unit of FIG.

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

1 画像データ前処理部 2 直交変換部 3 フレーム内予測符号化部 4 量子化部 5 可変長符号化部 6 ビデオフレーム符号化部 11 可変長符号復号部 12 逆量子化部 13 予測符号復号部 14 逆アダマール変換部 21 ヘッダ属性情報抽出部 22 ハフマン符号復号部 23 FIFOメモリ 24 2次元符号復号部 25 ブロック内スキャン順序変換部 26 エラー検出部 LMB ライン・オブ・マクロブロック LMBN ライン・オブ・マクロブロック・ナンバー EOB エンド・オブ・ブロック DESCRIPTION OF SYMBOLS 1 Image data preprocessing unit 2 Orthogonal transformation unit 3 Intra-frame prediction coding unit 4 Quantization unit 5 Variable length coding unit 6 Video frame coding unit 11 Variable length code decoding unit 12 Inverse quantization unit 13 Prediction code decoding unit 14 Inverse Hadamard transform unit 21 Header attribute information extraction unit 22 Huffman code decoding unit 23 FIFO memory 24 Two-dimensional code decoding unit 25 In-block scan order conversion unit 26 Error detection unit LMB line of macroblock LMBN line of macroblock Number EOB End of Block

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/137 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location H04N 7/137 A

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 画像信号を複数のブロックに分割する画
像データ前処理工程と、 前記ブロックの可変長符号化に際し各前記ブロック毎に
必ずEOB符号を付加して階層構造の圧縮画像データを
得る可変長符号化工程と、 前記圧縮画像データを再生するに際し、前記EOB符号
の個数を数え、当該EOBの数が所定数となるか否かに
応じてビットエラーの判断をする圧縮データ再生工程と
を有することを特徴とするビットエラー検出方法。
1. An image data preprocessing step of dividing an image signal into a plurality of blocks, and an EOB code is added to each block without fail when variable length encoding of the block is performed to obtain compressed image data having a hierarchical structure. A long encoding step and a compressed data reproducing step of counting the number of the EOB codes when reproducing the compressed image data and judging a bit error according to whether the number of the EOB is a predetermined number or not. A method for detecting a bit error, comprising:
【請求項2】 前記圧縮データはブロック,マクロブロ
ック,ライン・オブ・マクロブロックおよびピクチュア
の各レイヤからなり、前記圧縮データ再生工程におい
て、ライン・オブ・マクロブロック・レイヤのヘッダ属
性情報中のマクロブロックのライン番号とカウントした
EOB符号の個数との関係が正しいか否かで圧縮画像デ
ータのビットエラーを検出することを特徴とする請求項
1に記載のビットエラー検出方法。
2. The compressed data comprises layers of blocks, macroblocks, line-of-macroblocks and picture layers, and in the compressed-data reproducing step, macros in header attribute information of the line-of-macroblock layer. 2. The bit error detection method according to claim 1, wherein the bit error of the compressed image data is detected depending on whether or not the relationship between the line number of the block and the number of counted EOB codes is correct.
JP32532492A 1992-12-04 1992-12-04 Bit error detection method Withdrawn JPH06178281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32532492A JPH06178281A (en) 1992-12-04 1992-12-04 Bit error detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32532492A JPH06178281A (en) 1992-12-04 1992-12-04 Bit error detection method

Publications (1)

Publication Number Publication Date
JPH06178281A true JPH06178281A (en) 1994-06-24

Family

ID=18175551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32532492A Withdrawn JPH06178281A (en) 1992-12-04 1992-12-04 Bit error detection method

Country Status (1)

Country Link
JP (1) JPH06178281A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0692912A2 (en) * 1994-07-11 1996-01-17 Samsung Electronics Co., Ltd. Sync restoring method and apparatus for variable-length decoding
JPH11177985A (en) * 1997-10-02 1999-07-02 At & T Corp Method and device for high speed image compression
JP2011124635A (en) * 2009-12-08 2011-06-23 Kddi Corp Channel information compression device and method, channel information expansion device and method, computer program, receiver, transmitter

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0692912A2 (en) * 1994-07-11 1996-01-17 Samsung Electronics Co., Ltd. Sync restoring method and apparatus for variable-length decoding
EP0692912A3 (en) * 1994-07-11 1996-10-30 Samsung Electronics Co Ltd Sync restoring method and apparatus for variable-length decoding
JPH11177985A (en) * 1997-10-02 1999-07-02 At & T Corp Method and device for high speed image compression
JP2011124635A (en) * 2009-12-08 2011-06-23 Kddi Corp Channel information compression device and method, channel information expansion device and method, computer program, receiver, transmitter
US8638845B2 (en) 2009-12-08 2014-01-28 Kddi Corporation Channel state information compressing apparatus and method, channel state information expanding apparatus and method, computer programs, receiver, and transmitter

Similar Documents

Publication Publication Date Title
US5838826A (en) Image processing apparatus and method using plural amounts corresponding to encoded data to control encoding
US7483585B2 (en) Image compression using variable bit size run length encoding
JP3097665B2 (en) Time-lapse recorder with anomaly detection function
JP2008527789A (en) Entropy encoding method
JPH10191336A (en) Variable length coder
US6078690A (en) Image data conversion device and method having function of inserting delimiter code into position in image data where a predetermined amount of data is reached
CN1124045C (en) Runlength coding method for use in video signal encoding system
JPH10224230A (en) Run length coder
JPH09162749A (en) Variable length code coder
JP3278948B2 (en) Variable length coding method
JP3292221B2 (en) Image compression coding method
JPH11187401A (en) Video signal encoder
US6606039B2 (en) Huffman encoder, Huffman encoding method and recording medium having program for Huffman encoding process recorded thereon
JPH06178281A (en) Bit error detection method
JP3105906B2 (en) Image processing device
CN112672164B (en) Video compression system and method, and video decompression system and method
US20020001414A1 (en) System for building a data compression encoder
JP3357468B2 (en) Image compression system and image reproduction system
JPH05227519A (en) Encoder and decoder for picture data
JPH09154133A (en) Image encoder and variable length coding method
KR0171443B1 (en) Apparatus and method of variable length code decoding of digital video cassette recorder
JP3434904B2 (en) Image data encoding device
KR100289698B1 (en) Method and apparatus for coding object information of image object plane
JP3546439B2 (en) Digital image signal encoding apparatus and encoding method
JPH05114240A (en) Image compression and coding apparatus

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000307