JP3159591B2 - Image processing method and apparatus, and computer system having image processing function - Google Patents

Image processing method and apparatus, and computer system having image processing function

Info

Publication number
JP3159591B2
JP3159591B2 JP1815494A JP1815494A JP3159591B2 JP 3159591 B2 JP3159591 B2 JP 3159591B2 JP 1815494 A JP1815494 A JP 1815494A JP 1815494 A JP1815494 A JP 1815494A JP 3159591 B2 JP3159591 B2 JP 3159591B2
Authority
JP
Japan
Prior art keywords
command
image
frame
compression
output
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.)
Expired - Fee Related
Application number
JP1815494A
Other languages
Japanese (ja)
Other versions
JPH07225577A (en
Inventor
雅裕 白石
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1815494A priority Critical patent/JP3159591B2/en
Publication of JPH07225577A publication Critical patent/JPH07225577A/en
Application granted granted Critical
Publication of JP3159591B2 publication Critical patent/JP3159591B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理方式に係り、特
に汎用コンピュータ等で処理可能な動画像の圧縮及び伸
長処理に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing system, and more particularly to a compression and decompression process of a moving image which can be processed by a general-purpose computer or the like.

【0002】[0002]

【従来の技術】静止画像と動画像を、マルチウインドウ
やZバッファなどによって、同一画面上に表示すること
は周知である。この場合の動画像は、VTRなどからの
イメージデータを、フレームメモリの指定された領域に
取り込むことで表示される。
2. Description of the Related Art It is well known that a still image and a moving image are displayed on the same screen by using a multi-window or a Z-buffer. The moving image in this case is displayed by taking image data from a VTR or the like into a designated area of the frame memory.

【0003】一方、取り込んだ動画像を圧縮して蓄積し
たり、加工を加えて再生するなどのニーズがあるが、圧
縮/伸長には高速の処理が必要となる。たとえば、通常
の動画像は30コマ/秒で、1画面に可能な最大処理期
間は約33msである。この間に圧縮または伸長処理を
含む入出力を行うためには、高速の圧縮/伸長プロセッ
サとそれを制御する専用のプロセッサが必要となる。
[0003] On the other hand, there are needs such as compressing and storing captured moving images and reproducing them with some processing, but high-speed processing is required for compression / decompression. For example, a normal moving image has a frame rate of 30 frames / sec, and the maximum processing period possible for one screen is about 33 ms. In order to perform input and output including compression or decompression processing during this time, a high-speed compression / decompression processor and a dedicated processor for controlling the processor are required.

【0004】最近、動画像の圧縮/伸長をJPEGの仕
様に則って、30コマ/秒で高速処理するプロセッサが
実用化されている(画像圧縮 プロセッサ データブッ
ク(第三版)、1191年12月、Kubota C−Cube IN
C.)。図13は、上記データブックに記載のビデオシス
テムの構成を示したものである。
Recently, a processor has been put to practical use that performs high-speed processing at 30 frames / second in accordance with the JPEG specification for compression / expansion of moving images (Image Compression Processor Data Book (Third Edition), December 1191) , Kubota C-Cube IN
C.). FIG. 13 shows the configuration of the video system described in the data book.

【0005】圧縮の場合は、NTSC入力装置1007
にビデオが入力されると、タイミング発生器1009が
フレームバッファ(FIFO)1006へのライトタイ
ミングを発生し、デジタル変換されたビデオデータが順
次バッファ1006に格納される。この時、画像の垂直
同期期間をステータスレジスタ1011に書き込む。
In the case of compression, the NTSC input device 1007
, A timing generator 1009 generates write timing for a frame buffer (FIFO) 1006, and digitally converted video data is sequentially stored in the buffer 1006. At this time, the vertical synchronization period of the image is written in the status register 1011.

【0006】CPU1001は、常にステータスレジス
タ1011をリードし、垂直同期期間であればCL55
0を圧縮起動する。CL550はバッファ1006の画
像を順次圧縮して主メモリ1002またはHD1003
へ転送し、1フレームが終了するとレジスタ1011に
終了報告を行う。CPU1001は、この終了報告と続
く垂直同期期間をレジスタ1011からリードしたと
き、次ぎの圧縮のためにCL550を起動する。
The CPU 1001 always reads the status register 1011.
0 starts compression. The CL 550 sequentially compresses the image of the buffer 1006 and compresses the image in the main memory 1002 or the HD 1003.
When one frame is completed, the completion report is made to the register 1011. When the CPU 1001 reads from the register 1011 the vertical synchronization period following this end report, it starts the CL 550 for the next compression.

【0007】もし、圧縮終了の報告前に垂直同期期間を
リードした場合は、現圧縮処理が次フレーム入力前に終
了していなかったと判断し、直ちに現圧縮の中止と次フ
レームの圧縮開始をCL550へ指示する。このように
CPU1001は、常時ステータスレジスタ1011を
監視している。
If the vertical synchronization period is read before reporting the end of compression, it is determined that the current compression processing has not been completed before the input of the next frame, and the stop of the current compression and the start of compression of the next frame are immediately performed at CL550. To In this way, the CPU 1001 constantly monitors the status register 1011.

【0008】一方、伸長の場合は、NTSC出力装置1
008が生成したタイミングを、タイミング発生器10
09を介してバッファ1006のリードタイミングと
し、また、垂直同期期間をステータスレジスタ1011
に書き込む。CPU1001は、レジスタ1011をリ
ードし、垂直同期期間であればCL550を伸長起動す
る。CL550は、圧縮データを読出し、順次伸長して
バッファ1006へ書き込み、1フレームが終了すると
ステータスレジスタ1011に終了報告する。CPU1
001は、圧縮の場合と同様に、常時ステータスレジス
タ1011を監視している。
On the other hand, in the case of expansion, the NTSC output device 1
008 is generated by the timing generator 10
09, the read timing of the buffer 1006 is set, and the vertical synchronization period is set in the status register 1011.
Write to. The CPU 1001 reads the register 1011 and decompresses and starts the CL 550 during the vertical synchronization period. The CL 550 reads out the compressed data, sequentially decompresses it, writes it in the buffer 1006, and reports completion to the status register 1011 when one frame is completed. CPU1
001 always monitors the status register 1011 as in the case of compression.

【0009】[0009]

【発明が解決しようとする課題】上記した圧縮/伸長処
理のビデオシステムを、グラフィック機能をもつ汎用の
コンピュータシステム、たとえばワークステーション
(WS)やパソコンなどにオプション接続して、動画像
の画像圧縮/伸長に利用するためには、専用のバス接続
機能の外に、入力された動画像または伸長された動画像
を次々と記憶する専用フレームメモリと、それをモニタ
する専用のCRTが必要になる。
The above-mentioned video system for compression / expansion processing is optionally connected to a general-purpose computer system having a graphic function, for example, a workstation (WS) or a personal computer to compress / compress moving images. In order to use it for decompression, in addition to a dedicated bus connection function, a dedicated frame memory for storing input moving images or decompressed moving images one after another and a dedicated CRT for monitoring the same are required.

【0010】このため、画像処理部の構成が冗長化し
て、汎用コンピュータのダウンサイジングに反し、コス
トも上昇するという問題がある。
For this reason, there is a problem that the configuration of the image processing unit is made redundant, and the cost is increased contrary to the downsizing of the general-purpose computer.

【0011】とりわけ、高速の圧縮/伸長プロセッサ
を、汎用コンピュータのCPUによって直接実行制御し
ようとすると、上記したようにCPUはその時間管理な
ど実行状況を常時監視する必要がある。このため、CP
Uの負荷が増大して、他の汎用機能の処理が殆ど実行で
きなくなる。一方、他装置との通信など汎用システムに
欠かせない優先処理を実行すると、圧縮/伸長処理に中
断ないし遅れが生じ、動画像に必要なコマ数や同期が維
持できないなど、画像品質を低下させるという問題があ
る。
In particular, if the high-speed compression / decompression processor is to be directly controlled by the CPU of a general-purpose computer, it is necessary for the CPU to constantly monitor the execution status such as time management as described above. For this reason, CP
The load on U increases, and processing of other general-purpose functions can hardly be performed. On the other hand, when priority processing indispensable to a general-purpose system such as communication with other devices is executed, compression or decompression processing is interrupted or delayed, and image quality deteriorates, such as the number of frames required for moving images and synchronization cannot be maintained. There is a problem.

【0012】本発明の目的は、CPUの負担を軽減する
と共に、動画像の圧縮/伸長処理を所定のタイミング通
りに実行できる高品質の画像処理方法と装置を提供する
ことにある。
An object of the present invention is to provide a high-quality image processing method and apparatus capable of reducing the load on a CPU and executing a moving image compression / decompression process at a predetermined timing.

【0013】本発明の他の目的は、静止画像の更新描画
と動画像の圧縮/伸長を並行処理して、合成動画像を簡
易に生成できる画像処理方法と装置を提供することにあ
る。
It is another object of the present invention to provide an image processing method and apparatus capable of easily generating a combined moving image by concurrently performing update drawing of a still image and compression / expansion of a moving image.

【0014】本発明のさらに他の目的は、静止画像用の
フレームメモリやCRTを動画像の処理に兼用してサイ
ズやコストの増大を抑制し且つ、圧縮/伸長機能の処理
負担を軽減してCPUの汎用機能との両立を可能にした
コンピュータシステムを提供することにある。
Still another object of the present invention is to use a frame memory or a CRT for a still image for processing a moving image, thereby suppressing an increase in size and cost, and reducing a processing load of a compression / decompression function. It is an object of the present invention to provide a computer system which is compatible with a general-purpose function of a CPU.

【0015】[0015]

【課題を解決するための手段】上記した本発明の目的
は、単位時間当りに所定こま(以下、フレーム)数の画
像を連続してなる動画像を圧縮または伸長する画像処理
方法において、前記圧縮または伸長の起動を指示し、前
記圧縮または伸長の処理終了を確認する第1のプロセス
と、前記起動の指示を受け付けて、動画像の入力と圧縮
または伸長と出力を行う実行手段を、前記フレーム毎に
出力される垂直同期信号に応じて制御する第2のプロセ
スと、に分離して処理することにより達成される。
An object of the present invention is to provide an image processing method for compressing or decompressing a moving image consisting of a predetermined number of frames (hereinafter referred to as frames) per unit time. Or a first process for instructing the start of decompression and confirming the end of the compression or decompression processing, and executing means for receiving the start instruction and inputting, compressing or decompressing and outputting a moving image, And a second process for controlling according to a vertical synchronizing signal output every time.

【0016】また、前記第1のプロセスを処理するCP
Uと、前記第2のプロセスを処理するコマンド制御手段
を備えることにより達成される。
Also, a CP for processing the first process is provided.
U and command control means for processing the second process.

【0017】さらに、前記コマンド制御手段は、前記フ
レーム毎に動画像の入力と圧縮または伸長と出力を指示
する複数のコマンドと、その先頭に配置され後続のコマ
ンドの指示を前記フレーム毎に出力される垂直同期信号
を待って可能にする垂直同期使用コマンドをnフレーム
分(nは1以上の整数)、処理順に連ねたコマンド列を
CPUから与えられ、前記垂直同期信号が検出される度
に前記コマンド列の順に、前記複数のコマンドの各々を
対応する実行手段に転送して処理させると共に、前記コ
マンド列にある次ぎの同期信号使用コマンドによって以
後のコマンドの処理を待ち状態にすることにより達成さ
れる。
Further, the command control means outputs, for each frame, a plurality of commands for instructing input, compression or decompression, and output of a moving image for each frame, and instructions for subsequent commands arranged at the beginning of the plurality of commands. A command sequence in which a vertical synchronization use command for enabling n frames (where n is an integer of 1 or more), which is enabled after waiting for a vertical synchronization signal, is provided from the CPU, and every time the vertical synchronization signal is detected, This is achieved by transferring each of the plurality of commands to the corresponding execution means in the order of the command sequence and causing the corresponding execution means to process the commands, and by putting the subsequent command processing in a waiting state by the next synchronous signal using command in the command sequence. You.

【0018】さらに、前記CPUは、前記静止画像の変
更の指示を、前記コマンド列の任意の位置に変更コマン
ドとして付加することにより達成される。
Further, the CPU is achieved by adding an instruction for changing the still image as a change command to an arbitrary position in the command sequence.

