JP2000333180A - Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program - Google Patents

Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program

Info

Publication number
JP2000333180A
JP2000333180A JP14401499A JP14401499A JP2000333180A JP 2000333180 A JP2000333180 A JP 2000333180A JP 14401499 A JP14401499 A JP 14401499A JP 14401499 A JP14401499 A JP 14401499A JP 2000333180 A JP2000333180 A JP 2000333180A
Authority
JP
Japan
Prior art keywords
macroblock
skip
macro block
control method
skipped
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.)
Ceased
Application number
JP14401499A
Other languages
Japanese (ja)
Inventor
Takeshi Hanamura
剛 花村
Kazuyuki Takaya
和幸 高屋
Hiroyuki Kasai
裕之 笠井
Satoshi Nishimura
敏 西村
Wataru Kameyama
渉 亀山
Hideyoshi Tominaga
英義 富永
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.)
Media Glue Corp
Original Assignee
Media Glue Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Media Glue Corp filed Critical Media Glue Corp
Priority to JP14401499A priority Critical patent/JP2000333180A/en
Publication of JP2000333180A publication Critical patent/JP2000333180A/en
Ceased legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To obtain a method which prevents the first and last macro blocks of each slice consisting of one macro block or over from being changed into skip macro blocks by re-quantization processing in trans-coding that conducts re-quantization processing and to obtain its device and a program medium. SOLUTION: The method includes a quantization step (S1) where image information is quantized for each macro block, skip macro block detection steps (S2, S3) that detect a macro block which has been changed into a skip macro block having no motion compensation and needing no coding through the quantization processing, and macro block type revision steps (S4, S5) that revise the macro block type of the skip macro block detected by the skip macro block detection processing so as to avoid production of the skip macro block.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEG−2の1
つ以上のマクロブロックから構成されるスライス層につ
いて、再量子化処理によって問題となる各スライスの最
初および最後のマクロブロックがスキップマクロブロッ
クに変更されることから回避する方法、装置およびプロ
グラムを記録した媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention
For a slice layer composed of one or more macroblocks, a method, an apparatus, and a program for preventing the first and last macroblocks of each slice in question from being changed to skip macroblocks by the requantization process are recorded. It is about media.

【0002】[0002]

【従来の技術】文字、図形、音声、映像などの異なる情
報をデジタルデータで表現し、これらのメディアを統合
して一元的に取り扱うマルチメディアが近年注目を浴び
ている。このマルチメディアをより効果的に実現するキ
ー・テクノロジーのひとつとして情報圧縮技術がある。
情報圧縮技術は、情報の冗長性に着目し、冗長な部分の
情報を削減することにより、情報量を少なくする技術で
あり、これにより大量の情報を効率的に処理し、蓄積
し、伝送することが可能となる。
2. Description of the Related Art In recent years, multimedia that expresses different information such as characters, figures, sounds, and images by digital data, and integrates these media to handle them in a unified manner has been receiving attention in recent years. One of the key technologies to realize this multimedia more effectively is information compression technology.
Information compression technology is a technology that focuses on information redundancy and reduces the amount of information by reducing the information in redundant parts, thereby efficiently processing, storing, and transmitting a large amount of information. It becomes possible.

【0003】各種のメディアの情報量には大きな差があ
り、とりわけ、動画像は膨大な情報量を有するため、大
幅な情報の圧縮が必要となる。情報の圧縮方法には各種
方式があり、これらの方式を組み合わせることにより、
大幅な圧縮を実現している。一般に、これらの圧縮機能
はLSI(Large scale integrated circuit)として提
供されている。
[0003] There is a large difference in the amount of information of various media. In particular, since a moving image has a huge amount of information, a large amount of information compression is required. There are various methods for compressing information, and by combining these methods,
Significant compression has been achieved. Generally, these compression functions are provided as an LSI (Large scale integrated circuit).

【0004】「ディジタル画像圧縮の基礎:安田浩氏、
渡辺裕氏著」にもあるように、音声や画像の情報源符号
化(source coding:信号の統計的性質を利用して、情
報源のデータ圧縮を行うための符号化)は、非可逆符号
化(lossy coding)と可逆符号化(lossless coding)
の2つの部分から成り立っている。通常の画像の圧縮
は、非可逆符号化である。画像情報のうち、視覚特性上
目立たない部分を省略することによって圧縮を図る。
"Basics of digital image compression: Hiroshi Yasuda,
As described in "Watanabe Hiroshi", source coding of speech and images (source coding: coding for performing data compression of information sources using the statistical properties of signals) is an irreversible code. (Lossy coding) and lossless coding (lossless coding)
It consists of two parts. Normal image compression is lossy encoding. Compression is achieved by omitting a portion of the image information that is inconspicuous in visual characteristics.

【0005】非可逆符号化は、信号の予測、変換、量子
化が主な処理である。予測とは、前の時刻の信号を用い
て現在の信号の予測値を求め、その差分を符号化する技
術であり、変換とは、信号をいくつかまとめて周波数領
域のデータに変換し、変換係数を符号化する技術であ
り、量子化とは、連続する信号を適当な間隔で代表値に
置き換え、代表値の番号を符号化する技術である。
[0005] Irreversible coding is mainly processing of signal prediction, conversion and quantization. Prediction is a technique for obtaining a predicted value of a current signal using a signal at a previous time, and encoding a difference between the two. The quantization is a technique for coding coefficients, and the quantization is a technique for coding a number of a representative value by replacing continuous signals with representative values at appropriate intervals.

