JP2001078199A - Video signal coder - Google Patents

Video signal coder

Info

Publication number
JP2001078199A
JP2001078199A JP25323199A JP25323199A JP2001078199A JP 2001078199 A JP2001078199 A JP 2001078199A JP 25323199 A JP25323199 A JP 25323199A JP 25323199 A JP25323199 A JP 25323199A JP 2001078199 A JP2001078199 A JP 2001078199A
Authority
JP
Japan
Prior art keywords
dct coefficient
dct
component
data
motion
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
JP25323199A
Other languages
Japanese (ja)
Inventor
Hideyuki Okose
秀之 大古瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP25323199A priority Critical patent/JP2001078199A/en
Publication of JP2001078199A publication Critical patent/JP2001078199A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a video signal coder that converts in-frame coded compressed data into inter-farm coded compressed data at high speed. SOLUTION: This coder is provided with a VLD section 2 that applies variable length decoding to received compression data 1 to generate a quantization DCT coefficient, an inverse quantization section 3 that applies inverse quantization to the quantization DCT coefficient to generate a DCT coefficient, a resize IDCT section 4 that change the size of the DCT coefficient and an image format to generate block data, a DC component extract section 5 that extracts only DC components among the DCT coefficients, a DC comport 6 that stores a DC component by one frame as a reference DC component, a moving direction detection section 11 that compares a DC comport of an adjacent frame with the reference DC component to detect a moving direction of the block data, and an encode section 12 that encodes the block data by one frame on the basis of a motion vector detected from the moving direction and generates output compression data 7.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、フレーム内符号化
方式で圧縮された画像データを、フレーム内符号化とフ
レーム間予測符号化とを併用した圧縮フォーマットの画
像データに変換する映像信号符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to video signal encoding for converting image data compressed by an intra-frame encoding method into image data of a compression format using both intra-frame encoding and inter-frame predictive encoding. Related to the device.

【0002】[0002]

【従来の技術】従来の映像信号符号化装置としては、特
開平10−164593号公報に記載されたものが知ら
れている。以下、前記従来の映像信号符号化装置につい
て、図10のブロック図を参照しつつ説明する。以下の
説明においては、出力の圧縮データがMPEGの画像デ
ータ(以下、MPEGデータと記す)の場合を例に挙げ
る。
2. Description of the Related Art As a conventional video signal encoding apparatus, an apparatus described in Japanese Patent Application Laid-Open No. 10-164593 is known. Hereinafter, the conventional video signal encoding apparatus will be described with reference to a block diagram of FIG. In the following description, a case where the output compressed data is MPEG image data (hereinafter, referred to as MPEG data) will be described as an example.

【0003】図10において、入力圧縮データ101
は、画像並べ替え部102において、MPEGの画像圧
縮アルゴリズムに従って圧縮可能な順番に並べ替えられ
る。メモリ103は並べ替えられた入力圧縮データ10
1を圧縮されたまま保持する。フレーム内圧縮データ復
号系104は、入力圧縮データ101を画像並べ替え部
102で並べ替えられた順番で復号する。フレーム間圧
縮データ符号化系105は、復号された画像データを復
号された順番に圧縮し、出力圧縮データ106を生成す
る。
In FIG. 10, input compressed data 101
Are rearranged in the image rearranging unit 102 in a compressible order according to an MPEG image compression algorithm. The memory 103 stores the rearranged input compressed data 10
1 is kept compressed. The intra-frame compressed data decoding system 104 decodes the input compressed data 101 in the order rearranged by the image rearrangement unit 102. The inter-frame compressed data encoding system 105 compresses the decoded image data in the order of decoding, and generates output compressed data 106.