【0019】さらに、前記CPUは、前記静止画像の変
更要求の有無を、前記圧縮/伸長処理の前及び処理中に
確認し、変更要求が有れば実行手段(画像描画プロセッ
サ)に指示を与えることにより達成される。
Further, the CPU confirms whether or not there is a request for changing the still image before and during the compression / expansion processing, and gives an instruction to the execution means (image drawing processor) if there is a change request. This is achieved by:

【0020】[0020]

【作用】本発明によれば、CPUによる圧縮/伸長処理
のプロセスには、圧縮/伸長処理の実行状況の管理が含
まれないので、CPUの負担を大幅に軽減できる。一
方、圧縮/伸長の実行管理を行うコマンド制御手段は、
CPUから事前に与えられるコマンド列を先入れ先出し
するFIFOなどにより簡易に構成でき且つ、フレーム
毎の垂直同期信号に同期した、適正なタイミングで高品
質に動画像の圧縮/伸長を実行する。
According to the present invention, the compression / decompression processing by the CPU does not include management of the execution status of the compression / decompression processing, so that the load on the CPU can be greatly reduced. On the other hand, the command control means for managing the execution of compression / decompression includes:
A command sequence given in advance by the CPU can be easily configured by a FIFO that first-in first-out, and the like, and high-quality moving image compression / decompression is executed at an appropriate timing synchronized with a vertical synchronization signal for each frame.

【0021】さらに、動画像の入出力とモニタを、静止
画像と共用のフレームメモリにより行うので、装置構成
の肥大化を抑制すると共に、圧縮/伸長処理と並行して
静止画像を任意に変更し、多種多様な合成動画像を簡単
に作成することができる。
Further, since input / output and monitoring of the moving image are performed by the frame memory shared with the still image, the enlargement of the apparatus configuration is suppressed, and the still image is arbitrarily changed in parallel with the compression / decompression processing. Thus, a wide variety of combined moving images can be easily created.

【0022】[0022]

【実施例】以下、本発明の一実施例を図面を参照して詳
細に説明する。なお、各図に亘って同一の要素には同一
の符号を付している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. The same elements are denoted by the same reference symbols throughout the drawings.

【0023】図1は、本実施例の画像処理装置のハード
ウェアの構成を示し、汎用のコンピュータシステム、た
とえばワークステーションやパソコンなどのグラフィッ
ク機能を利用して実現される。
FIG. 1 shows a hardware configuration of the image processing apparatus according to the present embodiment, which is realized by using a graphic function of a general-purpose computer system, for example, a workstation or a personal computer.

【0024】画像処理装置は、CPU1,主メモリ2、
バス制御部4、画像の圧縮伸長を行う圧縮伸長プロセッ
サ5、画像の入出力を行う画像入出力部6、描画処理を
実行する描画プロセッサ7、画像データを格納するフレ
ームメモリ8及び画像を表示するCRT9から構成され
ている。本例で、圧縮伸長プロセッサ5はJPEGプロ
セッサで、画像入出力部6はNTSCビデオ入出力部で
構成されている。
The image processing apparatus comprises a CPU 1, a main memory 2,
A bus control unit 4, a compression / decompression processor 5 for compressing / decompressing images, an image input / output unit 6 for inputting / outputting images, a drawing processor 7 for executing drawing processing, a frame memory 8 for storing image data, and displaying images. It comprises a CRT 9. In this example, the compression / decompression processor 5 is a JPEG processor, and the image input / output unit 6 is an NTSC video input / output unit.

【0025】CPU1と主メモリ2及びバス制御部4と
は、アドレス線31とデータ線32を含むシステムバス
3で接続され、バス制御部4とJPEGプロセッサ5、
NTSCビデオ入出力部6及び描画プロセッサ7は、ア
ドレス線44、データ線45で接続される。
The CPU 1, the main memory 2, and the bus control unit 4 are connected by a system bus 3 including an address line 31 and a data line 32. The bus control unit 4, the JPEG processor 5,
The NTSC video input / output unit 6 and the drawing processor 7 are connected by an address line 44 and a data line 45.

【0026】NTSCビデオ入出力部6と描画プロセッ
サ7はビデオデータ信号線64で、JPEGプロセッサ
5と描画プロセッサ7はフレームメモリデータ信号線5
3で、描画プロセッサ7とフレームメモリ8はパラレル
データ信号線75及びシリアルデータ信号線76で、バ
ス制御部4とJPEGプロセッサ5は圧縮データ信号線
52で、それぞれ接続されている。
The NTSC video input / output unit 6 and the drawing processor 7 are connected to the video data signal line 64, and the JPEG processor 5 and the drawing processor 7 are connected to the frame memory data signal line 5.
3, the drawing processor 7 and the frame memory 8 are connected by a parallel data signal line 75 and a serial data signal line 76, and the bus control unit 4 and the JPEG processor 5 are connected by a compressed data signal line 52, respectively.

【0027】さらに、JPEGプロセッサ5とCPU1
は終了割込み信号信号線51で、NTSCビデオ入出力
部6とバス制御部4は垂直同期信号10の信号線で、そ
れぞれ接続されている。
Further, the JPEG processor 5 and the CPU 1
Denotes an end interrupt signal signal line 51, and the NTSC video input / output unit 6 and the bus control unit 4 are connected by a signal line of the vertical synchronizing signal 10.

【0028】バス制御部4は、システムバス3に接続す
るためのバス接続部41と、CPU1からのコマンド列
を蓄えるバッファ421、蓄えられたコマンドを先入れ
先出しに制御するデータ出力制御部422、コマンドの
出力タイミングを与えるタイミング信号部423からな
るFIFO42と、データ出力停止制御部43を備えて
いる。このFIFO42と制御部43によって、CPU
に代わって動画像を実行制御するコマンド制御手段40
を構成している。
The bus control unit 4 includes a bus connection unit 41 for connecting to the system bus 3, a buffer 421 for storing a command sequence from the CPU 1, a data output control unit 422 for controlling the stored commands on a first-in first-out basis, A FIFO 42 comprising a timing signal section 423 for giving output timing and a data output stop control section 43 are provided. By the FIFO 42 and the control unit 43, the CPU
Control means 40 for controlling execution of a moving image in place of
Is composed.

【0029】JPEGプロセッサ5は、FIFO42か
らのコマンドに従い、フレームメモリ8から転送される
ビデオイメージデータ(動画像)を圧縮し、圧縮データ
をバス接続部41を介して主メモリ2へ転送する。一
方、主メモリ2に記憶されたビデオイメージ圧縮データ
(圧縮動画像)を伸長し、元のビデオイメージデータに
してフレームメモリ8へ格納する。
The JPEG processor 5 compresses the video image data (moving image) transferred from the frame memory 8 according to the command from the FIFO 42 and transfers the compressed data to the main memory 2 via the bus connection unit 41. On the other hand, the compressed video image data (compressed moving image) stored in the main memory 2 is expanded and stored in the frame memory 8 as original video image data.

【0030】主メモリ2に記憶された圧縮データはCP
U1によって、図示していない補助記憶装置に格納した
り、通信手段を介して他装置に伝送したり、あるいは圧
縮動画像に対する所定の加工処理などが可能になる。
The compressed data stored in the main memory 2 is CP
U1 enables storage in an auxiliary storage device (not shown), transmission to another device via communication means, or predetermined processing of a compressed moving image.

【0031】NTSCビデオ入出力部6は、入力される
NTSCビデオ入力信号65から垂直同期信号10を検
出して出力したり、1/30秒で1フレームの垂直同期
信号10を出力する垂直同期信号出力手段61と、NT
SCビデオ信号をA/D変換してデジタルのビデオイメ
ージデータ64にするA/D変換器62、フレームメモ
リ8からのビデオイメージデータをD/A変換し、アナ
ログのNTSCビデオ信号にして出力するD/A変換器
63を備える。
The NTSC video input / output unit 6 detects and outputs the vertical synchronizing signal 10 from the input NTSC video input signal 65, or outputs the vertical synchronizing signal 10 of one frame in 1/30 seconds. Output means 61, NT
A / D converter 62 which A / D converts an SC video signal into digital video image data 64, D / A converts video image data from frame memory 8 and outputs an analog NTSC video signal / A converter 63 is provided.

【0032】描画プロセッサ7は、CPU1からのコマ
ンドをFIFO42を経由して受け取り、フレームメモ
リ8に文字や図形を描画する描画部71と、JPEGプ
ロセッサ5とフレームメモリ8の間でデータのやり取り
を処理するフレームメモリデータ転送部72、NTSC
ビデオ入出力部5とフレームメモリ8の間でデータをや
り取りする画像データ入出力部73、画像データ入出力
部73とCRT9とフレームメモリ8との入出力を制御
する入出力制御部74を備える。
The drawing processor 7 receives a command from the CPU 1 via the FIFO 42 and processes data exchange between the JPEG processor 5 and the frame memory 8 with the drawing unit 71 for drawing characters and figures in the frame memory 8. Frame memory data transfer unit 72, NTSC
An image data input / output unit 73 for exchanging data between the video input / output unit 5 and the frame memory 8, and an input / output control unit 74 for controlling input / output between the image data input / output unit 73, the CRT 9, and the frame memory 8 are provided.

【0033】次に、上記した画像処理装置の動作につい
て、NTSCビデオ画像を圧縮又は伸長しながらそのモ
ニタリングをCRT9で行い、これと並行して文字や図
形の描画処理を行う場合を例に説明する。
Next, the operation of the above-described image processing apparatus will be described by taking as an example a case where an NTSC video image is monitored while being compressed or decompressed by a CRT 9 and a drawing process of characters and graphics is performed in parallel with the monitoring. .

【0034】図2は、本実施例の画像処理装置における
CRT9の画面の一例と、その時のフレームメモリ8の
格納状態を説明する模式図である。画面には、図形の表
示ウインドウ91と、文字の表示ウインドウ92と、ビ
デオ画像の圧縮又は伸長を行う際のモニタリングウイン
ドウ93を示している。
FIG. 2 is a schematic diagram for explaining an example of the screen of the CRT 9 in the image processing apparatus of the present embodiment and the storage state of the frame memory 8 at that time. The screen shows a graphic display window 91, a character display window 92, and a monitoring window 93 for compressing or expanding a video image.

【0035】フレームメモリ8には、図形イメージエリ
ア81、文字イメージエリア82及びビデオイメージエ
リアの表83と裏84が設けられている。CPU1から
のコマンドに従って、描画プロセッサ7の描画部71か
ら発生された図形及び文字のイメージデータは、それぞ
れエリア81とエリア82に格納される。
The frame memory 8 is provided with a graphic image area 81, a character image area 82, and a front 83 and a back 84 of a video image area. In accordance with a command from the CPU 1, image data of figures and characters generated from the drawing unit 71 of the drawing processor 7 are stored in an area 81 and an area 82, respectively.

【0036】ビデオイメージエリア(表)83又はビデ
オイメージエリア(裏)84は、描画プロセッサ7の入
出力制御部74によって、CRT9の画面で実際に表示
するエリアが択一される。この場合、CRT9への出力
エリアにあるビデオイメージエリア83を表バッファ、
ワークエリアにあるビデオイメージエリア84を裏バッ
ファと定義する。しかし、表バッファと裏バッファの出
力エリア(又はワークエリア)の関係は固定ではなく、
実際の出力エリアは交互に変更される。
As the video image area (front) 83 or the video image area (back) 84, an area to be actually displayed on the screen of the CRT 9 is selected by the input / output control unit 74 of the drawing processor 7. In this case, the video image area 83 in the output area to the CRT 9 is stored in the table buffer,
The video image area 84 in the work area is defined as a back buffer. However, the relationship between the output area (or work area) of the front buffer and the back buffer is not fixed,
The actual output area is changed alternately.

【0037】図3は、入力ビデオ画像の圧縮処理におけ
るモニタリングを説明する模式図である。同図(a)の
ブロック651に示すように、NTSCビデオ画像65
は1秒間に30フレーム取り込まれ、同図(b)のブロ
ック652に示すように、走査線が1フレームを描き終
わった時点で垂直同期信号10を出力する。
FIG. 3 is a schematic diagram for explaining monitoring in the compression processing of an input video image. As shown in a block 651 of FIG.
Is captured in 30 frames per second, and outputs a vertical synchronizing signal 10 when the scanning line finishes drawing one frame as shown in a block 652 in FIG.

