JPH10210466A - Data-compressing device - Google Patents

Data-compressing device

Info

Publication number
JPH10210466A
JPH10210466A JP1280297A JP1280297A JPH10210466A JP H10210466 A JPH10210466 A JP H10210466A JP 1280297 A JP1280297 A JP 1280297A JP 1280297 A JP1280297 A JP 1280297A JP H10210466 A JPH10210466 A JP H10210466A
Authority
JP
Japan
Prior art keywords
data
amount
difficulty
category
compressed
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
JP1280297A
Other languages
Japanese (ja)
Inventor
Norio Chatani
典男 茶谷
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.)
Brother Industries Ltd
Xing Inc
Original Assignee
Brother Industries Ltd
Xing Inc
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 Brother Industries Ltd, Xing Inc filed Critical Brother Industries Ltd
Priority to JP1280297A priority Critical patent/JPH10210466A/en
Publication of JPH10210466A publication Critical patent/JPH10210466A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically compress generated data down to an amount compatible with a relevant degree of difficulty merely through selection of the desired data of an operator by producing a control instruction for the amount of generated data according to the category of the degree of difficulty corresponding to the data to be compressed. SOLUTION: A category ID is set to each of dynamic image data to be compressed to previously show each degree of difficulty. A CPU 11 gives a control instruction for an amount of generated data to a bit rate control part 114 of a compression circuit 15, based on the corresponding relation stored in a table 12a contained in a ROM 12, so that the amount of generated data is secured corresponding to the category ID corresponding to the dynamic image data to be compressed. Thus, an operator can be set free from such inconveniences whereby he must set a category ID at each time. Then the experiences and the technical knowledge of the operator are required only for setting a category ID at first. Thereafter, a dynamic image data compressing device 1 automatically instructs a proper amount of generated data according to the relevant degree of difficulty. As a result, a properly reproduced image can always be obtained.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データを圧縮可
能、かつ生成されるデータ量を調整可能なデータ圧縮装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data compression apparatus capable of compressing data and adjusting the amount of generated data.

【0002】[0002]

【従来の技術】従来、例えばMPEG(Moving Pictu
re Image Coding Experts Group)等の方式を用い
て動画像データを圧縮する圧縮装置では、決められた生
成データ量となるように圧縮するか、動画像データを圧
縮処理する前に操作者によって、これから圧縮しようと
する動画像の内容に応じた生成データ量となるようにそ
の都度設定されていた。
2. Description of the Related Art Conventionally, for example, MPEG (Moving Picture)
In a compression apparatus that compresses moving image data using a method such as re Image Coding Experts Group (re Image Coding Experts Group), an operator may compress the moving image data so as to have a predetermined generated data amount or perform an operation before compressing the moving image data. Each time, the amount of generated data is set so as to correspond to the content of the moving image to be compressed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、決めら
れた生成データ量で圧縮する場合、画像内容によっては
その再生画像が十分満足できないものもある。例えば時
間的・空間的な相関が小さい、すなわち難易度が高い画
像の場合には、ある程度の生成データ量を確保しないと
画質が劣化してしまう。逆に、このような難易度が高い
ものを前提に決定した生成データ量を難易度が低い画像
にまで適用してしまうと、圧縮効率の低下を招いてしま
う。そのため、上述したように画像内容に応じた生成デ
ータ量をその都度設定して圧縮することとなるが、数多
くの画像を圧縮する場合、毎回その設定の操作が必要と
なり煩雑さが存在していた。
However, when compression is performed with a predetermined amount of generated data, the reproduced image may not be sufficiently satisfactory depending on the image content. For example, in the case of an image having a small temporal / spatial correlation, that is, an image having a high degree of difficulty, the image quality deteriorates unless a certain amount of generated data is secured. Conversely, if the generated data amount determined on the premise of such a high degree of difficulty is applied to an image with a low degree of difficulty, the compression efficiency is reduced. Therefore, as described above, the amount of generated data according to the image content is set and compressed each time, but when compressing a large number of images, the operation of the setting is required every time, and there is complexity. .

【0004】また、この画像の生成データ量を決定する
に当たっては専門の知識も必要とされ、経験の浅い操作
者では適切な生成データ量を判断することは非常に難し
いのである。なお、上述した問題は、画像データを取り
扱う場合だけでなく、その他のデータにおいても圧縮す
る際の難易度に差があるようなものであれば同様に生じ
ることである。
Further, in determining the amount of generated data of the image, specialized knowledge is also required, and it is very difficult for an inexperienced operator to determine an appropriate amount of generated data. The above-mentioned problem occurs not only in the case of handling image data but also in the case of other data having a difference in difficulty in compression.

【0005】本発明は、上述した問題点を解決するため
になされたものであり、操作者が所望のデータを選択す
るだけで、自動的にその難易度に合った生成データ量に
て圧縮処理をすることができるようにしたデータ圧縮装
置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. Just by an operator selecting desired data, a compression process is automatically performed with a generated data amount suited to the difficulty level. It is an object of the present invention to provide a data compression device capable of performing the following.

【0006】[0006]