【0004】例えば、入力圧縮データ101がI0、I
1、I2、I3、I4、I5、I6、I7、I8…の順
で入力されたとき、画像並べ替え部102はI0、I
3、I1、I2、I6、I4、I5、I9、I7、I8
…といった順番でMPEG符号化に必要な順番に並べ替
える。並べ替えられた入力圧縮データ101はメモリ1
03に保持される。このメモリ103に保持された入力
圧縮データ101は、並べ替えられた順番でフレーム内
圧縮データ復号系104によって復号されて画像データ
となる。この画像データを、フレーム間圧縮データ符号
化系105でI0、P3、B1、B2、P6、B4、B
5、P9、B7、B8…といった順番で圧縮し、MPE
Gデータを生成して出力圧縮データ106として出力す
る。ここで、Iはフレーム内符号化画像データ(以下、
Iピクチャと記す)、Pはフレーム間前方予測符号化画
像データ(以下、Pピクチャと記す)、Bは双方向予測
符号化画像データ(以下、Bピクチャと記す)をそれぞ
れ示す。
For example, if the input compressed data 101 is I0, I0
When the images are input in the order of 1, I2, I3, I4, I5, I6, I7, I8,...
3, I1, I2, I6, I4, I5, I9, I7, I8
.. Are rearranged in an order necessary for MPEG encoding. The rearranged input compressed data 101 is stored in the memory 1
03. The input compressed data 101 held in the memory 103 is decoded by the intra-frame compressed data decoding system 104 in the rearranged order to become image data. This image data is subjected to I0, P3, B1, B2, P6, B4, B
5, P9, B7, B8 ...
G data is generated and output as output compressed data 106. Here, I is intra-frame coded image data (hereinafter, referred to as
P indicates inter-frame forward prediction coded image data (hereinafter referred to as P picture), and B indicates bidirectional prediction coded image data (hereinafter referred to as B picture).

【0005】[0005]

【発明が解決しようとする課題】従来の映像信号符号化
装置では、フレーム内符号化された圧縮データを復号す
るフレーム内圧縮データ復号系とフレーム間符号化を行
うフレーム間圧縮データ符号化系とが完全に分離されて
いる。従って、復号処理及び符号化処理のそれぞれの処
理時間がそのまま圧縮データの変換時間となり、高速に
処理することが困難である。また、入力圧縮データと出
力圧縮データにおける画像サイズとフォーマットが互い
に違う場合、復号された映像データにフィルタ処理を行
い、画像サイズと画像フォーマットを変換する必要があ
るため、さらに処理時間が増大するという問題がある。
また、DV(デジタルビデオ)フォーマットのように、
フィールドデータをインタリーブして圧縮した圧縮デー
タを復号する際には、映像の動きの大きい部分で物体の
境界に不整合を起こし境界が不自然になるという問題が
ある。
In a conventional video signal encoding apparatus, an intra-frame compressed data decoding system for decoding intra-frame encoded compressed data and an inter-frame compressed data encoding system for inter-frame encoding are provided. Are completely separated. Therefore, the processing time of each of the decoding processing and the encoding processing becomes the conversion time of the compressed data as it is, and it is difficult to perform high-speed processing. Further, when the image size and format of the input compressed data and the output compressed data are different from each other, it is necessary to perform a filtering process on the decoded video data and convert the image size and the image format, which further increases the processing time. There's a problem.
Also, like DV (Digital Video) format,
When decoding the compressed data obtained by interleaving and compressing the field data, there is a problem that the boundary of the object is mismatched in a portion where the motion of the video is large, and the boundary becomes unnatural.

【0006】本発明は、フレーム内符号化された圧縮デ
ータをフレーム間符号化された圧縮データに高速に変換
する映像信号符号化装置を提供することを目的とする。
また、本発明は、フレーム内符号化された圧縮データを
復号する際に一方のフィールドのデータのみを復号して
フレーム間符号化を行う映像信号符号化装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a video signal coding apparatus for converting intra-frame compressed data to inter-frame compressed data at a high speed.
It is another object of the present invention to provide a video signal encoding device that decodes only data in one field and performs inter-frame encoding when decoding intra-frame compressed data.

【0007】[0007]

【課題を解決するための手段】本発明の映像信号符号化
装置は、入力の圧縮データを可変長復号し、量子化DC
T係数を生成するVLD手段、前記量子化DCT係数を
逆量子化し、DCT係数を生成する逆量子化手段、前記
DCT係数のサイズと画像フォーマットを変換してブロ
ックデータを生成するリサイズIDCT手段、前記DC
T係数のうち、DC成分のみを抽出するDC成分抽出手
段、1フレーム分の前記DC成分を参照DC成分として
保持するDC成分メモリ、隣接するフレームのDC成分
と前記参照DC成分を比較し、前記ブロックデータの動
き方向を検出する動き方向検出手段、前記動き方向から
動きベクトルを検出し、前記動きベクトルに基づいて1
フレーム分の前記ブロックデータをエンコードし、圧縮
データを出力するエンコード手段とを備える構成とし
た。
SUMMARY OF THE INVENTION A video signal encoding apparatus according to the present invention decodes input compressed data by variable length decoding and performs
VLD means for generating T coefficients, inverse quantization means for inversely quantizing the quantized DCT coefficients to generate DCT coefficients, resize IDCT means for converting the size and image format of the DCT coefficients to generate block data, DC
DC component extracting means for extracting only the DC component of the T coefficient, a DC component memory for holding the DC component for one frame as a reference DC component, comparing the DC component of an adjacent frame with the reference DC component, A motion direction detecting means for detecting a motion direction of the block data; detecting a motion vector from the motion direction;
Encoding means for encoding the block data for a frame and outputting compressed data.

【0008】このように構成することにより、入力の圧
縮データを復号した画像のサイズとフォーマットとがリ
サイズIDCT手段によりエンコード手段で必要とする
形式に変換されているため、画像サイズと画像フォーマ
ットとの変更を行うフィルタ処理は不要となり、演算量
を削減することが可能となる。また、動き方向検出手段
により、各ブロック或いは各マクロブロックの動き方向
を検出するため、正確な動きベクトルを求めるときは、
先に検出された動き方向の周辺を探索すればよい。従っ
て、全方向の探索をする場合に比べて探索範囲が狭くな
るため、演算量を削減することが可能となる。その結
果、フレーム内圧縮された入力圧縮データをフレーム間
圧縮された出力圧縮データに高速に変換する映像信号符
号化装置が得られる。
With this configuration, the size and format of the image obtained by decoding the input compressed data are converted by the resize IDCT means into the format required by the encoding means. The filter processing for making the change is unnecessary, and the amount of calculation can be reduced. Also, in order to detect the motion direction of each block or each macroblock by the motion direction detection means, when obtaining an accurate motion vector,
What is necessary is just to search around the previously detected motion direction. Therefore, the search range is narrower than when searching in all directions, so that the amount of calculation can be reduced. As a result, it is possible to obtain a video signal encoding device that converts input compressed data compressed within a frame into output compressed data compressed between frames at a high speed.

【0009】本発明の別の観点による映像信号符号化装
置は、入力の圧縮データを可変長復号し、量子化DCT
係数を生成するVLD手段、前記量子化DCT係数を逆
量子化し、第1のDCT係数を生成する逆量子化手段、
前記第1のDCT係数を参照DCT係数として保持する
DCT係数メモリ、隣接するフレームの第1のDCT係
数と前記参照DCT係数の差分をとった第1の差分DC
T係数から動き方向の検出を行うかどうかを判別し、動
き方向の検出もしくはフレーム内圧縮を行うときは前記
第1のDCT係数を出力し、動き方向の検出を行わない
ときは前記第1の差分DCT係数を出力する動き判別手
段、前記第1の差分DCT係数もしくはフレーム内圧縮
を行う前記第1のDCT係数のサイズ及び画像フォーマ
ットを変換して第2の差分DCT係数もしくは第2のD
CT係数を生成するDCT係数変換手段、動き検出を行
う前記第1のDCT係数に関して、サイズ及び画像フォ
ーマットを変えてブロックデータを生成するリサイズI
DCT手段、前記第1のDCT係数のうち、DC成分の
みを抽出するDC成分抽出手段、1フレーム分の前記D
C成分を参照DC成分として保持するDC成分メモリ、
隣接するフレームのDC成分と前記参照DC成分とを比
較し、前記ブロックデータの動き方向を検出する動き方
向検出手段、前記動き方向から動きベクトルを検出し、
前記動きベクトルに基づいて前記ブロックデータ、前記
第2の差分DCT係数、または前記第2のDCT係数を
DCT係数としてエンコードを行い、出力圧縮データを
出力するエンコード手段とを備える構成とした。
A video signal encoding apparatus according to another aspect of the present invention performs variable length decoding of input compressed data and performs quantization DCT.
VLD means for generating coefficients, inverse quantization means for inversely quantizing the quantized DCT coefficients to generate first DCT coefficients,
A DCT coefficient memory for holding the first DCT coefficient as a reference DCT coefficient, and a first difference DC obtained by calculating a difference between a first DCT coefficient of an adjacent frame and the reference DCT coefficient
It is determined whether or not to detect the motion direction from the T coefficient. The first DCT coefficient is output when the motion direction is detected or the intra-frame compression is performed. A motion determining unit that outputs a differential DCT coefficient; a second differential DCT coefficient or a second D that converts the size and image format of the first differential DCT coefficient or the first DCT coefficient that performs intra-frame compression;
DCT coefficient converting means for generating CT coefficients, and resizing I for generating block data by changing the size and image format for the first DCT coefficients for performing motion detection
DCT means, DC component extracting means for extracting only a DC component among the first DCT coefficients, and the D component for one frame.
A DC component memory for holding the C component as a reference DC component,
Comparing a DC component of an adjacent frame with the reference DC component, detecting a motion direction of the block data, detecting a motion vector from the motion direction,
Encoding means for encoding the block data, the second differential DCT coefficient, or the second DCT coefficient as a DCT coefficient based on the motion vector, and outputting output compressed data.

【0010】このように構成することにより、入力圧縮
データを復号した画像のサイズ及び画像のフォーマット
がリサイズIDCT手段によりエンコード手段で必要と
する形式に変換されているため、画像サイズと画像フォ
ーマットの変換を行うフィルタ処理が不要となり、演算
量を削減することが可能となる。また、動き判別手段に
より動き方向の検出をしないと判別されたブロックに関
しては、DCT係数を画像データに戻すことなく画像サ
イズと画像フォーマットを変換してDCT係数を生成す
るため、演算量を削減することが可能となる。また、動
き方向検出手段により、各ブロック或いは各マクロブロ
ックの動き方向を検出するため、正確な動きベクトルを
求めるときに先に検出された動き方向の周辺を探索すれ
ばよく、全方向の探索をする場合に比べて探索範囲が狭
くなるため、演算量を削減することが可能となる。その
結果、フレーム内圧縮された入力圧縮データをフレーム
間圧縮された出力圧縮データに高速に変換する映像信号
符号化装置が得られる。
With this configuration, since the size and format of the image obtained by decoding the input compressed data are converted by the resize IDCT means into the format required by the encoding means, the conversion between the image size and the image format is performed. Becomes unnecessary, and the amount of calculation can be reduced. Further, for a block for which the motion direction has not been detected by the motion determining means, the DCT coefficient is converted into an image size and an image format without converting the DCT coefficient back to the image data to generate the DCT coefficient. It becomes possible. Further, in order to detect the motion direction of each block or each macroblock by the motion direction detection means, it is only necessary to search around the previously detected motion direction when obtaining an accurate motion vector. Since the search range is narrower than in the case where the search is performed, the amount of calculation can be reduced. As a result, it is possible to obtain a video signal encoding device that converts input compressed data compressed within a frame into output compressed data compressed between frames at a high speed.

【0011】本発明のさらに別の観点による映像信号符
号化装置は、入力の圧縮データを可変長復号し、量子化
DCT係数を生成するVLD手段、前記量子化DCT係
数を逆量子化し、第1のDCT係数を生成する逆量子化
手段、前記第1のDCT係数を参照DCT係数として保
持するDCT係数メモリ、前記第1のDCT係数のモー
ドにより動き方向の検出を行うかどうかを判別し、動き
方向の検出もしくはフレーム内圧縮を行うときは前記第
1のDCT係数を、動き方向の検出を行わないときは隣
接するフレームの第1のDCT係数と前記参照DCT係
数の差分をとった第1の差分DCT係数を出力するDC
Tモード判別手段、前記第1の差分DCT係数もしくは
フレーム内圧縮を行う前記第1のDCT係数のサイズと
画像フォーマットを変換して第2の差分DCT係数もし
くは第2のDCT係数を生成するDCT係数変換手段、
前記DCTモード判別手段で動き方向の検出を行うと判
別された前記第1のDCT係数のサイズと画像フォーマ
ットを変換してブロックデータを生成するリサイズID
CT手段、前記第1のDCT係数のうち、DC成分のみ
を抽出するDC成分抽出手段、1フレーム分の前記DC
成分を参照DC成分として保持するDC成分メモリ、隣
接するフレームのDC成分と前記参照DC成分とを比較
し、前記ブロックデータの動き方向を検出する動き方向
検出手段、及び前記動き方向から動きベクトルを検出
し、前記動きベクトルに基づいて前記ブロックデータ、
前記第2の差分DCT係数、または前記第2のDCT係
数をDCT係数としてエンコードを行い、出力圧縮デー
タを出力するエンコード手段を備える構成とした。
[0011] A video signal encoding apparatus according to still another aspect of the present invention comprises a VLD means for variable-length decoding input compressed data to generate a quantized DCT coefficient, and dequantizes the quantized DCT coefficient to obtain a first signal. An inverse quantization means for generating a DCT coefficient, a DCT coefficient memory for holding the first DCT coefficient as a reference DCT coefficient, and determining whether or not to detect a motion direction according to a mode of the first DCT coefficient. When the direction detection or intra-frame compression is performed, the first DCT coefficient is used. When the motion direction detection is not performed, the first DCT coefficient obtained by taking the difference between the first DCT coefficient of an adjacent frame and the reference DCT coefficient is used. DC that outputs differential DCT coefficients
T mode discriminating means, a DCT coefficient for generating a second differential DCT coefficient or a second DCT coefficient by converting the image format and the size of the first differential DCT coefficient or the first DCT coefficient for performing intra-frame compression Conversion means,
A resize ID for converting the size and image format of the first DCT coefficient determined to detect the direction of motion by the DCT mode determining means to generate block data
CT means, DC component extracting means for extracting only a DC component among the first DCT coefficients, the DC component for one frame
A DC component memory that holds the component as a reference DC component, a motion direction detector that compares a DC component of an adjacent frame with the reference DC component, and detects a motion direction of the block data, and a motion vector from the motion direction. Detecting the block data based on the motion vector;
The encoding apparatus includes an encoding unit that encodes the second differential DCT coefficient or the second DCT coefficient as a DCT coefficient and outputs output compressed data.

【0012】このように構成することにより、入力の圧
縮データを復号した画像サイズと画像フォーマットとが
リサイズIDCT手段によりエンコード手段で必要とす
る形式に変換されているため、画像サイズと画像フォー
マットとの変更を行うフィルタ処理が不要となり、演算
量を削減することが可能となる。また、DCTモード判
別手段により動き方向の検出をしないと判別されたブロ
ックに関しては、DCT係数を画像データに戻すことな
く画像サイズ及び画像フォーマットを変換してDCT係
数を生成するため、演算量を削減することが可能とな
る。また、動き方向検出手段により、各ブロック或いは
各マクロブロックの動き方向を検出するため、正確な動
きベクトルを求めるときに先に検出された動き方向の周
辺を探索すればよく、全方向の探索をする場合に比べて
探索範囲が狭くなるため、演算量を削減することが可能
となる。その結果、フレーム内圧縮された入力圧縮デー
タをフレーム間圧縮された出力圧縮データに高速に変換
する映像信号符号化装置が得られる。
With this configuration, since the image size and the image format obtained by decoding the input compressed data are converted into the format required by the encoding unit by the resize IDCT unit, the image size and the image format are converted to the required format. Filter processing for making the change is unnecessary, and the amount of calculation can be reduced. Also, for the blocks for which the motion direction is not detected by the DCT mode determining means, the image size and image format are converted without generating the DCT coefficients into image data to generate DCT coefficients, thereby reducing the amount of calculation. It is possible to do. Further, in order to detect the motion direction of each block or each macroblock by the motion direction detection means, it is only necessary to search around the previously detected motion direction when obtaining an accurate motion vector. Since the search range is narrower than in the case where the search is performed, the amount of calculation can be reduced. As a result, it is possible to obtain a video signal encoding device that converts input compressed data compressed within a frame into output compressed data compressed between frames at a high speed.

【0013】[0013]

【発明の実施の形態】以下、本発明の映像信号符号化装
置の好適な実施例について、図1から図9を参照しつつ
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of a video signal encoding apparatus according to the present invention will be described below with reference to FIGS.

【0014】《実施例1》図1は、本発明の実施例1の
映像信号符号化装置の構成を示すブロック図である。以
下の説明では、入力圧縮データ1のDV(デジタルビデ
オ)フォーマットで圧縮された圧縮データをMPEGフ
ォーマットに圧縮して出力圧縮データとして出力する構
成について説明する。
Embodiment 1 FIG. 1 is a block diagram showing a configuration of a video signal encoding device according to Embodiment 1 of the present invention. In the following description, a configuration will be described in which compressed data of the input compressed data 1 compressed in the DV (digital video) format is compressed into the MPEG format and output as output compressed data.

【0015】図1において、本実施例の映像信号符号化
装置では、入力圧縮データ1を可変長復号するVLD部
2の出力端は逆量子化部3の入力端に接続されている。
逆量子化部3の出力端は、リサイズIDCT(インバー
ス・ディスクリート・コサイン・トランスフォーム)部
4及びDC成分抽出部5の入力端にそれぞれ接続されて
いる。リサイズIDCT部4の出力端はエンコード部1
2の入力端に接続されている。DC成分抽出部5の出力
端は、DC成分メモリ6の入力端及び動き方向検出部1
1の第1の入力端にそれぞれ接続されている。DC成分
メモリ6の出力端は、動き方向検出部11の第2の入力
端に接続されている。動き方向検出部11の第3の入力
端にはエンコード部12の出力端が接続され、動き方向
検出部11の出力端はエンコード部12の他の入力端に
接続されている。エンコード部12の出力端から出力圧
縮データ7が出力される。
In FIG. 1, in the video signal encoding apparatus of the present embodiment, an output terminal of a VLD unit 2 for performing variable length decoding of input compressed data 1 is connected to an input terminal of an inverse quantization unit 3.
An output terminal of the inverse quantization unit 3 is connected to an input terminal of a resize IDCT (inverse discrete cosine transform) unit 4 and an input terminal of a DC component extraction unit 5, respectively. The output end of the resize IDCT unit 4 is the encoding unit 1
2 input terminals. The output terminal of the DC component extraction unit 5 is connected to the input terminal of the DC component memory 6 and the movement direction detection unit 1.
1 are connected to the first input terminals. An output terminal of the DC component memory 6 is connected to a second input terminal of the movement direction detector 11. The output terminal of the encoding unit 12 is connected to a third input terminal of the movement direction detection unit 11, and the output terminal of the movement direction detection unit 11 is connected to another input terminal of the encoding unit 12. Output compressed data 7 is output from the output end of the encoding unit 12.

【0016】以下に、実施例1の映像信号符号化装置の
動作について図1から図6を参照しつつ説明する。図1
において、VLD部2は入力圧縮データ1を可変長復号
し、量子化DCT係数を生成する。逆量子化部3は、V
LD部2で復号された量子化DCT係数を逆量子化し、
DCT係数を生成する。リサイズIDCT部4は、逆量
子化部3で生成されたDCT係数に対し、IDCT演算
とデシャフリングを行い画素データを生成する。
The operation of the video signal encoding apparatus according to the first embodiment will be described below with reference to FIGS. FIG.
, The VLD unit 2 performs variable length decoding on the input compressed data 1 and generates a quantized DCT coefficient. The inverse quantization unit 3 calculates V
Inverse quantization of the quantized DCT coefficient decoded by the LD unit 2,
Generate DCT coefficients. The resize IDCT unit 4 performs IDCT operation and deshuffling on the DCT coefficient generated by the inverse quantization unit 3 to generate pixel data.

【0017】図2は、画像フォーマットにおける画素デ
ータの輝度信号Yと色差信号Cr及びCbとの水平及び
垂直方向の配置を示す図であり、(a)は4:1:1フ
ォーマットのものを示し、(b)は4:2:2フォーマ
ットのものを示し、(c)は4:2:0フォーマットの
ものを示している。図2において、輝度信号Yは○印
で、色差信号Cr及びCbは□印で表している。入力圧
縮データ1であるDVフォーマットの画像データは、画
像フォーマットが図2の(a)に示すように、4:1:
1であり、画像サイズは、輝度信号Yが720×48
0、色差信号Cr及び色差信号Cbが180×480で
ある。
FIG. 2 is a diagram showing the horizontal and vertical arrangement of the luminance signal Y and the color difference signals Cr and Cb of the pixel data in the image format. FIG. 2A shows a 4: 1: 1 format. , (B) shows a 4: 2: 2 format, and (c) shows a 4: 2: 0 format. In FIG. 2, the luminance signal Y is represented by a circle, and the color difference signals Cr and Cb are represented by a square. The image data in the DV format, which is the input compressed data 1, has the image format of 4: 1, as shown in FIG.
1, and the image size is such that the luminance signal Y is 720 × 48
0, the color difference signal Cr and the color difference signal Cb are 180 × 480.

【0018】図3は、DCTブロックにおけるDCT係
数の配列を示す図であり、(a)はフィールド間のDC
T係数の差が小さい場合の8−8DCTモードを示し、
(b)はフィールド間のDCT係数の差が大きい場合の
2−4−8DCTモードを示す。図において各枡目は行
列式のDCT係数の位置を表している。
FIG. 3 is a diagram showing an arrangement of DCT coefficients in a DCT block. FIG.
8D shows the 8-8 DCT mode when the difference between the T coefficients is small;
(B) shows the 2-4-8 DCT mode when the DCT coefficient difference between the fields is large. In the figure, each square represents the position of the DCT coefficient of the determinant.

【0019】前記の2つのモードについて、8−8DC
Tモードのときは、図3の(a)に示すように、DCT
ブロック20の8ラインのうち、上から1,3,5,7
ライン(奇数ライン)が第1フィールドの画像データで
構成され、0、2、4、6ライン(偶数ライン)が第2
フィールドの画像データで構成されている。このデータ
を2次元の8×8DCT演算をしたものがDCT係数と
なっている。2−4−8DCTモードのときは、フィー
ルド間のデータの和と差に対してそれぞれ2次元の4×
8DCT演算をしたものがDCT係数となる。図3の
(b)に示すように、2つのDCT係数21A、21B
の成分同士を加算して和を求めるとフィールド1のDC
T係数となり、成分同士の差を求めるとフィールド2の
DCT係数となる。
For the above two modes, 8-8 DC
In the T mode, as shown in FIG.
Of the eight lines in block 20, 1, 3, 5, 7 from the top
Lines (odd lines) are composed of image data of the first field, and lines 0, 2, 4, and 6 (even lines) are second lines.
It consists of field image data. A DCT coefficient is obtained by subjecting this data to a two-dimensional 8 × 8 DCT operation. In the 2-4-8 DCT mode, the two-dimensional 4 ×
The result of the 8DCT operation is the DCT coefficient. As shown in FIG. 3B, two DCT coefficients 21A and 21B
Are obtained by adding the components of
When the difference between the components is obtained, the DCT coefficient of field 2 is obtained.

【0020】この画像データをMPEG1フォーマット
のデータに変換するときは、画像フォーマットを図2の
(c)に示す、4:2:0フォーマットに変換し、画像
サイズとしては、輝度信号Yのデータを360×240
画素、色差信号Cr及びCbのデータを180×120
画素に変換する必要がある。また、MPEG2フォーマ
ットのデータに変換する場合は、画像フォーマットを図
2の(b)に示す、4:2:2フォーマットに変換し、
画像サイズは、輝度信号Yのデータを720×480画
素、色差信号Cr及びCbのデータを360×480画
素に変換する必要がある。
When this image data is converted into MPEG1 format data, the image format is converted into a 4: 2: 0 format shown in FIG. 2C, and the luminance signal Y data is converted into an image size. 360 × 240
The data of the pixel and the color difference signals Cr and Cb is 180 × 120
It needs to be converted to pixels. When converting the data into MPEG2 format data, the image format is converted into the 4: 2: 2 format shown in FIG.
Regarding the image size, it is necessary to convert the data of the luminance signal Y to 720 × 480 pixels and the data of the color difference signals Cr and Cb to 360 × 480 pixels.

【0021】画像フォーマットを4:2:0フォーマッ
トに、画像サイズを輝度信号Yが360×240画素、
色差信号Cr及びCbが180×120画素となるよう
に変換する場合について図4を参照して説明する。図4
は、各モードにおける輝度信号及び色差信号のデータを
生成するDCT係数のIDCT演算の方法を説明する図
である。図4の(a)は輝度信号のデータの8−8DC
Tモードの係数の演算方法を示し、(b)は輝度信号の
データの2−4−8DCTモードの係数の演算方法を示
している。図4の(c)は色差信号のデータの8−8D
CTモードの係数の演算方法を示し、(d)は色差信号
のデータの2−4−8DCTモードの係数の演算方法を
示している。図4で、画像サイズは、輝度信号Yに関し
ては、縦横ともに半分のサイズになっており、色差信号
Cr及びCbに関しては、縦が1/4で、横はそのまま
のサイズになっている。
The image format is set to 4: 2: 0 format, the image size is set to a luminance signal Y of 360 × 240 pixels,
A case where the color difference signals Cr and Cb are converted so as to be 180 × 120 pixels will be described with reference to FIG. FIG.
FIG. 3 is a diagram illustrating a method of IDCT calculation of DCT coefficients for generating data of a luminance signal and a color difference signal in each mode. FIG. 4A shows 8-8 DC of the luminance signal data.
A calculation method of a coefficient in the T mode is shown, and (b) shows a calculation method of a coefficient in the 2-4-8 DCT mode of the data of the luminance signal. FIG. 4C shows the 8-8D data of the color difference signal.
A method of calculating coefficients in the CT mode is shown, and (d) shows a method of calculating coefficients in the 2-4-8 DCT mode of data of color difference signals. In FIG. 4, the image size is half the size of the luminance signal Y in both the vertical and horizontal directions, and the color difference signals Cr and Cb are 1/4 in the vertical direction and the horizontal size is the same.

【0022】まず、輝度信号Yのデータの生成について
説明する。8−8DCTモードの場合は、図4の(a)
の縦の太線で示しているように低次側の4列分のDCT
係数に対して各フィールド8点のIDCT演算を行う。
図4において、太線の交点が存在する枡目の位置のDC
T係数に対してIDCT演算を行う。フィールド1のデ
ータを取り出すには奇数ラインのデータに対して、フィ
ールド2のデータを取り出すには偶数ラインのデータに
対してそれぞれ4点のIDCT演算を行い、輝度信号Y
のデータを生成する。図4の(a)は偶数ラインのデー
タに対して演算をしていることを示す。2−4−8DC
Tモードの場合は、図4の(b)に太線で示しているフ
ィールド1またはフィールド2の低次側の4行4列のD
CT係数に対して2次元の4×4IDCT演算を行い、
輝度信号Yのデータを生成する。
First, generation of data of the luminance signal Y will be described. In the case of the 8-8 DCT mode, FIG.
DCT for four columns on the lower side
The IDCT operation is performed on the coefficients at eight points in each field.
In FIG. 4, the DC at the position of the mesh where the intersection of the thick line exists
An IDCT operation is performed on the T coefficient. To extract the data of field 1, the data of the odd-numbered lines are extracted, and to extract the data of field 2, the data of the even-numbered lines are respectively subjected to four IDCT operations, and the luminance signal Y is obtained.
Generate data for FIG. 4A shows that an operation is performed on data of an even-numbered line. 2-4-8DC
In the case of the T mode, four rows and four columns of the lower rows of the field 1 or the field 2 indicated by the bold line in FIG.
Perform a two-dimensional 4 × 4 IDCT operation on the CT coefficients,
The data of the luminance signal Y is generated.

【0023】次に、色差信号Cr及びCbのデータの生
成について説明する。8−8DCTモードの場合は、図
4の(c)に縦の太線の交点で示しているDCT係数の
全列の低次側の4点に対して、4点のIDCT演算を行
う。さらに、ライン0とライン2、またはライン1とラ
イン3のデータに対して、8点のIDCT演算を行い、
色差信号Cr及びCbのデータを生成する。2−4−8
DCTモードの場合は、図4の(d)に太線で示してい
るフィールド1またはフィールド2のDCT係数の低次
側の2×8DCT係数に対し、2次元の2×8IDCT
演算を行い、色差信号Cr及びCbのデータを生成す
る。
Next, generation of data of the color difference signals Cr and Cb will be described. In the case of the 8-8 DCT mode, four IDCT operations are performed on the four lower-order points of the entire column of DCT coefficients indicated by the intersections of the vertical thick lines in FIG. Further, an 8-point IDCT operation is performed on the data of line 0 and line 2 or the data of line 1 and line 3,
The data of the color difference signals Cr and Cb is generated. 2-4-8
In the case of the DCT mode, two-dimensional 2 × 8 IDCT is performed on the lower order 2 × 8 DCT coefficient of the DCT coefficient of field 1 or field 2 shown by the bold line in FIG.
An operation is performed to generate data of the color difference signals Cr and Cb.

【0024】次に、画像フォーマットを4:2:2に、
画像サイズを、輝度信号Yのデータは720×480画
素に、色差信号Cr及びCbのデータは360×480
画素に変換する場合について図5を参照して説明する。
図5は、この場合の各モードにおける輝度信号及び色差
信号のデータを生成するDCT係数のIDCT演算の方
法を説明する図であり、(a)は輝度信号のデータの8
−8DCT係数、(b)は輝度信号のデータの2−4−
8DCT係数、(c)は色差信号の8−8DCT係数、
(d)は色差信号の2−4−8DCT係数のそれぞれの
演算方法を示す。この場合、画像サイズは、輝度信号Y
に関しては、前記のものと同じサイズのままで、色差信
号Cr及びCbに関しては縦はそのままで、横が倍のサ
イズになっている。
Next, the image format is set to 4: 2: 2,
The image size is set to 720 × 480 pixels for the luminance signal Y data and 360 × 480 for the color difference signals Cr and Cb.
The case of conversion into pixels will be described with reference to FIG.
5A and 5B are diagrams illustrating a method of IDCT calculation of DCT coefficients for generating data of a luminance signal and a color difference signal in each mode in this case. FIG.
-8 DCT coefficient, (b) is the luminance signal data 2-4-
8DCT coefficient, (c) is an 8-8 DCT coefficient of the color difference signal,
(D) shows each method of calculating the 2-4-8 DCT coefficient of the color difference signal. In this case, the image size is the luminance signal Y
Is the same size as that described above, and the color difference signals Cr and Cb are twice as large as they are vertically.

【0025】まず、輝度信号Yのデータの生成について
説明する。8−8DCTモードの場合は、図5の(a)
に示すように、2次元の8×8IDCT演算を行い、輝
度信号Yのデータを生成する。2−4−8DCTモード
の場合は、図5の(b)に示すように、フィールド1ま
たはフィールド2のDCT係数を低次の係数として、高
次側の係数に0を付加して2次元の8×8IDCT演算
を行い、輝度信号Yのデータを生成する。高次側の係数
として0を付加することにより、データを変えることな
く画像フォーマットを変換することができる。
First, generation of data of the luminance signal Y will be described. In the case of the 8-8 DCT mode, FIG.
As shown in (2), a two-dimensional 8 × 8 IDCT operation is performed to generate data of the luminance signal Y. In the case of the 2-4-8 DCT mode, as shown in FIG. 5B, the DCT coefficient of field 1 or field 2 is set as a low-order coefficient, and 0 is added to the high-order coefficient to obtain a two-dimensional DCT coefficient. An 8 × 8 IDCT operation is performed to generate data of the luminance signal Y. By adding 0 as a higher-order coefficient, the image format can be converted without changing the data.

【0026】次に、色差信号Cr及びCbのデータの生
成について説明する。8−8DCTモードの場合は、図
5の(c)に示すように、DCT係数の高次側の係数に
0を付加し、2次元の8×16IDCT演算を行い、色
差信号Cr及びCbのデータを生成する。2−4−8D
CTモードの場合は、図5の(d)に示すように、フィ
ールド1またはフィールド2のDCT係数の高次側の係
数に0を付加し、2次元の8×16IDCT演算を行
い、色差信号Cr及びCbのデータを生成する。高次側
に0を付加することにより、データの内容を変えること
なく画像サイズの拡大ができる。
Next, generation of data of the color difference signals Cr and Cb will be described. In the case of the 8-8 DCT mode, as shown in FIG. 5C, 0 is added to the higher order coefficient of the DCT coefficient, a two-dimensional 8 × 16 IDCT operation is performed, and the data of the color difference signals Cr and Cb are obtained. Generate 2-4-8D
In the case of the CT mode, as shown in FIG. 5D, 0 is added to the higher order coefficient of the DCT coefficient of the field 1 or the field 2, the two-dimensional 8 × 16 IDCT operation is performed, and the color difference signal Cr is obtained. And Cb data are generated. By adding 0 to the higher order side, the image size can be enlarged without changing the data content.

【0027】図1において、DC成分抽出部5は、逆量
子化部3で生成されたDCT係数のDC成分のみを抽出
し、デシャフリングを行い、DC成分メモリ6と動き方
向検出部11に出力する。DC成分メモリ6は、DC成
分抽出部5で抽出されたDC成分を参照DC成分として
保持する。
In FIG. 1, the DC component extraction unit 5 extracts only the DC component of the DCT coefficient generated by the inverse quantization unit 3, performs deshuffling, and outputs it to the DC component memory 6 and the motion direction detection unit 11. . The DC component memory 6 holds the DC component extracted by the DC component extraction unit 5 as a reference DC component.

【0028】動き方向検出部11は、エンコード部12
からエンコード対象となっているフレームのピクチャタ
イプ情報を入手する。このピクチャタイプがPピクチャ
あるいはBピクチャであった場合には動き方向の検出を
行う。動き方向の検出は、DC成分抽出部5で抽出され
た各DC成分と、DC成分メモリ6に保持された参照D
C成分とを比較してブロック単位で行う。動き方向の検
出について図6を参照して詳細に説明する。
The motion direction detecting section 11 includes an encoding section 12
To obtain the picture type information of the frame to be encoded. If the picture type is a P picture or a B picture, the motion direction is detected. The detection of the movement direction is performed by using each DC component extracted by the DC component extraction unit 5 and the reference D stored in the DC component memory 6.
This is performed for each block by comparing the C component. The detection of the movement direction will be described in detail with reference to FIG.

【0029】図6は動き方向の検出方法を説明する図で
あり、(a)は探索範囲を8画素範囲とする方法を示
し、(b)は探索範囲を16画素範囲とする方法を示
す。ここでは動き方向の候補として2個の画素を選択す
る場合を例に挙げて説明する。まず、動き方向を検出す
るDC成分と、参照DC成分のうち同じ位置にある画素
のDC成分とその周り8個の画素のDC成分のそれぞれ
との差分の絶対値を求める。この絶対値の小さいほうか
ら2個のものを選択し、2個の絶対値のそれぞれの画素
の存在する方向を、動き無し、又は上、下、左、右、右
上、右下、左上、又は左下の方向によって示し、この方
向を動き方向とする。
FIGS. 6A and 6B are diagrams for explaining a method of detecting a motion direction. FIG. 6A shows a method of setting a search range to an 8-pixel range, and FIG. 6B shows a method of setting a search range to a 16-pixel range. Here, a case where two pixels are selected as candidates for the movement direction will be described as an example. First, an absolute value of a difference between a DC component for detecting a motion direction, a DC component of a pixel located at the same position among reference DC components, and DC components of eight pixels around the DC component is calculated. Two of the absolute values are selected from the smaller one, and the direction in which each pixel of the two absolute values exists is determined by no motion or upper, lower, left, right, upper right, lower right, upper left, or This is indicated by the lower left direction, and this direction is defined as the movement direction.

【0030】図6の(a)は、DCTブロック単位で考
えると、8画素単位、8画素範囲で動き方向を検出した
ことになる。矢印は動きベクトルを表している。探索範
囲をさらに広げ、16画素範囲で動き方向を検出するこ
ともできる。24画素範囲などさらに広い探索範囲で動
き方向を検出することも可能である。図6の(b)に示
すように、探索範囲を広げ16画素範囲としたときに
は、動き方向を表現する動きベクトルの数は増加する。
FIG. 6A shows that the direction of motion is detected in units of 8 pixels in a range of 8 pixels when considered in units of DCT blocks. Arrows represent motion vectors. The search range can be further expanded, and the motion direction can be detected in a 16-pixel range. It is also possible to detect the motion direction in a wider search range such as a 24-pixel range. As shown in FIG. 6B, when the search range is expanded to a range of 16 pixels, the number of motion vectors expressing the motion direction increases.

【0031】MPEGフォーマットでは、動きベクトル
は16×16画素のマクロブロック単位で検出する必要
があるが、上記の検出方法では、8×8画素のブロック
単位で2つの動き方向を検出している。そこで、マクロ
ブロックを形成する4ブロックのそれぞれの動き方向の
中で最も多く使われている方向と2番目に使われている
方向をマクロブロックの動き方向とする。なおここでは
動き方向の候補を2個としたが、1又は3個以上でも同
様に検出することができる。
In the MPEG format, a motion vector needs to be detected in units of macroblocks of 16 × 16 pixels. In the above detection method, two motion directions are detected in units of blocks of 8 × 8 pixels. Therefore, the direction most frequently used and the direction used secondly among the motion directions of the four blocks forming the macroblock are defined as the motion direction of the macroblock. In this case, the number of motion direction candidates is two, but one or three or more motion direction candidates can be similarly detected.

【0032】エンコード部12は、動き方向検出部11
によって検出されたマクロブロックの動き方向を中心に
動きベクトルの探索を行って動きベクトルを求め、リサ
イズIDCT部4によって生成された画像データを用い
てエンコードを行い、MPEGデータを生成する。ま
た、リサイズIDCT部4は、その他の画像フォーマッ
ト及び画像サイズの組み合わせについても同様に行うこ
とができる。また、入力圧縮データ1の圧縮フォーマッ
トがモーションJPEG等のフレーム内符号化された圧
縮データで、出力圧縮データ7の圧縮フォーマットが
H.263、H.261等のフレーム間符号化された圧
縮データとすることも可能である。
The encoding section 12 includes a motion direction detecting section 11
A search is made for a motion vector around the motion direction of the macroblock detected by the above to obtain a motion vector, and encoding is performed using the image data generated by the resize IDCT unit 4 to generate MPEG data. In addition, the resize IDCT unit 4 can perform the same for other combinations of image formats and image sizes. Also, the compression format of the input compressed data 1 is intra-frame coded compressed data such as motion JPEG, and the compression format of the output compressed data 7 is H.264. 263; 261 or the like may be compressed data that has been inter-frame coded.

【0033】《実施例2》図7は、本発明の実施例2の
映像信号符号化装置の構成を示すブロック図である。以
下、入力圧縮データであるDVフォーマットで圧縮され
た圧縮データをMPEGフォーマットに圧縮された出力
圧縮データにする構成について説明する。図7に示すよ
うに、実施例2の映像信号符号化装置は、図1に示す、
逆量子化部3とリサイズIDCT部4との間に動き判別
部71を挿入している。実施例1と同一部分には同一参
照符号を付して重複する説明は省略する。
Embodiment 2 FIG. 7 is a block diagram showing a configuration of a video signal encoding device according to Embodiment 2 of the present invention. Hereinafter, a configuration will be described in which compressed data compressed in the DV format, which is input compressed data, is converted into output compressed data in the MPEG format. As shown in FIG. 7, the video signal encoding device according to the second embodiment is configured as shown in FIG.
A motion determining unit 71 is inserted between the inverse quantization unit 3 and the resize IDCT unit 4. The same parts as those in the first embodiment are denoted by the same reference numerals, and duplicate description will be omitted.

【0034】動き判別部71の第1の入力端は逆量子化
部3の出力端に接続され、4つの出力端は、それぞれリ
サイズIDCT部4の入力端、動き方向検出部74の第
1の入力端、DCT係数変換部73の入力端及びDCT
係数メモリ72の入力端に接続されている。また、動き
判別部71の他の2つの入力端はそれぞれDCTメモリ
72の出力端とエンコード部75の出力端に接続されて
いる。DCT係数変換部73の出力端はエンコード部7
5の第1の入力端に接続されている。DCT係数変換部
73の出力端はエンコード部75の入力端に接続されて
いる。動き方向検出部74の他の2つの入力端はそれぞ
れ、DC成分抽出部5とDC成分メモリ6の出力端に接
続されている。動き方向検出部74の出力端はエンコー
ド部75の他の入力端に接続されている。その他の構成
は図1と同様であるので重複する説明は省略する。
A first input terminal of the motion discriminating unit 71 is connected to an output terminal of the inverse quantization unit 3, and four output terminals are an input terminal of the resize IDCT unit 4 and a first input terminal of the motion direction detecting unit 74, respectively. Input end, input end of DCT coefficient conversion section 73 and DCT
It is connected to the input terminal of the coefficient memory 72. The other two input terminals of the motion determining unit 71 are connected to the output terminal of the DCT memory 72 and the output terminal of the encoding unit 75, respectively. The output end of the DCT coefficient conversion unit 73 is the encoding unit 7
5 is connected to the first input terminal. An output terminal of the DCT coefficient conversion unit 73 is connected to an input terminal of the encoding unit 75. The other two input terminals of the movement direction detecting unit 74 are connected to the output terminals of the DC component extracting unit 5 and the DC component memory 6, respectively. An output terminal of the movement direction detecting unit 74 is connected to another input terminal of the encoding unit 75. Other configurations are the same as those in FIG.

【0035】以下、実施例2の映像信号符号化装置の動
作について図5の(b)、図7及び図8を参照しつつ説
明する。なお、VLD部2、逆量子化部3、リサイズI
DCT部4、DC成分抽出部5,及びDC成分メモリ6
の動作は実施例1と同じなので説明は省略する。図7に
おいて、逆量子化部3で生成されたDCT係数を参照D
CT係数として、DCT係数メモリ72に保持する。動
き判別部71は、逆量子化部3で生成されたDCT係数
と、DCT係数メモリ72に保持されている参照DCT
係数の各要素毎に差分をとり、差分DCT係数を生成す
る。差分をとるときに、前記DCT係数と参照DCT係
数の両方が2−4−8DCTモードのときは、同じフィ
ールドのDCT係数同志で差分をとり、一方が2−4−
8DCTモードのときは、図5の(b)に示すように、
高次側のデータを0として差分をとる。
Hereinafter, the operation of the video signal encoding apparatus according to the second embodiment will be described with reference to FIG. 5B, FIG. 7 and FIG. The VLD unit 2, the inverse quantization unit 3, the resize I
DCT unit 4, DC component extraction unit 5, and DC component memory 6
Are the same as those in the first embodiment, and a description thereof will be omitted. In FIG. 7, the DCT coefficient generated by the inverse quantization unit 3 is referred to as D
It is stored in the DCT coefficient memory 72 as a CT coefficient. The motion discrimination unit 71 compares the DCT coefficient generated by the inverse quantization unit 3 with the reference DCT stored in the DCT coefficient memory 72.
A difference is calculated for each element of the coefficient to generate a difference DCT coefficient. When taking the difference, when both the DCT coefficient and the reference DCT coefficient are in the 2-4-8 DCT mode, the difference is taken between the DCT coefficients of the same field, and one is taken as 2-4-8.
In the 8DCT mode, as shown in FIG.
The difference is calculated with the higher-order data set to 0.

【0036】次に、差分DCT係数の各要素の絶対値を
とり、その総和を計算する。絶対値の総和が所定値より
小さいときは、動き無しと判別して差分DCT係数を出
力する。絶対値の総和が所定値より大きいときは動きあ
りと判別してDCT係数と動きのあるブロックの位置を
出力する。ただし、MPEGデータはマクロブロック単
位で動き検出を行うため、マクロブロックを形成する複
数のブロックのうちどれか一つでも動きありと判別され
た場合は、動き無しと判別されたブロックも動きありと
判別しなおす。
Next, the absolute value of each element of the differential DCT coefficient is obtained, and the sum is calculated. When the sum of the absolute values is smaller than the predetermined value, it is determined that there is no motion, and a difference DCT coefficient is output. If the sum of the absolute values is larger than the predetermined value, it is determined that there is a motion, and the DCT coefficient and the position of the moving block are output. However, since MPEG data performs motion detection on a macroblock basis, if any one of a plurality of blocks forming a macroblock is determined to have motion, the block determined to have no motion is also determined to have motion. Check again.

【0037】DCT係数メモリ72は、逆量子化部3で
生成されたDCT係数を参照DCT係数として保持す
る。DCT係数変換部73は、エンコード部75でIピ
クチャに符号化するフレームのDCT係数、または動き
判別部71で生成された差分DCT係数の何れかを入力
とし、DCT係数のサイズとフォーマットを変換して、
IDCT演算により輝度、色差データに変えることなく
新たなDCT係数を生成する。DCT係数のサイズ及び
フォーマットが同じ場合は何も変換せずにそのままDC
T係数または差分DCT係数を出力する。
The DCT coefficient memory 72 holds the DCT coefficients generated by the inverse quantization unit 3 as reference DCT coefficients. The DCT coefficient conversion unit 73 receives as input either the DCT coefficient of the frame to be encoded into an I picture by the encoding unit 75 or the difference DCT coefficient generated by the motion discrimination unit 71, and converts the size and format of the DCT coefficient. hand,
A new DCT coefficient is generated without changing the luminance and color difference data by the IDCT operation. If the size and format of DCT coefficients are the same, DC
Output T coefficient or difference DCT coefficient.

【0038】ここで、画像サイズを縦横それぞれ1/2
にする場合について図8を参照して説明する。図8はこ
の画像サイズの変換方法を説明する図であり、(a)は
変換前の4つの8×8DCT係数ブロック26の配列を
示し、(b)は変換後の8×8疑似DCT係数27の配
列を示す。図8に示すように、4つの8×8DCT係数
ブロック26の低次側4×4のDCT係数を抜き出し、
それを8×8の擬似DCT係数27とする。この8×8
擬似DCT係数27に対して、4点のIDCT係数と8
点のDCT係数を組み合わせて新たに作った係数を用い
て2次元の演算を行って新たなDCT係数を生成する。
このときの係数をCn=cos(2π/16)として、
その一例を次の式に示す。
Here, the image size is reduced by half in both the vertical and horizontal directions.
Will be described with reference to FIG. 8A and 8B are diagrams for explaining this image size conversion method. FIG. 8A shows an array of four 8 × 8 DCT coefficient blocks 26 before conversion, and FIG. 8B shows an 8 × 8 pseudo DCT coefficient 27 after conversion. The following shows the sequence. As shown in FIG. 8, the lower 4 × 4 DCT coefficients of the four 8 × 8 DCT coefficient blocks 26 are extracted,
This is set as an 8 × 8 pseudo DCT coefficient 27. This 8x8
4 pseudo IDCT coefficients and 8 pseudo DCT coefficients
A new DCT coefficient is generated by performing a two-dimensional operation using a coefficient newly created by combining the DCT coefficients of the points.
Assuming that the coefficient at this time is Cn = cos (2π / 16),
An example is shown in the following equation.

【0039】[0039]

【数1】 (Equation 1)

【0040】動き方向検出部74は、基本的には図1の
動き方向検出部11と同じ動作をする。動き方向検出部
11の動作と異なる点は、動き判別部71で動きありと
判別されたDCTブロックの位置を示す、動き判別部7
1の出力に対応するDC成分に対してのみ動き方向を検
出する。エンコード部75は、動き方向検出部74によ
って検出されたマクロブロックの動き方向を中心に動き
ベクトルの探索を行って動きベクトルを求め、リサイズ
IDCT部4によって生成された画像データを用いてエ
ンコードを行い、MPEGデータを生成する。
The movement direction detecting section 74 basically operates in the same manner as the movement direction detecting section 11 of FIG. The difference from the operation of the motion direction detecting unit 11 is that the motion discriminating unit 7 indicates the position of the DCT block judged to have motion by the motion discriminating unit 71.
The movement direction is detected only for the DC component corresponding to the output of No. 1. The encoding unit 75 obtains a motion vector by searching for a motion vector around the motion direction of the macroblock detected by the motion direction detection unit 74, and encodes using the image data generated by the resize IDCT unit 4. , MPEG data.

【0041】Iピクチャを生成するときは、DCT係数
変換部73で生成された新たなDCT係数に対して量子
化と可変長符号化を行い、MPEGデータに変換する。
P及びBピクチャ内で、動き判別部71で動きなしと判
別されたDCTブロックに関しては、DCT係数変換部
73で生成された新たな差分DCT係数に対して量子化
と可変長符号化を行い、MPEGデータに変換する。
When an I picture is generated, the new DCT coefficient generated by the DCT coefficient conversion unit 73 is subjected to quantization and variable length coding, and converted to MPEG data.
In the P and B pictures, for the DCT block determined to have no motion by the motion determining unit 71, quantization and variable length coding are performed on the new differential DCT coefficient generated by the DCT coefficient converting unit 73, Convert to MPEG data.

【0042】DCT係数変換部73は、上記で説明した
以外のDCT係数のサイズに関しても同様に新たな係数
を生成して2次元演算を行うことで、DCT係数のサイ
ズとフォーマットを変換して新たなDCT係数を生成す
ることが可能である。また、新たに生成したDCT係数
に基づいて高速アルゴリズムを構築し、演算することも
可能である。また、入力圧縮データ1の圧縮フォーマッ
トがモーションJPEG等のフレーム内符号化された圧
縮データとし、出力圧縮データ7の圧縮フォーマットを
H.263、H.261等のフレーム間符号化された圧
縮データとすることも可能である。
The DCT coefficient conversion unit 73 similarly converts the size and format of the DCT coefficient by generating a new coefficient and performing a two-dimensional operation on the size of the DCT coefficient other than that described above. It is possible to generate various DCT coefficients. It is also possible to construct a high-speed algorithm based on a newly generated DCT coefficient and perform an operation. The compression format of the input compressed data 1 is intra-frame coded compressed data such as motion JPEG, and the compression format of the output compressed data 7 is H.264. 263; 261 or the like may be compressed data that has been inter-frame coded.

【0043】《実施例3》図9は、本発明の実施例3の
映像信号符号化装置の構成を示すブロック図である。以
下、DVフォーマットで圧縮された入力の圧縮データを
MPEGフォーマットに圧縮する構成について説明す
る。図9に示すように、実施例3の映像信号符号化装置
は、図7の映像信号符号化装置の動き判別部71をDC
Tモード判別部91に置き換えたものである。実施例2
と同一部分には同一参照符号を付して重複する説明は省
略する。DCTモード判別部91は、逆量子化部3で生
成されたDCT係数のモードから動き方向の検出をする
かどうかを判別する。
Embodiment 3 FIG. 9 is a block diagram showing a configuration of a video signal encoding apparatus according to Embodiment 3 of the present invention. Hereinafter, a configuration for compressing the input compressed data compressed in the DV format into the MPEG format will be described. As shown in FIG. 9, the video signal encoding apparatus according to the third embodiment includes a motion determining unit 71 of the video signal encoding apparatus shown in FIG.
This is replaced with a T-mode determination unit 91. Example 2
The same parts as those described above are denoted by the same reference numerals, and redundant description will be omitted. The DCT mode determination unit 91 determines whether or not to detect the motion direction from the mode of the DCT coefficient generated by the inverse quantization unit 3.

【0044】以下、実施例3の映像信号符号化装置の動
作について図9を参照しつつ説明する。VLD部2、逆
量子化部3、リサイズIDCT部4、DC成分抽出部
5、及びDC成分メモリ6の動作は実施例1で説明した
ものと同じであり、DCT係数メモリ72、DCT係数
変換部73、動き方向検出部74、及びエンコード部7
5の動作は実施例2で説明したものと同じであるので説
明は省略する。
Hereinafter, the operation of the video signal encoding apparatus according to the third embodiment will be described with reference to FIG. The operations of the VLD unit 2, the inverse quantization unit 3, the resize IDCT unit 4, the DC component extraction unit 5, and the DC component memory 6 are the same as those described in the first embodiment, and the DCT coefficient memory 72, the DCT coefficient conversion unit 73, a movement direction detection unit 74, and an encoding unit 7
The operation of No. 5 is the same as that described in the second embodiment, and a description thereof will be omitted.

【0045】DVフォーマットの圧縮データにおいて
は、DCT係数のモードとしては、フィールド間の差が
大きいときは2−4−8DCTモードが使用され、差が
小さいときは8−8DCTモードが使用されている。D
CTモード判別部91において、逆量子化部3から入力
したDCT係数が2−4−8DCTモードである場合
は、動きが大きいと判別する。つまり、マクロブロック
を形成する複数のブロックのうちどれか一つでも2−4
−8DCTモードである場合、及びDCT係数メモリ7
2に保持されている参照DCT係数のDCTブロックと
同じ位置にあるマクロブロック位置の複数のブロックの
うちどれか一つでも2−4−8DCTモードである場合
は、DCTモード判別部91は、動きありと判別してD
CT係数とブロック位置データを出力する。
In the compressed data of the DV format, the DCT coefficient mode uses the 2-4-8 DCT mode when the difference between fields is large, and uses the 8-8 DCT mode when the difference is small. . D
When the DCT coefficient input from the inverse quantization unit 3 is in the 2-4-8 DCT mode, the CT mode determination unit 91 determines that the motion is large. That is, any one of the plurality of blocks forming the macroblock is 2-4.
-8 DCT mode and DCT coefficient memory 7
If any one of the plurality of blocks at the macroblock position located at the same position as the DCT block of the reference DCT coefficient held in 2 is in the 2-4-8 DCT mode, the DCT mode determining unit 91 D
It outputs CT coefficients and block position data.

【0046】それ以外の場合、つまりマクロブロックを
形成する複数のブロックと、DCT係数メモリ72に保
持されている参照DCT係数の同じマクロブロック位置
にある複数のブロックが全て8−8DCT係数をもつ場
合は、DCTモード判別部91は、動き無しと判別し、
各DCT係数と各参照DCT係数の各要素毎の差を求
め、差分DCT係数を生成し出力する。また、実施例2
と同様に、出力圧縮データ7の圧縮フォーマットをH.
263、H.261等のフレーム間符号化された圧縮デ
ータとすることも可能である。
In other cases, that is, when a plurality of blocks forming a macroblock and a plurality of blocks at the same macroblock position of the reference DCT coefficient held in the DCT coefficient memory 72 all have 8-8 DCT coefficients. Indicates that the DCT mode determining unit 91 determines that there is no motion,
A difference between each DCT coefficient and each reference DCT coefficient for each element is obtained, and a difference DCT coefficient is generated and output. Example 2
Similarly, the compression format of the output compressed data 7 is set to H.264.
263; 261 or the like may be compressed data that has been inter-frame coded.

【0047】また、DCTモード判別部91において、
動き無しと判別し、差分DCT係数を生成した後に、各
差分の絶対値の総和をとり、この値が大きい場合は動き
ありと判別しなおし、動きありと判別されたブロックを
含むマクロブロックを形成する全ブロックを動きありと
判別しなおし、DCT係数とブロック位置を出力するこ
とも可能である。
In the DCT mode determining section 91,
After determining that there is no motion and generating a difference DCT coefficient, the absolute value of each difference is summed up. If this value is large, it is determined that there is a motion again, and a macro block including the block determined to have motion is formed. It is also possible to determine again that all the blocks to be moved are present and output the DCT coefficients and block positions.

【0048】[0048]

【発明の効果】以上各実施例で詳しく説明したように、
本発明の映像信号符号化装置は下記の効果を有してい
る。復号時に画像サイズ及び画像フォーマットを変換し
た輝度データと色差データを生成するため、復号された
映像のフィルタ処理を行うことが不要となり処理量の削
減が可能となる。さらに各ブロック毎に動き方向を検出
し、検出した動き方向に基づいて動きベクトルを求める
ため、動き方向の探索範囲を狭めることで、処理量の削
減が可能となる。また、動きが無いと判別したブロック
に対してはDCT係数を画像データに戻さずに新たなD
CT係数を生成することで処理量の削減が可能となる。
As described above in detail in each embodiment,
The video signal encoding device of the present invention has the following effects. Since the luminance data and the chrominance data obtained by converting the image size and the image format are generated at the time of decoding, it is not necessary to perform the filtering process on the decoded video, and the processing amount can be reduced. Furthermore, since the motion direction is detected for each block and a motion vector is obtained based on the detected motion direction, the processing amount can be reduced by narrowing the search range of the motion direction. Also, for a block determined to have no motion, a new DT coefficient is returned to the image data without returning the DCT coefficient to the image data.
By generating the CT coefficients, the processing amount can be reduced.

【0049】また、動きがあると判別したブロックに対
してのみ動き方向の検出を行い、この動き方向を用いて
動きベクトルを求めるための探索範囲を狭めることが可
能となり、さらに動きがあると判別したブロックのみ動
きベクトルの検出を行うため、動きベクトルを求めるブ
ロックの数を減らすことが可能となるため、処理量の削
減が可能となる。また、一方のフィールドのデータのみ
を復号、符号化するため、動きの大きいところでも物体
の境界を滑らかにすることが可能となる。その結果、フ
レーム内圧縮された入力圧縮データをフレーム間圧縮さ
れた出力圧縮データに高速に変換する映像信号符号化装
置が得られる。
Further, the motion direction is detected only for the block determined to have motion, and the search range for obtaining a motion vector can be narrowed using this motion direction. Since the motion vector detection is performed only for the selected block, the number of blocks for which the motion vector is to be obtained can be reduced, and thus the processing amount can be reduced. In addition, since only the data of one field is decoded and encoded, it is possible to smooth the boundary of the object even in a place where the motion is large. As a result, it is possible to obtain a video signal encoding device that converts input compressed data compressed within a frame into output compressed data compressed between frames at a high speed.

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

【図1】本発明の実施例1の映像信号符号化装置の構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a video signal encoding device according to a first embodiment of the present invention.

【図2】本発明の実施例1が適用される画像フォーマッ
トを示す図であり、(a)は4:1:1フォーマットを
示し、(b)は4:2:2フォーマットを示し、(c)
は4:2:0フォーマットを示す。
FIGS. 2A and 2B are diagrams showing an image format to which the first embodiment of the present invention is applied, wherein FIG. 2A shows a 4: 1: 1 format, FIG. 2B shows a 4: 2: 2 format, and FIG. )
Indicates a 4: 2: 0 format.