【0038】本実施例では、フレーム1の直後の垂直同
期信号10を検出すると、ブロック653に示すよう
に、入出力制御部74はFIFO42からのコマンドに
より表バッファ83にフレーム(1)を格納する。この
とき、表バッファ83はCRT9の出力エリアとなる。
In this embodiment, when the vertical synchronization signal 10 immediately after the frame 1 is detected, the input / output control unit 74 stores the frame (1) in the table buffer 83 in response to a command from the FIFO 42, as shown in a block 653. . At this time, the table buffer 83 becomes an output area of the CRT 9.

【0039】次に、ブロック654に示すように、フレ
ーム(2)の直後の垂直同期信号を検出すると、表バッ
ファ83のフレーム(1)をJPEGプロセッサ5に転
送して圧縮すると共に、裏バッファ84にフレーム
(2)を格納する。このとき、裏バッファ84がCRT
9の出力エリアとなる。
Next, as shown in a block 654, when a vertical synchronization signal immediately after the frame (2) is detected, the frame (1) in the front buffer 83 is transferred to the JPEG processor 5 and compressed, and the back buffer 84 Is stored in the frame (2). At this time, the back buffer 84
9 output areas.

【0040】続いて、ブロック655に示すように、さ
らに次の垂直同期が入ったときに、圧縮終了した表バッ
ファ83にフレーム(3)を格納し、JPEGプロセッ
サ5で既に格納終了した裏バッファ84のフレーム
(2)を圧縮する。以降これを垂直同期が入る毎に繰返
し行うことで、同図(c)のブロック656に示すタイ
ミングで、ビデオ入力と圧縮データを得ることができ
る。
Subsequently, as shown in a block 655, when the next vertical synchronization is entered, the frame (3) is stored in the compressed table buffer 83, and the back buffer 84 already stored in the JPEG processor 5 has been stored. Frame (2) is compressed. Thereafter, by repeating this every time the vertical synchronization is performed, video input and compressed data can be obtained at the timing indicated by the block 656 in FIG.

【0041】なお、JPEGプロセッサ5は各フレーム
の圧縮終了時に、CPU1に対して終了割込み信号51
を出力する。CPU1は、JPEGプロセッサ5が主メ
モリ2へ圧縮データ52をDMA(ダイレクト・メモリ
・アクセス)方式で転送して終了したことを認知する。
The JPEG processor 5 sends an end interrupt signal 51 to the CPU 1 at the end of compression of each frame.
Is output. The CPU 1 recognizes that the JPEG processor 5 has transferred the compressed data 52 to the main memory 2 by the DMA (Direct Memory Access) method and has finished.

【0042】図4は、NTSCビデオ画像圧縮データ
を、伸長処理する場合のモニタリングを説明する模式図
である。伸長処理の起動に際し、まずCPU1からビデ
オ入出力部6の垂直同期信号出力部61へ、「垂直同期
信号発生」指示を与え、1/30秒の垂直同期信号10
の出力を開始する。これにより、FIFO42からのコ
マンド出力が可能になる。
FIG. 4 is a schematic diagram for explaining monitoring when the NTSC video image compressed data is subjected to decompression processing. When starting the decompression processing, first, the CPU 1 gives a “vertical synchronization signal generation” instruction to the vertical synchronization signal output unit 61 of the video input / output unit 6, and outputs a 1/30 second vertical synchronization signal 10.
Start output of As a result, a command can be output from the FIFO 42.

【0043】図4(a)のブロック661に示すよう
に、主メモリ2にはフレーム単位のNTSCビデオ画像
圧縮データが記憶されている。JPEGプロセッサ5
は、FIFO42からのコマンドによって起動される
と、主メモリ2からDMA方式で圧縮データを読出す。
As shown in block 661 of FIG. 4A, the main memory 2 stores NTSC video image compressed data in frame units. JPEG processor 5
Is started by a command from the FIFO 42, reads compressed data from the main memory 2 by the DMA method.

【0044】同図(b)のブロック662に示すよう
に、JPEGプロセッサ5は圧縮フレーム(1)を伸長
し、フレームメモリ8の表バッファ83に伸長フレーム
(1)を記憶する。このとき、表バッファ83は表示領
域であり、CRT9にはフレーム(1)のビデオ画像が
再現される。
As shown in block 662 of FIG. 7B, the JPEG processor 5 decompresses the compressed frame (1) and stores the decompressed frame (1) in the table buffer 83 of the frame memory 8. At this time, the table buffer 83 is a display area, and the video image of the frame (1) is reproduced on the CRT 9.

【0045】次に、ブロック663に示すように、垂直
同期信号10が入ったときに、FIFO42が次ぎのコ
マンドを出力し、圧縮フレーム(2)を伸長して裏バッ
ファ84に格納し、一方、表バッファ83の伸長フレー
ム(1)を、ビデオ入出力部6に出力する。このタイミ
ングでは、表バッファ83がCRT9の表示領域となっ
ている。
Next, as shown in block 663, when the vertical synchronizing signal 10 is input, the FIFO 42 outputs the next command, decompresses the compressed frame (2) and stores it in the back buffer 84. The decompressed frame (1) of the table buffer 83 is output to the video input / output unit 6. At this timing, the table buffer 83 is a display area of the CRT 9.

【0046】続いて、ブロック664に示すように、さ
らに次の垂直同期10が入ったときに、圧縮フレーム
(3)を伸長し、前タイミングで出力を終了し空きバッ
ファとなっていた表バッファ83に、伸長フレーム
(3)を格納し、前タイミングで伸長終了した裏バッフ
ァ84のフレーム(2)をビデオ入出力部6に出力す
る。以降、垂直同期10が入る毎に繰返し行うことで、
同図(c)のブロック665に示す示すタイミングで、
圧縮データのビデオ出力を得ることができる。
Subsequently, as shown in a block 664, when the next vertical synchronization 10 enters, the compressed frame (3) is decompressed, the output is terminated at the previous timing, and the table buffer 83 which has become an empty buffer is used. Then, the decompressed frame (3) is stored, and the frame (2) of the back buffer 84, which has been decompressed at the previous timing, is output to the video input / output unit 6. Thereafter, by repeating every time the vertical synchronization 10 is entered,
At the timing shown in block 665 of FIG.
A video output of the compressed data can be obtained.

【0047】次ぎに、JPEGプロセッサ5、ビデオ入
出力部6及び描画プロセッサ7の上記した処理を行わせ
るコマンドを、検出された垂直同期信号10によって出
力するFIFO42について説明する。
Next, a description will be given of the FIFO 42 for outputting a command for performing the above-described processing of the JPEG processor 5, the video input / output unit 6, and the drawing processor 7 by the detected vertical synchronizing signal 10.

【0048】図5は、FIFO42と切り換え部43に
よって構成される本実施例のコマンド制御手段40の構
成と、FIFO42に入出力されるデータ構造を示した
ものである。
FIG. 5 shows the configuration of the command control means 40 of the present embodiment composed of the FIFO 42 and the switching unit 43, and the data structure input to and output from the FIFO 42.

【0049】FIFO42内のバッファ421には、垂
直同期信号の入力に同期して処理させたいコマンドをデ
ータ1,2,...とし、その前に”垂直同期信号を待
って以後のデータを出力する”意味のコマンドである
「垂直同期使用」データをつけて格納する。これらのデ
ータはその処理前に、CPU1からn個まで処理順に格
納される。
A command to be processed in synchronization with the input of the vertical synchronizing signal is stored in a buffer 421 in the FIFO 42 as data 1, 2,. . . Before that, the data is stored with "vertical synchronization use" data which is a command meaning "wait for a vertical synchronization signal and output subsequent data". These data are stored in the processing order from the CPU 1 to n pieces of data before the processing.

【0050】バッファ421の出口にあるデータ出力制
御部422は、フリップフロップ(FF)で構成するタ
イミング信号部423のリセット端子Rに、垂直同期信
号10が入力されるとその出力Qが”0”となって、バ
ッファ421のデータはON状態(通り抜け)となる。
When the vertical synchronizing signal 10 is input to the reset terminal R of the timing signal unit 423 composed of a flip-flop (FF), the output Q of the data output control unit 422 at the exit of the buffer 421 becomes "0". As a result, the data in the buffer 421 is turned on (through).

【0051】バッファ421内の「垂直同期使用」デー
タがデータ出力制御部422を通り抜けると、データ出
力停止制御部43はこれを検知して、タイミング信号部
423のの入力端子Dに”1”を与える。これにより、
FFの出力Qが反転して”1”となり、データ出力制御
部422はデータOFF状態(通り抜け不可)となる。
When the “vertical synchronous use” data in the buffer 421 passes through the data output control section 422, the data output stop control section 43 detects this and sets “1” to the input terminal D of the timing signal section 423. give. This allows
The output Q of the FF is inverted to “1”, and the data output control unit 422 enters the data OFF state (cannot pass through).

【0052】この状態で、次ぎの垂直同期信号10がタ
イミング信号部423のリセット端子Rに入力される
と、FFのQ端子は”0”となり、データ出力制御部4
22は再びON状態(通り抜け)になり、次ぎの「垂直
同期使用」データが現れるまで各データが出力制御部4
22を通り抜けて出力され、対応する実行デバイスに転
送され、そのコマンドの処理を可能とする。
In this state, when the next vertical synchronizing signal 10 is input to the reset terminal R of the timing signal section 423, the Q terminal of the FF becomes "0" and the data output control section 4
Reference numeral 22 indicates the ON state (pass-through) again, and each data is output to the output control unit 4 until the next "vertical synchronization use" data appears.
22 and is forwarded to the corresponding execution device to enable processing of that command.

【0053】ビデオ入出力部6よりフレームメモリ8
へ、1フレーム分の画像を正しく転送するには、画像の
先頭を検出することが必要である。本実施例では、この
先頭の検出に代えて垂直同期信号10を使用し、この同
期信号10を検出したときに、1フレーム分の画像をフ
レームメモリ8へ転送している。実際には、CPU1か
ら「垂直同期使用」と続く「ビデオ入力」をHIFO4
2に書き込み、HIFO42は、「垂直同期使用」で出
力を一旦停止し、その直後に検出した垂直同期信号で出
力を再開して「ビデオ入力」を指示する。
The video input / output unit 6 sends the frame memory 8
To correctly transfer an image for one frame, it is necessary to detect the head of the image. In this embodiment, the vertical synchronization signal 10 is used in place of the detection of the head, and when the synchronization signal 10 is detected, an image for one frame is transferred to the frame memory 8. Actually, the “video input” following “use vertical synchronization” is sent from the CPU 1 to the HIFO4.
2 and the HIFO 42 temporarily stops the output with “vertical synchronization use”, resumes the output with the vertical synchronization signal detected immediately thereafter, and instructs “video input”.

【0054】ところで、HIFO42に格納される各デ
ータは、アドレス部100とデータ部101から構成さ
れ、同一アドレスコードをもつ実行デバイスによって受
け渡される。すなわち、FIFO42の出力アドレス線
44及び出力データ線45に接続されるJPEGプロセ
ッサ5、ビデオ入出力部6、描画プロセッサ7の各実行
デバイスと、データ出力停止制御部43は、各々異なる
コードのアドレスデコード部5−1、6−1、7−1及
び43−1垂直バッファ421を具備し、アドレス線4
4に出力されるコードと自分のコードを比較し、同一の
場合にデータ線のデータコードを受け取る。図示は、ア
ドレス”1”で「垂直同期使用」データが、データ出力
停止制御部43に取り込まれる例である。
By the way, each data stored in the HIFO 42 is composed of an address section 100 and a data section 101, and is passed by an execution device having the same address code. That is, each execution device of the JPEG processor 5, the video input / output unit 6, and the drawing processor 7 connected to the output address line 44 and the output data line 45 of the FIFO 42, and the data output stop control unit 43 perform address decoding of different codes. Units 5-1, 6-1 and 7-1, and 43-1.
4 is compared with its own code, and if they are the same, the data code of the data line is received. The figure shows an example in which “vertical synchronization use” data at address “1” is taken into the data output stop control unit 43.

【0055】図6は、動画像の圧縮/伸長処理を静止画
像の描画と並行処理する本実施例の画像処理装置につい
て、その概略の動作を説明するフローチャートで、特に
CPUの処理を基本にして示したものである。
FIG. 6 is a flow chart for explaining the schematic operation of the image processing apparatus of this embodiment which performs the compression / expansion processing of a moving image in parallel with the drawing of a still image. It is shown.