【0006】画像データは、予測や変換の有無のかかわ
らず、量子化を行うことによって初めて圧縮される。図
6に示すように、量子化によりシンボルの取りうる状態
数が削減され、平均符号長が圧縮される。ただし、画像
を直接量子化することは、少ないビット数でA−D変換
することと等価であり、擬輪郭などの雑音が現れる。そ
こで、量子化による誤差が視覚上目立たない部分に集中
するように処理する必要がある。予測符号化では、輝度
勾配の急な部分に量子化誤差を集めることができる。変
換符号化では、高域周波数の量子化を粗くすることによ
り、低域通過フィルタに近い効果が得られる。
Image data is compressed for the first time by performing quantization, irrespective of whether prediction or conversion is performed. As shown in FIG. 6, the number of states that a symbol can take is reduced by quantization, and the average code length is compressed. However, directly quantizing an image is equivalent to performing AD conversion with a small number of bits, and noise such as false contours appears. Therefore, it is necessary to perform processing so that an error due to quantization is concentrated on a visually inconspicuous portion. In predictive coding, quantization errors can be collected in a steep part of the luminance gradient. In the transform coding, an effect close to that of a low-pass filter can be obtained by roughening the quantization of the high frequency band.

【0007】ところで、MPEGの符号化アルゴリズム
は、動き補償フレーム間予測とDCTを用いたハイブリ
ッド符号化方式を基本としている。フレーム間予測は動
画像情報の圧縮に効果的であるが、以前のフレームの情
報を常に利用するため、ランダム・アクセス機能ができ
ない。そこでGOP(group of pictures)と呼ばれる
複数の画像フレームから構成されるレイヤを設けてい
る。
[0007] The MPEG coding algorithm is based on a hybrid coding system using motion compensated inter-frame prediction and DCT. Although inter-frame prediction is effective for compressing moving image information, since the information of the previous frame is always used, the random access function cannot be performed. Therefore, a layer including a plurality of image frames called a GOP (group of pictures) is provided.