【図3】本発明の実施例1の映像信号符号化装置におけ
るDCTモードを示す図であり、(a)は8−8DCT
モードを示し、(b)は2−4−8DCTモードを示
す。
FIG. 3 is a diagram illustrating a DCT mode in the video signal encoding device according to the first embodiment of the present invention, where (a) illustrates an 8-8 DCT;
(B) shows a 2-4-8 DCT mode.

【図4】本発明の実施例1の映像信号符号化装置におけ
る画像フォーマットを4:2:0に、画像サイズを輝度
信号Yは360×240、色差信号Cr及びCbは18
0×120にそれぞれ変換するIDCT演算の方法を説
明する図であり、(a)は輝度信号Yの8−8DCT係
数の演算方法を示し、(b)は輝度信号Yの2−4−8
DCT係数の演算方法を示し、(c)は色差信号Cr及
びCbの8−8DCT係数の演算方法を示し、(d)は
色差信号Cr及びCbの2−4−8DCT係数の演算方
法を示す。
FIG. 4 shows a video signal encoding apparatus according to a first embodiment of the present invention in which the image format is 4: 2: 0, the image size is 360 × 240 for the luminance signal Y, and 18 for the color difference signals Cr and Cb.
FIGS. 7A and 7B are diagrams illustrating a method of an IDCT operation for converting each signal to 0 × 120, wherein FIG. 9A illustrates an operation method of an 8-8 DCT coefficient of the luminance signal Y, and FIG.
(C) shows a method of calculating the 8-8 DCT coefficient of the color difference signals Cr and Cb, and (d) shows a method of calculating the 2-4-8 DCT coefficient of the color difference signals Cr and Cb.