【0056】CPUは、圧縮処理、伸長処理及び他の処
理(計算などの汎用処理)の1を選択する(s10
1)。以下、圧縮処理を選択した場合の動作から説明す
る。
The CPU selects one of compression processing, decompression processing and other processing (general processing such as calculation) (s10).
1). Hereinafter, the operation when the compression process is selected will be described.

【0057】まず、CRTに表示している図形や文字な
どの変更要求の有無を確認し(s103)、有ればその
変更内容を指示する(s104)。
First, it is confirmed whether or not there is a request for changing a graphic or a character displayed on the CRT (s103), and if so, the contents of the change are instructed (s104).

【0058】なお、このフローチャートにおけるCPU
1からの指示とは、コマンドデータをFIFO42に出
力することを意味し、実行制御は後述するようにコマン
ド制御手段40により行われる。もちろん、静止画像の
描画は従来通り直接、CPU1から描画プロセッサ7に
指示して実行してもよい。
The CPU in this flowchart
The instruction from 1 means that the command data is output to the FIFO 42, and the execution control is performed by the command control means 40 as described later. Of course, the drawing of the still image may be performed by directly instructing the drawing processor 7 from the CPU 1 as in the related art.

【0059】CPU1による圧縮処理の制御は、動画像
のnフレーム分の圧縮起動の指示から始まる。まず、n
フレーム分の動画像の最初のフレームを対象とする初回
の圧縮起動か否かをチエックする(s105)。初回で
あれば、「垂直同期使用」と、「フレームバッファへの
ビデオ入力」のコマンドを指示する(s106,s10
7)。次ぎに、「垂直同期使用」の指示、「フレームバ
ッファへのビデオ入力」の指示、「フレームバッファの
ビデオ圧縮」の指示をnフレーム分繰り返す(s110
〜s113)。
The control of the compression processing by the CPU 1 starts with an instruction to start compression for n frames of a moving image. First, n
It is checked whether or not the first compression activation for the first frame of the moving image for the frame is performed (s105). If it is the first time, commands of “use vertical synchronization” and “input video to frame buffer” are instructed (s106, s10).
7). Next, an instruction of "use vertical synchronization", an instruction of "video input to frame buffer", and an instruction of "video compression of frame buffer" are repeated for n frames (s110).
To s113).

【0060】これによって、nフレーム分を纏めた圧縮
起動の指示が終了し、指示順序通りのコマンド列のデー
タがFIFO42のバッファ421に積み込まれる。こ
の後、垂直同期信号の入力に応じて、FIFO42から
フレーム毎に出力されるコマンドに従い、圧縮処理が実
行される。
As a result, the instruction to start compression for n frames is completed, and the data of the command sequence in the order of the instructions is loaded into the buffer 421 of the FIFO 42. Thereafter, in response to the input of the vertical synchronizing signal, the compression processing is executed in accordance with the command output from the FIFO 42 for each frame.

【0061】上記の圧縮起動の指示を終了したCPUの
処理は、静止画像の処理に関するステップs103に戻
り、CPU1からの変更要求に即座に対応できるように
している。さらに、nフレーム分の実際の圧縮処理の終
了確認(s108)を行う、図示の太線のループをnフ
レーム終了まで繰り返す。この間にオペレータからの画
像変更要求が入れば、ステップs104で変更内容を指
示する。
The processing of the CPU that has completed the above-mentioned compression start instruction returns to step s103 relating to the processing of a still image, so that it can immediately respond to a change request from the CPU 1. Furthermore, a bold loop shown in the drawing for confirming the end of the actual compression processing for n frames (s108) is repeated until the end of n frames. If an image change request is received from the operator during this time, the contents of the change are specified in step s104.

【0062】そして、nフレーム分の圧縮終了がs10
8で確認されると、圧縮終了の可否をチエックし(s1
09)、可であれば終了する。このとき、継続して圧縮
する新たなnフレーム分の圧縮要求があれば、その新た
なnフレームについてs110〜s113の圧縮起動を
指示する。これによって、入力ビデオに対する圧縮処理
が中断なく継続される。
Then, the compression end for n frames is s10
If it is confirmed in step 8, it is checked whether or not the compression is completed (s1
09) If the answer is yes, the processing ends. At this time, if there is a compression request for new n frames to be continuously compressed, the compression start of s110 to s113 is instructed for the new n frames. As a result, the compression processing for the input video is continued without interruption.

【0063】ところで、1回の起動単位であるフレーム
数nは、1以上の数が設定可能である。従って、静止画
像変更要求のタイミングが分かっている場合は、そのタ
イミングの直前までのフレーム数をnとし、nフレーム
分の圧縮処理コマンドに続けて静止画像変更コマンド
を、事前にFIFOに積込んでおくことができる。この
後に、前と同じ又は異なる数のnフレームの圧縮処理コ
マンド、さらに静止画像変更コマンドと順次積み込むこ
とで、所望のストーリをもたせた静止画像との合成圧縮
動画像を作成できる。
By the way, the number n of frames, which is a unit of one activation, can be set to one or more. Therefore, when the timing of the still image change request is known, the number of frames up to immediately before the timing is set to n, and a still image change command is loaded in the FIFO in advance after the compression processing command for n frames. I can put it. Thereafter, by sequentially loading the same or a different number of n-frame compression processing commands and still image change commands as before, a composite compressed moving image with a still image having a desired story can be created.

【0064】以上のように、CPU1による圧縮処理の
制御は、コマンド制御手段40に指示を与える圧縮起動
の後は、圧縮処理にたいして実行することがなく、静止
画像の変更要求の確認(これも、事前にFIFOにコマ
ンドを積み込む場合はなくてもよい)と実際の圧縮終了
の確認を定期的に行うのみで、CPUの処理負担は極め
て軽いものとなる。
As described above, the control of the compression processing by the CPU 1 is not executed for the compression processing after the compression is started to give an instruction to the command control means 40, and the confirmation of the change request of the still image (this is also performed) It is not necessary to load the commands in the FIFO in advance) and the actual end of the compression is only periodically checked, and the processing load on the CPU becomes extremely light.

【0065】次ぎに、ステップs101で伸長処理を選
択した場合の動作について説明する。ステップs114
とs115で、圧縮の場合と同様に、静止画像の変更要
求に対処した後に、nフレーム分の圧縮データの最初の
フレームを対象とする初回の伸長起動か否かをチエック
する(s116)。
Next, the operation when the decompression process is selected in step s101 will be described. Step s114
At s115, as in the case of the compression, after responding to the request for changing the still image, it is checked whether or not the first decompression activation is performed for the first frame of the compressed data of n frames (s116).

【0066】初回であれば、「垂直同期信号発生」をビ
デオ入出力部6の垂直同期信号出力手段61に指示す
る。この指示はnフレーム分の起動終了後(s113)
であってもよい。あるいは、「垂直同期信号発生」をコ
マンドとしてFIFO42に格納するコマンド列の先頭
に配置し、起動終了後(s113)にコマンド制御手段
40からビデオ入出力部6に転送するようにしてもよ
い。
If it is the first time, "vertical synchronization signal generation" is instructed to the vertical synchronization signal output means 61 of the video input / output unit 6. This instruction is issued after the start of n frames (s113).
It may be. Alternatively, "vertical synchronization signal generation" may be arranged as a command at the beginning of a command string stored in the FIFO 42, and transferred from the command control means 40 to the video input / output unit 6 after the start-up (s113).

【0067】続いて、「垂直同期使用」の指示、「フレ
ームバッファへの伸長出力」の指示、「フレームバッフ
ァ内データをビデオ出力」の指示をnフレーム分繰り返
す(s120〜s123)。これによって、nフレーム
分を纏めた伸長起動の指示が終了し、指示順序通りのコ
マンド列のデータがFIFO42のバッファ421に積
み込まれる。
Subsequently, the instruction of "use vertical synchronization", the instruction of "expanded output to frame buffer", and the instruction of "output video in frame buffer as video" are repeated for n frames (s120 to s123). As a result, the decompression start instruction for n frames is completed, and the data of the command sequence in the order specified is loaded into the buffer 421 of the FIFO 42.

【0068】垂直同期出力手段61が起動して垂直同期
信号10が発生すると、コマンド制御手段40のFIF
O42は垂直同期信号を検出する度に、1フレーム分の
伸長と出力を行うコマンドを実行手段に出力する。
When the vertical synchronizing output means 61 is activated and the vertical synchronizing signal 10 is generated, the FIFO of the command control means 40
O42 outputs a command for expanding and outputting one frame to the execution means every time the vertical synchronization signal is detected.

【0069】上記の伸長起動を終了したCPUの処理
は、静止画像の処理に関するステップs114に戻り、
さらに、nフレーム分の実際の伸長処理の終了確認(s
118)を行う、図示の太線のループをnフレーム終了
まで繰り返す。この間にオペレータからの画像変更要求
が入れば、ステップs104で変更内容を指示する。伸
長処理の継続要否確認(s119)以降は、圧縮処理の
場合と同様である。
The processing of the CPU that has completed the decompression activation returns to step s114 relating to processing of a still image.
Further, the end confirmation of the actual decompression processing for n frames (s
118) is repeated until the end of n frames. If an image change request is received from the operator during this time, the contents of the change are specified in step s104. After the confirmation of the necessity of the continuation of the decompression process (s119), it is the same as the case of the compression process.

【0070】また、起動処理の単位である処理フレーム
数nを適宜に設定し、複数の起動処理の各々に静止画像
変更コマンドを加えることで、伸長動画像に変更静止画
像を合成し、所望のストーリをもたせた合成動画像を作
成することもできる。この場合は、静止画像変更コマン
ドを起動処理でFIFOに積込み、伸長実行中のステッ
プs114の繰返し処理を省略してもよい。あるいは、
実行中にモニタしながら変更内容をs114で適宜修正
することも可能である。
Further, by appropriately setting the number of processing frames n, which is a unit of the start-up process, and adding a still image change command to each of the plurality of start-up processes, the changed still image is synthesized with the decompressed moving image, and a desired still image is synthesized. It is also possible to create a combined moving image with a story. In this case, the still image change command may be loaded into the FIFO in the start-up process, and the repetition process of step s114 during decompression may be omitted. Or,
It is also possible to appropriately correct the change in S114 while monitoring during execution.

【0071】以上のように、伸長処理の制御において
も、コマンド制御手段40に指示を与える伸長起動の後
は、CPU1が伸長処理にたいして実行することがな
く、静止画像の変更要求の確認と実際の伸長終了の確認
を行うのみで、CPUの処理負担は軽い。
As described above, also in the control of the decompression process, after the decompression activation which gives an instruction to the command control means 40, the CPU 1 does not execute the decompression process, and the confirmation of the request for changing the still image and the actual The processing load on the CPU is light only by confirming the end of decompression.

【0072】図7は、フレームメモリ8の表バッファ8
3と裏バッファを84用いて、図6に示した圧縮処理を
行うフローチャートである。
FIG. 7 shows a table buffer 8 of the frame memory 8.
7 is a flowchart for performing the compression processing shown in FIG. 6 using the third buffer and the back buffer.

【0073】ステップs106,s107で、表バッフ
ァに初回の圧縮起動を指示した後に、現在の処理フレー
ムは奇数番号かを判定する。処理フレーム番号=1を初
期設定してあるので、初回は奇数と判定される。処理フ
レーム番号はフレーム毎の起動処理の度に更新(+1)
される。
In steps s106 and s107, after instructing the table buffer to start compression for the first time, it is determined whether the current processing frame is an odd number. Since the processing frame number = 1 is initially set, the first time is determined to be an odd number. The processing frame number is updated every time the startup processing is performed for each frame (+1)
Is done.

【0074】奇数の場合は、「垂直同期使用」の指示
(s110−1)、「裏バッファへのビデオ入力と表
示」の指示(s111−1)、「表バッファビデオ圧
縮」の指示(s112−1)が、一方、偶数の場合は、
「垂直同期使用」の指示(s110−2)、「表バッフ
ァへのビデオ入力と表示」の指示(s111−2)、
「裏バッファビデオ圧縮」の指示(s112−2)が、
処理フレームがnになるまで繰り返される(s11
3)。なお、バッファへのビデオ入力と表示は、同図
(b)に示すように2のコマンドで与えられる。
In the case of an odd number, an instruction of "use vertical synchronization" (s110-1), an instruction of "video input and display to the back buffer" (s111-1), and an instruction of "front buffer video compression" (s112-) If 1) is an even number,
An instruction of “use vertical synchronization” (s110-2), an instruction of “video input and display to table buffer” (s111-2),
The instruction of “back buffer video compression” (s112-2)
It is repeated until the processing frame reaches n (s11
3). Note that video input and display to the buffer are given by two commands as shown in FIG.