【課題を解決するための手段及び発明の効果】上記目的
を達成するためになされた請求項1に記載のデータ圧縮
装置は、データを圧縮可能、かつ生成されるデータ量を
調整可能な圧縮手段を備えるデータ圧縮装置であって、
前記圧縮対象の各データには、予め難易度カテゴリが設
定されており、圧縮対象のデータに対応する前記難易度
カテゴリに応じた生成データ量となるように、前記圧縮
手段に対して生成データ量の調整指示をする調整指示手
段を備えることを特徴とする。
In order to achieve the above object, a data compression apparatus according to claim 1 is capable of compressing data and adjusting the amount of generated data. A data compression device comprising:
A difficulty category is set in advance for each of the data to be compressed, and the amount of generated data to the compression unit is set so that the amount of generated data is in accordance with the difficulty category corresponding to the data to be compressed. The present invention is characterized in that it comprises an adjustment instruction means for giving an instruction for the adjustment.

【0007】なお、前記難易度カテゴリは、例えば請求
項2に示すように、圧縮対象のデータを動画像データと
した場合には、その動画像データの時間的及び空間的な
相関が少ないほど難易度が高くなるよう設定することが
考えられる。具体例を挙げれば、いわゆるCG(コンピ
ュータグラフィックス)画像や自然画などは時間的及び
空間的な相関が少ないことが多く、難易度を高く設定す
ることが適切だと考えられる。また、アニメーションや
映画などの画像は相対的に難易度を低く設定することが
適切だと考えられる。
In the case where the data to be compressed is moving image data, the difficulty level becomes more difficult as the temporal and spatial correlation of the moving image data decreases. It is conceivable to set the degree to be higher. As a specific example, a so-called CG (computer graphics) image or a natural image often has little temporal and spatial correlation, and it is considered appropriate to set a high difficulty level. In addition, it is considered appropriate to set relatively low difficulty levels for images such as animations and movies.

【0008】もちろん、自然画の中にもその内容によっ
て難易度の高低はあるので、適宜それらは考慮して設定
すればよい。一例を挙げれば、同じ山の風景画像であっ
ても、それが遠くに存在して特に動くこともなく、また
細かな部分もないような場合は難易度は低くなる。逆
に、それが近くに存在し、例えば森林の細部まで現れて
枝葉が風になびくような風景であれば難易度は高くな
る。また、同様にスポーツというカテゴリを考えた場合
でも、そのスポーツの種類によって動きの激しいものと
そうでないものがあり、自ずと難易度の高低はできてく
る。
Of course, the degree of difficulty varies depending on the content of a natural image, and these may be appropriately set in consideration. For example, even if the same mountain scenery image is present in a distant place and does not particularly move, and when there is no detailed part, the difficulty level becomes low. Conversely, if it is nearby, for example, a landscape that appears in the details of the forest and the branches and leaves flutter in the wind, the difficulty level is high. Similarly, even if the category of sports is considered, there are some types of sports that are intense and some that are not so depending on the type of sports, and the level of difficulty naturally increases.

【0009】本データ圧縮装置の圧縮手段は、データを
圧縮可能であり、かつ生成されるデータ量を調整可能で
ある。そして、対象の各データには予め難易度カテゴリ
が設定されており、調整指示手段が、圧縮対象のデータ
に対応する難易度カテゴリに応じた生成データ量となる
ように圧縮手段に対して生成データ量の調整指示をす
る。
The compression means of the data compression apparatus is capable of compressing data and adjusting the amount of generated data. A difficulty category is set in advance for each of the target data, and the adjustment instructing unit sends the generated data to the compression unit so that the amount of generated data corresponds to the difficulty category corresponding to the data to be compressed. Give an instruction to adjust the amount.

【0010】例えば、上述した動画像データについての
具体例で説明したように、圧縮対象のデータによって難
易度は一定ではないことも多く、一定の生成データ量で
圧縮する場合には、データ内容によってはその再生した
状態が十分には満足できないものとなってしまう。例え
ば再生画像が十分な品質とならないといったことであ
る。そこで、圧縮対象のデータ内容に応じた生成データ
量をその都度設定して圧縮することとなるが、非常に煩
わしい操作であると共に、経験と専門知識がないと適切
な生成データ量を決めるのは難しい。
For example, as described in the specific example of the moving image data described above, the difficulty level is often not constant depending on the data to be compressed. Will be unsatisfactory in the reproduced state. For example, the reproduced image does not have sufficient quality. Therefore, the amount of generated data according to the data content to be compressed is set each time and compression is performed, but it is a very cumbersome operation and it is difficult to determine an appropriate amount of generated data without experience and expertise. difficult.

【0011】したがって、本データ圧縮装置のように、
圧縮対象の各データに予め設定されている難易度カテゴ
リに応じた生成データ量となるように調整指示する構成
を採用することで、操作者がその都度設定するといった
煩わしさはなくなる。そして、最初に難易度カテゴリを
設定する際だけ経験や専門知識を生かせばよく、後は装
置が自動的に難易度カテゴリに応じた適切な生成データ
量を指示するため、常に適切な再生状態を得ることがで
きる。特に、動画像データのように難易度の高低の幅が
かなりあるものの場合には、このような調整指示は非常
に有効である。
Therefore, as in the present data compression device,
By adopting a configuration in which an adjustment instruction is given to each of the data to be compressed so that the generated data amount corresponds to the difficulty category set in advance, the trouble of the operator setting each time is eliminated. Then, it is only necessary to use experience and expertise only when setting the difficulty category first, and then the device automatically instructs the appropriate amount of generated data according to the difficulty category, so that the appropriate playback state is always set Obtainable. In particular, when the degree of difficulty varies considerably, such as moving image data, such an adjustment instruction is very effective.