【図5】本発明の実施例1の映像信号符号化装置におけ
る画像フォーマットを4:2:2に、画像サイズを輝度
信号Yは720×480、色差信号Cr及びCbは36
0×480にそれぞれ変換して画像データを生成するI
DCT係数の演算方法を説明する図であり、(a)は輝
度信号Yの8−8DCT係数の演算方法を示し、(b)
は輝度信号Yの2−4−8DCT係数の演算方法を示
し、(c)は色差信号Cr及びCbの8−8DCT係数
の演算方法を示し、(d)は色差信号Cr及びCbの2
−4−8DCT係数の演算方法を示す。
FIG. 5 shows a video signal encoding apparatus according to a first embodiment of the present invention, in which the image format is 4: 2: 2, the image size is 720 × 480 for the luminance signal Y, and 36 for the color difference signals Cr and Cb.
0x480 to generate image data
8A and 8B are diagrams illustrating a method of calculating a DCT coefficient, in which FIG. 7A illustrates a method of calculating an 8-8 DCT coefficient of a luminance signal Y, and FIG.
Shows the method of calculating the 2-4-8 DCT coefficient of the luminance signal Y, (c) shows the method of calculating the 8-8 DCT coefficient of the color difference signals Cr and Cb, and (d) shows the method of calculating the 2-8 DCT coefficient of the color difference signals Cr and Cb.
The method of calculating the -4-8 DCT coefficient will be described.