【0075】また、同図(c)に示すように、ステップ
s112でフレーム毎の起動の指示を終了する度に、図
形や文字の変更要求の有無を確認し(s1121)、変
更要求が有ればその変更指示を行い(s1122)、静
止画像変更コマンドを起動処理でFIFOに積込みして
もよい。
As shown in FIG. 13C, every time the activation instruction for each frame is completed in step s112, it is checked whether there is a request for changing figures or characters (s1121). For example, the change instruction may be issued (s1122), and the still image change command may be loaded into the FIFO in the startup processing.

【0076】図8は、圧縮処理の実行を制御するコマン
ド制御手段40の動作を、FIFOバッファ421のコ
マンド格納状態の変化にしたがって示した模式図であ
る。
FIG. 8 is a schematic diagram showing the operation of the command control means 40 for controlling the execution of the compression processing in accordance with a change in the command storage state of the FIFO buffer 421.

【0077】同図(a)は、図7に示した起動処理によ
ってCPU1から積込まれたコマンド列を示したもので
ある。すなわち、図形、文字変更を処理するステップs
104でコマンドc101、c102を、初回の圧縮起
動のs106〜s1017−2で表バッファへのビデオ
入力を指示するコマンドc103〜c105を、表バッ
ファ圧縮と裏バッファ入力を指示するコマンドc106
〜c109を、裏バッファの圧縮と表バッファへの入力
を指示するコマンドc110〜c113を与えている。
FIG. 7A shows a command sequence loaded from the CPU 1 by the activation process shown in FIG. That is, the step s for processing a graphic or character change
104, commands c103 and c105 for instructing video input to the front buffer in s106 to s1017-2 of the first compression start, and commands c106 for instructing front buffer compression and back buffer input.
To c109 are given commands c110 to c113 for instructing compression of the back buffer and input to the front buffer.

【0078】次ぎに、図7(a)の処理フローで、フレ
ーム数n=2とし、再びステップs104で変更要求を
確認して、図形、文字の変更データc114とc115
を与えている。
Next, in the processing flow of FIG. 7A, the number of frames is set to n = 2, the change request is confirmed again at step s104, and the change data c114 and c115 for figures and characters are changed.
Is given.

【0079】しかし、静止画像の変更内容とタイミング
が事前に分かっている場合には、図7(c)の処理フロ
ーで、図形、文字の変更データc114とc115を与
えてもよい。その場合、バッファ423の容量の範囲内
で処理フレーム数nを必要なだけ大きくし、図8(a)
のように必要な変更コマンドを所望のフレーム位置に対
応して、FIFO42に積込んでおくことができる。
However, if the change content and timing of the still image are known in advance, graphic and character change data c114 and c115 may be given in the processing flow of FIG. 7C. In this case, the number n of processing frames is increased as needed within the range of the capacity of the buffer 423, and the number of frames to be processed is increased as shown in FIG.
The necessary change command can be loaded in the FIFO 42 corresponding to a desired frame position.

【0080】図8(b)は、垂直同期信号に無関係に出
力できる「変更図形データ」c101、「変更文字デー
タ」c102が、バッファ421から出力されて描画プ
ロセッサ7に転送され、続く「垂直同期使用」c103
が出力されて、バッファ421からのデータ出力が止ま
って、垂直同期信号10を待っている状態を示す。
FIG. 8B shows “changed graphic data” c 101 and “changed character data” c 102 that can be output independently of the vertical synchronization signal, which are output from the buffer 421 and transferred to the drawing processor 7, followed by “vertical synchronization”. Use "c103
Is output, the data output from the buffer 421 is stopped, and a state of waiting for the vertical synchronization signal 10 is shown.

【0081】同図(c)は、FIFO42が垂直同期信
号10を検出して、「表バッファにビデオ入力」c10
4と、「表バッファ表示」c105が出力され、再び
「垂直同期使用」c106によってバッファ421の出
力が止まっている状態を示す。
FIG. 9C shows that the FIFO 42 detects the vertical synchronizing signal 10 and “video input to the table buffer” c 10
4 and "table buffer display" c105 are output, and the output of the buffer 421 is stopped by "vertical synchronization use" c106 again.

【0082】次ぎの垂直同期信号10を検出すると、
「表バッファ圧縮」c107がJPEGプロセッサ5に
転送され、「裏バッファビデオ入力」c108、「裏バ
ッファ表示」c109が描画プロセッサ7に転送され、
「垂直同期使用」c110で出力が止まる。
When the next vertical synchronizing signal 10 is detected,
The “front buffer compression” c107 is transferred to the JPEG processor 5, the “back buffer video input” c108 and the “back buffer display” c109 are transferred to the drawing processor 7,
The output stops at "vertical synchronization use" c110.

【0083】さらに、次ぎの垂直同期信号10を検出す
ると、「裏バッファ圧縮」c111、「表バッファビデ
オ入力」c112、「表バッファ表示」c113が、各
実行手段に転送されると共に、2度目の「変更図形デー
タ」c114と、「変更文字データ」c115が描画部
72転送され、「垂直同期使用」c116で出力が止ま
る。
Further, when the next vertical synchronizing signal 10 is detected, "back buffer compression" c111, "front buffer video input" c112, and "front buffer display" c113 are transferred to each execution means, and the second time. The “changed graphic data” c114 and the “changed character data” c115 are transferred to the drawing unit 72, and the output stops at “vertical synchronization use” c116.

【0084】上記のように、実際に圧縮を実行させるに
は、表または裏バッファへのビデオ入力が終了していな
いとできないため、「圧縮処理」の直前に[垂直同期使
用]による待ち制御を行い、次の垂直同期信号10の入
力を待って、JPEGプロセッサ5に圧縮開始を指示す
る。
As described above, in order to actually execute compression, video input to the front or back buffer must be completed before waiting control by [use vertical synchronization] immediately before "compression processing" is performed. Then, after inputting the next vertical synchronizing signal 10, the JPEG processor 5 is instructed to start compression.

【0085】なお、垂直同期信号10は一般的に、入力
フレームの画像の有効エリアが終了したはるか後に出力
されるので、垂直同期信号10信号が入力したときには
有効エリアのバッファへの入力は既に終了している。ま
た、JPEGプロセッサ5は、動画像をリアルタイムに
圧縮する処理能力を備えているので、「垂直同期使用」
によって次ぎの同期信号の入力を待っている間に、「表
(裏)バッファ」に格納された1フレーム分の画像圧縮
が可能である。
Since the vertical synchronizing signal 10 is generally output long after the effective area of the image of the input frame ends, when the vertical synchronizing signal 10 is input, the input to the buffer of the effective area has already ended. are doing. Also, the JPEG processor 5 has a processing capability of compressing a moving image in real time,
Thus, while waiting for the input of the next synchronization signal, image compression for one frame stored in the “front (back) buffer” can be performed.

【0086】本実施例によれば、動画像データを格納す
る表と裏のフレームメモリバッファ構成とし、フレーム
毎に交互に「入力」と「圧縮」を繰り返すように制御し
ているので、一方が入力しているときに他方で圧縮で
き、圧縮処理はフレーム毎の垂直同期信号に完全に同期
して実行できる。また、表と裏のバッファは交互に表示
領域とされ、入力と同時に表示されてモニタが可能にな
る。
According to the present embodiment, the front and back frame memory buffers for storing moving image data are used, and the input and the compression are alternately repeated for each frame. The other side can be compressed when input, and the compression processing can be executed completely in synchronization with the vertical synchronization signal for each frame. The front and back buffers are alternately set as display areas, and are displayed at the same time as the input and can be monitored.

【0087】図9は、以上の動作を垂直同期信号(約3
3ms周期)を基準としたタイミングチャートで示した
ものである。順次送られて来るビデオ画像はフレーム単
位で圧縮し、CRT9でモニタリングしながら、同時に
図形や文字を変更し、圧縮データ主メモリ2に格納する
ことができる。
FIG. 9 shows the above operation as a vertical synchronizing signal (about 3
(3 ms period) as a reference. The video images that are sequentially transmitted can be compressed in frame units and monitored and monitored by the CRT 9 while simultaneously changing graphics and characters and storing them in the compressed data main memory 2.

【0088】同図で、t0のフレーム3から圧縮処理を
開始しているのは特別の意味はなく、たれ流しのビデオ
画像を録画するときは、常に途中から圧縮処理がスター
トするために、その一般的な様子を表現したまでであ
る。
[0088] In the figure, rather than a special meaning is to have started a compression process from frame 3 of t 0, when you record a video image of the runaway is, always from the middle to the compression process is started, the Until the general appearance was expressed.

【0089】上記の例で、図形や、文字の変更処理のコ
マンドc101、c102はタイミングt-1で、cコマ
ンド114、c115はタイミングt1で、それぞれC
RT表示のように実行され、フレームメモリ上で動画像
(人と球)との合成動画像を得、次ぎのタイミングで圧
縮処理されている。なお、静止画像の変更処理は、実行
中のステップs103における確認時に割り込んで、C
PU1から直接、描画プロセッサ7に指示を与えるよう
にしてもよい。
[0089] In the above example, shapes and, on the command c101, c102 timing t -1 character changing process, c command 114, c 115 at a timing t 1, respectively C
The process is executed as in the RT display, a combined moving image of a moving image (a person and a sphere) is obtained on the frame memory, and is compressed at the next timing. Note that the still image change processing interrupts at the time of confirmation in
An instruction may be given directly from the PU 1 to the drawing processor 7.

【0090】本実施例による圧縮動画像あるいは圧縮合
成動画像は、主メモリに格納されて必要な処理が可能に
なる。たとえば、補助記憶装置への蓄積や通信装置を介
しての他への伝送はもちろんのこと、圧縮動画像データ
に対する加工処理なども可能になり、バーチャルビジュ
アルな画像の提供などが容易になる。
The compressed moving image or the compressed combined moving image according to the present embodiment is stored in the main memory, and necessary processing can be performed. For example, it is possible to perform processing on compressed moving image data, as well as storage in an auxiliary storage device and transmission to other devices via a communication device, which facilitates provision of a virtual visual image.

【0091】次ぎに、伸長処理の詳細を図10〜図12
を用いて説明する。図10は、フレームメモリ8の表バ
ッファ83と裏バッファを84用いて、図6に示した伸
長処理を行うフローチャートである。
Next, details of the decompression processing will be described with reference to FIGS.
This will be described with reference to FIG. FIG. 10 is a flowchart for performing the decompression processing shown in FIG. 6 using the front buffer 83 and the back buffer 84 of the frame memory 8.

【0092】初回の伸長起動に際し、ステップs117
でビデオ入出力部6へ垂直同期信号の発生を指示した後
に、現在の処理フレームが奇数番号かを判定する。初期
値はフレーム番号=1と設定しているので初回は奇数と
判定され、以後1フレームの起動指示毎に更新(+1)
される。
At the time of the first extension activation, step s117
After instructing the video input / output unit 6 to generate a vertical synchronizing signal, it is determined whether the current processing frame is an odd number. Since the initial value is set to frame number = 1, it is determined that the first time is an odd number, and thereafter, updated every time one frame is activated (+1).
Is done.

【0093】奇数の場合は、「垂直同期使用」の指示
(s120−1)、「表バッファへの伸長出力」の指示
(s121−1)、「裏バッファビデオ出力」の指示
(s122−1)が、一方、偶数の場合は、「垂直同期
使用」の指示(s120−2)、「裏バッファへの伸長
出力」の指示(s121−2)、「表バッファビデオ出
力」の指示(s112−2)が、処理フレームがnにな
るまで繰り返される(s113)。なお、同図(b)に
示すように、ステップs123の直前で「図形、文字の
変更」の確認とその「変更指示」を行うようにしてもよ
い。
In the case of an odd number, an instruction for "use vertical synchronization" (s120-1), an instruction for "expansion output to the front buffer" (s121-1), and an instruction for "back buffer video output" (s122-1) On the other hand, in the case of an even number, an instruction of “use vertical synchronization” (s120-2), an instruction of “expansion output to the back buffer” (s121-2), and an instruction of “front buffer video output” (s112-2) ) Is repeated until the number of processing frames reaches n (s113). Note that, as shown in FIG. 13B, confirmation of “change of figure and character” and “change instruction” thereof may be performed immediately before step s123.