【0012】なお、前記難易度カテゴリを示す情報は、
各データに付加しておいてもよい。例えば各データのヘ
ッダ情報中にこのカテゴリ情報を入れておくのである。
また、難易度カテゴリと生成データ量との対応関係を記
憶しておき、その記憶された対応関係に基づいて圧縮対
象のデータに対応する生成データ量を決定し、その決定
された生成データ量となるように調整指示を行なうよう
構成してもよい。
The information indicating the difficulty category is as follows:
It may be added to each data. For example, this category information is put in the header information of each data.
Also, the correspondence between the difficulty category and the generated data amount is stored, and the generated data amount corresponding to the data to be compressed is determined based on the stored correspondence, and the determined generated data amount and It may be configured to give an adjustment instruction in such a manner.

【0013】また、圧縮対象のデータについて言えば、
本データ圧縮装置自体が記憶手段を備え、その記憶手段
に記憶しておく構成としてもよいし、データ圧縮装置自
体は記憶しておかず、外部から入力されたデータを圧縮
して出力するような構成でもよい。そして、動画像デー
タのように難易度の高低の幅がかなりあるものの場合に
特に有効であるが、動画像データに限らず音声データで
あってもよく、すなわち難易度の差があるデータであれ
ば同様に適用でき、有効である。
[0013] As for the data to be compressed,
The present data compression apparatus itself may be provided with storage means and stored in the storage means, or the data compression apparatus itself may not be stored and may be configured to compress and input data input from outside. May be. This is particularly effective when the degree of difficulty is considerable, such as moving image data.However, the data is not limited to moving image data but may be audio data. It is equally applicable and effective.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。本実施形態は、データ圧縮
装置をMPEG2に準拠した動画像圧縮装置として適用
した場合の一例である。
Embodiments of the present invention will be described below with reference to the drawings. This embodiment is an example in which the data compression device is applied as a moving image compression device based on MPEG2.

【0015】図1に示すように、本実施形態の動画像圧
縮装置1は、装置全体の制御を司る制御手段であって、
「調整指示手段」にも相当するCPU11と、そのCP
U11が実行するプログラムを記憶している記憶手段で
あり、「対応関係記憶手段」にも相当するROM12
と、一時記憶手段としてのRAM13と、圧縮対象とな
る動画像データを記憶しているハードディスクドライブ
(HDD)14と、「圧縮手段」としての圧縮回路15
とを備え、これらは相互にバス20を介して接続されて
いる。
As shown in FIG. 1, a moving image compression apparatus 1 according to this embodiment is a control means for controlling the entire apparatus.
CPU 11 corresponding to "adjustment instruction means" and its CP
ROM 12 which is a storage means for storing a program to be executed by U11 and which also corresponds to "correspondence storage means"
A hard disk drive (HDD) 14 for storing moving image data to be compressed, and a compression circuit 15 as a "compression means".
And these are mutually connected via a bus 20.

【0016】HDD14に記憶されている動画像データ
には、図3に示すようにデータIDとカテゴリIDとが
ヘッダ情報として付加されている。カテゴリIDは、動
画像データの難易度を反映して設定されたカテゴリを識
別するための情報である。難易度は、時間的及び空間的
な相関の大小に基づいて設定することが考えられ、一例
を挙げれば、いわゆるCG(コンピュータグラフィック
ス)画像や自然画などは時間的及び空間的な相関が少な
いことが多く、難易度を高く設定するのが適切だと考え
られる。また、アニメーションや映画などの画像は相対
的に難易度を低く設定するのが適切だと考えられる。し
たがって、これらは一つのカテゴリとしてまとめて設定
してもよい。
As shown in FIG. 3, a data ID and a category ID are added to the moving image data stored in the HDD 14 as header information. The category ID is information for identifying a category set by reflecting the degree of difficulty of moving image data. It is conceivable that the difficulty level is set based on the magnitude of the temporal and spatial correlation. For example, a so-called CG (computer graphics) image or a natural image has little temporal and spatial correlation. In many cases, setting a higher difficulty level is appropriate. Also, it is considered appropriate to set the difficulty level relatively low for images such as animations and movies. Therefore, these may be collectively set as one category.

【0017】もちろん、上述した自然画の中にもその画
像内容によって難易度の高低は生じるので、適宜それら
は考慮して設定すればよい。一例を挙げれば、同じ山の
風景画像であっても、それが遠くに存在して特に動くこ
ともなくまた細かな部分もないような場合は難易度は低
くなる。逆に、それが近くに存在し、例えば森林の細部
まで現れて枝葉が風になびくような風景であれば難易度
は高くなる。また、同様にスポーツというカテゴリを考
えた場合でも、そのスポーツの種類によって動きが激し
いものとそうでないものといった相違から、自ずと難易
度の高低はできてくる。したがって、それらの区別も付
けたカテゴリを設定してもよい。
Of course, the level of difficulty also occurs in the above-described natural image depending on the image content, and these may be appropriately set in consideration of the level of difficulty. For example, even if the same mountain scenery image is present in a distant place and does not particularly move and has no detailed portion, the difficulty level becomes low. Conversely, if it is nearby, for example, a landscape that appears in the details of the forest and the branches and leaves flutter in the wind, the difficulty level is high. Similarly, even when considering the category of sports, the level of difficulty can be naturally increased due to the difference between those that move rapidly and those that do not, depending on the type of sports. Therefore, a category with these distinctions may be set.