【図6】本発明の実施例1の映像信号符号化装置におけ
るブロックデータの動き方向を説明する図であり、
(a)は探索範囲が8画素の範囲の動き方向を示し、
(b)は16画素の範囲の動き方向を示す。
FIG. 6 is a diagram for explaining a motion direction of block data in the video signal encoding device according to the first embodiment of the present invention;
(A) shows a movement direction in a search range of 8 pixels,
(B) shows the movement direction in the range of 16 pixels.

【図7】本発明の実施例2の映像信号符号化装置を示す
ブロック図である。
FIG. 7 is a block diagram illustrating a video signal encoding device according to a second embodiment of the present invention.

【図8】本発明の実施例2の映像信号符号化装置におけ
る8×8擬似DCT係数を生成する方法を説明する図で
あり、(a)は4つのブロックの8×8DCT係数を示
し、(b)は生成した8×8疑似DCT係数を示す。
FIG. 8 is a diagram illustrating a method of generating an 8 × 8 pseudo DCT coefficient in the video signal encoding device according to the second embodiment of the present invention, where (a) illustrates 8 × 8 DCT coefficients of four blocks; b) shows the generated 8 × 8 pseudo DCT coefficients.

【図9】本発明の実施例3の映像信号符号化装置を示す
ブロック図である。
FIG. 9 is a block diagram illustrating a video signal encoding device according to a third embodiment of the present invention.