【0094】図11は、伸長処理の実行を制御するコマ
ンド制御手段40の動作を、FIFOバッファ421の
コマンド格納状態の変化にしたがって示した模式図であ
る。
FIG. 11 is a schematic diagram showing the operation of the command control means 40 for controlling the execution of the decompression processing according to the change in the command storage state of the FIFO buffer 421.

【0095】同図(a)は、図10に示した起動処理に
よってCPU1から積込まれたコマンド列を示したもの
である。この状態から、垂直同期に関係のない、「変更
図形データ」c131、「変更文字データ」c132が
描画プロセッサ7に転送され、「垂直同期使用」c13
3の出力でバッファ421の出力が止まり、図11
(b)の状態となる。
FIG. 11A shows a command sequence loaded from the CPU 1 by the activation process shown in FIG. From this state, “changed graphic data” c131 and “changed character data” c132 irrelevant to the vertical synchronization are transferred to the drawing processor 7, and “vertical synchronization used” c13
The output of the buffer 421 stops at the output of FIG.
The state shown in FIG.

【0096】FIFO42が垂直同期信号10を検出す
ると、「表バッファへ伸長出力」c134がJPEGプ
ロセッサ5へ出力される。JPEGプロセッサ5は、主
メモリ2からDMA方式で読出した圧縮画像フレームの
一つを伸長して表バッファ83へ格納する。伸長画像は
CRT9のビデオウインドウ93に表示されるので、モ
ニタが可能になる。
When the FIFO 42 detects the vertical synchronizing signal 10, “extended output to table buffer” c 134 is output to the JPEG processor 5. The JPEG processor 5 decompresses one of the compressed image frames read out from the main memory 2 by the DMA method and stores it in the table buffer 83. Since the expanded image is displayed in the video window 93 of the CRT 9, monitoring becomes possible.

【0097】これと並行して、「裏バッファビデオ出
力」c135が描画プロセッサ7へ出力されるが、この
時点で裏バッファ84にはまだ伸長画像が格納されてな
いので、実際のビデオ出力は得られない。ついで、「垂
直同期使用」c136が出力されると、FIFO42の
データ出力が停止し、図11(c)の状態となる。
In parallel with this, "back buffer video output" c135 is output to the drawing processor 7, but at this point, since the back buffer 84 has not yet stored the decompressed image, the actual video output is obtained. I can't. Next, when "use vertical synchronization" c136 is output, the data output of the FIFO 42 is stopped, and the state shown in FIG.

【0098】次ぎの垂直同期信号10が検出されると、
「裏バッファへ伸長出力」c137、「表バッファビデ
オ出力」c138が各々の実行手段に出力される。ビデ
オ入出力装置6には、このタイミングから実際のビデオ
が得られる。さらに、「変更図形データ」c139と
「変更文字データ」c140が出力し、再び「垂直同期
使用」c141でバッファ421の出力が止まる。
When the next vertical synchronizing signal 10 is detected,
"Expansion output to back buffer" c137 and "front buffer video output" c138 are output to the respective execution means. The video input / output device 6 obtains an actual video from this timing. Further, the "changed graphic data" c139 and the "changed character data" c140 are output, and the output of the buffer 421 is stopped again at the "use vertical synchronization" c141.

【0099】図12は、以上の動作を垂直同期信号を基
準としたタイミングチャートで示したものである。主メ
モリ2からの圧縮画像データはフレーム単位に、JPE
Gプロセッサ5で伸長して表バッファと裏バッファに交
互に出力し、CRT9で表示しながら、一方のバッファ
が伸長データを受信しているときに他方のバッファから
ビデオ入出力装置6へ送信している。また、伸長処理と
並行して任意のタイミングt-1、t1、t3などに図形や
文字を変更し、所望の合成動画像を作成している。同図
でt0の図形、文字の変更は、伸長実行中の直接指示に
よる。
FIG. 12 is a timing chart showing the above operation based on the vertical synchronizing signal. The compressed image data from the main memory 2 is JPE
The data is decompressed by the G processor 5 and output alternately to the front buffer and the back buffer, and displayed on the CRT 9 while the decompressed data is transmitted from one buffer to the video input / output device 6 while the other buffer receives the decompressed data. I have. In addition, in parallel with the decompression processing, graphics and characters are changed at arbitrary timings t −1 , t 1 , t 3, etc., and a desired composite moving image is created. Shapes t 0 in the figure, change of the character, by direct instruction in extended run.

【0100】以上のように、本実施例による動画像の圧
縮/伸長処理は、事前にCPU1からバス制御部4のF
IFO42に格納され、動画像の入力/出力、表示(モ
ニタ)及び圧縮/伸長を指示するコマンド列を、動画像
の垂直同期信号に同期して出力するので、圧縮/伸長処
理におけるCPUの負担を大幅に軽減できる。
As described above, the compression / decompression processing of a moving image according to the present embodiment is performed by the CPU 1 in advance of the F of the bus control unit 4.
Since a command sequence stored in the IFO 42 and instructing input / output, display (monitor), and compression / expansion of a moving image is output in synchronization with a vertical synchronization signal of the moving image, the load on the CPU in the compression / expansion processing is reduced. It can be greatly reduced.

【0101】また、動画像を1フレーム毎入力/出力す
るバッファにフレームメモリの動画像表示領域を利用し
ているので、モニタなどのための特別の構成が不要とな
る。且つ、この動画像表示領域を表と裏のダブルバッフ
ァ構成とし、1フレーム毎に交互に取込んで表示するこ
とで、一方で取込みと表示を行っているときに、取り込
みの済んだ他方で圧縮処理を並行して処理できるので、
垂直同期信号に完全に同期した圧縮/伸長処理が可能に
なる。
Further, since the moving image display area of the frame memory is used as a buffer for inputting / outputting a moving image frame by frame, a special configuration for a monitor or the like is not required. In addition, this moving image display area has a double buffer structure of the front and back sides, and is alternately captured and displayed for each frame, so that when capturing and displaying are performed on one side, compression is performed on the other captured side. Since the processing can be processed in parallel,
Compression / expansion processing that is completely synchronized with the vertical synchronization signal can be performed.

【0102】さらに、動画像と静止画像の処理にフレー
ムメモリを共用して、図形や、文字の変更処理のコマン
ドを、CPU1から事前に上記コマンド列の任意のタイ
ミングに格納したり、あるいはCPU1から任意の時期
に割り込んで、動画像の圧縮/伸長と並列して変更処理
されるように構成しているので、動画像と図形や文字を
合成した合成動画像の圧縮処理が可能になる。また、圧
縮動画像の伸長処理に適宜、図形や文字の変更処理を並
行して、合成動画像を提供することができる。
Further, a frame memory is shared for processing of moving images and still images, and commands for processing for changing figures and characters are stored in advance from the CPU 1 at arbitrary timings in the above-mentioned command sequence, or from the CPU 1. Since the processing is interrupted at an arbitrary time and the change processing is performed in parallel with the compression / expansion of the moving image, the compression processing of the synthesized moving image obtained by synthesizing the moving image with the graphics and characters becomes possible. In addition, a combined moving image can be provided in parallel with a process of changing a figure or a character in parallel with the expanding process of the compressed moving image.

【0103】このようにして、汎用コンピュータによる
動画像の圧縮/伸長処理を簡易に実現できるようになっ
た結果、動画像そのものの加工や静止画像との任意の合
成が可能になり、仮想現実な画面など種々の態様の画面
の提供が容易になる。
As described above, the compression / expansion processing of a moving image by a general-purpose computer can be easily realized. As a result, processing of the moving image itself and arbitrary synthesizing with a still image become possible. It is easy to provide various forms of screens such as screens.

【0104】なお、本実施例では動画像の圧縮/伸長処
理を指示する制御手段として、FIFOをバス制御部に
具備させる構成としているが、独立して設けるなどの変
更は自由である。また、FIFOによらず他のCPUに
よって構成してもよく、さらに汎用コンピュータのCP
Uの処理能力によっては、自身で処理することも可能で
ある。
In this embodiment, the FIFO is provided in the bus control unit as control means for instructing the compression / decompression processing of the moving image. However, the FIFO unit may be provided independently. Further, it may be constituted by another CPU instead of the FIFO.
Depending on the processing capacity of U, it is also possible to perform the processing by itself.

【0105】[0105]

【発明の効果】本発明の画像処理方法によれば、動画像
の圧縮/伸長に必要なコマンド列を事前にCPUから与
えられ、動画像の垂直同期信号に従ってその圧縮/伸長
を制御するので、コンピュータシステムの汎用の機能と
の競合がなく、動画像のタイミングに則した高品質の圧
縮/伸長処理を実現できる効果がある。
According to the image processing method of the present invention, a command sequence required for compression / expansion of a moving image is given from the CPU in advance, and the compression / expansion is controlled according to a vertical synchronization signal of the moving image. There is no conflict with general-purpose functions of the computer system, and there is an effect that high-quality compression / expansion processing in accordance with the timing of moving images can be realized.

【0106】本発明の画像処理方法によれば、圧縮処理
と並行して任意のタイミングで図形や文字などの静止画
像の変更及び動画像との合成ができるので、圧縮した合
成動画像の作成とその伸長が実現できる効果がある。
According to the image processing method of the present invention, a still image such as a figure or a character can be changed and combined with a moving image at an arbitrary timing in parallel with the compression process. There is an effect that the extension can be realized.

【0107】本発明の画像処理方法によれば、伸長処理
と並行して任意のタイミングで静止画像の変更ができる
ので、所望の合成動画像を簡単に作成できる効果があ
る。
According to the image processing method of the present invention, since a still image can be changed at an arbitrary timing in parallel with the decompression process, a desired synthesized moving image can be easily created.

【0108】本発明の画像処理装置によれば、動画像の
圧縮/伸長プロセッサと共に静止画像と兼用してフレー
ムメモリやCRTなどを具備し、動画像の入出力、モニ
タ及び圧縮/伸長処理を可能にしているので、画像処理
装置のサイズやコストの増大を抑制できる効果がある。
According to the image processing apparatus of the present invention, a moving image compression / decompression processor is provided with a frame memory, a CRT, etc., which is also used as a still image, and can perform input / output, monitoring, and compression / decompression processing of a moving image. Therefore, there is an effect that increase in size and cost of the image processing apparatus can be suppressed.

【0109】本発明のコンピュータシステムによれば、
動画像の圧縮/伸長に必要なコマンド列を事前にCPU
から与えられて、動画像の垂直同期信号に従ってその圧
縮/伸長を制御する制御手段を設けているので、CPU
の負担を軽減し汎用のコンピュータでも簡易に動画像の
処理を実現できる効果がある。
According to the computer system of the present invention,
Command sequence necessary for compression / decompression of moving images
Control means for controlling the compression / decompression of the moving image in accordance with the vertical synchronization signal of the moving image.
This is advantageous in that the processing of moving images can be easily realized even with a general-purpose computer by reducing the burden on the user.

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

【図1】本発明の一実施例としての画像処理装置のハー
ドウェア構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a hardware configuration of an image processing apparatus as one embodiment of the present invention.

【図2】画像処理装置が描画する表示画面と、そのフレ
ームメモリ使用状態を示す説明図である。
FIG. 2 is an explanatory diagram illustrating a display screen drawn by an image processing apparatus and a state of using a frame memory.

【図3】ビデオ入力と圧縮データ及び圧縮時のフレーム
メモリの使用方法を示す説明図である。
FIG. 3 is an explanatory diagram showing video input, compressed data, and a method of using a frame memory at the time of compression.

【図4】圧縮データビデオ出力及び伸長時のフレームメ
モリの使用方法示す説明図である。
FIG. 4 is an explanatory view showing a method of using a frame memory at the time of compressed data video output and decompression.

【図5】FIFOを主部とする画像処理制御手段の構成
と、FIFOの動作を示す説明図である。
FIG. 5 is an explanatory diagram showing a configuration of an image processing control unit mainly including a FIFO and an operation of the FIFO.