【0018】そして、ROM12内には、図4に示すよ
うに難易度を示すカテゴリIDと生成データ量との対応
関係を示すテーブル12aが記憶されている。これは、
上述した難易度を考慮して、その難易度に応じた適切な
生成データ量が設定されているのである。なお、上述し
た難易度カテゴリと生成データ量を適切に設定するには
経験や専門知識が必要であるため、そのような経験と知
識を持った人が設定することが好ましい。
In the ROM 12, as shown in FIG. 4, a table 12a indicating a correspondence relationship between a category ID indicating a difficulty level and a generated data amount is stored. this is,
In consideration of the difficulty level described above, an appropriate amount of generated data is set according to the difficulty level. In order to appropriately set the above-described difficulty category and the amount of generated data, experience and expertise are required. Therefore, it is preferable that a person having such experience and knowledge set the above.

【0019】このように、HDD14内に記憶された動
画像データにはヘッダ情報としてカテゴリIDが設定さ
れ、またROM12内にはカテゴリIDと生成データ量
との対応関係を示すテーブル12aが格納されているた
め、HDD14から読み出された動画像データが圧縮回
路15にて圧縮処理されて出力される際に、CPU11
は、圧縮回路15にて実行される圧縮処理が、圧縮対象
の動画像データに応じた適切な生成データ量となるよう
にテーブル12aに記憶されている対応関係に基づいて
調整指示を出す。この調整指示については後述する。
As described above, the moving image data stored in the HDD 14 is set with the category ID as the header information, and the ROM 12 stores the table 12a indicating the correspondence between the category ID and the generated data amount. Therefore, when the moving image data read from the HDD 14 is compressed by the compression circuit 15 and output, the CPU 11
Issues an adjustment instruction based on the correspondence stored in the table 12a so that the compression processing executed by the compression circuit 15 has an appropriate generated data amount according to the moving image data to be compressed. This adjustment instruction will be described later.

【0020】次に、圧縮回路15の内部構成について説
明する。図2に示すように、圧縮回路15は、動画像デ
ータを入力し、データ量の圧縮されたデジタルデータと
して出力するものであり、データ圧縮すべき動画像デー
タを記憶する画像メモリ101と、入力画素値データと
参照データとの減算処理を行う減算部102と、直交変
換の一種であるDCT(離散コサイン変換)処理を行う
直交変換手段としてのDCT部103と、そのDCT部
103から入力されたDCT係数データを量子化する量
子化手段としての量子化部104と、その量子化部10
4において量子化されたDCT係数データに対して可変
長符号化を行う可変長符号化手段としての可変長符号化
部105と、その可変長符号化部105にて符号化され
たデータをバッファリングし後段の分離多重化部(図示
せず)へ出力するための送信バッファ部106と、前記
量子化部104において量子化されたDCT係数データ
を逆量子化する逆量子化部107と、その逆量子化部1
07にて逆量子化されたDCT係数データに対してID
CT(逆離散コサイン変換)処理を行うIDCT部10
8と、そのIDCT部108によりIDCT処理される
前の画像データに戻されたデータに動き補償を加算する
ための加算部109と、動きフレーム間予測のために加
算部109からの出力を記憶しておくフレームメモリ部
で110と、動きベクトル検出部111と、その動きベ
クトル検出部111にて検出された動きベクトルに従
い、前回のフレームにおける該当するマクロブロック単
位の画素値データを選択する動き補償部112と、ビッ
トレート制御部114とを備えている。
Next, the internal configuration of the compression circuit 15 will be described. As shown in FIG. 2, the compression circuit 15 receives moving image data and outputs it as digital data having a reduced data amount. The image memory 101 stores moving image data to be data-compressed. A subtraction unit 102 that performs a subtraction process between pixel value data and reference data, a DCT unit 103 that performs an orthogonal transformation unit that performs a DCT (discrete cosine transform) process, which is a type of orthogonal transformation, and an input from the DCT unit 103 A quantization unit 104 as quantization means for quantizing DCT coefficient data;
4, a variable length encoding unit 105 as a variable length encoding unit for performing variable length encoding on the DCT coefficient data quantized, and buffering the data encoded by the variable length encoding unit 105 A transmission buffer unit 106 for outputting to a subsequent separation / multiplexing unit (not shown), an inverse quantization unit 107 for inversely quantizing the DCT coefficient data quantized in the quantization unit 104, and an inverse thereof. Quantization unit 1
ID for the DCT coefficient data inversely quantized at 07
IDCT unit 10 for performing a CT (Inverse Discrete Cosine Transform) process
8, an adder 109 for adding motion compensation to data returned to the image data before the IDCT processing by the IDCT unit 108, and an output from the adder 109 for motion inter-frame prediction. A frame memory unit 110, a motion vector detecting unit 111, and a motion compensating unit that selects pixel value data of a corresponding macroblock unit in the previous frame according to the motion vector detected by the motion vector detecting unit 111. 112 and a bit rate control unit 114.

【0021】本圧縮回路15においては、入力された圧
縮対象の動画像データが画像メモリ101に取り込まれ
て一時的に蓄えられる。本実施形態では、16×16画
素のマクロブロックを圧縮する一単位として処理するの
で、ここでデータをマクロブロック単位に並べ替えて出
力する。画像メモリ101の出力であるマクロブロック
単位の画素データは、減算部102及び動きベクトル検
出部111に送られる。減算部102には動き補償部1
12からの予測データも入力され、画素データと予測デ
ータとの差分データ(予測誤差)をDCT部103へ出
力する。
In the compression circuit 15, the input moving image data to be compressed is taken into the image memory 101 and is temporarily stored. In the present embodiment, since a macroblock of 16 × 16 pixels is processed as one unit for compression, the data is rearranged in macroblock units and output. The pixel data in macroblock units, which is the output of the image memory 101, is sent to the subtraction unit 102 and the motion vector detection unit 111. The motion compensation unit 1 is included in the subtraction unit 102.
The prediction data from the pixel data 12 is also input, and the difference data (prediction error) between the pixel data and the prediction data is output to the DCT unit 103.

【0022】このDCT部103では、減算部102か
ら出力される差分データに対してDCT(離散コサイン
変換)処理を行う。このとき演算単位は所定のブロック
単位(例えば8×8画素毎)に行う。DCT演算では、
出力として8×8の係数が求められる。本実施形態で
は、この係数(以下、「DCT係数」とも呼ぶ。)を周
波数成分の順に並べて量子化部104へ出力する。
The DCT unit 103 performs a DCT (Discrete Cosine Transform) process on the difference data output from the subtraction unit 102. At this time, the calculation is performed in predetermined block units (for example, every 8 × 8 pixels). In DCT operation,
An 8 × 8 coefficient is obtained as an output. In the present embodiment, the coefficients (hereinafter, also referred to as “DCT coefficients”) are arranged in the order of frequency components and output to the quantization unit 104.

【0023】量子化部104では、ビットレート制御部
114からの量子化特性制御信号に従って選択されたス
テップサイズで、DCT部103から入力されたDCT
係数を量子化し、この量子化した値を可変長符号化部1
05へ出力する。可変長符号化部105ではビットレー
ト制御部114による符号化制御信号に基づき、有意ブ
ロック判定等を行い、量子化されたDCT係数を可変長
符号化し、送信バッファ部106へ出力する。なお、こ
の可変長符号化については、例えば量子化部104の出
力をランレングス変換した後で、その係数を可変長符号
に変換して圧縮データとして出力することが考えられ
る。ランレングス符号化によってゼロ係数の数と次の非
ゼロ係数の値の組である2個の係数になるのであるが、
量子化部104の出力は、ゼロ係数が多く続く傾向があ
るので、ランレングス符号化することによってデータ量
は削減される。次に、ランレングス符号化の結果である
2つの係数をまとめ、一つの可変長符号を割り当てて出
力することで圧縮データが得られることとなる。
In the quantization section 104, the DCT inputted from the DCT section 103 has a step size selected according to the quantization characteristic control signal from the bit rate control section 114.
The coefficient is quantized, and the quantized value is transmitted to the variable length coding unit 1
Output to 05. The variable length coding unit 105 performs a significant block determination and the like based on the coding control signal from the bit rate control unit 114, performs variable length coding on the quantized DCT coefficient, and outputs it to the transmission buffer unit 106. In this variable-length coding, for example, it is conceivable that after the output of the quantization unit 104 is run-length-transformed, the coefficient is converted into a variable-length code and output as compressed data. Run-length encoding results in two coefficients, the set of the number of zero coefficients and the value of the next non-zero coefficient,
Since the output of the quantization unit 104 tends to have a large number of zero coefficients, the amount of data is reduced by performing run-length encoding. Next, two coefficients that are the result of the run-length encoding are put together, and one variable-length code is assigned and output, so that compressed data is obtained.

【0024】一方、逆量子化部107には、量子化部1
04から出力されたDCT係数を量子化したものが入力
されるため、量子化部104において選択された量子化
ステップサイズを用いて逆量子化を行い、DCT係数を
算出してIDCT部108へ出力する。このときの結果
は量子化による誤差を含んだ値となるため、IDCT部
108では、逆量子化部107から入力したDCT係数
に対してIDCT(逆離散コサイン変換)処理し、加算
部109へ出力する。
On the other hand, the inverse quantization unit 107 includes the quantization unit 1
Since the quantized DCT coefficient output from the input unit 04 is input, inverse quantization is performed using the quantization step size selected in the quantization unit 104, the DCT coefficient is calculated and output to the IDCT unit 108. I do. Since the result at this time is a value including an error due to quantization, IDCT section 108 performs IDCT (inverse discrete cosine transform) processing on the DCT coefficient input from inverse quantization section 107 and outputs the result to addition section 109. I do.