【図10】従来の映像信号符号化装置を示すブロック図
である。
FIG. 10 is a block diagram showing a conventional video signal encoding device.

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

1、101 ・・・入力圧縮データ 2 ・・・VLD部 3 ・・・逆量子化部 4 ・・・リサイズIDCT部 5 ・・・DC成分抽出部 6 ・・・DC成分メモリ 7、106 ・・・出力圧縮データ 11,74 ・・・動き方向検出部 12,75 ・・・エンコード部 71 ・・・動き判別部 72 ・・・DCT係数メモリ 73 ・・・DCT係数変換部 91 ・・・DCTモード判別部 1, 101 ... input compressed data 2 ... VLD section 3 ... inverse quantization section 4 ... resize IDCT section 5 ... DC component extraction section 6 ... DC component memory 7, 106 ... · Output compressed data 11, 74 · · · Motion direction detection unit 12, 75 · · · Encoding unit 71 · · · Motion determination unit 72 · · · DCT coefficient memory 73 · · · DCT coefficient conversion unit 91 · · · DCT mode Discriminator

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 フレーム内圧縮された入力の圧縮データ
を可変長復号し、量子化DCT(ディスクリート・コサ
イン・トランスフォーム)係数を生成するVLD(バリ
アブル・レングス・デコード)手段、 前記量子化DCT係数を逆量子化し、DCT係数を生成
する逆量子化手段、 前記DCT係数のサイズと画像フォーマットを変換して
ブロックデータを生成するリサイズIDCT(インバー
ス・ディスクリート・コサイン・トランスフォーム)手
段、 前記DCT係数のうち、DC(ダイレクトカレント)成
分のみを抽出するDC成分抽出手段、 1フレーム分の前記DC成分を参照DC成分として保持
するDC成分メモリ、 隣接するフレームのDC成分と前記参照DC成分とを比
較し、前記ブロックデータの動き方向を検出する動き方
向検出手段、及び前記動き方向から動きベクトルを検出
し、前記動きベクトルに基づき1フレーム分の前記ブロ
ックデータをエンコードし、フレーム間圧縮された圧縮
データを出力するエンコード手段を備えたことを特徴と
する映像信号符号化装置。
1. VLD (Variable Length Decoding) means for performing variable length decoding of input compressed data compressed in a frame to generate a quantized DCT (Discrete Cosine Transform) coefficient, The quantized DCT coefficient Inverse quantizing means for inversely quantizing the DCT coefficients to generate DCT coefficients; resizing IDCT (inverse discrete cosine transform) means for converting the size of the DCT coefficients and image format to generate block data; A DC component extracting means for extracting only a DC (direct current) component, a DC component memory for holding the DC component for one frame as a reference DC component, and comparing a DC component of an adjacent frame with the reference DC component. , A motion direction detection for detecting a motion direction of the block data. Means for detecting a motion vector from the motion direction, encoding the block data for one frame based on the motion vector, and outputting compressed data compressed between frames. Signal encoding device.
【請求項2】 フレーム内圧縮された入力の圧縮データ
を可変長復号し、量子化DCT係数を生成するVLD手
段、 前記量子化DCT係数を逆量子化し、第1のDCT係数
を生成する逆量子化手段、 前記第1のDCT係数を参照DCT係数として保持する
DCT係数メモリ、 隣接するフレームの第1のDCT係数と前記参照DCT
係数との差分をとった第1の差分DCT係数から動き方
向の検出を行うかどうかを判別し、動き方向の検出もし
くはフレーム内圧縮を行うときは前記第1のDCT係数
を、動き方向の検出を行わないときは前記第1の差分D
CT係数を出力する動き判別手段、 前記第1の差分DCT係数もしくはフレーム内圧縮を行
う前記第1のDCT係数のサイズと画像フォーマットを
変換して第2の差分DCT係数もしくは第2のDCT係
数を生成するDCT係数変換手段、 動き検出を行う前記第1のDCT係数のサイズと画像フ
ォーマットを変換してブロックデータを生成するリサイ
ズIDCT手段、 前記第1のDCT係数のうち、DC成分のみを抽出する
DC成分抽出手段、 1フレーム分の前記DC成分を参照DC成分として保持
するDC成分メモリと、隣接するフレームのDC成分と
前記参照DC成分とを比較し、前記ブロックデータの動
き方向を検出する動き方向検出手段、及び前記動き方向
から動きベクトルを検出し、前記動きベクトルに基づい
て1フレーム分の前記ブロックデータ、前記第2の差分
DCT係数、または前記第2のDCT係数をDCT係数
としてエンコードを行い、フレーム間圧縮された圧縮デ
ータを出力するエンコード手段を備えたことを特徴とす
る映像信号符号化装置。
2. VLD means for performing variable length decoding of input compressed data compressed in a frame to generate a quantized DCT coefficient, and inverse quantization for dequantizing the quantized DCT coefficient to generate a first DCT coefficient. Conversion means, a DCT coefficient memory for holding the first DCT coefficient as a reference DCT coefficient, a first DCT coefficient of an adjacent frame and the reference DCT
It is determined whether or not to detect the motion direction from the first difference DCT coefficient obtained by calculating the difference between the coefficient and the first DCT coefficient. Is not performed, the first difference D
A motion discriminating means for outputting a CT coefficient; converting the size and the image format of the first differential DCT coefficient or the first DCT coefficient for performing intra-frame compression to obtain a second differential DCT coefficient or a second DCT coefficient; DCT coefficient converting means for generating, resizing IDCT means for converting the size and image format of the first DCT coefficient for performing motion detection to generate block data, extracting only a DC component from the first DCT coefficient DC component extracting means, a DC component memory for holding the DC component for one frame as a reference DC component, a motion for comparing a DC component of an adjacent frame with the reference DC component, and detecting a motion direction of the block data Direction detecting means, and a motion vector is detected from the motion direction, and a motion vector for one frame is detected based on the motion vector. A video signal code comprising encoding means for encoding the block data, the second differential DCT coefficient, or the second DCT coefficient as a DCT coefficient and outputting inter-frame compressed data. Device.
【請求項3】 DV(デジタルビデオ)フォーマットに
より圧縮された入力の圧縮データを可変長復号し、量子
化DCT係数を生成するVLD手段、 前記量子化DCT係数を逆量子化し、第1のDCT係数
を生成する逆量子化手段、 前記第1のDCT係数を参照DCT係数として保持する
DCT係数メモリ、 前記第1のDCT係数のモードを判別し、動き方向の検
出を行うかどうかを判別し、動き方向の検出もしくはフ
レーム内圧縮を行うときは前記第1のDCT係数を、動
き方向の検出を行わないときは隣接するフレームの第1
のDCT係数と前記参照DCT係数の差分をとった第1
の差分DCT係数を出力するDCTモード判別手段、 前記第1の差分DCT係数もしくはフレーム内圧縮を行
う前記第1のDCT係数のサイズと画像フォーマットを
変換して第2の差分DCT係数もしくは第2のDCT係
数を生成するDCT係数変換手段、 前記DCTモード判別手段で動き方向の検出を行うと判
別された前記第1のDCT係数のサイズと画像フォーマ
ットを変換してブロックデータを生成するリサイズID
CT手段、 前記第1のDCT係数のうち、DC成分のみを抽出する
DC成分抽出手段、 1フレーム分の前記DC成分を参照DC成分として保持
するDC成分メモリ、 隣接するフレームのDC成分と前記参照DC成分を比較
し、前記ブロックデータの動き方向を検出する動き方向
検出手段、及び前記動き方向から動きベクトルを検出
し、前記ブロックデータ、前記第2の差分DCT係数、
または前記第2のDCT係数をDCT係数としてエンコ
ードを行い、フレーム間圧縮された圧縮データを出力す
るエンコード手段を備えたことを特徴とする映像信号符
号化装置。
3. VLD means for variable-length decoding input compressed data compressed in a DV (Digital Video) format to generate a quantized DCT coefficient, and inversely quantizes the quantized DCT coefficient to obtain a first DCT coefficient. A DCT coefficient memory for holding the first DCT coefficient as a reference DCT coefficient; determining a mode of the first DCT coefficient; determining whether to detect a motion direction; When the direction detection or intra-frame compression is performed, the first DCT coefficient is used. When the motion direction detection is not performed, the first DCT coefficient of the adjacent frame is used.
And the first DCT coefficient obtained by calculating the difference between the DCT coefficient of
DCT mode discriminating means for outputting a differential DCT coefficient of the first DCT coefficient or a second DCT coefficient of the second DCT coefficient or a second DCT coefficient for converting the size and image format of the first DCT coefficient or the first DCT coefficient for performing intra-frame compression DCT coefficient conversion means for generating DCT coefficients; resize ID for converting the size and image format of the first DCT coefficient determined to detect the motion direction by the DCT mode determination means to generate block data
CT means; DC component extracting means for extracting only a DC component among the first DCT coefficients; DC component memory for holding the DC component for one frame as a reference DC component; DC components of an adjacent frame and the reference A motion direction detecting means for comparing a DC component and detecting a motion direction of the block data; and detecting a motion vector from the motion direction, the block data, the second differential DCT coefficient,
Alternatively, the video signal encoding apparatus includes encoding means for encoding the second DCT coefficient as a DCT coefficient and outputting compressed data compressed between frames.
【請求項4】 前記入力の圧縮データは、JPEGフォ
ーマットまたはDVフォーマットのフレーム内符号化に
より圧縮されたフォーマットであることを特徴とする請
求項1または2に記載の映像信号符号化装置。
4. The video signal encoding apparatus according to claim 1, wherein said input compressed data is in a format compressed by intra-frame encoding of JPEG format or DV format.
【請求項5】 出力される前記圧縮データは、MPEG
フォーマット、H.263フォーマット、またはH.2
61フォーマットによりフレーム内符号化とフレーム間
予測符号化とを組み合わせたハイブリッド符号化により
圧縮されたフォーマットであることを特徴とする請求項
1、2または3に記載の映像信号符号化装置。
5. The output compressed data is MPEG data.
Format, H. H.263 format, or H.263 format. 2
The video signal encoding device according to claim 1, wherein the video signal encoding device is a format compressed by hybrid encoding combining intra-frame encoding and inter-frame predictive encoding in a 61 format.
【請求項6】 前記リサイズIDCT手段は、IDCT
演算の次数を変えて周波数領域で補間または間引きを行
い、画像サイズと画像フォーマットを変換してブロック
データを生成することを特徴とする請求項1、2または
3に記載の映像信号符号化装置。
6. The resize IDCT means includes an IDCT unit.
4. The video signal encoding apparatus according to claim 1, wherein interpolation or thinning is performed in the frequency domain by changing the order of the operation, and block data is generated by converting an image size and an image format.
【請求項7】 前記リサイズIDCT手段は、一個のフ
ィールドのデータのみをIDCT演算によって生成する
ことを特徴とする請求項1,2,3または6に記載の映
像信号符号化装置。
7. The video signal encoding apparatus according to claim 1, wherein said resize IDCT means generates only data of one field by an IDCT operation.
【請求項8】 前記DCT係数変換手段は、1または複
数の前記第1のDCT係数、或いは1または複数の前記
第1の差分DCT係数を信号成分に復元せずに、データ
変換を行い、1つの前記第2のDCT係数または1つの
前記第2の差分DCT係数を生成することを特徴とする
請求項2または3に記載の映像信号符号化装置。
8. The DCT coefficient conversion means performs data conversion without restoring one or a plurality of the first DCT coefficients or one or a plurality of the first differential DCT coefficients to a signal component. The video signal encoding apparatus according to claim 2, wherein one of the second DCT coefficients or one of the second differential DCT coefficients is generated.
【請求項9】 前記動き判別手段は、DCTブロック単
位で動き方向の検出を行うかどうかを判別し、この判別
結果に基づいてマクロブロックの動き方向の検出を行う
かどうかを判別する請求項2に記載の映像信号符号化装
置。
9. The motion judging means judges whether or not to detect a motion direction for each DCT block, and judges whether to detect a motion direction of a macroblock based on a result of the judgment. 2. The video signal encoding device according to 1.
【請求項10】 前記DCTモード判別手段は、前記第
1のDCT係数のモードに応じて動き方向の検出を行う
かどうかを判別することを特徴とする請求項3に記載の
映像信号符号化装置。
10. The video signal encoding apparatus according to claim 3, wherein said DCT mode determining means determines whether to detect a motion direction according to a mode of said first DCT coefficient. .
【請求項11】 前記動き方向検出手段は、前記ブロッ
クデータの動き方向を1または複数の方向で表すことを
特徴とする請求項1、2または3に記載の映像信号符号
化装置。
11. The video signal encoding apparatus according to claim 1, wherein said motion direction detecting means indicates a motion direction of said block data by one or a plurality of directions.
【請求項12】 前記動き方向検出手段は、複数の前記
ブロックデータの動き方向からマクロブロックの動き方
向を求め、その方向を1または複数の方向で表すことを
特徴とする請求項1、2,3または11に記載の映像信
号符号化装置。
12. The apparatus according to claim 1, wherein said motion direction detecting means obtains a motion direction of a macroblock from a plurality of motion directions of said block data, and indicates the direction by one or more directions. 12. The video signal encoding device according to 3 or 11.
【請求項13】 前記エンコード手段は、前記動き方向
検出手段で検出された1または複数の動き方向の中心か
らの動きベクトルの探索を行うことを特徴とする請求項
1、2または3に記載の映像信号符号化装置。
13. The apparatus according to claim 1, wherein said encoding means searches for a motion vector from a center of one or a plurality of movement directions detected by said movement direction detection means. Video signal encoding device.
JP25323199A 1999-09-07 1999-09-07 Video signal coder Pending JP2001078199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25323199A JP2001078199A (en) 1999-09-07 1999-09-07 Video signal coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25323199A JP2001078199A (en) 1999-09-07 1999-09-07 Video signal coder