【図6】本実施例の画像処理装置の動作を説明するフロ
ーチャートである。
FIG. 6 is a flowchart illustrating an operation of the image processing apparatus according to the present exemplary embodiment.

【図7】ビデオ画像の圧縮と静止画像の変更を並行処理
するフローチャートである。
FIG. 7 is a flowchart of parallel processing of compression of a video image and change of a still image.

【図8】ビデオ画像の圧縮と静止画像の変更のために、
FIFOに格納されるコマンド列とその遷移を示す模式
図である。
FIG. 8: For video image compression and still image modification,
FIG. 5 is a schematic diagram showing a command sequence stored in a FIFO and its transition.

【図9】ビデオ画像の圧縮と静止画像の変更の実行状況
を示すタイミングチャートである。
FIG. 9 is a timing chart showing an execution state of compression of a video image and change of a still image.

【図10】圧縮ビデオ画像の伸長と静止画像の変更を並
行処理し、合成動画像を作成するフローチャートであ
る。
FIG. 10 is a flowchart for creating a combined moving image by performing parallel processing of expansion of a compressed video image and change of a still image.

【図11】圧縮ビデオ画像の伸長と静止画像の変更のた
めに、FIFOに格納されるコマンド列とその遷移を示
す模式図である。
FIG. 11 is a schematic diagram showing a command sequence stored in a FIFO and its transition for expanding a compressed video image and changing a still image.

【図12】圧縮ビデオ画像の伸長と静止画像の変更によ
る合成動画像作成の実行状況を示すタイミングチャート
である。
FIG. 12 is a timing chart showing an execution state of creation of a combined moving image by expanding a compressed video image and changing a still image.

【図13】圧縮伸長を専用に行う従来のビデオシステム
の構成図である。
FIG. 13 is a configuration diagram of a conventional video system that performs compression and decompression exclusively.

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

1…CPU、2…主メモリ、3…システムバス、4…バ
ス制御部、40…画像処理制御手段、41…バス接続
部、42…FIFO、421…バッファ、422…デー
タ出力制御部、423…タイミング信号部、43…デー
タ出力停止制御部、5…JPEGプロセッサ(圧縮/伸
長処理手段)、51…終了割込み線、52…圧縮データ
線、6…NTSCビデオ入出力部、61…垂直同期検出
部、62…A/D変換器、63…D/A変換器、64…
ビデオデータ線、65…NTSCビデオ入力線、66…
NTSCビデオ出力線、7…描画プロセッサ、71…描
画部、72…フレームメモリデータ転送部、73…画像
データ入出力部、74…入出力制御部、75…フレーム
メモリパラレルデータ、76…フレームメモリシリアル
データ、8…フレームメモリ、83…表バッファ、84
…裏バッファ、9…CRT、10…垂直同期信号。
DESCRIPTION OF SYMBOLS 1 ... CPU, 2 ... main memory, 3 ... system bus, 4 ... bus control part, 40 ... image processing control means, 41 ... bus connection part, 42 ... FIFO, 421 ... buffer, 422 ... data output control part, 423 ... Timing signal section 43 data output stop control section 5 JPEG processor (compression / expansion processing means) 51 end interrupt line 52 compression data line 6 NTSC video input / output section 61 vertical synchronization detection section , 62 ... A / D converter, 63 ... D / A converter, 64 ...
Video data line, 65 ... NTSC video input line, 66 ...
NTSC video output line, 7: drawing processor, 71: drawing unit, 72: frame memory data transfer unit, 73: image data input / output unit, 74: input / output control unit, 75: frame memory parallel data, 76: frame memory serial Data, 8: Frame memory, 83: Table buffer, 84
... Back buffer, 9 ... CRT, 10 ... Vertical synchronization signal.

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G09G 5/36 G06T 1/00 G06T 9/00 H04N 5/06 H04N 7/24 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G09G 5/36 G06T 1/00 G06T 9/00 H04N 5/06 H04N 7/24