【0008】GOPは3種類の符号化フレーム、すなわ
ち、フレーム内符号化フレーム(intra-coded pictur
e:I−ピクチャ)、フレ−ム間符号化フレーム(predi
ctive-coded picture:P−ピクチャ)、フレーム内挿
符号化フレーム(bidirectionally predictive-coded p
icture:B−ピクチャ)から構成されている。GOP構
造の例を図7に示す。I、B、Pはピクチャ・タイプを
示す。→は動き補償予測の向きを示す。図におけるフレ
ームごとの数字は、符号化器への入力順を表している。
図に示すように、各GOPで最初に符号化されるフレー
ムは必ずIピクチャでなければならない。Iピクチャは
DCTを用いるフレーム内符号化であるため、以前のフ
レームの情報を必要としないので、符号化データの開始
点のアドレス情報を用いればランダム・アクセスが可能
となる。
[0008] The GOP has three types of coded frames, that is, intra-coded picturs.
e: I-picture), inter-frame coded frame (predi
ctive-coded picture: P-picture, frame interpolation coding frame (bidirectionally predictive-coded p
picture: B-picture). FIG. 7 shows an example of the GOP structure. I, B, and P indicate picture types. → indicates the direction of motion compensation prediction. The numbers for each frame in the figure indicate the order of input to the encoder.
As shown, the first frame encoded in each GOP must be an I-picture. Since the I-picture is intra-frame encoding using DCT, it does not need information of a previous frame, so random access is possible by using address information of the start point of encoded data.

【0009】符号化データ構造上からは6つのレイヤか
らなり、それぞれに信号処理と機能が割り当てられてい
る。それらを図8に示す。GOPは第2レイヤに位置す
る。上位レイヤはシーケンスであり、ビデオの開始から
終了までである。GOPレイヤはさらにピクチャ・レイ
ヤ、スライス・レイヤ、マクロブロック・レイヤ、ブロ
ック・レイヤに分割される。
[0009] The coded data structure consists of six layers, to which signal processing and functions are assigned. They are shown in FIG. The GOP is located on the second layer. The upper layer is a sequence, from the start to the end of the video. The GOP layer is further divided into a picture layer, a slice layer, a macroblock layer, and a block layer.

【0010】1枚のピクチャはいくつかのスライスから
なっている。スライスは、画像の左上から始まってラス
タ・スキャン順序に右下に続く一連の任意個のマクロブ
ロックの集まりである。スライスのデータの先頭には同
期符号が割り当てられるため、復号時にデータの読み出
し誤差があっても、次のスライスで同期を回復できる利
点がある。また、スライスのデータの復号はそのスライ
スだけ独立して行えるため、復号の高速化のためにスラ
イス単位に並列処理が可能である。
One picture is composed of several slices. A slice is a collection of any number of macroblocks starting from the top left of the image and continuing to the bottom right in raster scan order. Since a synchronization code is assigned to the head of slice data, there is an advantage that synchronization can be restored in the next slice even if there is a data read error during decoding. In addition, since data of a slice can be decoded independently for that slice, parallel processing can be performed on a slice basis to speed up decoding.

【0011】また、再量子化処理を行なうトランスコー
ディングでは、スライスレイヤまでは入力ビットストリ
ームの符号をそのまま目標ビットストリームの符号とし
て用いるが、マクロブロックレイヤ以降では入力ビット
ストリームと目標ビットストリームのビットレート比に
応じて再量子化値が決定される。最初の量子化時の量子
化パラメータ値をQ1、再量子化時の量子化パラメータ
値をQ2、量子化係数を levelとすると、再量子化後の
量子化係数modified_levelは以下の式によって求められ
る。ただし、modified_levelは整数値であり、式(1)
の演算結果が実数の場合は小数点以下を四捨五入する。
In transcoding for performing requantization, the code of the input bit stream is used as it is as the code of the target bit stream up to the slice layer. A requantization value is determined according to the ratio. Assuming that the quantization parameter value at the time of the first quantization is Q1, the quantization parameter value at the time of requantization is Q2, and the quantization coefficient is level, the quantization coefficient modified_level after requantization is obtained by the following equation. However, modified_level is an integer value, and expression (1)
If the result of the operation is a real number, the decimal part is rounded off.

【数1】 例として、8[Mbps]の入力ビットストリームを4
[Mbps]の目標ビットストリームにトランスコーディ
ングする場合の量子化係数値の変化を図9に示す。式
(1)より、目標ビットレートが入力ビットレートより
もかなり小さい場合や、元の量子化係数値が小さい場合
には、マクロブロック(以下MB)中の再量子化係数が
全て0になる。
(Equation 1) As an example, an input bit stream of 8 [Mbps] is set to 4
FIG. 9 shows a change in the quantization coefficient value when transcoding to a target bit stream of [Mbps]. According to equation (1), when the target bit rate is much smaller than the input bit rate or when the original quantization coefficient value is small, all the requantization coefficients in the macroblock (hereinafter, MB) become zero.

【0012】PピクチャのMBタイプは、(1)動き補
償あり・符号化要、(2)動き補償なし・符号化要、
(3)動き補償あり・符号化不要、(4)イントラ、
(5)動き補償あり・符号化要・量子化パラメータ変
更、(6)動き補償なし・符号化要・量子化パラメータ
変更、(7)イントラ・量子化パラメータ変更の7種類
がある。このうち、図10のように、”動き補償なし・
符号化要”または”動き補償なし・符号化要・量子化パ
ラメータ変更”のMB中の量子化係数が再量子化処理に
よって全て0になった場合、”動き補償なし・符号化不
要“のMB、すなわちスキップマクロブロックが発生す
る。
The MB type of the P picture is (1) with motion compensation / encoding required, (2) without motion compensation / encoding required,
(3) with motion compensation / no coding, (4) intra,
There are seven types: (5) with motion compensation / coding required / quantization parameter change, (6) without motion compensation / coding required / quantization parameter change, and (7) intra / quantization parameter change. Of these, as shown in FIG.
If the quantized coefficients in the MB of "encoding required" or "no motion compensation / encoding required / quantization parameter change" become all 0 by the requantization processing, the MB of "no motion compensation / no encoding required" That is, a skip macro block occurs.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、各スラ
イスの最初と最後のMBはスキップマクロブロック(符
号化データの存在しないマクロブロックのこと。復号処
理を行わない)であってはならない。どのスライスも少
なくとも1つのMBを持つものであり、スライス間には
重なりやすき間を持たせることはできない。スライスの
位置は画像ごとで異なってもよい。最初のスライスは画
像中の最初のMBで始まり、最後のスライスは画像中の
最後のMBで終わらなければならない。
However, the first and last MBs of each slice must not be skipped macroblocks (macroblocks having no coded data; decoding is not performed). Each slice has at least one MB, and there is no gap between slices. The position of the slice may be different for each image. The first slice must start with the first MB in the image, and the last slice must end with the last MB in the image.

【0014】そこで本発明は、Pピクチヤの1MBに含
まれる6つのブロック各々において、再量子化処理によ
りスキップマクロブロックとなった場合には強制的にM
Bタイプを変更させ、スキップマクロブロックの発生を
回避する。
Therefore, in the present invention, in each of the six blocks included in 1 MB of the P-picture, when a re-quantization process results in a skipped macroblock, M
Change the B type to avoid the occurrence of skipped macroblocks.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明は、
上記課題を解決するため、画像情報をマクロブロックご
とに量子化する量子化ステップと、該量子化処理により
前記マクロブロックが動き補償なし・符号化不要のスキ
ップマクロブロックとなったマクロブロックを検出する
スキップマクロブロック検出ステップと、該スキップマ
クロブロック検出処理により検出されたスキップマクロ
ブロックのマクロブロックタイプを変更するマクロブロ
ックタイプ変更ステップと、を備えたことを特徴とする
ものである。
According to the first aspect of the present invention,
In order to solve the above problem, a quantization step of quantizing image information for each macroblock, and detecting a macroblock in which the macroblock has become a skipped macroblock without motion compensation and without encoding by the quantization process. It is characterized by comprising a skipped macroblock detection step and a macroblock type change step of changing the macroblock type of the skipped macroblock detected by the skipped macroblock detection processing.

【0016】請求項2記載の発明は、上記課題を解決す
るため、請求項1記載のスキップマクロブロック禁止制
御方法において、各スライス層の最初と最後のマクロブ
ロックを検出するスキップ禁止マクロブロック検出ステ
ップを備え、前記スキップマクロブロック検出ステップ
が前記検出された最初と最後のマクロブロックについて
のみスキップマクロブロックの検出を行うことを特徴と
するものである。
According to a second aspect of the present invention, there is provided a skip macroblock inhibition control method according to the first aspect, wherein a skip-inhibited macroblock detecting step for detecting the first and last macroblocks of each slice layer. Wherein the skipped macroblock detection step detects skipped macroblocks only for the first and last detected macroblocks.

【0017】請求項3記載の発明は、上記課題を解決す
るため、請求項1記載のスキップマクロブロック禁止制
御方法において、前記マクロブロックタイプ変更ステッ
プが前記スキップマクロブロックを動き補償なし・符号
化要のマクロブロックタイプに変更することを特徴とす
るものである。
According to a third aspect of the present invention, there is provided a skip macroblock prohibition control method according to the first aspect, wherein the macroblock type changing step includes the step of changing the skipped macroblock without motion compensation and coding. Is changed to the macro block type.

【0018】請求項4記載の発明は、上記課題を解決す
るため、請求項1記載のスキップマクロブロック禁止制
御方法において、前記マクロブロックタイプ変更ステッ
プが前記スキップマクロブロックを動き補償あり・符号
化不要のマクロブロックタイプに変更することを特徴と
するものである。
According to a fourth aspect of the present invention, there is provided the skip macroblock prohibition control method according to the first aspect, wherein the macroblock type changing step includes the motion compensation of the skipped macroblock and no encoding required. Is changed to the macro block type.

【0019】請求項5記載の発明は、上記課題を解決す
るため、請求項3記載のスキップマクロブロック禁止制
御方法において、前記マクロブロックタイプ変更ステッ
プが、前記スキップマクロブロック中に、再量子化に伴
う誤差が最小、かつ、CBP、量子化係数、EOB符号
の組み合わせが最も短くなるような符号を生成し、符号
化することによりマクロブロックタイプを変更すること
を特徴とするものである。
According to a fifth aspect of the present invention, in order to solve the above problem, in the skip macroblock inhibition control method according to the third aspect, the macroblock type changing step includes performing requantization during the skipped macroblock. The macroblock type is characterized by generating a code that minimizes the accompanying error and the shortest combination of CBP, quantization coefficient, and EOB code, and changing the macroblock type by coding.

【0020】請求項6記載の発明は、上記課題を解決す
るため、請求項3記載のスキップマクロブロック禁止制
御方法において、前記マクロブロックタイプ変更ステッ
プが、前記スキップマクロブロック中に、再量子化に伴
う誤差が最小、かつ、CBP、量子化係数、EOB符号
の組み合わせが最も短くなるような符号をあらかじめ用
意して、付加することによりマクロブロックタイプを変
更することを特徴とするものである。
According to a sixth aspect of the present invention, there is provided the skip macroblock prohibition control method according to the third aspect, wherein the macroblock type changing step includes performing requantization during the skipped macroblock. It is characterized in that the macroblock type is changed by preparing in advance a code that minimizes the accompanying error and the shortest combination of CBP, quantization coefficient, and EOB code and adding it.

【0021】請求項7記載の発明は、上記課題を解決す
るため、画像情報をマクロブロックごとに量子化する量
子化手段と、該量子化手段により前記マクロブロックが
動き補償なし・符号化不要のスキップマクロブロックと
されたマクロブロックを検出するスキップマクロブロッ
ク検出手段と、該スキップマクロブロック検出手段によ
り検出されたスキップマクロブロックのマクロブロック
タイプを変更するマクロブロックタイプ変更手段と、を
備えたことを特徴とするものである。
According to a seventh aspect of the present invention, in order to solve the above-mentioned problems, a quantization means for quantizing image information for each macroblock, and the macroblock is provided with no motion compensation and no coding required by the quantization means. A skip macro block detecting unit that detects a macro block that is a skipped macro block; and a macro block type changing unit that changes a macro block type of the skipped macro block detected by the skip macro block detecting unit. It is a feature.

【0022】請求項8記載の発明は、上記課題を解決す
るため、画像情報をマクロブロックごとに量子化する場
合に、動き補償なし・符号化不要のスキップマクロブロ
ックの発生を禁止制御させるプログラムを記録した媒体
において、量子化処理によりマクロブロックがスキップ
マクロブロックとなったマクロブロックを検出するスキ
ップマクロブロック検出ステップと、該スキップマクロ
ブロック検出処理により検出されたスキップマクロブロ
ックのマクロブロックタイプを変更するマクロブロック
タイプ変更ステップと、を備えたことを特徴とするもの
である。
According to an eighth aspect of the present invention, there is provided a program for controlling the generation of skip macroblocks without motion compensation and without encoding when image information is quantized for each macroblock. In the recorded medium, a skip macroblock detecting step of detecting a macroblock in which a macroblock has become a skip macroblock by quantization processing, and changing a macroblock type of the skipped macroblock detected by the skip macroblock detection processing And a macro block type changing step.

【0023】[0023]

【発明の実施の形態】以下、本発明の実施の形態につい
て添付図面を参照しつつ説明する。
Embodiments of the present invention will be described below with reference to the accompanying drawings.

【0024】図1に本発明の符号化生成によるスキップ
マクロブロック発生回避処理のフローチャートを示す。
FIG. 1 shows a flowchart of the skip macroblock generation avoidance processing by the encoding generation of the present invention.

【0025】まず、再量子化処理を行い(s1)、次
に、マクロブロック(以下、MB)に量子化係数が存在
するか否かの判断を行う(s2)。MBに量子化係数が
存在する場合には、スキップMB発生回避処理を終了
し、存在しない場合には、動きベクトルが存在するか否
かの判断を行う(s3)。動きベクトルが存在する場合
には、処理を終了し、存在しない場合には、スキップM
Bであるので以下の処理を行う。
First, a re-quantization process is performed (s1), and then it is determined whether or not a macroblock (hereinafter, MB) has a quantization coefficient (s2). If there is a quantization coefficient in the MB, the skip MB occurrence avoidance processing ends, and if not, it is determined whether or not a motion vector exists (s3). If there is a motion vector, the process is terminated; otherwise, skip M
Since it is B, the following processing is performed.

【0026】MBタイプを“動き補償なし・符号化要”
に変更し(s4)、強制的に符号を生成する(s5)。
The MB type is set to “no motion compensation / encoding required”
(S4), and a code is forcibly generated (s5).

【0027】上記のように、再量子化処理によってスキ
ップMBが発生した場合、CBP(符号化ブロックパタ
ーン:coded block pattern )、量子化係数、EOB符
号(ブロックデータの終了を意味するフラグ:end of b
lock)の組合せが最も短くなるような符号を強制的に生
成し符号化する。これにより、図2に示すようにスキッ
プMB発生時に量子化係数を強制的に生成することと同
等の効果を得ることができ、MBタイプが“動き補償な
し・符号化要”に変更される。さらに、予め符号長が最
短となる組合せを用意しておくことにより、量子化係数
を強制的に生成した場合に比べてスキャニング処理が不
要となる。
As described above, when a skip MB occurs due to the requantization process, a CBP (coded block pattern), a quantization coefficient, and an EOB code (a flag indicating the end of block data: end of b
Forcibly generate and encode a code that minimizes the combination of locks. As a result, an effect equivalent to forcibly generating a quantization coefficient when a skip MB is generated as shown in FIG. 2 can be obtained, and the MB type is changed to “no motion compensation / encoding required”. Further, by preparing a combination having the shortest code length in advance, the scanning process becomes unnecessary as compared with the case where the quantization coefficient is forcibly generated.

【0028】次に、強制的に生成される符号について説
明する。
Next, the forcibly generated code will be described.

【0029】CBPは、図3に示されるように、輝度信
号と色差信号のそれぞれのMBに番号を与え、無効ブロ
ックがどれであるかを識別できるように番号付けを行う
ものである。ブロックに対して、有効/無効の区別を1
/0の値を持つ変数Pn(n=1、…、6)で定義し、
パターン番号CBPは、
As shown in FIG. 3, the CBP assigns a number to each of the MBs of the luminance signal and the chrominance signal, and performs numbering so that the invalid block can be identified. 1 for valid / invalid for block
Defined by a variable Pn (n = 1,..., 6) having a value of / 0,
The pattern number CBP is

【0030】CBP=32・P1+16・P2+8・P
3+4・P4+2・P5+P6 により得られる。この数値によりどのブロックが無効で
あるかがわかる。
CBP = 32 · P1 + 16 · P2 + 8 · P
3 + 4 · P4 + 2 · P5 + P6. This value indicates which block is invalid.

【0031】CBPの値が32、16、8、4の時に符
号長が4ビットとなり、これらの場合はいずれもMB中
で量子化係数が発生するのは1ブロックのみである。C
BP=60の場合の方が符号長が3ビット(111)と
短いが、量子化係数が4ブロックにおいて発生した場合
に相当するので、4ブロック各々において1つずつの係
数が発生したとしても合計で4つの係数が発生したこと
になり、全体の符号量が増加してしまう。したがって、
CBPの値は32、16、8、4のいずれかを用いるの
が適当であり、発生符号量は4ビットである。また、こ
のときの符号語は、順に1010、1011、110
0、1101である。
When the value of the CBP is 32, 16, 8, and 4, the code length becomes 4 bits. In each of these cases, only one block generates a quantization coefficient in the MB. C
When BP = 60, the code length is as short as 3 bits (111), but this is equivalent to the case where the quantization coefficient occurs in four blocks, so even if one coefficient occurs in each of the four blocks, the total Thus, four coefficients are generated, and the overall code amount increases. Therefore,
It is appropriate to use any one of 32, 16, 8, and 4 for the CBP value, and the generated code amount is 4 bits. The codewords at this time are 1010, 1011, 110
0 and 1101.

【0032】可変長符号は、DC係数位置に係数を発生
させる場合は符号1s(2ビット)が最も短い符号とな
る。このとき、ラン=0、レベル=1である。ランと
は、連続する0係数(量子化して0になった係数)の個
数を示すもので、レベルは、その直後の量子化レベルで
ある。また、sはレベルが0以上の場合は0となり、レ
ベルが0未満の場合は1となる。一方、その他の係数
(AC係数位置)として発生させる場合は符号011s
(4ビット)が最も短い符号となり、このときはラン、
レベルともに1である。どちらの場合も用いることが可
能であるが、DC係数位置の量子化係数を新たに生成し
た場合には後続の処理における誤差が大きくなる。
In the case of generating a coefficient at a DC coefficient position, the variable length code is the shortest code 1s (2 bits). At this time, run = 0 and level = 1. The run indicates the number of consecutive 0 coefficients (coefficients that have been quantized to 0), and the level is the quantization level immediately after that. Further, s is 0 when the level is 0 or more, and is 1 when the level is less than 0. On the other hand, when it is generated as another coefficient (AC coefficient position), reference numeral 011s
(4 bits) is the shortest code, in this case, run,
Both levels are 1. Although it is possible to use either case, when a new quantization coefficient at the DC coefficient position is generated, an error in the subsequent processing increases.

【0033】EOB符号は10(2ビット)である。The EOB code is 10 (2 bits).

【0034】以上より、強制的に生成される符号の組合
せとしては、次のような例が挙げられる。
As described above, the following examples are given as examples of combinations of codes that are forcibly generated.

【0035】(1)CBP=8、DC係数位置(レベル
の絶対値<0)の場合:
(1) When CBP = 8, DC coefficient position (absolute value of level <0):

【0036】1100 11101100 1110

【0037】(2)CBP=4、AC係数位置(レベル
の絶対値≧0)の場合:
(2) When CBP = 4, AC coefficient position (absolute value of level ≧ 0):

【0038】1101 0110 101101 0110 10

【0039】次に、スキップMB発生時に、動きベクト
ルを設定してスキップMB発生回避処理を行う場合のフ
ローチャートを図4に示し、説明する。
Next, FIG. 4 shows a flowchart in the case where a motion vector is set and skip MB occurrence avoidance processing is performed when a skip MB occurs.

【0040】符号化生成によるスキップMB発生回避処
理と同様に、まず、再量子化処理を行い(s11)、次
に、MBに量子化係数が存在するか否かの判断を行う
(s12)。MBに量子化係数が存在する場合には、ス
キップMB発生回避処理を終了し、存在しない場合に
は、動きベクトルが存在するか否かの判断を行う(s1
3)。動きベクトルが存在する場合には、処理を終了
し、存在しない場合には、スキップMBであるので以下
の処理を行う。
As in the skip MB generation avoidance processing by encoding generation, first, re-quantization processing is performed (s11), and then it is determined whether or not a quantization coefficient exists in the MB (s12). If there is a quantization coefficient in the MB, the skip MB occurrence avoidance processing is terminated. If not, it is determined whether or not a motion vector exists (s1).
3). If there is a motion vector, the processing is terminated. If not, the following processing is performed because a skip MB exists.

【0041】水平・垂直方向成分がともに0の動きベク
トル情報を生成し(s14)、MBタイプを“動き補償
あり・符号化不要”に変更する(s15)。
Motion vector information in which both the horizontal and vertical components are 0 is generated (s14), and the MB type is changed to "with motion compensation / no coding required" (s15).

【0042】以上の処理により、図5に示すようにスキ
ップMB発生時に、MBタイプが“動き補償あり・符号
化不要”で、動きベクトルが水平・垂直方向ともに0の
MBとなり、スキップMB発生を回避することができ
る。
By the above processing, when a skip MB is generated, as shown in FIG. 5, the MB type is "with motion compensation / no coding required", the motion vector becomes an MB of 0 in both the horizontal and vertical directions. Can be avoided.

【0043】また、スキップMBのMBタイプの変更
は、各スライス層の最初と最後でのみ発生したときに行
えばよいが、各スライス層の最初と最後のMBの検出を
行うには遅延が大きくなるので、全てのMBを対象に行
ったが、MBの位置の検出は状況に応じて選択すれば良
い。
The change of the MB type of the skip MB may be performed only at the beginning and end of each slice layer. However, detection of the first and last MB of each slice layer requires a large delay. Therefore, all the MBs are targeted, but the detection of the MB position may be selected according to the situation.

【0044】[0044]

【発明の効果】本発明によれば、再量子化処理を行うト
ランスコーディングにおいて、再量子化処理によりマク
ロブロックタイプが符号化データの存在がなく、復号処
理を行わないスキップマクロブックになったとき、強制
的にマクロブロックタイプを変更させるので、禁止され
ている各スライス層の最初と最後のマクロブロックがス
キップマクロブロックとなることから回避することがで
きる。
According to the present invention, in transcoding for performing requantization processing, when the macroblock type becomes a skipped macrobook in which there is no coded data due to requantization processing and decoding processing is not performed. Since the macroblock type is forcibly changed, the first and last macroblocks of each prohibited slice layer can be prevented from being skipped macroblocks.

【0045】また、スキップマクロブロックのマクロブ
ロックタイプの変更は、各スライス層の最初と最後での
み行うか、全てのマクロブロックを対象とするかを、状
況に応じて選択することができる。
Further, it is possible to select whether to change the macroblock type of the skipped macroblock only at the beginning and end of each slice layer or to target all macroblocks according to the situation.

【0046】さらに、CBP、量子化係数、EOB符号
の組み合わせが最も短くなる符号を生成し符号化、また
は、あらかじめ用意して付加することにより、量子化係
数を強制的に生成することと同等の効果を得ることがで
きるとともに、スキャニング処理が不要になる。
Further, by generating and encoding a code in which the combination of the CBP, the quantized coefficient and the EOB code is the shortest, or adding it in advance, it is equivalent to forcibly generating the quantized coefficient. The effect can be obtained, and the scanning process becomes unnecessary.

【0047】また、水平・垂直方向に0の動きベクトル
を設定して、マクロブロックタイプの変更を行うことに
より、量子化後の画像に影響を与えることなく、スキッ
プマクロブロックの発生を回避させることができる。
Further, by setting a motion vector of 0 in the horizontal and vertical directions and changing the macroblock type, it is possible to avoid the occurrence of a skipped macroblock without affecting the image after quantization. Can be.

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

【図1】本発明に係る符号化生成によるスキップMB発
生回避処理のフローチャートである。
FIG. 1 is a flowchart of skip MB generation avoidance processing by encoding generation according to the present invention.

【図2】符号挿入によるスキップMB発生回避を示す図
である。
FIG. 2 is a diagram illustrating avoidance of skip MB generation by code insertion.

【図3】CBP(符号化ブロックパターン)のための番
号付けの輝度および色差信号のMBを示す図である。
FIG. 3 is a diagram showing MBs of numbered luminance and color difference signals for CBP (encoded block pattern).

【図4】本発明に係る動きベクトル値設定によるスキッ
プMB発生回避処理のフローチャートである。
FIG. 4 is a flowchart of a skip MB occurrence avoiding process by setting a motion vector value according to the present invention.

【図5】動きベクトル値設定によるスキップMB発生回
避を示す図である。
FIG. 5 is a diagram illustrating how to avoid skip MB generation by setting a motion vector value.

【図6】非可逆符号化における量子化を示す図である。FIG. 6 is a diagram illustrating quantization in lossy encoding.

【図7】GOP構造を示す図である。FIG. 7 is a diagram showing a GOP structure.

【図8】符号化データ構造のレイヤを示す図である。FIG. 8 is a diagram showing layers of an encoded data structure.

【図9】再量子化処理による量子化係数値の変化を示す
図である。
FIG. 9 is a diagram illustrating a change in a quantization coefficient value due to a requantization process.

【図10】再量子化処理によるMBタイプの変更を示す
図である。
FIG. 10 is a diagram illustrating a change in MB type by a requantization process.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 高屋 和幸 東京都新宿区西早稲田一丁目3番10号 早 稲田大学国際情報通信研究センター内 (72)発明者 笠井 裕之 東京都新宿区西早稲田一丁目3番10号 早 稲田大学国際情報通信研究センター内 (72)発明者 西村 敏 東京都新宿区西早稲田一丁目3番10号 早 稲田大学国際情報通信研究センター内 (72)発明者 亀山 渉 東京都新宿区西早稲田一丁目3番10号 早 稲田大学国際情報通信研究センター内 (72)発明者 富永 英義 東京都新宿区西早稲田一丁目3番10号 早 稲田大学国際情報通信研究センター内 Fターム(参考) 5C059 KK02 KK23 LA02 LC10 MA00 MA05 MA14 MA23 MC11 PP05 PP06 PP07 RB03 RB12 RB13 SS20 SS26 TA00 TA11 TA17 TA21 TA45 TA57 TB06 TB07 TC00 TC04 TC06 TC12 TC32 TC37 TD01 TD02 TD18 UA05 UA39  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Kazuyuki Takaya 1-3-10 Nishi-Waseda, Shinjuku-ku, Tokyo Waseda University International Information and Telecommunication Research Center (72) Inventor Hiroyuki Kasai 1-chome Nishi-Waseda, Shinjuku-ku, Tokyo No. 3-10, Waseda University International Information and Telecommunication Research Center (72) Inventor Satoshi Nishimura 1-3-10, Nishi-Waseda, Shinjuku-ku, Tokyo Inside Waseda University International Information and Telecommunication Research Center (72) Inventor Wataru Kameyama Tokyo 1-3-10 Nishi-Waseda, Shinjuku-ku, Waseda University International Information and Communication Research Center (72) Inventor Hideyoshi Tominaga 1-3-1-10 Nishi-Waseda, Shinjuku-ku, Tokyo Waseda University International Information and Communication Research Center F-term ( Reference) 5C059 KK02 KK23 LA02 LC10 MA00 MA05 MA14 MA23 MC11 PP05 PP06 PP07 RB03 RB12 RB13 SS20 SS26 TA00 TA11 TA17 TA21 TA45 TA57 TB06 TB07 TC00 TC04 TC06 TC12 TC32 TC37 TD01 TD02 TD18 UA05 UA39

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】画像情報をマクロブロックごとに量子化す
る量子化ステップと、 該量子化処理により前記マクロブロックが動き補償なし
・符号化不要のスキップマクロブロックとなったマクロ
ブロックを検出するスキップマクロブロック検出ステッ
プと、 該スキップマクロブロック検出処理により検出されたス
キップマクロブロックのマクロブロックタイプを変更す
るマクロブロックタイプ変更ステップと、 を備えたことを特徴とするスキップマクロブロック禁止
制御方法。
1. A quantization step for quantizing image information for each macroblock, and a skip macro for detecting a macroblock in which said macroblock has become a motion-free and no-encoding skip macroblock by said quantization processing. A skip macroblock inhibition control method, comprising: a block detection step; and a macroblock type change step of changing a macroblock type of a skipped macroblock detected by the skipped macroblock detection process.
【請求項2】請求項1記載のスキップマクロブロック禁
止制御方法において、 各スライス層の最初と最後のマクロブロックを検出する
スキップ禁止マクロブロック検出ステップを備え、 前記スキップマクロブロック検出ステップが、前記検出
された最初と最後のマクロブロックについてのみスキッ
プマクロブロックの検出を行うことを特徴とするスキッ
プマクロブロック禁止制御方法。
2. The skip macroblock prohibition control method according to claim 1, further comprising a skip prohibition macroblock detection step of detecting first and last macroblocks of each slice layer, wherein the skip macroblock detection step includes the detection step. A skip macroblock prohibition control method, wherein a skipped macroblock is detected only for the first and last macroblocks.
【請求項3】請求項1記載のスキップマクロブロック禁
止制御方法において、 前記マクロブロックタイプ変更ステップが、前記スキッ
プマクロブロックを動き補償なし・符号化要のマクロブ
ロックタイプに変更することを特徴とするスキップマク
ロブロック禁止制御方法。
3. The skip macroblock prohibition control method according to claim 1, wherein said macroblock type changing step changes said skipped macroblock to a macroblock type requiring no motion compensation and coding. A skip macroblock prohibition control method.
【請求項4】請求項1記載のスキップマクロブロック禁
止制御方法において、 前記マクロブロックタイプ変更ステップが、前記スキッ
プマクロブロックを動き補償あり・符号化不要のマクロ
ブロックタイプに変更することを特徴とするスキップマ
クロブロック禁止制御方法。
4. The skip macroblock prohibition control method according to claim 1, wherein said macroblock type changing step changes said skipped macroblock to a macroblock type with motion compensation and without coding. A skip macroblock prohibition control method.
【請求項5】請求項3記載のスキップマクロブロック禁
止制御方法において、 前記マクロブロックタイプ変更ステップが、前記スキッ
プマクロブロック中に、再量子化に伴う誤差が最小、か
つ、CBP、量子化係数、EOB符号の組み合わせが最
も短くなるような符号を生成し、符号化することにより
マクロブロックタイプを変更することを特徴とするスキ
ップマクロブロック禁止制御方法。
5. The skip macroblock prohibition control method according to claim 3, wherein the macroblock type changing step is such that an error due to requantization is minimized in the skipped macroblock, and CBP, a quantization coefficient, A skip macroblock prohibition control method, characterized in that a code that minimizes the combination of EOB codes is generated and encoded to change the macroblock type.
【請求項6】請求項3記載のスキップマクロブロック禁
止制御方法において、 前記マクロブロックタイプ変更ステップが、前記スキッ
プマクロブロック中に、再量子化に伴う誤差が最小、か
つ、CBP、量子化係数、EOB符号の組み合わせが最
も短くなるような符号をあらかじめ用意して、付加する
ことによりマクロブロックタイプを変更することを特徴
とするスキップマクロブロック禁止制御方法。
6. The skip macroblock prohibition control method according to claim 3, wherein the macroblock type changing step is such that an error due to requantization is minimized in the skipped macroblock, and CBP, quantization coefficient, A skip macroblock prohibition control method, characterized in that a code that minimizes the combination of EOB codes is prepared in advance and the macroblock type is changed by adding the code.
【請求項7】画像情報をマクロブロックごとに量子化す
る量子化手段と、 該量子化手段により前記マクロブロックが動き補償なし
・符号化不要のスキップマクロブロックとされたマクロ
ブロックを検出するスキップマクロブロック検出手段
と、 該スキップマクロブロック検出手段により検出されたス
キップマクロブロックのマクロブロックタイプを変更す
るマクロブロックタイプ変更手段と、 を備えたことを特徴とするスキップマクロブロック禁止
制御装置。
7. Quantizing means for quantizing image information for each macroblock, and a skip macro for detecting a macroblock in which the macroblock has been determined to be a motion-compensation-free and coding-free skip macroblock. A skip macroblock prohibition control device comprising: a block detection unit; and a macroblock type change unit that changes a macroblock type of a skipped macroblock detected by the skip macroblock detection unit.
【請求項8】画像情報をマクロブロックごとに量子化す
る場合に、動き補償なし・符号化不要のスキップマクロ
ブロックの発生を禁止制御させるプログラムを記録した
媒体において、 量子化処理によりマクロブロックがスキップマクロブロ
ックとなったマクロブロックを検出するスキップマクロ
ブロック検出ステップと、 該スキップマクロブロック検出処理により検出されたス
キップマクロブロックのマクロブロックタイプを変更す
るマクロブロックタイプ変更ステップと、 を備えたことを特徴とするスキップマクロブロック禁止
制御プログラムを記録した媒体。
8. A medium in which a program for prohibiting the generation of a skipped macroblock without motion compensation and encoding is not recorded when quantizing image information for each macroblock, the macroblock is skipped by a quantization process. A skipping macroblock detecting step of detecting a macroblock that has become a macroblock; and a macroblock type changing step of changing a macroblock type of the skipped macroblock detected by the skipping macroblock detecting process. On which a skip macroblock prohibition control program is recorded.
JP14401499A 1999-05-24 1999-05-24 Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program Ceased JP2000333180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14401499A JP2000333180A (en) 1999-05-24 1999-05-24 Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14401499A JP2000333180A (en) 1999-05-24 1999-05-24 Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program

Publications (1)

Publication Number Publication Date
JP2000333180A true JP2000333180A (en) 2000-11-30

Family

ID=15352325

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14401499A Ceased JP2000333180A (en) 1999-05-24 1999-05-24 Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program

Country Status (1)

Country Link
JP (1) JP2000333180A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007105590A1 (en) * 2006-03-09 2007-09-20 Nec Corporation Dynamic image encoding method and device and program using the same
JP2009239565A (en) * 2008-03-27 2009-10-15 Renesas Technology Corp Image encoding device
JP2010178319A (en) * 2009-02-02 2010-08-12 Panasonic Corp Image coding apparatus and image coding method
JP2010183368A (en) * 2009-02-05 2010-08-19 Nec Corp Image coding processing method, image coding processing device, and image coding program
US9294783B2 (en) 2012-03-23 2016-03-22 Megachips Corporation Image encoding device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007105590A1 (en) * 2006-03-09 2007-09-20 Nec Corporation Dynamic image encoding method and device and program using the same
US8428136B2 (en) 2006-03-09 2013-04-23 Nec Corporation Dynamic image encoding method and device and program using the same
JP5423948B2 (en) * 2006-03-09 2014-02-19 日本電気株式会社 Moving picture encoding method, and apparatus and program using the same
JP2009239565A (en) * 2008-03-27 2009-10-15 Renesas Technology Corp Image encoding device
US8442333B2 (en) 2008-03-27 2013-05-14 Renesas Electronics Corporation Parallel processing image encoding device with variable length coding
JP2010178319A (en) * 2009-02-02 2010-08-12 Panasonic Corp Image coding apparatus and image coding method
US8594185B2 (en) 2009-02-02 2013-11-26 Panasonic Corporation Image coding apparatus and image coding method
JP2010183368A (en) * 2009-02-05 2010-08-19 Nec Corp Image coding processing method, image coding processing device, and image coding program
US9294783B2 (en) 2012-03-23 2016-03-22 Megachips Corporation Image encoding device

Similar Documents

Publication Publication Date Title
EP1528813B1 (en) Improved video coding using adaptive coding of block parameters for coded/uncoded blocks
US7215707B2 (en) Optimal scanning method for transform coefficients in coding/decoding of image and video
EP1135934B1 (en) Efficient macroblock header coding for video compression
JP3369573B2 (en) Image prediction decoding method and apparatus
KR100289586B1 (en) Moving picture coding method and apparatus and Moving picture decoding method and apparatus
JP3358835B2 (en) Image coding method and apparatus
EP0920214B1 (en) Apparatus and method of coding/decoding moving picture
JP3555729B2 (en) Method and apparatus for processing variable-length encoded data
US9113174B2 (en) Predictive coding apparatus, control method thereof, and computer program
JPH06125543A (en) Encoding device
JPH0818979A (en) Image processor
JP2002027469A (en) Bit stream converting method and device, and program recording medium
US6804299B2 (en) Methods and systems for reducing requantization-originated generational error in predictive video streams using motion compensation
JP2000333180A (en) Skip macro block inhibit control method, skip macro block inhibit controller and medium recording skip macro block inhibit control program
JP2005516495A (en) Reducing the bit rate of precompressed multimedia
JP2003189308A (en) Moving picture encoder, encoding method, decoder, decoding method, and moving picture code string transmission method
JP2002058032A (en) Apparatus and method for encoding image, apparatus and method for decoding image as well as image processor
JPH0795536A (en) Device and method for reversely reproducing moving image
JP3240737B2 (en) Image signal encoding method and apparatus, decoding method and apparatus
JP3356413B2 (en) Image decoding method and apparatus
JP2004007766A (en) Moving image coding device and moving image coding method
US20030031259A1 (en) Bit stream code lookup table for an MPEG-4 code word
JP2011129979A (en) Image processor
JP2001086002A (en) Data encoding device
JPH09149420A (en) Method and device for compressing dynamic image

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20050314

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050523

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050715

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050721

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050715

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060526

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060801

A045 Written measure of dismissal of application

Free format text: JAPANESE INTERMEDIATE CODE: A045

Effective date: 20061226