Publications (1)

Publication Number Publication Date
JP2001078199A true JP2001078199A (en) 2001-03-23

Family

ID=17248403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25323199A Pending JP2001078199A (en) 1999-09-07 1999-09-07 Video signal coder

Country Status (1)

Country Link
JP (1) JP2001078199A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003052054A (en) * 2001-08-07 2003-02-21 Sony Corp Picture processing apparatus and method thereof recording medium and program
JP2009224996A (en) * 2008-03-14 2009-10-01 Nec Corp Compressed image recompression device, compressed image recompression method and program
US7848416B2 (en) 2005-01-18 2010-12-07 Canon Kabushiki Kaisha Video signal encoding apparatus and video data encoding method
KR101053629B1 (en) 2009-06-09 2011-08-03 엘지전자 주식회사 Image information compression / decompression method and terminal for same
US8914462B2 (en) 2009-04-14 2014-12-16 Lg Electronics Inc. Terminal and controlling method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003052054A (en) * 2001-08-07 2003-02-21 Sony Corp Picture processing apparatus and method thereof recording medium and program
US7848416B2 (en) 2005-01-18 2010-12-07 Canon Kabushiki Kaisha Video signal encoding apparatus and video data encoding method
JP2009224996A (en) * 2008-03-14 2009-10-01 Nec Corp Compressed image recompression device, compressed image recompression method and program
US8914462B2 (en) 2009-04-14 2014-12-16 Lg Electronics Inc. Terminal and controlling method thereof
US9413820B2 (en) 2009-04-14 2016-08-09 Lg Electronics Inc. Terminal and controlling method thereof
US9456028B2 (en) 2009-04-14 2016-09-27 Lg Electronics Inc. Terminal and controlling method thereof
US9753629B2 (en) 2009-04-14 2017-09-05 Lg Electronics Inc. Terminal and controlling method thereof
US9792028B2 (en) 2009-04-14 2017-10-17 Lg Electronics Inc. Terminal and controlling method thereof
KR101053629B1 (en) 2009-06-09 2011-08-03 엘지전자 주식회사 Image information compression / decompression method and terminal for same