Claims (14)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 単位時間当りに所定こま(以下、フレー
ム)数の画像を連続してなる動画像を圧縮または伸長す
る画像処理方法において、 前記フレーム毎に動画像の入力と圧縮または伸長と出力
を指示する複数の指示コマンドと、その先頭に配置され
後続のコマンドの指示を前記フレーム毎に出力される垂
直同期信号を待って可能にする垂直同期使用コマンド
を、nフレーム分(nは1以上の整数)処理順に連ねた
コマンド列を与えられ、 前記垂直同期信号が検出される度に、前記複数の指示コ
マンドの各々を対応する実行手段に転送してその指示を
実行させると共に、前記コマンド列にある次ぎの垂直同
期使用コマンドによって以後の指示コマンドの転送を停
止することを特徴とする画像処理方法。
An image processing method for compressing or decompressing a moving image comprising a predetermined number of frames (hereinafter referred to as frames) per unit time, comprising: inputting, compressing or decompressing and outputting a moving image for each frame. And a vertical synchronization use command which is arranged at the head of the command and waits for a vertical synchronization signal output for each frame, and which enables the next command to be issued, for n frames (where n is 1 or more) Each time the vertical synchronizing signal is detected, each of the plurality of instruction commands is transferred to a corresponding execution unit to execute the instruction, and the command sequence is executed. An image processing method, wherein the transfer of subsequent instruction commands is stopped by the next vertical synchronization use command.
【請求項2】 請求項1において、 前記圧縮された動画像は、主メモリに格納されることを
特徴とする画像処理方法。
2. The image processing method according to claim 1, wherein the compressed moving image is stored in a main memory.
【請求項3】 図形や文字等の静止画像の描画処理と、
単位時間当りに所定こま(以下、フレーム)数の画像を
連続してなる動画像の圧縮を並行して処理する画像処理
方法において、 前記フレーム毎に動画像の入力や圧縮を指示する複数の
指示コマンドと、その先頭に配置され後続のコマンドの
指示を前記フレームの終了毎に出力される垂直同期信号
の検出を待って可能にする垂直同期使用コマンドをnフ
レーム分(nは1以上の整数)、処理順に連ねたコマン
ド列を与えられ、 前記静止画像の変更内容コマンドを前記コマンド列の所
望位置に配置しおよび/または圧縮処理中に前記静止画
像の変更要求の有無を確認し変更要求が有れば、その変
更内容コマンドを対応する実行手段に指示し、 前記垂直同期信号が検出される度に前記コマンド列の順
に、前記複数の指示コマンドまたは前記変更内容コマン
ドを各々に対応する実行手段に転送してその指示を実行
させると共に、それら転送したコマンドの次ぎの垂直同
期使用コマンドによって以後のコマンドの転送を停止す
る処理を前記nフレーム分だけ繰り返すことを特徴とす
る画像処理方法。
3. A process for drawing a still image such as a figure or a character,
An image processing method for processing a predetermined number of frames (hereinafter, referred to as frames) per unit time of a continuous moving image in parallel, comprising a plurality of instructions for inputting and compressing a moving image for each frame. A command and a vertical synchronization use command which is arranged at the top of the frame and which allows an instruction of a subsequent command to wait for detection of a vertical synchronization signal output each time the frame ends, for n frames (n is an integer of 1 or more) , A command sequence linked in the processing order is provided, the still image change content command is arranged at a desired position in the command sequence, and / or the presence or absence of the still image change request is checked during the compression processing. Then, the change content command is instructed to the corresponding execution means, and each time the vertical synchronization signal is detected, the plurality of command commands or the change command The command is transferred to the corresponding execution means to execute the instruction, and the process of stopping the transfer of the subsequent command by the next vertical synchronization use command following the transferred command is repeated for the n frames. Image processing method.
【請求項4】 圧縮動画像から単位時間当りに所定こま
(以下、フレーム)数の動画像の伸長処理と、図形や文
字等の静止画像の描画処理を並行して合成動画像を作成
する画像処理方法において、 前記フレーム毎に圧縮動画像の伸長と表示及び出力を指
示する複数の指示コマンドと、その先頭に配置され後続
のコマンドの指示を前記フレーム毎に出力される垂直同
期信号の検出を待って可能にする垂直同期使用コマンド
をnフレーム分(nは1以上の整数)、処理順に連ねた
コマンド列を与えられ、 前記静止画像の変更内容コマンドを前記コマンド列の所
望位置に配置しおよび/または伸長処理中に前記静止画
像の変更要求の有無を確認し変更要求が有れば、その変
更内容コマンドを対応する実行手段に指示し、 前記垂直同期信号が検出される度に前記コマンド列の順
に、前記複数の指示コマンドまたは前記変更内容コマン
ドを各々に対応する実行手段に転送してその指示を実行
させると共に、それら転送したコマンドの次ぎの垂直同
期使用コマンドによって以後のコマンドの転送を停止す
る処理を前記nフレーム分だけ繰り返すことを特徴とす
る画像処理方法。
4. An image for creating a composite moving image by performing a predetermined number of frames (hereinafter referred to as a frame) of a moving image per unit time from a compressed moving image and a process of drawing a still image such as a figure or a character in parallel. In the processing method, a plurality of instruction commands for instructing decompression, display, and output of a compressed moving image for each frame, and instructions for a subsequent command arranged at the beginning of the plurality of instruction commands are detected by detecting a vertical synchronization signal output for each frame. A command sequence in which a vertical synchronization use command for waiting and enabling is provided for n frames (n is an integer of 1 or more) is provided in the processing order, and the still image change content command is arranged at a desired position in the command sequence. During the decompression process, the presence / absence of the change request of the still image is confirmed, and if there is a change request, the change content command is instructed to the corresponding execution means, and the vertical synchronization signal is detected. Each time, in the order of the command sequence, the plurality of instruction commands or the change content commands are transferred to the corresponding execution means to execute the instructions, and the subsequent vertical synchronization use commands subsequent to the transferred commands are used. An image processing method for repeating the process of stopping the transfer of the command for the n frames.
【請求項5】 フレーム毎の垂直同期信号と共に入出力
される動画像の圧縮処理または伸長処理と、図形や文字
等の静止画像の描画処理を並行して合成動画像を作成す
る画像処理方法において、 CPUは、前記圧縮処理を選択した場合に、表示してい
る静止画像の変更内容コマンドと、nフレーム分(nは
1以上の整数)の圧縮処理コマンドをコマンド制御手段
に指示し、前記nフレーム分の圧縮処理中に前記静止画
像の変更要求が有ればそれを指示し、前記nフレーム分
の圧縮処理の終了時に継続の要求が有れば上記一連の処
理を繰返し、 CPUは、前記伸長処理を選択した場合に、表示してい
る静止画像の変更内容コマンドと、nフレーム分(nは
1以上の整数)の伸長処理コマンドをコマンド制御手段
に指示し、前記nフレーム分の伸長処理中に前記静止画
像の変更要求が有ればそれを指示し、前記nフレーム分
の伸長終了時に継続の要求が有れば上記一連の処理を繰
返し、 前記コマンド制御手段は、前記動画像の垂直同期信号が
出力される度に、1フレーム分の前記変更内容コマンド
と前記圧縮処理コマンドまたは前記伸長処理コマンドを
その実行手段に転送することを特徴とする画像処理方
法。
5. An image processing method for creating a composite moving image in parallel with a process of compressing or expanding a moving image input / output together with a vertical synchronizing signal for each frame and a process of drawing a still image such as a figure or a character. When the compression process is selected, the CPU instructs the command control means with a change content command for the displayed still image and a compression process command for n frames (n is an integer of 1 or more). If there is a request to change the still image during the compression processing for frames, it is instructed, and if there is a request to continue at the end of the compression processing for n frames, the above series of processing is repeated. When the decompression process is selected, a command for changing the displayed still image and a decompression process command for n frames (n is an integer of 1 or more) are instructed to the command control means, and the decompression process for the n frames is performed. If there is a request to change the still image during the process, it indicates the request, and if there is a request to continue at the end of decompression for the n frames, the above series of processes is repeated. An image processing method, wherein the change content command and the compression processing command or the decompression processing command for one frame are transferred to an execution unit every time a vertical synchronization signal is output.
【請求項6】 請求項5において、 前記実行手段は、圧縮/伸長プロセッサと、フレームメ
モリ及びCRTを制御する前記描画プロセッサであり、 前記圧縮処理コマンドの1フレーム分は、前記描画プロ
セッサが処理する「フレームメモリへ動画像データ入
力」コマンドと、前記圧縮/伸長プロセッサが処理する
「動画像データ圧縮」コマンドと、前記コマンド制御手
段が処理する後続のコマンド出力を停止する「垂直同期
使用」コマンドを含み、 前記伸長処理コマンドの1フレーム分は、前記圧縮/伸
長プロセッサが処理する「フレームメモリへの伸長出
力」コマンドと、前記描画プロセッサが処理する「フレ
ームメモリからの動画像データ出力」と、前記コマンド
制御手段が処理する次のフレーム分のコマンド出力を停
止する「垂直同期使用」コマンドを含むことを特徴とす
る画像処理方法。
6. The drawing processor according to claim 5, wherein the execution unit is a drawing processor that controls a compression / decompression processor, a frame memory and a CRT, and the drawing processor processes one frame of the compression processing command. A “moving image data input to frame memory” command, a “moving image data compression” command processed by the compression / decompression processor, and a “vertical synchronization use” command to stop output of a subsequent command processed by the command control means. One frame of the decompression processing command includes a “decompression output to frame memory” command processed by the compression / decompression processor, a “moving image data output from frame memory” processed by the drawing processor, Stop the command output for the next frame processed by the command control unit. An image processing method comprising a "use" command.
【請求項7】 請求項6において、 前記変更内容コマンドは、直接または前記コマンド制御
手段を介して、前記描画プロセッサに指示されることを
特徴とする画像処理方法。
7. The image processing method according to claim 6, wherein the change content command is instructed to the drawing processor directly or via the command control means.
【請求項8】 CPU(中央処理装置)とバスを介して
接続される画像入力装置と、フレームメモリ及びCRT
を制御して静止画像を描画する描画プロセッサを備える
画像処理装置において、 動画像をフレーム毎に圧縮する画像圧縮プロセッサと、 前記画像入力装置に入力する動画像のフレーム毎の垂直
同期信号を検出する垂直同期検出手段と、 前記描画プロセッサ、前記画像入力装置及び前記画像圧
縮プロセッサの各々に圧縮処理を指示するためのコマン
ドと、それらのコマンドの出力をフレーム毎に一旦停止
を指示するコマンドをその処理順に並べたコマンド列を
前記CPUから与えられて格納し、前記垂直同期信号を
検出する度に1フレーム分のコマンドを出力するコマン
ド制御手段と、 前記描画プロセッサに具備され、前記画像入力装置から
前記フレームメモリへ の動画像データを転送し、前記フ
レームメモリから前記画像圧縮プロセッサへ動画像デー
タを転送する画像データ転送手段と、を備えることを特
徴とする画像処理装置。
8. Via a CPU (Central Processing Unit) and a bus
Image input device to be connected, frame memory and CRT
With a drawing processor to control the image and draw a still image
In the image processing device, an image compression processor that compresses a moving image for each frame, and a vertical frame for each frame of the moving image input to the image input device.
Vertical synchronization detecting means for detecting a synchronization signal, the drawing processor, the image input device, and the image pressure.
Command to instruct each compression processor to perform compression processing
Command and the output of those commands are paused for each frame
Command sequence in which commands that specify
Stored by the CPU, and stores the vertical synchronization signal.
Command that outputs a command for one frame each time it is detected
Code control means , provided in the drawing processor, from the image input device.
Transferring the moving image data to the frame memory,
Moving image data from the frame memory to the image compression processor.
Image data transfer means for transferring data.
An image processing device.
【請求項9】 請求項8において、 前記画像圧縮プロセッサはJPEGプロセッサ、前記画
像入力装置はNTSCビデオ入力装置であることを特徴
とする画像処理装置。
9. The image compression processor according to claim 8, wherein said image compression processor is a JPEG processor.
The image input device is an NTSC video input device.
Image processing apparatus.
【請求項10】 CPU(中央処理装置)とバスを介し
て接続される画像出力装置と、フレームメモリ及びCR
Tを制御して静止画像を描画する描画プロセッサを備え
る画像処理装置において、 主メモリに記憶している圧縮動画像を伸長する画像伸長
プロセッサと、 前記画像出力装置に具備され、出力する動画像のフレー
ム毎の垂直同期信号を出力する垂直同期信号出力手段
と、 前記描画プロセッサ、前記画像出力装置及び前記画像伸
長プロセッサの各々に伸長処理を指示するためのコマン
ドと、それらのコマンドの出力をフレーム毎に一旦停止
を指示するコマンドをその処理順に並べたコマンド列を
前記CPUから与えられて格納し、前記垂直同期信号が
出力される度に1フレーム分のコマンドを出力するコマ
ンド制御手段と、 前記描画プロセッサに具備され、前記画像伸長プロセッ
サから前記フレームメモリに伸長した動画像データ転送
し、前記フレームメモリから前記画像出力装置に動画像
データ転送する画像データ転送手段と、を備えることを
特徴とする画像処理装置。
10. Via a CPU (Central Processing Unit) and a bus
Image output device, frame memory and CR
A drawing processor for controlling T to draw a still image
Image decompression for expanding a compressed moving image stored in a main memory in an image processing apparatus.
A processor, and a frame of the moving image to be output, which is provided in the image output device.
Vertical synchronization signal output means for outputting a vertical synchronization signal for each system
The drawing processor, the image output device, and the image decompression.
Command for instructing each of the long processors to perform decompression processing
Command and the output of those commands are paused for each frame
Command sequence in which commands that specify
The vertical synchronizing signal is stored after being given from the CPU.
A frame that outputs a command for one frame each time it is output
Command control means and the image decompression processor provided in the drawing processor.
Moving image data expanded from the memory to the frame memory
Moving image from the frame memory to the image output device.
Image data transfer means for transferring data.
Characteristic image processing device.
【請求項11】 請求項8、9または10において、 前記フレームメモリは、前記動画像データの入力または
表示とその後の出力または転送をフレーム毎に交互に行
うための2のバッファからなる動画像表示領域を有する
ことを特徴とする画像処理装置。
11. The frame memory according to claim 8, 9 or 10, wherein the frame memory receives the input or output of the moving image data.
Display and subsequent output or transfer alternately every frame
Video display area consisting of two buffers for
An image processing apparatus characterized by the above-mentioned.
【請求項12】 請求項8〜11のいずれか1項におい
て、 前記コマンド制御手段は、前記コマンド列を先入れ先出
しに格納するFIFOを具備することを特徴とする画像
処理装置。
12. The method according to any one of claims 8 to 11, wherein
The command control means stores the command sequence on a first-in first-out basis.
Image characterized by having a FIFO for storing therein
Processing equipment.
【請求項13】 バス接続されるCPU(中央処理装
置)と、主メモリと、 バス制御手段を介してバス接続さ
れる描画プロセッサと、画像データを記憶し、表示する
フレームメモリ及びCRTを備えたコンピュータシステ
ムにおいて、 動画像を入力してディジタルの動画像データにA/D変
換し、前記動画像データをアナログの動画像にD/A変
換して出力すると共に、動画像のフレームに同期する垂
直同期信号を出力する画像入出力装置と、 前記動画像データを又は圧縮動画像データを前記垂直同
期信号に同期して圧縮または伸長する圧縮/伸長プロセ
ッサと、 前記画像入出力装置と前記フレームメモリ間及び前記圧
縮/伸長プロセッサと前記フレームメモリ間で前記動画
像データをフレーム毎に転送する前記描画プロセッサに
具備した転送手段と、 前記描画プロセッサ、前記画像入出力装置及び前記画像
圧縮/伸長プロセッサの各々に指示する複数の指示コマ
ンドとフレーム毎に前記指示コマンドの出力停止を指示
する垂直同期使用コマンドをその処理順に並べたコマン
ド列を格納し、前記垂直同期信号を検出する度に1フレ
ーム分の前記指示コマンドを所定の実行手段に出力する
コマンド制御手段と、 前記CPUによって実現される前記圧縮処理、前記伸長
処理及び他の処理の何れかを選択する処理機能選択手段
と、を備えることを特徴とする画像処理機能を有するコ
ンピュータシステム。
13. A CPU (central processing unit ) connected to a bus.
), The main memory, and the bus connected via the bus control means.
Rendering processor and image data stored and displayed
Computer system with frame memory and CRT
In a system, a moving image is input and A / D converted to digital moving image data.
The D / A conversion of the moving image data into an analog moving image
And output it, and output it in synchronization with the frame of the moving image.
An image input / output device that outputs a direct synchronization signal, and the moving image data or the compressed moving image data
Compression / decompression process that compresses or decompresses in synchronization with the
Between the image input / output device and the frame memory, and between the image input / output device and the frame memory.
The moving image between the compression / decompression processor and the frame memory
To the drawing processor that transfers image data for each frame
Provided transfer means, the drawing processor, the image input / output device, and the image
A plurality of instruction frames for instructing each of the compression / decompression processors
Command to stop the output of the command for each command and frame
Commands that list the vertical synchronization commands
And stores one frame every time the vertical synchronization signal is detected.
And outputs the instruction command for a predetermined period to predetermined execution means.
Command control means, the compression processing and the decompression realized by the CPU,
Processing function selection means for selecting any of processing and other processing
Having an image processing function characterized by comprising:
Computer system.
【請求項14】 請求項13において、 圧縮されたまたは伸長される圧縮動画像データは、前記
圧縮/伸長プロセッサと前記主メモリの間でダイレクト
・メモリ・アクセス(DMA)方式によって書き込み/
読出しされることを特徴とする画像処理機能を有するコ
ンピュータシステム。
14. The compressed moving image data according to claim 13 , wherein the compressed moving image data is compressed or decompressed.
Direct between the compression / decompression processor and the main memory
Writing / writing by memory access (DMA) method
A core having an image processing function characterized by being read out;
Computer system.
JP1815494A 1994-02-15 1994-02-15 Image processing method and apparatus, and computer system having image processing function Expired - Fee Related JP3159591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1815494A JP3159591B2 (en) 1994-02-15 1994-02-15 Image processing method and apparatus, and computer system having image processing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1815494A JP3159591B2 (en) 1994-02-15 1994-02-15 Image processing method and apparatus, and computer system having image processing function

Publications (2)

Publication Number Publication Date
JPH07225577A JPH07225577A (en) 1995-08-22
JP3159591B2 true JP3159591B2 (en) 2001-04-23

Family

ID=11963703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1815494A Expired - Fee Related JP3159591B2 (en) 1994-02-15 1994-02-15 Image processing method and apparatus, and computer system having image processing function

Country Status (1)

Country Link
JP (1) JP3159591B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006082626A1 (en) 2005-02-01 2006-08-10 Mitsubishi Denki Kabushiki Kaisha Video information distribution display system
JP5791451B2 (en) * 2011-09-29 2015-10-07 キヤノン株式会社 Encoding device and program
JP2014075708A (en) * 2012-10-04 2014-04-24 Canon Inc Moving image encoder and moving image encoding method

Also Published As

Publication number Publication date
JPH07225577A (en) 1995-08-22

Similar Documents

Publication Publication Date Title
AU685098B2 (en) Video peripheral for a computer
US5933137A (en) Method and system for acclerating a user interface of an image capture unit during play mode
US6278447B1 (en) Method and system for accelerating a user interface of an image capture unit during play mode
JP2002513539A (en) Method and system for speculative decompression of compressed image data in an image capture unit
AU6518094A (en) Displaying a subsampled video image on a computer display
JP3781980B2 (en) Data transfer system
JP3159591B2 (en) Image processing method and apparatus, and computer system having image processing function
US6661452B1 (en) Digital camera capable of decreasing a required memory capacity
JP3269037B2 (en) Image playback device
JP3086676B2 (en) Image playback device
US6754178B1 (en) Image communication apparatus and image communication method
CN114360468A (en) Screen refreshing display method and system
WO1998057294A1 (en) A method and system for generating an enhanced image file in an image capture unit
JPH04156194A (en) Two-way simple moving picture communication system
JP3114792B2 (en) TV conference system
JP3562186B2 (en) Video card and video data communication device
JP3673539B2 (en) Information processing device
JP3261993B2 (en) Moving image recording method and moving image storage / reproduction method
JP2003023595A (en) Image processor, method, program, and computer-readable storage medium
JPH01106133A (en) Work station
JP3249507B2 (en) Still image reproducing apparatus and method
JP2000278644A (en) Nonlinear video edit device and its method
JPH0541804A (en) Picture processing unit
JPH07222116A (en) Still picture transmission method and equipment
JPH0863412A (en) Moving picture transmitting method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees