JPH11205802A - Data encoding device - Google Patents
Data encoding deviceInfo
- Publication number
- JPH11205802A JPH11205802A JP393298A JP393298A JPH11205802A JP H11205802 A JPH11205802 A JP H11205802A JP 393298 A JP393298 A JP 393298A JP 393298 A JP393298 A JP 393298A JP H11205802 A JPH11205802 A JP H11205802A
- Authority
- JP
- Japan
- Prior art keywords
- data
- image data
- unit
- encoding
- pixel number
- 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
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
(57)【要約】
【課題】入力された画像データの動き量が大きい場合に
おいても、画質の劣化が少ない高画質な符号化データを
生成するようにする。
【解決手段】入力データを所定の符号化方法によつて符
号化するデータ符号化装置において、画像データの動き
量を検出し、当該検出結果が所定の閾レベルを越えてい
た場合に、画像データの画素数を削減する画素数変換手
段と、当該画素数変換手段によつて画素数の削減された
画像データに応じて減少される動きベクトルの符号量
を、画像データを所定の方式で変換した係数データの符
号量に割り当てたことによつて得られる発生符号量にな
るように係数データを符号化する符号化手段とを設ける
ようにする。
(57) [Summary] Even if the amount of motion of input image data is large, encoded image data with high image quality with little deterioration in image quality is generated. In a data encoding apparatus for encoding input data by a predetermined encoding method, a motion amount of image data is detected, and when the detection result exceeds a predetermined threshold level, the image data is encoded. A pixel number converting means for reducing the number of pixels, and a code amount of a motion vector which is reduced according to the image data having the reduced pixel number by the pixel number converting means. Encoding means for encoding the coefficient data so that the generated code amount can be obtained by allocating to the code amount of the coefficient data.
Description
【0001】[0001]
【目次】以下の順序で本発明を説明する。[Table of Contents] The present invention will be described in the following order.
【0002】 発明の属する技術分野 従来の技術(図3及び図4) 発明が解決しようとする課題 課題を解決するための手段 発明の実施の形態(図1及び図2) 発明の効果[0002] 2. Description of the Related Art [0004] Prior Art (FIGS. 3 and 4) Problems to be Solved by the Invention Means for Solving the Problems
【0003】[0003]
【発明の属する技術分野】本発明はデータ符号化装置に
関し、例えばデイジタル放送システムに用いられるデー
タ符号化装置に適用して好適なものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data encoding device, and is suitably applied to, for example, a data encoding device used in a digital broadcasting system.
【0004】[0004]
【従来の技術】近年、映像及び音声の情報量を減らす方
法として種々の圧縮符号化方法が提案されており、その
代表的なものにMPEG2(Moving Picture Experts Gr
oup Phase 2)と呼ばれる方式がある。かかるMPEG2
方式を用いて、映像及び音声の放送データを圧縮符号化
し、地上波または衛星波を用いて放送するデイジタル放
送システムが開始されている。2. Description of the Related Art In recent years, various compression / encoding methods have been proposed as methods for reducing the amount of video and audio information, and a typical one is MPEG2 (Moving Picture Experts Gr.).
There is a method called oup Phase 2). MPEG2
2. Description of the Related Art A digital broadcasting system has been started in which video and audio broadcast data are compression-encoded using a system and broadcast using terrestrial waves or satellite waves.
【0005】図3において50は全体としてデータ符号
化装置を示し、ビデオテープレコーダ等の映像信号供給
装置(図示せず)から画像データD1がプリフイルタ5
1に入力される。画像データD1は、プリフイルタ51
において量子化レート制御部55から供給される周波数
特性制御信号D55に応じた帯域制限処理を受けた後、
画像データD1の高域成分を削減され、帯域制限映像デ
ータD51として画素数変換部52に出力される。ここ
で、画像データD1の高域成分は当該画像の細かい部分
を表現するものであり、プリフイルタ51は当該高域成
分を削減することにより画像の細かい部分を省略し、画
像全体に対する影響を少なく留めつつ画像データD1の
帯域幅を減少させる。In FIG. 3, reference numeral 50 denotes a data encoding device as a whole, and image data D1 is supplied from a video signal supply device (not shown) such as a video tape recorder to a pre-filter 5.
1 is input. The image data D1 is stored in the pre-filter 51.
After undergoing band limiting processing according to the frequency characteristic control signal D55 supplied from the quantization rate control unit 55 in
The high-frequency component of the image data D1 is reduced, and is output to the pixel number conversion unit 52 as band-limited video data D51. Here, the high-frequency component of the image data D1 expresses a fine portion of the image, and the pre-filter 51 omits the fine portion of the image by reducing the high-frequency component to reduce the influence on the entire image. While reducing the bandwidth of the image data D1.
【0006】画素数変換部52は、入力された帯域制限
映像データD51に対して画素数変換処理を行う。すな
わち画素数変換部52は、入力された画像データD1の
水平方向の画素数を水平画素数Mとすると、当該画像デ
ータD1を帯域制限してなる帯域制限映像データD51
の水平方向画素数を、N<Mの関係を満たす削減水平画
素数Nに削減し、画素数変換画像データD52として符
号化部53に送出する。ここで削減水平画素数Nは、画
像データD1の画像内容に応じて、高画質を要求される
画像内容においては大きな値に、高画質を要求されない
画像内容においては小さな値に設定される。The pixel number conversion section 52 performs a pixel number conversion process on the input band-limited video data D51. That is, assuming that the number of pixels in the horizontal direction of the input image data D1 is the number of horizontal pixels M, the pixel number conversion unit 52 performs band-limited video data D51 obtained by band-limiting the image data D1.
Is reduced to the number N of reduced horizontal pixels that satisfies the relationship of N <M, and is sent to the encoding unit 53 as pixel number converted image data D52. Here, the number N of reduced horizontal pixels is set to a large value for image contents requiring high image quality and a small value for image contents not requiring high image quality, according to the image contents of the image data D1.
【0007】画素数変換画像データD52は、符号化部
53において動き補償処理、DCT(Discrete Cosine
Transform 、離散コサイン変換)処理、量子化処理、及
びVLC(Variable Length Coding、可変長符号化)処
理を受けて圧縮符号化され、可変長符号化データD53
としてバツフア54に送出される。このとき符号化部5
3は、量子化レート制御部55から供給される量子化制
御信号D56に基づいて量子化処理における量子化レー
トを調整する。また、符号化部53には符号化部制御部
57から符号化部制御情報D57が供給されており、当
該符号化部53は当該符号化部制御情報D57に基づい
て符号化タイミング及び動き補償処理における動きベク
トル探索範囲を設定する。[0007] The pixel number converted image data D52 is subjected to motion compensation processing and DCT (Discrete Cosine) in an encoding unit 53.
Transform, discrete cosine transform) processing, quantization processing, and VLC (Variable Length Coding) processing, compression-encoded, and variable-length encoded data D53.
Is sent to the buffer 54. At this time, the encoding unit 5
3 adjusts the quantization rate in the quantization processing based on the quantization control signal D56 supplied from the quantization rate control unit 55. Further, the coding unit 53 is supplied with coding unit control information D57 from the coding unit control unit 57, and the coding unit 53 performs coding timing and motion compensation processing based on the coding unit control information D57. Set the motion vector search range in.
【0008】ここで、可変長符号化データD53からな
る各フレーム毎の発生符号量は、画像データD1の画像
内容に応じて変動する。このため符号化部53は、バツ
フア54における可変長符号化データD53の占有量に
基づいて量子化処理の量子化レート及びプリフイルタ5
1における帯域制限を制御し、可変長符号化データD5
3をバツフア54に複数蓄積した後、一定期間例えばG
OP(Group Of Pictures )当たりの発生符号量を一定
に制御した固定長符号化データD50として出力する。Here, the generated code amount of each frame composed of the variable length coded data D53 varies according to the image content of the image data D1. For this reason, the encoding unit 53 determines the quantization rate of the quantization process and the pre-filter 5 based on the occupation amount of the variable-length encoded data D53 in the buffer 54.
1 to control the variable-length coded data D5
3 are stored in the buffer 54, and then, for example, G
The generated code amount per OP (Group Of Pictures) is output as fixed-length coded data D50 controlled to be constant.
【0009】すなわち、量子化レート制御部55はバツ
フア54における可変長符号化データD53の蓄積状態
を常に監視しており、かかる蓄積状態を占有率情報D5
4として得ることにより、当該占有率情報D54を基に
量子化制御信号D56及び周波数特性制御信号D55を
生成し、これを符号化部53及びプリフイルタ51に供
給する。かくして符号化部53は、一定期間当たりの発
生符号量を一定に制御した固定長符号化データD50を
生成するようになされている。That is, the quantization rate control unit 55 constantly monitors the accumulation state of the variable-length encoded data D53 in the buffer 54, and monitors the accumulation state with the occupancy rate information D5.
As a result, the quantization control signal D56 and the frequency characteristic control signal D55 are generated based on the occupation ratio information D54, and are supplied to the encoding unit 53 and the pre-filter 51. Thus, the encoding unit 53 generates the fixed-length encoded data D50 in which the generated code amount per fixed period is controlled to be constant.
【0010】[0010]
【発明が解決しようとする課題】ところで、かかるデー
タ符号化装置50においては、画像データD1の画像の
動き量が大きければ大きい程、各フレーム当たりの動き
ベクトルの発生符号量が増加する。すなわち図4(A)
及び(B)は、量子化処理を行う前のフレーム当たりの
DCT係数の符号量及び動きベクトルの符号量の比率を
表したものであり、動き量の大きい画像を符号化した動
きベクトルMV2は、動き量の小さな画像を符号化した
動きベクトルMV1に比べて符号量が増大している。In the data encoding device 50, the larger the amount of motion of the image of the image data D1, the greater the amount of generated motion vectors per frame. That is, FIG.
And (B) show the ratio between the code amount of the DCT coefficient and the code amount of the motion vector per frame before performing the quantization process, and the motion vector MV2 obtained by coding an image having a large motion amount is: The code amount is larger than that of the motion vector MV1 obtained by coding an image with a small motion amount.
【0011】DCT係数DCT1及びDCT係数DCT
2の発生符号量は、画像の動き量に関わらずほとんど変
化しない。このためデータ符号化装置50は、動き量の
大きい画像が連続して入力された場合、DCT係数DC
T2及び動きベクトルMV2全体の発生符号量が増大し
ているために、DCT係数を量子化する際の量子化ステ
ツプを大きくすることにより粗く量子化する。これによ
りデータ符号化装置50は、一定期間当たりの発生符号
量が一定に制御した固定長符号化データD50を生成す
ることができるが、量子化ステツプを大きくしたことに
より、その分だけ画質の劣化が生じるという問題があつ
た。DCT coefficient DCT1 and DCT coefficient DCT
The amount of generated code 2 hardly changes regardless of the amount of motion of the image. For this reason, the data encoding device 50 determines that the DCT coefficient DC
Since the generated code amount of T2 and the entire motion vector MV2 is increased, the quantization is coarsely performed by increasing the quantization step when quantizing the DCT coefficient. As a result, the data encoding device 50 can generate the fixed-length encoded data D50 in which the amount of generated code per fixed period is controlled to be constant. However, since the quantization step is increased, the image quality is deteriorated accordingly. There was a problem that occurs.
【0012】本発明は以上の点を考慮してなされたもの
で、入力された画像データの動き量が大きい場合におい
ても、画質の劣化が少ない高画質な符号化データを生成
し得るデータ符号化装置を提案しようとするものであ
る。The present invention has been made in view of the above points, and has been made in consideration of the above points. Even when the amount of motion of input image data is large, data encoding that can generate high-quality encoded data with little deterioration in image quality is performed. It is intended to propose a device.
【0013】[0013]
【課題を解決するための手段】かかる課題を解決するた
め本発明においては、入力データを所定の符号化方法に
よつて符号化するデータ符号化装置において、画像デー
タの動き量を検出し、当該検出結果が所定の閾レベルを
越えていた場合に、画像データの画素数を削減する画素
数変換手段と、当該画素数変換手段によつて画素数の削
減された画像データに応じて減少される動きベクトルの
符号量を、画像データを所定の方式で変換した係数デー
タの符号量に割り当てたことによつて得られる発生符号
量になるように係数データを符号化する符号化手段とを
設けることにより、減少した動きベクトルの符号量を係
数データの符号量に割り当てて当該係数データにおける
発生符号量を増加させ、その分だけ量子化ステツプサイ
ズを小さく設定して符号化することができる。According to the present invention, there is provided a data encoding apparatus for encoding input data by a predetermined encoding method, wherein a motion amount of image data is detected. When the detection result exceeds a predetermined threshold level, the pixel number conversion means for reducing the number of pixels of the image data, and the number of pixels is reduced according to the reduced image data by the pixel number conversion means. Encoding means for encoding the coefficient data so that the generated code amount is obtained by allocating the code amount of the motion vector to the code amount of the coefficient data obtained by converting the image data by a predetermined method. By assigning the reduced code amount of the motion vector to the code amount of the coefficient data, the generated code amount of the coefficient data is increased, and the quantization step size is set smaller by that amount. It can be encoded.
【0014】[0014]
【発明の実施の形態】以下図面について、本発明の一実
施の形態を詳述する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings.
【0015】図1において10は全体としてデータ符号
化装置を示し、ビデオテープレコーダ等の映像信号供給
装置(図示せず)からHDTV(High Definition Tele
vision)規格の画像データD1がプリフイルタ12に入
力される。In FIG. 1, reference numeral 10 denotes a data encoding device as a whole, which is supplied from a video signal supply device (not shown) such as a video tape recorder or the like to an HDTV (High Definition Television).
vision) standard image data D1 is input to the pre-filter 12.
【0016】プリフイルタ12は、量子化レート制御部
18から供給される周波数特性制御信号D18に基づい
て画像データD1を帯域制限処理して当該画像データD
1の高域成分を削減することにより、画像の細かい部分
を省略して画像全体に対する影響を少なく留めた状態
で、当該画像データD1の帯域幅を減少し、帯域制限画
像データD2としてシステムデイレイ13及び動き量検
出部15にそれぞれ送出する。The pre-filter 12 performs a band limiting process on the image data D1 based on the frequency characteristic control signal D18 supplied from the quantization rate control unit 18, and the image data D1
1, the bandwidth of the image data D1 is reduced and the system delay 13 is used as the band-limited image data D2, while omitting small parts of the image and reducing the influence on the entire image. And the motion amount detection unit 15.
【0017】動き量検出部15は、帯域制限画像データ
D2の各フレーム画像について、当該各フレーム画像毎
の動き量を検出する。すなわち動き量検出部15は、帯
域制限画像データD2の各フレーム画像を内部のフレー
ムメモリ(図示せず)に参照画像として記憶して、フレ
ーム間に於ける各画素の差分絶対値の総和を算出し、こ
れを動き量データD15として画素数変換判定部17に
送出する。The motion amount detector 15 detects the motion amount of each frame image of the band-limited image data D2. That is, the motion amount detection unit 15 stores each frame image of the band-limited image data D2 as a reference image in an internal frame memory (not shown), and calculates the sum of absolute differences of pixels between frames. This is sent to the pixel number conversion determination unit 17 as the motion amount data D15.
【0018】画素数変換判定部17は動き量データD1
5を所定の閾値と比較し、動き量データD15が閾値よ
り大きい場合に、画素数を変換する画素数変換制御信号
D17の値を「1」とし、動き量データD15が閾値よ
り小さい場合に、画素数をそのまま変換しない画素数変
換制御信号D17の値を「0」として画素数変換部14
及び符号化部制御部16にそれぞれ送出する。The pixel number conversion judging section 17 calculates the motion amount data D1.
5 is compared with a predetermined threshold value. When the motion amount data D15 is larger than the threshold value, the value of the pixel number conversion control signal D17 for converting the number of pixels is set to “1”. When the motion amount data D15 is smaller than the threshold value, The value of the pixel number conversion control signal D17 that does not directly convert the pixel number is set to “0” and the pixel number conversion unit 14
And to the encoding unit control unit 16.
【0019】システムデイレイ13に送出された帯域制
限画像データD2は、当該システムデイレイ13が有す
るメモリ(図示せず)にフレーム毎に一旦書き込まれた
後、所定の待機時間後にフレーム毎に読み出され、画素
数変換部14に送出される。ここでシステムデイレイ1
3は、動き量検出部15における帯域制限画像データD
2の1フレーム当たりの動き量検出処理に要する時間と
同一の待機時間を経過した後、画素数変換制御信号D1
7が画素数変換部14に入力されるタイミングと同期し
て帯域制限画像データD2を画素数変換部14に入力す
るようになされている。The band-limited image data D2 sent to the system delay 13 is temporarily written into a memory (not shown) of the system delay 13 for each frame, and then read out for each frame after a predetermined standby time. , To the pixel number conversion unit 14. Here is system day 1
3 is the band-limited image data D in the motion amount detection unit 15.
2 after the elapse of the same standby time as the time required for the motion amount detection processing per frame of the pixel number conversion control signal D1.
7 is input to the pixel number conversion unit 14 in synchronization with the timing at which the number 7 is input to the pixel number conversion unit 14.
【0020】画素数変換部14は、画素数変換判定部1
7から供給される画素数制御信号D17に基づいて帯域
制限画像データD2の水平方向画素数を変換する。すな
わち画素数変換部14は、画像データD1が帯域制限さ
れてなる帯域制限画像データD2の水平方向画素数をM
とし、画素数変換後の水平方向画素数をNとすると、画
素数変換制御信号D17の値が「1」の場合は、帯域制
限画像データD2の水平方向画素数をN画素に削減し、
これを画素数変換画像データD3として符号化部20に
送出され、画素数変換制御信号D17の値が「0」の場
合は、帯域制限画像データD2をそのまま画素数変換画
像データD3として符号化部20に送出する。The pixel number conversion unit 14 is a pixel number conversion determination unit 1
7 converts the number of pixels in the horizontal direction of the band-limited image data D2 based on the pixel number control signal D17 supplied from. That is, the pixel number conversion unit 14 sets the number of pixels in the horizontal direction of the band-limited image data D2 obtained by band-limiting the image data D1 to M
Assuming that the number of horizontal pixels after pixel number conversion is N, if the value of the pixel number conversion control signal D17 is “1”, the number of horizontal pixels of the band-limited image data D2 is reduced to N pixels,
This is sent to the encoding unit 20 as the pixel number conversion image data D3, and if the value of the pixel number conversion control signal D17 is “0”, the band-limited image data D2 is directly used as the pixel number conversion image data D3. 20.
【0021】符号化部制御部16は、画素数変換判定部
17から画素数制御信号D17が入力されると符号化部
制御信号D16を符号化部20に供給する。符号化部2
0は、符号化部制御信号D16に基づいて動作すること
により、N画素の画素数変換画像データD3に対して符
号化処理を施す。The encoding unit control unit 16 supplies the encoding unit control signal D16 to the encoding unit 20 when the pixel number control signal D17 is input from the pixel number conversion determining unit 17. Encoding unit 2
0 performs an encoding process on the pixel number converted image data D3 of N pixels by operating based on the encoding unit control signal D16.
【0022】すなわち、画素数制御信号D17の値が
「1」の場合、図2(A)に示す水平画素数Mの帯域制
限画像データD2は、画素数変換部14において画素数
変換され、図2(B)に示す水平画素数Nの画素数変換
画像データD3として符号化部20に送出される。That is, when the value of the pixel number control signal D17 is "1", the band-limited image data D2 of the horizontal pixel number M shown in FIG. The data is transmitted to the encoding unit 20 as the pixel number converted image data D3 having the horizontal pixel number N shown in FIG.
【0023】ここで、画素数変換画像データD3は連続
して送出されるわけではなく、図2(B)に示すように
N画素が連続して送出された後、(M−N)画素に相当
する期間は送出が停止される。符号化部20は、符号化
部制御信号D16に応じてN画素に相当する期間は符号
化処理を行い、(M−N)画素に相当する期間は符号化
処理を停止することにより、動作クロツクを一定に保ち
ながら、N画素の画素数変換画像データD3に対して符
号化処理を施す。Here, the pixel number-converted image data D3 is not transmitted continuously, but after N pixels are continuously transmitted as shown in FIG. Transmission is stopped for a corresponding period. The encoding unit 20 performs the encoding process in accordance with the encoding unit control signal D16 during a period corresponding to N pixels, and stops the encoding process in a period corresponding to (MN) pixels, thereby operating clock. While maintaining the constant, the encoding process is performed on the pixel number converted image data D3 of N pixels.
【0024】これに対し、画素数変換値D17の値が
「0」の場合、図2(A)に示す水平画素数Mの帯域制
限画像データD2は、画素数変換部14において画素数
変換されることなく、水平画素数Mのまま画素数変換画
像データD3として符号化部20に送出される。符号化
部20は、符号化部制御信号D16に基づいて連続して
符号化処理を行う。また符号化部20は、符号化部制御
信号D16に応じて動き補償処理における動きベクトル
探索範囲を設定する。On the other hand, when the value of the pixel number conversion value D17 is “0”, the pixel number conversion unit 14 converts the band-limited image data D2 of the horizontal pixel number M shown in FIG. The image data is sent to the encoding unit 20 as the pixel number converted image data D3 without changing the horizontal pixel number M. The encoding unit 20 continuously performs the encoding process based on the encoding unit control signal D16. Further, the encoding unit 20 sets a motion vector search range in the motion compensation processing according to the encoding unit control signal D16.
【0025】符号化部20において、画素数変換画像デ
ータD3は前処理部21に入力される。前処理部21
は、画素数変換画像データD3の各フレーム画像につい
て、設定されたシーケンスに応じて、Iピクチヤ、Pピ
クチヤまたはBピクチヤの3つの画像タイプのうちのど
の画像タイプとして処理するかを指定した後、当該フレ
ーム画像の画像タイプに応じて当該フレーム画像を符号
化する順番に並べ替え、さらに当該フレーム画像を16
画素×16ラインの輝度信号及び当該輝度信号に対応す
る色差信号によつて構成されるマクロブロツクに分割
し、これをマクロブロツクデータD4として演算器22
及び動きベクトル検出部31にそれぞれ供給する。因み
に前処理部21は、ラスタースキヤンからブロツクスキ
ヤンに変換し、これにより画像の符号化する順番を入れ
換えるようになされている。In the encoding section 20, the pixel number converted image data D3 is input to the preprocessing section 21. Pre-processing unit 21
Specifies, for each frame image of the pixel number converted image data D3, which of three image types of I, P, and B pictures is to be processed according to the set sequence, According to the image type of the frame image, the frame image is rearranged in the encoding order.
It is divided into macroblocks composed of a luminance signal of pixels × 16 lines and a color difference signal corresponding to the luminance signal, and this is divided as macroblock data D4 by the arithmetic unit 22.
And the motion vector detecting unit 31. Incidentally, the preprocessing unit 21 converts the raster scan into the block scan, thereby changing the encoding order of the images.
【0026】動きベクトル検出部31は、マクロブロツ
クデータD4の各マクロブロツクの動きベクトルを、当
該マクロブロツクデータD4及びフレームメモリ29に
記憶されている参照画像データD28を基に算出し、動
きベクトルデータD31として動き補償部30及びVL
C(Variable Length Coding、可変長符号化)部25に
それぞれ送出する。The motion vector detecting section 31 calculates the motion vector of each macro block of the macro block data D4 based on the macro block data D4 and the reference image data D28 stored in the frame memory 29, and calculates the motion vector data. The motion compensator 30 and VL as D31
Each of them is sent to a variable length coding (C) unit 25.
【0027】演算器22は、前処理部21から供給され
たマクロブロツクデータD4について、当該マクロブロ
ツクデータD4の各マクロブロツクの画像タイプに基づ
いて、イントラモード、順方向予測モード、逆方向予測
モードまたは双方向予測モードのいずれかの予測モード
の動き補償を行う。ここでイントラモードとは、符号化
対象となるフレーム画像をそのまま伝送データとする方
法であり、順方向予測モードとは、符号化対象となるフ
レーム画像と過去参照画像との予測残差を伝送データと
する方法である。また逆方向予測モードとは、符号化対
象となるフレーム画像と未来参照画像との予測残差を伝
送データとする方法であり、双方向予測モードとは、符
号化対象となるフレーム画像と、過去参照画像及び未来
参照画像の2つの予測画像の平均値との予測残差を伝送
データとする方法である。The arithmetic unit 22 determines whether the macroblock data D4 supplied from the preprocessing unit 21 is an intra mode, a forward prediction mode, or a backward prediction mode based on the image type of each macroblock of the macroblock data D4. Alternatively, motion compensation is performed in one of the bidirectional prediction modes. Here, the intra mode is a method in which a frame image to be encoded is directly used as transmission data, and the forward prediction mode is a method in which a prediction residual between the frame image to be encoded and a past reference image is transmitted data. It is a method. The backward prediction mode is a method in which a prediction residual between a frame image to be encoded and a future reference image is used as transmission data, and the bidirectional prediction mode is a method in which a frame image to be encoded is This is a method in which a prediction residual between an average value of two prediction images, a reference image and a future reference image, is used as transmission data.
【0028】まず、マクロブロツクデータD4がIピク
チヤである場合について説明する。この場合、マクロブ
ロツクデータD4はイントラモードで処理される。すな
わち、演算器22はマクロブロツクデータD4のマクロ
ブロツクを、そのまま演算データD5としてDCT(Di
screte Cosine Transform 、離散コサイン変換)部23
に送出する。First, the case where the macroblock data D4 is an I-picture will be described. In this case, the macro block data D4 is processed in the intra mode. That is, the arithmetic unit 22 converts the macroblock of the macroblock data D4 into the DCT (Di
screte Cosine Transform, discrete cosine transform) unit 23
To send to.
【0029】DCT部23は、演算データD5に対して
DCT変換処理を行つてDCT係数化し、DCT係数デ
ータD6として量子化部24に送出する。量子化部24
はDCT係数データD6に対して量子化処理を行い、量
子化DCT係数データD7としてVLC部25及び逆量
子化部26にそれぞれ送出する。このとき量子化部24
は、量子化レート制御部18より供給される量子化制御
信号D20に応じて量子化処理における量子化レートを
調整し、量子化DCT係数データD7の符号発生量を制
御する。The DCT unit 23 performs a DCT conversion process on the operation data D5 to convert the operation data D5 into DCT coefficients, and sends the result to the quantization unit 24 as DCT coefficient data D6. Quantizer 24
Performs a quantization process on the DCT coefficient data D6 and sends out the quantized DCT coefficient data D7 to the VLC unit 25 and the inverse quantization unit 26, respectively. At this time, the quantization unit 24
Adjusts the quantization rate in the quantization processing according to the quantization control signal D20 supplied from the quantization rate control unit 18, and controls the code generation amount of the quantized DCT coefficient data D7.
【0030】逆量子化部26に送出された量子化DCT
係数データD7は、逆量子化処理を受け、DCT係数デ
ータD26として逆DCT部27に送出される。そして
DCT係数データD26は、逆DCT部27において逆
DCT処理を受け、演算データD27として演算器28
に送出され、参照画像データD28としてフレームメモ
リ29に記憶される。The quantized DCT sent to the inverse quantization unit 26
The coefficient data D7 undergoes an inverse quantization process, and is sent to the inverse DCT unit 27 as DCT coefficient data D26. The DCT coefficient data D26 undergoes an inverse DCT process in an inverse DCT unit 27, and becomes an arithmetic unit 28 as arithmetic data D27.
And stored in the frame memory 29 as reference image data D28.
【0031】次に、マクロブロツクデータD4がPピク
チヤである場合について説明する。この場合、演算器2
2はマクロブロツクデータD4について、イントラモー
ドまたは順方向予測モードのいずれかの予測モードによ
る動き補償処理を行う。Next, a case where the macroblock data D4 is a P-picture will be described. In this case, arithmetic unit 2
Numeral 2 performs a motion compensation process on the macroblock data D4 in either the intra mode or the forward prediction mode.
【0032】予測モードがイントラモードの場合、上述
のIピクチヤの場合と同様に、演算器22はマクロブロ
ツクデータD2のマクロブロツクをそのまま演算データ
D5としてDCT部23に送出する。演算データD5
は、上述のIピクチヤの場合と同様にDCT部23にお
いてDCT変換処理を受け、さらに量子化部24におい
て量子化処理を受け、量子化DCT係数データD7とし
てVLC部25及び逆量子化部26に送出される。この
とき量子化部24は、量子化レート制御部18より供給
される量子化制御信号D20に応じて、量子化処理にお
ける量子化レートを調整し、量子化DCT係数データD
7の符号発生量を制御する。When the prediction mode is the intra mode, the computing unit 22 sends the macroblock of the macroblock data D2 as it is to the DCT unit 23 as the computation data D5, as in the case of the I-picture. Calculation data D5
Is subjected to a DCT transformation process in the DCT unit 23 and a quantization process in the quantization unit 24 in the same manner as in the case of the above-mentioned I-picture, and to the VLC unit 25 and the inverse quantization unit 26 as quantized DCT coefficient data D7. Sent out. At this time, the quantization unit 24 adjusts the quantization rate in the quantization process in accordance with the quantization control signal D20 supplied from the quantization rate control unit 18, and generates the quantized DCT coefficient data D
7 is controlled.
【0033】逆量子化部26に送出された量子化DCT
係数データD7は、逆量子化処理を受け、DCT係数デ
ータD26として逆DCT部27に送出される。DCT
係数データD26は逆DCT部27において逆DCT処
理を受け、演算データD27として演算器28に送出さ
れ、参照画像データD28としてフレームメモリ29に
記憶される。The quantized DCT sent to the inverse quantization unit 26
The coefficient data D7 undergoes an inverse quantization process, and is sent to the inverse DCT unit 27 as DCT coefficient data D26. DCT
The coefficient data D26 undergoes inverse DCT processing in the inverse DCT unit 27, is sent to the arithmetic unit 28 as operation data D27, and is stored in the frame memory 29 as reference image data D28.
【0034】予測モードが順方向予測モードの場合、演
算器22はマクロブロツクデータD4について、動き補
償部31より供給される順方向予測画像データD30F
を用いて減算処理する。In the case where the prediction mode is the forward prediction mode, the arithmetic unit 22 calculates the forward prediction image data D30F supplied from the motion compensator 31 for the macroblock data D4.
Is subtracted using.
【0035】ここで順方向予測画像データD30Fは、
フレームメモリ29に記憶されている参照画像データD
28を、動きベクトルデータD31に応じて動き補償す
ることにより算出される。すなわち動き補償部30は順
方向予測モードにおいて、フレームメモリ29の読出ア
ドレスを動きベクトルデータD31に応じてずらして参
照画像データD28を読み出し、これを順方向予測画像
データD30Fとして演算器22及び演算器28に供給
する。演算器22はマクロブロツクデータD4から順方
向予測画像データD30Fを減算して予測残差としての
差分データを得、演算データD5としてDCT部23に
送出する。Here, the forward prediction image data D30F is
Reference image data D stored in frame memory 29
28 is calculated by performing motion compensation according to the motion vector data D31. That is, in the forward prediction mode, the motion compensator 30 reads out the reference image data D28 by shifting the read address of the frame memory 29 in accordance with the motion vector data D31, and uses the reference image data D28 as the forward prediction image data D30F. 28. The arithmetic unit 22 subtracts the forward prediction image data D30F from the macroblock data D4 to obtain difference data as a prediction residual, and sends it to the DCT unit 23 as operation data D5.
【0036】演算データ信号D5はDCT部23におい
てDCT変換処理を受け、さらに量子化部24において
量子化処理を受け、量子化DCT係数データD7として
VLC部25及び逆量子化部26に送出される。このと
き量子化部24は、量子化レート制御部18より供給さ
れる量子化制御信号D20に応じて、量子化処理におけ
る量子化レートを調整し、量子化DCT係数データD7
の符号発生量を制御する。The operation data signal D5 undergoes DCT conversion processing in the DCT section 23, further undergoes quantization processing in the quantization section 24, and is sent to the VLC section 25 and the inverse quantization section 26 as quantized DCT coefficient data D7. . At this time, the quantization unit 24 adjusts the quantization rate in the quantization process according to the quantization control signal D20 supplied from the quantization rate control unit 18, and generates the quantized DCT coefficient data D7.
Is controlled.
【0037】逆量子化部26に送出された量子化DCT
係数データD7は逆量子化処理を受け、DCT係数デー
タD26として逆DCT部27に送出される。DCT係
数データD26は、逆DCT部27において逆DCT処
理を受け、演算データD27として演算器28に送出さ
れる。ここで、演算器28には動き補償部30より順方
向予測画像データD30Fが供給されており、演算器2
8は演算データD27に当該順方向予測画像データD3
0Fを加算することにより参照画像データD28(Pピ
クチヤ)を局部再生し、フレームメモリ29に記憶す
る。The quantized DCT sent to the inverse quantization unit 26
The coefficient data D7 undergoes an inverse quantization process, and is sent to the inverse DCT unit 27 as DCT coefficient data D26. The DCT coefficient data D26 undergoes inverse DCT processing in the inverse DCT unit 27, and is sent to the arithmetic unit 28 as operation data D27. Here, the forward predictive image data D30F is supplied from the motion compensation unit 30 to the arithmetic unit 28, and the arithmetic unit 2
8 indicates that the forward prediction image data D3
By adding 0F, the reference image data D28 (P picture) is locally reproduced and stored in the frame memory 29.
【0038】次に、前処理部21からBピクチヤのマク
ロブロツクデータD4が演算器22に供給された場合に
ついて説明する。この場合、演算機22はマクロブロツ
クデータD4について、イントラモード、順方向予測モ
ード、逆方向予測モードまたは双方向予測モードのいず
れかの動き補償処理を行う。Next, the case where the macroblock data D4 of B picture is supplied from the preprocessing unit 21 to the arithmetic unit 22 will be described. In this case, the arithmetic unit 22 performs any one of the motion compensation processing of the intra mode, the forward prediction mode, the backward prediction mode, and the bidirectional prediction mode on the macroblock data D4.
【0039】予測モードがイントラモードまたは順方向
予測モードの場合、マクロブロツクデータD2は上述の
Pピクチヤの場合と同様の処理を受けるが、Bピクチヤ
は参照画像として用いられないため、フレームメモリ2
9には記憶されない。When the prediction mode is the intra mode or the forward prediction mode, the macroblock data D2 is subjected to the same processing as in the case of the above-mentioned P picture, but the B picture is not used as a reference picture, so that the frame memory 2
9 is not stored.
【0040】予測モードが逆方向予測モードの場合、演
算器22はマクロブロツクデータD4について、動き補
償部30より供給される逆方向予測画像データD30B
を用いて減算処理する。When the prediction mode is the backward prediction mode, the arithmetic unit 22 performs the backward prediction image data D30B supplied from the motion compensator 30 on the macroblock data D4.
Is subtracted using.
【0041】ここで逆方向予測画像データD30Bは、
フレームメモリ29に記憶されている参照画像データD
28を、動きベクトルデータD31に応じて動き補償す
ることにより算出される。すなわち動き補償部31は逆
方向予測モードにおいて、フレームメモリ29の読出ア
ドレスを動きベクトルデータD31に応じてずらして参
照画像データD28を読み出し、これを逆方向予測画像
データD30Bとして演算器22及び演算器28に供給
する。演算器22は、マクロブロツクデータD4から逆
方向予測画像データD30Bを減算して予測残差として
の差分データを得、演算データD5としてDCT部23
に送出する。Here, the backward prediction image data D30B is
Reference image data D stored in frame memory 29
28 is calculated by performing motion compensation according to the motion vector data D31. That is, in the backward prediction mode, the motion compensating unit 31 reads the reference image data D28 by shifting the read address of the frame memory 29 according to the motion vector data D31, and uses the reference image data D28 as the backward prediction image data D30B. 28. The calculator 22 subtracts the backward prediction image data D30B from the macroblock data D4 to obtain difference data as a prediction residual, and obtains the DCT unit 23 as calculation data D5.
To send to.
【0042】演算データD5はDCT部23においてD
CT変換処理を受け、さらに量子化部24において量子
化処理を受け、量子化DCT係数データD7としてVL
C部25及び逆量子化部26に送出される。このとき量
子化部24は、量子化レート制御部18より供給される
量子化制御信号D20に応じて、量子化処理における量
子化レートを調整し、量子化DCT係数データD7の符
号発生量を制御する。The operation data D5 is stored in the DCT section 23 as D
After undergoing a CT conversion process, the quantization unit 24 further performs a quantization process, and performs VL as the quantized DCT coefficient data D7.
It is sent to the C section 25 and the inverse quantization section 26. At this time, the quantization unit 24 adjusts the quantization rate in the quantization process according to the quantization control signal D20 supplied from the quantization rate control unit 18 and controls the code generation amount of the quantized DCT coefficient data D7. I do.
【0043】逆量子化部26に送出された量子化DCT
係数データD7は、逆量子化処理を受け、DCT係数デ
ータD26として逆DCT部27に送出される。DCT
係数データD26は逆DCT部27において逆DCT処
理を受け、演算データD27として演算器28に送出さ
れる。ここで、演算器28には動き補償部30より逆方
向予測画像データD30Bが供給されており、演算器2
8は演算データD27に当該逆方向予測画像データD3
0Bを加算することにより参照画像データD28(Bピ
クチヤ)を局部再生するが、Bピクチヤは他の予測参照
画像として用いられないので、参照画像データD28は
フレームメモリ29には記憶されない。The quantized DCT sent to the inverse quantization unit 26
The coefficient data D7 undergoes an inverse quantization process, and is sent to the inverse DCT unit 27 as DCT coefficient data D26. DCT
The coefficient data D26 undergoes inverse DCT processing in the inverse DCT unit 27, and is sent to the arithmetic unit 28 as operation data D27. Here, the backward prediction image data D30B is supplied from the motion compensation unit 30 to the computing unit 28, and the computing unit 2
8 is the backward prediction image data D3
The reference image data D28 (B-picture) is locally reproduced by adding 0B. However, since the B-picture is not used as another predicted reference image, the reference image data D28 is not stored in the frame memory 29.
【0044】予測モードが双方向モードの場合、演算器
22はマクロブロツクデータD4から、動き補償部30
より供給される順方向予測画像データD30F及び逆方
向予測画像データD30Bの平均値を減算して予測残差
としての差分データを得、これを演算データD5として
DCT部23に送出する。When the prediction mode is the bidirectional mode, the arithmetic unit 22 calculates the motion compensation unit 30 from the macroblock data D4.
The difference data as a prediction residual is obtained by subtracting the average value of the forward prediction image data D30F and the backward prediction image data D30B supplied thereto, and the difference data is transmitted to the DCT unit 23 as operation data D5.
【0045】演算データ信号D5は、DCT部23にお
いてDCT変換処理を受け、さらに量子化部24におい
て量子化処理を受け、量子化DCT係数データD7とし
てVLC部25及び逆量子化部26に送出される。この
とき量子化部24は、量子化レート制御部18より供給
される量子化制御信号D20に応じて、量子化処理にお
ける量子化レートを調整し、量子化DCT係数データD
7の符号発生量を制御する。The operation data signal D5 undergoes DCT conversion processing in the DCT section 23, further undergoes quantization processing in the quantization section 24, and is sent to the VLC section 25 and the inverse quantization section 26 as quantized DCT coefficient data D7. You. At this time, the quantization unit 24 adjusts the quantization rate in the quantization process in accordance with the quantization control signal D20 supplied from the quantization rate control unit 18, and generates the quantized DCT coefficient data D
7 is controlled.
【0046】逆量子化部26に送出された量子化DCT
係数データD7は、逆量子化処理を受け、DCT係数デ
ータD26として逆DCT部27に送出される。DCT
係数データD26は、逆DCT部27において逆DCT
処理を受け、演算データS27として演算器28に送出
される。ここで、演算器28には動き補償部30より順
方向予測画像データD30F及び逆方向予測画像データ
D30Bが供給されており、演算器28は演算データD
27に当該順方向予測画像データD30F及び逆方向予
測画像データD30Bの平均値を加算することにより参
照画像データD28(Bピクチヤ)を生成するが、Bピ
クチヤは他の予測参照画像として用いられないので、参
照画像データD28はフレームメモリ29には記憶され
ない。The quantized DCT sent to the inverse quantization unit 26
The coefficient data D7 undergoes an inverse quantization process, and is sent to the inverse DCT unit 27 as DCT coefficient data D26. DCT
The coefficient data D26 is converted by the inverse DCT section 27
After receiving the processing, it is sent to the arithmetic unit 28 as arithmetic data S27. Here, the forward predictive image data D30F and the backward predictive image data D30B are supplied from the motion compensation unit 30 to the arithmetic unit 28, and the arithmetic unit 28
The reference image data D28 (B picture) is generated by adding the average value of the forward prediction image data D30F and the backward prediction image data D30B to 27, but the B picture is not used as another prediction reference image. , The reference image data D28 is not stored in the frame memory 29.
【0047】かくして、データ符号化装置10に入力さ
れた画素数変換画像データD3は、動き補償処理、DC
T処理及び量子化処理を受け、量子化DCT係数データ
D7としてVLC部25に供給される。Thus, the pixel number converted image data D3 input to the data encoding device 10 is subjected to motion compensation processing, DC
After undergoing the T processing and the quantization processing, it is supplied to the VLC unit 25 as quantized DCT coefficient data D7.
【0048】VLC部25は、量子化DCT係数データ
D7及び動きベクトルデータD31に対して可変長符号
化処理を行い、可変長符号化データD8としてバツフア
19に送出する。バツフア19において可変長符号化デ
ータD8は、一時蓄積された後に一定期間単位(GOP
ごと)の固定長符号化データD10として読み出され
る。The VLC unit 25 performs a variable length coding process on the quantized DCT coefficient data D7 and the motion vector data D31, and sends the result to the buffer 19 as variable length coded data D8. In the buffer 19, the variable-length coded data D8 is temporarily stored (GOP
) Is read out as fixed-length coded data D10).
【0049】この場合、画素数変換画像データD3は、
画素数変換部14によつて画像データD1の画素数がN
画素に削減されているため、当該画素数変換画像データ
D3の画像を16画素×16ラインに分割してなるマク
ロブロツクデータD4のマクロブロツク数も当然減少さ
れている。In this case, the pixel number converted image data D3 is
The number of pixels of the image data D1 is N by the pixel number conversion unit 14.
Since the number of pixels is reduced, the number of macroblocks of the macroblock data D4 obtained by dividing the image of the pixel number converted image data D3 into 16 pixels × 16 lines is naturally reduced.
【0050】ここで、動き補償処理における動きベクト
ルの発生符号量は、マクロブロツク数にほぼ比例するた
め、マクロブロツク数が減ると、これに伴い動きベクト
ルの発生符号量も減少する。Here, the generated code amount of the motion vector in the motion compensation processing is almost proportional to the number of macroblocks. Therefore, when the number of macroblocks is reduced, the generated code amount of the motion vector is also reduced.
【0051】従つて、固定長符号化データD10の発生
符号量が一定あるために、マクロブロツク数の減少に伴
う動きベクトルの符号量の減少分をDCT係数データD
6の符号量に加算することができ、この結果として量子
化レート制御部18は、より細かい量子化ステツプでD
CT係数データD6を量子化し得るので画質の劣化を防
止した高画質な固定長符号化データD10を生成するよ
うになされている。Therefore, since the generated code amount of the fixed-length coded data D10 is constant, the decrease in the code amount of the motion vector due to the decrease in the number of macroblocks is calculated by the DCT coefficient data D10.
6 as a result, the quantization rate control unit 18 obtains D in a finer quantization step.
Since the CT coefficient data D6 can be quantized, high-quality fixed-length coded data D10 in which deterioration in image quality is prevented is generated.
【0052】以上の構成において、データ符号化装置1
0は、動き量検出部15から供給される動き量データD
15が所定の閾値よりも大きい場合に、画像の動きベク
トルが大きいと判断して「1」の値でなる画素数変換制
御信号D17を画素数変換部14に供給する。画素数変
換部14は、画素数変換制御信号D17に基づいて帯域
制限画像データD2の水平方向画素数をN画素に削減す
ることにより画素数変換画像データD3を得、当該画素
数変換画像データD3を前処理部21により16画素×
16ラインのマクロブロツクデータD4に分割する。In the above configuration, the data encoding device 1
0 is the motion data D supplied from the motion detector 15
When 15 is larger than a predetermined threshold value, it is determined that the motion vector of the image is large, and a pixel number conversion control signal D17 having a value of “1” is supplied to the pixel number conversion unit. The number-of-pixels conversion unit 14 obtains the number-of-pixels converted image data D3 by reducing the number of pixels in the horizontal direction of the band-limited image data D2 to N pixels based on the number-of-pixels conversion control signal D17. Is converted to 16 pixels ×
It is divided into macroblock data D4 of 16 lines.
【0053】これによりフレーム画像の画素数が削減さ
れた分、マクロブロツクデータD4のマクロブロツク数
が減少し、この結果として動きベクトルの発生符号量が
減少する。すなわち画素数の削減量に応じてマクロブロ
ツク数が減少するため、個々のマクロブロツクサイズが
大きくなり、これにより動きベクトルを表すのに必要な
画素数が減少することになる。従つて画像の動きベクト
ルが大きければ大きい程、動きベクトルの発生符号量が
減少する割合も大きくなる。従つてデータ符号化装置1
0は、画像の動きベクトルが大きい場合に画素数を削減
することに伴つてマクロブロツク数が減少するので、動
きベクトルの発生符号量が減少する分の符号量をDCT
係数データD6の発生符号量に割り当てることができ
る。As a result, the number of macroblocks in the macroblock data D4 decreases as much as the number of pixels of the frame image is reduced, and as a result, the amount of generated motion vector codes decreases. That is, since the number of macroblocks decreases in accordance with the amount of reduction in the number of pixels, the size of each macroblock increases, thereby reducing the number of pixels required to represent a motion vector. Therefore, the larger the motion vector of an image is, the greater the rate at which the amount of generated codes of the motion vector is reduced. Therefore, the data encoding device 1
0 indicates that the number of macroblocks decreases with a reduction in the number of pixels when the motion vector of the image is large.
It can be assigned to the generated code amount of the coefficient data D6.
【0054】かくしてデータ符号化装置10は、動きベ
クトルの発生符号量が減少する分の符号量をDCT係数
データD6の発生符号量に割り当て得ることにより、量
子化部24の量子化ステツプサイズをその分小さくする
ことができ、かくして画像の動きが激しく発生符号量が
多くなる場合でもDCT係数データD6の係数値を増大
させてDCT空間における解像度の低下を防止すること
ができる。Thus, the data encoding device 10 can assign the amount of generated code of the DCT coefficient data D6 to the amount of reduced code of the generated code of the motion vector, so that the quantization step size of the quantization unit 24 can be assigned to that amount. Thus, even when the image moves rapidly and the generated code amount increases, the coefficient value of the DCT coefficient data D6 can be increased to prevent a decrease in resolution in the DCT space.
【0055】以上の構成によれば、データ符号化装置1
0は、フレーム画像の動きベクトルが大きい場合に画素
数を削減し、それに伴つて減少するマクロブロツク数に
応じて動きベクトルの発生符号量が減少し、その分の符
号量をDCT係数データD6の符号量に割り当てること
により、量子化ステツプサイズをその分小さくして量子
化することができ、その分だけ画質を改善した高画質な
符号化データを生成することができる。According to the above configuration, the data encoding device 1
0 indicates that the number of pixels is reduced when the motion vector of the frame image is large, and the generated code amount of the motion vector is reduced in accordance with the reduced number of macroblocks. By allocating to the code amount, the quantization step size can be reduced by that amount and quantization can be performed, and high-quality coded data with improved image quality can be generated.
【0056】なお上述の実施の形態においては、動き量
データD15と所定の閾値との比較結果に基づいて画素
数を削減するようにした場合に付いて述べたが、本発明
はこれに限らず、閾値を複数種類設定し、さらに当該複
数種類の閾値に対応した複数の削減水平画素数、例えば
1440画素、1280画素、1152画素及び960
画素を設定し、動き量データD15と所定の閾値との比
較結果に基づいていきずれかの画素数に水平画素数を削
減するようにしても良い。この場合、画素数制御信号D
17は、「1」あるいは「0」の1ビツトの信号ではな
く、複数種類jの閾値に対応したkビツト(j≦2k )
の信号が用いられ、所定の整数比率で画素数が削減され
る。In the above-described embodiment, the case where the number of pixels is reduced based on the result of comparison between the motion amount data D15 and a predetermined threshold has been described. However, the present invention is not limited to this. , A plurality of types of threshold values, and a plurality of reduced horizontal pixel numbers corresponding to the plurality of types of threshold values, for example, 1440 pixels, 1280 pixels, 1152 pixels, and 960
Pixels may be set, and the number of horizontal pixels may be reduced to a certain number of pixels based on a comparison result between the motion amount data D15 and a predetermined threshold. In this case, the pixel number control signal D
Reference numeral 17 denotes not a 1-bit signal of "1" or "0" but a k-bit (j≤2 k ) corresponding to a plurality of types of thresholds j
Is used, and the number of pixels is reduced at a predetermined integer ratio.
【0057】また上述の実施の形態においては、データ
符号化装置10にHDTV規格の画像データD1を入力
するようにした場合について述べたが、本発明はこれに
限らず、HDTV以外の規格の画像データを入力するよ
うにしても良い。Further, in the above-described embodiment, a case has been described where the HDTV standard image data D1 is input to the data encoding device 10. However, the present invention is not limited to this, and the present invention is not limited to this. Data may be input.
【0058】さらに上述の実施の形態においては、動き
の激しい画像の圧縮難易度に応じて水平方向画素数の削
減処理を行うようにした場合るついて述べたが、本発明
はこれに限らず、垂直方向すなわち走査線本数を削減す
るようにしたり、垂直方向及び水平方向すなわち走査線
本数及び水平方向画素数を同時に削減するようにしても
良い。Further, in the above-described embodiment, a case has been described where the number of pixels in the horizontal direction is reduced in accordance with the degree of compression difficulty of an image having a sharp movement. However, the present invention is not limited to this. The vertical direction, ie, the number of scanning lines, may be reduced, or the vertical direction and the horizontal direction, ie, the number of scanning lines, and the number of pixels in the horizontal direction may be simultaneously reduced.
【0059】さらに上述の実施の形態においては、本発
明をMPEG2方式のデータ符号化装置10に適用する
ようにした場合について述べたが、本発明はこれに限ら
ず、他の種々の符号化方式によるデータ符号化装置に本
発明を適用するようにしても良い。Furthermore, in the above-described embodiment, a case has been described in which the present invention is applied to the data encoding device 10 of the MPEG2 system. However, the present invention is not limited to this, and various other encoding systems are used. The present invention may be applied to a data encoding device according to
【0060】[0060]
【発明の効果】上述のように本発明によれば、入力デー
タを所定の符号化方法によつて符号化するデータ符号化
装置において、画像データの動き量を検出し、当該検出
結果が所定の閾レベルを越えていた場合に、画像データ
の画素数を削減する画素数変換手段と、当該画素数変換
手段によつて画素数の削減された画像データに応じて減
少される動きベクトルの符号量を、画像データを所定の
方式で変換した係数データの符号量に割り当てたことに
よつて得られる発生符号量になるように係数データを符
号化する符号化手段とを設けることにより、減少した動
きベクトルの符号量を係数データの符号量に割り当てて
当該係数データにおける発生符号量を増加させ、その分
だけ量子化ステツプサイズを小さく設定して符号化する
ことができ、かくして入力された画像データの動きベク
トルが大きい場合においても、画質の劣化が少ない高画
質な符号化データを生成することができる。As described above, according to the present invention, in a data encoding apparatus for encoding input data by a predetermined encoding method, a motion amount of image data is detected, and the detection result is determined by a predetermined value. A pixel number conversion unit for reducing the number of pixels of the image data when the threshold level is exceeded, and a code amount of a motion vector reduced according to the image data having the reduced number of pixels by the pixel number conversion unit And coding means for coding the coefficient data so that the generated code amount is obtained by allocating the image data to the code amount of the coefficient data obtained by converting the image data by a predetermined method. By assigning the code amount of the vector to the code amount of the coefficient data to increase the generated code amount in the coefficient data, it is possible to set the quantization step size to be smaller by that amount and perform coding. In case the motion vector of the image data input Te is larger, it is possible to produce a high quality coded data with less degradation in image quality.
【図1】本発明によるデータ符号化装置を示すブロツク
図である。FIG. 1 is a block diagram showing a data encoding device according to the present invention.
【図2】画素数変換の説明に供する略線図である。FIG. 2 is a schematic diagram used for explaining pixel number conversion.
【図3】動きベクトル量の増加を示す略線図である。FIG. 3 is a schematic diagram illustrating an increase in a motion vector amount.
【図4】従来のデータ符号化装置を示すブロツク図であ
る。FIG. 4 is a block diagram showing a conventional data encoding device.
10、50……データ符号化装置、12、51……プリ
フイルタ、13……システムデイレイ、14、52……
画素数変換部、15……動き量検出部、16、57……
符号化部制御部、17……画素数変換判定部、18、5
5……量子化レート制御部、19、54……バツフア、
20、53……符号化部。10, 50 ... data encoding device, 12, 51 ... pre-filter, 13 ... system delay, 14, 52 ...
Pixel number conversion unit, 15 ... Motion amount detection unit, 16, 57 ...
Encoding unit control unit 17, pixel number conversion determination unit 18, 5,
5: Quantization rate control section, 19, 54 ... Buffer,
20, 53... Encoding unit.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 舩戸 成人 東京都品川区北品川6丁目7番35号ソニー 株式会社内 (72)発明者 上原 健志 東京都品川区北品川6丁目7番35号ソニー 株式会社内 ────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor: Adult, Funato 6-7-35 Kita-Shinagawa, Shinagawa-ku, Tokyo Sony Corporation (72) Inventor: Takeshi Uehara 6-35, Kita-Shinagawa, Shinagawa-ku, Tokyo 7-35 Sony Inside the company
Claims (4)
によつて符号化するデータ符号化装置において、 上記画像データの動き量を検出し、当該検出結果が所定
の閾レベルを越えていた場合に、上記画像データの画素
数を削減する画素数変換手段と、 上記画素数変換手段によつて画素数の削減された画像デ
ータに応じて減少される動きベクトルの符号量を、上記
画像データを所定の方式で変換した係数データの符号量
に割り当てたことによつて得られる発生符号量になるよ
うに上記係数データを符号化する符号化手段とを具える
ことを特徴とするデータ符号化装置。1. A data encoding apparatus for encoding input image data by a predetermined encoding method, wherein a motion amount of the image data is detected, and the detection result exceeds a predetermined threshold level. In this case, the pixel number conversion means for reducing the number of pixels of the image data; and the code amount of the motion vector reduced according to the image data whose number of pixels has been reduced by the pixel number conversion means, Coding means for coding the coefficient data so that the generated code amount is obtained by allocating the coefficient data to the code amount of the coefficient data converted by a predetermined method. apparatus.
水平方向画素数を削減することを特徴とする請求項1に
記載のデータ符号化装置。2. The data encoding apparatus according to claim 1, wherein said pixel number conversion means reduces the number of pixels in the horizontal direction of said image data.
定の閾レベルを越えていなかつた場合には、上記画像デ
ータの画素数を削減しないことを特徴とする請求項1に
記載のデータ符号化装置。3. The data according to claim 1, wherein said pixel number conversion means does not reduce the number of pixels of said image data unless said detection result exceeds a predetermined threshold level. Encoding device.
画素数を所定の整数比率で削減することを特徴とする請
求項1に記載のデータ符号化装置。4. The data encoding apparatus according to claim 1, wherein said pixel number conversion means reduces the number of pixels of said image data at a predetermined integer ratio.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP393298A JPH11205802A (en) | 1998-01-12 | 1998-01-12 | Data encoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP393298A JPH11205802A (en) | 1998-01-12 | 1998-01-12 | Data encoding device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11205802A true JPH11205802A (en) | 1999-07-30 |
Family
ID=11570922
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP393298A Pending JPH11205802A (en) | 1998-01-12 | 1998-01-12 | Data encoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11205802A (en) |
-
1998
- 1998-01-12 JP JP393298A patent/JPH11205802A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1455536B1 (en) | Video coding apparatus and decoding apparatus | |
| US6603815B2 (en) | Video data processing apparatus, video data encoding apparatus, and methods thereof | |
| US6628713B1 (en) | Method and device for data encoding and method for data transmission | |
| US9077968B2 (en) | Image processing apparatus and method, and program | |
| US20020126752A1 (en) | Video transcoding apparatus | |
| US6956899B2 (en) | Precise bit control apparatus with look-ahead for MPEG encoding | |
| US20030039310A1 (en) | Noise reduction pre-processor for digital video using previously generated motion vectors and adaptive spatial filtering | |
| JPH11234668A (en) | Video coding device | |
| US20050190839A1 (en) | Image information conversion apparatus and image information conversion method | |
| US7787541B2 (en) | Dynamic pre-filter control with subjective noise detector for video compression | |
| JP3599942B2 (en) | Moving picture coding method and moving picture coding apparatus | |
| US6480544B1 (en) | Encoding apparatus and encoding method | |
| KR100364748B1 (en) | Apparatus for transcoding video | |
| JPH10271494A (en) | Video transcoder | |
| JP2795225B2 (en) | Video coding method | |
| US6845179B1 (en) | Motion predicted image signal compression | |
| JPH11205802A (en) | Data encoding device | |
| JPH09200769A (en) | Inter-motion compensation frame encoding system | |
| JPH11234667A (en) | Video coding device | |
| KR20010104058A (en) | Adaptive quantizer according to DCT mode in MPEG2 encoder | |
| JPH05227513A (en) | Video signal transmitter | |
| KR0157467B1 (en) | Moving image encoding method and device | |
| JPH0923427A (en) | Image compression method and apparatus | |
| JPH11317950A (en) | Data encoding device, data encoding method and data transmission method | |
| JP4359273B2 (en) | Coding mode selection method |