Similar Documents

Publication Publication Date Title
JP3263960B2 (en) Motion vector encoder and decoder
JP4319352B2 (en) Scaling compressed image
JPH1175186A (en) Scaled forward and backward discrete cosine transform and video compression and expansion system using the conversion
JP2624087B2 (en) Video signal decoding method
JP4226172B2 (en) Video compression encoding apparatus and decoding apparatus using adaptive conversion method and method thereof
KR20000069864A (en) Method for converting digital signal and apparatus for converting digital signal
MXPA06002494A (en) Conditional lapped transform.
JPH1155672A (en) Dynamic image coder, dynamic image decoder, dynamic image coding method and dynamic image decoding method
JP3874179B2 (en) Encoded video converter
KR20000077135A (en) Apparatus and method for deriving an enhanced decoded reduced-resolution video signal from a coded high-definition video signal
CN113068025A (en) Decoding prediction method, device and computer storage medium
US6545727B1 (en) Method for recognizing a progressive or an interlaced content in a video sequence
WO2000005899A1 (en) Image encoding system
JP3105906B2 (en) Image processing device
JP2001078199A (en) Video signal coder
CN112672164B (en) Video compression system and method, and video decompression system and method
JP4224662B2 (en) Image encoding apparatus and method, image decoding apparatus and method, and image processing apparatus
JPH07152779A (en) Processing method for detecting moving picture index and moving picture processor having moving picture index detection processing function
JP4605212B2 (en) Digital signal conversion method and digital signal conversion apparatus
KR960013234B1 (en) Koga - 3 stop motion vector detecting method for movement detecting apparatus
JPH0622301A (en) Picture corder
KR19980066971A (en) Image Coding Device with Motion Movement Detection
JPH11146403A (en) Device and method for video signal coding and video signal coding program storage medium
JP4513856B2 (en) Digital signal conversion method and digital signal conversion apparatus
JPH0974567A (en) Moving image encoding/decoding method and device therefor