【0025】この加算部109は、IDCT部108か
らの出力と動き補償部112からの出力を加算してフレ
ームメモリ部110へ出力する。フレームメモリ部11
0は、動き補償フレーム間予測のためのフレームメモリ
であり、少なくとも2フレーム分のフレームメモリで構
成される。そして、加算部109からの画素値出力を蓄
積すると同時に、動き補償フレーム予測のため前回フレ
ームの画素データを、動きベクトル検出部111及び動
き補償部112へ出力する。
The addition section 109 adds the output from the IDCT section 108 and the output from the motion compensation section 112 and outputs the result to the frame memory section 110. Frame memory unit 11
Reference numeral 0 denotes a frame memory for motion compensated inter-frame prediction, which is composed of at least two frame memories. Then, at the same time as accumulating the pixel value output from the adding unit 109, the pixel data of the previous frame is output to the motion vector detecting unit 111 and the motion compensating unit 112 for motion compensated frame prediction.

【0026】動きベクトル検出部111では、現在フレ
ームの処理マクロブロック位置付近における前回フレー
ムの画素データを動きベクトル・サーチウィンドウ(検
索領域)としてフレームメモリ部110より読み出し、
ブロックマッチング演算を行って動きベクトルを検出
し、その検出した動きベクトルを動き補償部112へ出
力する。また、上記ブロックマッチング演算により検出
された動きベクトルは、隣接するマクロブロックに対す
る動きベクトルとしても出力される。
The motion vector detecting section 111 reads out pixel data of the previous frame near the processing macroblock position of the current frame from the frame memory section 110 as a motion vector search window (search area).
A motion vector is detected by performing a block matching operation, and the detected motion vector is output to the motion compensation unit 112. Further, the motion vector detected by the block matching calculation is also output as a motion vector for an adjacent macro block.

【0027】動き補償部112では、動きベクトル検出
部111で検出された動きベクトルに従い、前回フレー
ムの該当するマクロブロック単位の画素データをフレー
ムメモリ部110より読み出し、予測値データとして減
算部102へ出力する。これが、データ圧縮に係る概略
動作であり、上述したように例えばランレングス符号化
と可変長コードを採用してデータの効率的な圧縮を実現
することができるのである。
In accordance with the motion vector detected by the motion vector detecting section 111, the motion compensating section 112 reads out the pixel data of the corresponding macroblock unit of the previous frame from the frame memory section 110 and outputs it to the subtracting section 102 as predicted value data. I do. This is a schematic operation relating to data compression, and as described above, efficient compression of data can be realized by employing, for example, run-length encoding and variable-length code.

【0028】そして、前記ビットレート制御部114
は、CPU11(図1参照)から生成データ量を調整指
示内容として取得する。そして、その指示された生成デ
ータ量に応じたビットレートとなるように、量子化部1
04及び逆量子化部107に対する量子化ステップ値の
変更制御を実行する。量子化部104は、このビットレ
ート制御部114からの指示にしたがって量子化ステッ
プサイズを選択し、DCT部103から入力されたDC
T係数データを量子化することとなり、これによって可
変ビットレート機能が発揮される。
The bit rate control unit 114
Acquires the generated data amount from the CPU 11 (see FIG. 1) as the content of the adjustment instruction. Then, the quantization unit 1 sets the bit rate according to the instructed generated data amount.
04 and the inverse quantization unit 107 are controlled to change the quantization step value. The quantization unit 104 selects a quantization step size in accordance with an instruction from the bit rate control unit 114, and
The T coefficient data is quantized, and thereby, a variable bit rate function is exhibited.

【0029】上述の構成を持つ本実施形態の動画像圧縮
装置1においては、圧縮回路15が動画像データを圧縮
可能であり、かつビットレート制御部114がビットレ
ートを制御することによって生成されるデータ量を調整
可能である。そして、圧縮対象の各動画像データには図
3に示すように予め難易度を示すカテゴリIDが設定さ
れており、CPU11は、圧縮対象の動画像データに対
応するカテゴリIDに応じた生成データ量となるよう
に、ROM12内のテーブル12aに記憶されている対
応関係に基づいて、圧縮回路15のビットレート制御部
114に対して生成データ量の調整指示をする。
In the moving picture compression apparatus 1 of the present embodiment having the above configuration, the compression circuit 15 can compress the moving picture data, and the bit rate control unit 114 controls the bit rate to generate the moving picture data. The amount of data can be adjusted. As shown in FIG. 3, a category ID indicating the degree of difficulty is set in advance for each moving image data to be compressed, and the CPU 11 generates a data amount corresponding to the category ID corresponding to the moving image data to be compressed. In accordance with the correspondence stored in the table 12a in the ROM 12, the bit rate control unit 114 of the compression circuit 15 is instructed to adjust the generated data amount.

【0030】圧縮対象となる動画像データの難易度は一
定ではないため、一定の生成データ量で圧縮する場合に
は、データ内容によってはその再生画像が十分には満足
できないものとなってしまう。そこで、動画像データの
内容に応じた生成データ量をその都度設定して圧縮する
こととなるが、非常に煩わしい操作であると共に、経験
と専門知識がないと適切な生成データ量を決めるのは難
しい。
Since the degree of difficulty of moving image data to be compressed is not constant, if the compression is performed with a fixed generated data amount, the reproduced image may not be sufficiently satisfied depending on the data content. Therefore, the amount of generated data according to the content of the moving image data is set each time and compressed, but it is a very cumbersome operation and it is difficult to determine an appropriate amount of generated data without experience and expertise. difficult.

【0031】したがって、本動画像圧縮装置1のよう
に、圧縮対象の各動画像データに予め設定されているカ
テゴリIDに応じた生成データ量となるように調整指示
する構成を採用することで、操作者がその都度設定する
といった煩わしさはなくなる。そして、最初にカテゴリ
IDを設定する際だけ経験や専門知識を生かせばよく、
後は動画像圧縮装置1が自動的に難易度に応じた適切な
生成データ量を指示するため、常に適切な再生画像を得
ることができる。
Therefore, as in the main moving picture compression apparatus 1, by adopting a configuration in which adjustment is instructed so as to have a generated data amount corresponding to a category ID preset for each moving picture data to be compressed, The trouble of the operator setting each time is eliminated. And you only have to use your experience and expertise when setting the category ID for the first time,
Thereafter, the moving image compression apparatus 1 automatically instructs an appropriate amount of generated data according to the difficulty level, so that an appropriate reproduced image can always be obtained.

【0032】以上、実施の形態に基づき本発明を説明し
たが、本発明は上記実施形態になんら限定されるもので
はなく、本発明の主旨を逸脱しない範囲で種々の変形改
良が可能であることは容易に推察されるものである。例
えば、圧縮対象の動画像データについて言えば、上記実
施形態の動画像圧縮装置1の場合には、装置1自体がH
DD14を備え、そのHDD14に記憶しておく構成で
あったが、動画像圧縮装置1自体は記憶しておかず、外
部から入力された動画像データを圧縮して出力するよう
な構成でもよい。
Although the present invention has been described based on the embodiments, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the gist of the present invention. Is easily inferred. For example, regarding the moving image data to be compressed, in the case of the moving image compression device 1 of the above embodiment, the device 1 itself is H
Although the DD 14 is provided and stored in the HDD 14, the moving image compression apparatus 1 itself may not be stored and may be configured to compress and output moving image data input from the outside.

【0033】また、上記実施形態の圧縮回路15はMP
EG2規格に基づく圧縮処理をするような構成であった
が、採用する圧縮符号化規格としてはMPEG2に限定
されることはなく、動画像データを圧縮するための他の
規格に基づいて圧縮処理を施すようにしてもよい。
Also, the compression circuit 15 of the above-described embodiment
Although the configuration is such that compression processing based on the EG2 standard is performed, the compression encoding standard to be adopted is not limited to MPEG2, and the compression processing is performed based on another standard for compressing moving image data. You may make it apply.

【0034】そして、上記実施形態は動画像圧縮装置と
して適用した場合であったが、圧縮対象のデータとして
は画像データを取り扱う場合だけでなく、その他のデー
タであっても同様の問題が生じるような場合であれば、
やはり有効である。例えば、音声データであってもよ
く、その場合の難易度カテゴリとしては、例えばスピー
チ、音楽演奏、自然等が考えられる。但し、動画像デー
タのように難易度の高低の幅がかなりあるものの場合に
は、特に有効である。
Although the above embodiment is applied to a moving image compression apparatus, the same problem may occur not only when image data is handled as data to be compressed but also when other data is used. If
It is still effective. For example, the data may be audio data, and the difficulty category in that case may be, for example, speech, music performance, or nature. However, this is particularly effective in the case where the degree of difficulty is considerably large such as moving image data.

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

【図1】 実施形態の動画像圧縮装置の構成を示すブロ
ック図である。
FIG. 1 is a block diagram illustrating a configuration of a moving image compression device according to an embodiment.

【図2】 実施形態の圧縮回路の構成を示すブロック図
である。
FIG. 2 is a block diagram illustrating a configuration of a compression circuit according to the embodiment.

【図3】 動画像データとそのヘッダ情報を示す説明図
である。
FIG. 3 is an explanatory diagram showing moving image data and its header information.

【図4】 難易度を示すカテゴリIDと生成データ量と
の対応関係を示すテーブルの説明図である。
FIG. 4 is an explanatory diagram of a table showing a correspondence relationship between a category ID indicating a degree of difficulty and a generated data amount.

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

1…動画像圧縮装置 11…CPU 12…ROM 13…RAM 14…ハードディスクドライブ 15…圧縮回路 101…画像メモリ 102…減算部 103…DCT部 104…量子化
部 105…可変長符号化部 106…送信バ
ッファ部 107…逆量子化部 108…IDC
T部 109…加算部 110…フレー
ムメモリ部 111…動きベクトル検出部 112…動き補
償部 114…ビットレート制御部
DESCRIPTION OF SYMBOLS 1 ... Moving image compression apparatus 11 ... CPU 12 ... ROM 13 ... RAM 14 ... Hard disk drive 15 ... Compression circuit 101 ... Image memory 102 ... Subtraction unit 103 ... DCT unit 104 ... Quantization unit 105 ... Variable length encoding unit 106 ... Transmission Buffer unit 107: inverse quantization unit 108: IDC
T unit 109 addition unit 110 frame memory unit 111 motion vector detection unit 112 motion compensation unit 114 bit rate control unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データを圧縮可能、かつ生成されるデー
タ量を調整可能な圧縮手段を備えるデータ圧縮装置であ
って、 前記圧縮対象の各データには、予め難易度カテゴリが設
定されており、 圧縮対象のデータに対応する前記難易度カテゴリに応じ
た生成データ量となるように、前記圧縮手段に対して生
成データ量の調整指示をする調整指示手段を備えること
を特徴とするデータ圧縮装置。
1. A data compression apparatus comprising compression means capable of compressing data and adjusting an amount of generated data, wherein a difficulty category is set in advance for each data to be compressed, A data compression apparatus, comprising: an adjustment instruction unit that instructs the compression unit to adjust an amount of generated data so that the amount of generated data corresponds to the difficulty category corresponding to data to be compressed.
【請求項2】 前記圧縮対象のデータは動画像データで
あり、前記難易度カテゴリは動画像データの時間的及び
空間的な相関が少ないほど難易度が高くなるよう設定さ
れていることを特徴とする請求項1記載のデータ圧縮装
置。
2. The data to be compressed is moving image data, and the difficulty category is set so that the degree of difficulty increases as the temporal and spatial correlation of the moving image data decreases. The data compression device according to claim 1, wherein
【請求項3】 前記難易度カテゴリを示す情報は、各デ
ータに付加されていることを特徴とする請求項1又は2
記載のデータ圧縮装置。
3. The information indicating the difficulty category is added to each data.
A data compression device as described.
【請求項4】 前記難易度カテゴリと生成データ量との
対応関係を記憶しておく対応関係記憶手段を備え、 前記調整指示手段は、前記対応関係記憶手段に記憶され
ている対応関係に基づいて、圧縮対象のデータに対応す
る生成データ量を決定し、その決定された生成データ量
となるように前記圧縮手段に調整指示を行なうよう構成
されていることを特徴とする請求項1,2又は3記載の
データ圧縮装置。
4. A correspondence storage means for storing a correspondence relation between the difficulty category and the amount of generated data, wherein the adjustment instruction means is based on the correspondence relation stored in the correspondence storage means. And determining an amount of generated data corresponding to the data to be compressed and instructing the compression means to adjust the amount of generated data to the determined amount of generated data. 3. The data compression device according to 3.
JP1280297A 1997-01-27 1997-01-27 Data-compressing device Pending JPH10210466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1280297A JPH10210466A (en) 1997-01-27 1997-01-27 Data-compressing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1280297A JPH10210466A (en) 1997-01-27 1997-01-27 Data-compressing device

Publications (1)

Publication Number Publication Date
JPH10210466A true JPH10210466A (en) 1998-08-07

Family

ID=11815533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1280297A Pending JPH10210466A (en) 1997-01-27 1997-01-27 Data-compressing device

Country Status (1)

Country Link
JP (1) JPH10210466A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1280107A2 (en) * 2001-07-23 2003-01-29 Eastman Kodak Company Quality based image compression
JP2007110707A (en) * 2005-09-28 2007-04-26 Vixs Systems Inc System and method for translation based on multimedia program type

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1280107A2 (en) * 2001-07-23 2003-01-29 Eastman Kodak Company Quality based image compression
EP1280107A3 (en) * 2001-07-23 2006-02-01 Eastman Kodak Company Quality based image compression
JP2007110707A (en) * 2005-09-28 2007-04-26 Vixs Systems Inc System and method for translation based on multimedia program type

Similar Documents

Publication Publication Date Title
US9762917B2 (en) Quantization method and apparatus in encoding/decoding
JPH09107547A (en) Already compressed dynamic image data amount reduction device, already compressed dynamic image data amount reduction system and already compressed dynamic image data reduction method
US20020057739A1 (en) Method and apparatus for encoding video
JP4023324B2 (en) Watermark embedding and image compression unit
JP3651706B2 (en) Video encoding device
US20020113898A1 (en) Picture processing apparatus and method, and recording medium
JPH0722396B2 (en) Image coding device
JPH0937263A (en) Moving image compressor
JP3227674B2 (en) Video encoding apparatus and method
JP2000175201A (en) Image processing unit, its method and providing medium
JP3173257B2 (en) Encoding method and encoding device
JPH10210466A (en) Data-compressing device
JPH08307860A (en) Scene re-encoder
JPH10285542A (en) Image recorder and image recording method
JPH10271498A (en) Compression data conversion method, information quantity conversion method for image compression data, and image recorder adopting the method
JP2000125295A (en) Moving picture coder, its method, moving picture decoder, its method and storage medium
JPH11328937A (en) Device and method for recording signal
JP2002204459A (en) Moving picture coding method and device
JP2008526077A (en) Video stream changing device
WO2008079330A1 (en) Video compression with complexity throttling
JP4700992B2 (en) Image processing device
JP2916027B2 (en) Image coding device
JP2820636B2 (en) Video compression device
JP4539028B2 (en) Image processing apparatus, image processing method, recording medium, and program
JPH1098710A (en) Signal processor

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060124

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060523