JP2002204451A - Code compression/data conversion device and code compression/data conversion method - Google Patents

Code compression/data conversion device and code compression/data conversion method

Info

Publication number
JP2002204451A
JP2002204451A JP2000402099A JP2000402099A JP2002204451A JP 2002204451 A JP2002204451 A JP 2002204451A JP 2000402099 A JP2000402099 A JP 2000402099A JP 2000402099 A JP2000402099 A JP 2000402099A JP 2002204451 A JP2002204451 A JP 2002204451A
Authority
JP
Japan
Prior art keywords
code
compression
audio
video
data
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.)
Granted
Application number
JP2000402099A
Other languages
Japanese (ja)
Other versions
JP3671842B2 (en
Inventor
Hiroaki Ueda
裕明 上田
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2000402099A priority Critical patent/JP3671842B2/en
Publication of JP2002204451A publication Critical patent/JP2002204451A/en
Application granted granted Critical
Publication of JP3671842B2 publication Critical patent/JP3671842B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a code compression/data conversion device and a code compression/data conversion method that enable construction of a system where video audio code compression can easily, automatically and temporarily be stopped when a system load gets heavier without the need for processing by an application program and the video audio code compression can be restarted when the system load gets lighter and that enable immediate resumption of the code compression when the system load gets lighter. SOLUTION: The code compression/data conversion device is provided that applies code compression processing to video and audio or either of them or converts the video and audio data in the system on which programs can work and records or distribute the result in real time and has a function of automatic temporary stop or automatic resumption of the code compression or the data conversion.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像・音声符号圧
縮化技術に係り、特にアプリケーションが処理しなくて
も、システムの負荷が上がったときに画像・画像・音声
符号圧縮化を自動的に容易に一時停止し、システムの負
荷が下がったときに当該画像・音声符号圧縮化を再開す
るシステムを構築でき、負荷が下がると直ちに符号圧縮
化を再開できる符号圧縮化/データ変換装置及び符号圧
縮化/データ変換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image / audio code compression technique, and more particularly to a technique for automatically compressing an image / image / audio code when the load on the system is increased without any processing by an application. A code compression / data conversion apparatus and a code compression apparatus capable of easily suspending and resuming the video / audio code compression when the load of the system is reduced, and capable of restarting the code compression immediately after the load is reduced. And a data conversion method.

【0002】[0002]

【従来の技術】従来、画像をデジタル化して、CD−R
OMやハードディスクなどの記録媒体に記録する場合、
そのデータ量は巨大なものとなるため、通常は符号圧縮
化して記録される。このような符号圧縮化方法には、各
種の符号圧縮化方式があり、特に、画像の空間周波数が
低周波に集中する性質を利用して圧縮を行うDCT(D
iscrete Cosine Transform)
をベースとした符号化方式が比較的多く使用されてい
る。当該符号化方式は、JPEG(Joint Pho
tographic Expert Group)や、
MPEG(Moving Pictures Expe
rt Group)1またはMPEG2などの国際標準
の符号化方式として採用されている。
2. Description of the Related Art Conventionally, an image has been digitized and a CD-R
When recording on a recording medium such as an OM or a hard disk,
Since the amount of data becomes huge, it is usually recorded after code compression. As such a code compression method, there are various code compression methods, and in particular, DCT (DT) which performs compression using the property that the spatial frequency of an image is concentrated at a low frequency.
iscrete Cosine Transform)
Are used relatively frequently. The encoding method is JPEG (Joint Photo).
graphical Expert Group),
MPEG (Moving Pictures Expe
rt Group) 1 or MPEG2.

【0003】以下に、MPEGの場合の従来の圧縮動作
について説明する。
[0003] A conventional compression operation in the case of MPEG will be described below.

【0004】図4は、画像圧縮を行うビデオ符号変換制
御手段10の構成図である。図4の画像圧縮では原画像
をMPEGで符号圧縮化可能な色信号の形式(YUV形
式)に変換するYUV変換手段11と、前/後フレーム
と現フレームの画像の動きをブロック(MPEGでは1
6画素×16画素)の領域毎に検索する動き検索手段1
2と、ブロックの画像を空間周波数に変換するDCT手
段13と量子化を行う量子化手段14と、量子化から元
に戻す逆量子化を行う逆量子化手段17と、周波数変換
から元に戻す逆DCT手段16と、ブロック単位で画像
の動きを補償して新たな参照フレームを生成する動き補
償手段15と、可変長符号化を行う可変長符号化手段1
8から構成されている。
FIG. 4 is a block diagram of the video code conversion control means 10 for performing image compression. In the image compression shown in FIG. 4, a YUV conversion unit 11 converts an original image into a color signal format (YUV format) that can be code-compressed by MPEG, and blocks the movement of the image of the previous / next frame and the current frame (1 in MPEG).
Motion search means 1 for searching each area of (6 pixels × 16 pixels)
2, a DCT unit 13 for transforming the image of the block into a spatial frequency, a quantizing unit 14 for performing quantization, an inverse quantizing unit 17 for performing inverse quantization to return from quantization, and an original to return from frequency transform. Inverse DCT means 16, motion compensation means 15 for compensating the motion of the image in block units to generate a new reference frame, and variable length coding means 1 for performing variable length coding
8.

【0005】画像圧縮は図4に示すように原画像をYU
V変換手段11でYUVデータに変換して、各ピクチャ
種別に応じた圧縮を行う。
[0005] In image compression, as shown in FIG.
The data is converted into YUV data by the V conversion means 11, and compression is performed according to each picture type.

【0006】Iピクチャの場合はYUVデータをブロッ
クに分割してブロック毎にDCT手段13により空間周
波数に変換して量子化手段14により量子化して可変長
符号化手段18により可変長符号化して圧縮符号を出力
する。また、量子化したブロックを逆量子化手段17で
逆量子化して逆DCT手段16で逆周波数変換して参照
フレームを作成する。
In the case of an I picture, YUV data is divided into blocks, converted into spatial frequencies by the DCT means 13 for each block, quantized by the quantizing means 14, and variable-length coded by the variable-length coding means 18 for compression. Output sign. Further, the quantized block is inversely quantized by the inverse quantization means 17 and inverse frequency transformed by the inverse DCT means 16 to create a reference frame.

【0007】Pピクチャの場合はYUVデータをブロッ
クに分割してブロック毎に動き検索手段12で参照フレ
ームとして格納されている前フレームのブロックの中で
相関が最も高いブロックを求めて、相関が最も高い前フ
レームのブロックとの差分をDCT手段13により空間
周波数に変換して量子化手段14により量子化して可変
長符号化手段18により可変長符号化して圧縮符号を出
力する。また、量子化したブロックを逆量子化手段17
で逆量子化して逆DCT手段16で逆周波数変換して動
き補償手段15で動き補償したブロックと加算して参照
フレームを作成する。
In the case of a P picture, the YUV data is divided into blocks, and a block having the highest correlation among the blocks of the previous frame stored as a reference frame stored by the motion search means 12 for each block is determined. The difference from the block of the higher previous frame is converted into a spatial frequency by the DCT unit 13, quantized by the quantization unit 14, variable-length coded by the variable-length coding unit 18, and a compressed code is output. Further, the quantized block is dequantized by the inverse quantization means 17.
, And inversely frequency-converted by the inverse DCT means 16 and added to the motion-compensated block by the motion compensation means 15 to create a reference frame.

【0008】Bピクチャの場合はYUVデータをブロッ
クに分割してブロック毎に動き検索手段12で参照フレ
ームとして格納されている前/後フレームのブロックの
中で相関が最も高いブロックを求めて、相関が最も高い
前/後フレームのブロックとの差分をDCT手段13に
より空間周波数に変換して量子化手段14により量子化
して可変長符号化手段18により可変長符号化して圧縮
符号を出力する。Bピクチャの場合は参照フレームは作
成する必要がない。
In the case of a B picture, the YUV data is divided into blocks, and the motion search means 12 finds the block having the highest correlation among the blocks of the previous / next frame stored as the reference frame for each block, and obtains the correlation. Is converted to a spatial frequency by the DCT unit 13, quantized by the quantization unit 14, and subjected to variable-length encoding by the variable-length encoding unit 18 to output a compressed code. In the case of a B picture, there is no need to create a reference frame.

【0009】図5は音声圧縮を行うオーディオ符号変換
制御手段20の構成図である。音声圧縮は原音から1A
UU分の原音データを切り出す原音切り出し手段21
と、1AAU単位で周波数帯域写像処理を行う32の周
波数帯域写像を生成する周波数帯域写像手段22と、線
形量子化及び符号化を行う量子化符号化手段23と、符
号化されたデータに付加情報を加えて1AAU分の圧縮
データを作成するフレーム形成手段24と、心理聴覚処
理を行う心理聴覚処理手段25で構成されている。
FIG. 5 is a block diagram of the audio code conversion control means 20 for performing audio compression. Audio compression is 1A from the original sound
Original sound extracting means 21 for extracting original sound data for UU
And frequency band mapping means 22 for generating 32 frequency band mappings for performing a frequency band mapping process in units of 1 AAU, quantization coding means 23 for performing linear quantization and coding, and additional information for the coded data. And a frame forming means 24 for creating compressed data for one AAU, and a psychological hearing processing means 25 for performing psychological hearing processing.

【0010】音声圧縮は図5に示すように原音を原音切
り出し手段21で1AAU分(MPEGオーディオレイ
ヤ2の場合は1152サンプル)切り出して、AAU単
位で圧縮する。周波数帯域写像手段22は入力信号をサ
ブバンド分析フィルタで32帯域のサブバンド信号に分
解して、各サブバンド信号に対してスケールファクタを
計算して、ダイナミックレンジをそろえる。心理聴覚処
理手段25は入力信号を高速フーリエ変換して、その結
果を使って心理聴覚のマスキングを計算して、各サブバ
ンドに対するビット割り当てを計算する。量子化符号化
手段23は決定したビット割り当てに従って量子化、符
号化を行う。フレーム形成手段24は量子化符号化した
サブバンド信号にヘッダや補助情報を追加して、ビット
ストリームに整形して、圧縮符号として出力する。
In audio compression, as shown in FIG. 5, an original sound is cut out by the original sound cut-out means 21 for one AAU (1152 samples in the case of the MPEG audio layer 2) and compressed in AAU units. The frequency band mapping means 22 decomposes the input signal into 32 sub-band signals using a sub-band analysis filter, calculates a scale factor for each sub-band signal, and adjusts the dynamic range. The psychological hearing processing means 25 performs a fast Fourier transform of the input signal, calculates a psychological hearing mask using the result, and calculates a bit allocation for each subband. The quantization encoding means 23 performs quantization and encoding according to the determined bit allocation. The frame forming means 24 adds a header and auxiliary information to the quantized and encoded sub-band signal, shapes the bit stream into a bit stream, and outputs the bit stream as a compressed code.

【0011】図6は、ビデオ符号とオーディオ符号を多
重化する画像・音声符号変換制御手段30の構造を示し
た図である。図6を参照すると、システム符号化全体の
制御を行う画像・音声符号変換制御手段30は、オーデ
ィオ符号をパック化するオーディオパック生成手段31
と、ビデオ符号をパック化するビデオパック生成手段3
2と、ビットレートを調整するためにデコーダでは読み
飛ばされるパディングパックを生成するパディングパッ
ク生成手段33と、パケットヘッダに挿入するタイムス
タンプを生成するタイムスタンプ生成手段34から構成
される。
FIG. 6 is a diagram showing the structure of the image / audio code conversion control means 30 for multiplexing a video code and an audio code. Referring to FIG. 6, an image / speech code conversion control unit 30 for controlling the entire system coding includes an audio pack generation unit 31 for packing audio codes.
And video pack generating means 3 for packing video codes
2, a padding pack generating means 33 for generating padding packs that are skipped by the decoder in order to adjust the bit rate, and a time stamp generating means 34 for generating a time stamp to be inserted into the packet header.

【0012】システム符号化の処理では、図6に示すよ
うに、画像・音声符号変換制御手段30でビデオ符号と
オーディオ符号を受け取り、ビデオパック生成手段32
とオーディオパック生成手段31を制御して、システム
符号として出力する。
In the system coding process, as shown in FIG. 6, a video code and an audio code are received by an image / audio code conversion control means 30 and a video pack generation means 32 is provided.
And the audio pack generating means 31 to output the same as a system code.

【0013】ビデオパック生成手段32は、ビデオ符号
からパケット分のデータを切り出して、パケットヘッダ
及びパックヘッダを付加する。また、オーディオパック
生成手段31は、オーディオ符号からパケット分のデー
タを切り出して、パケットヘッダ及びパックヘッダを付
加する。
The video pack generating means 32 cuts out data of a packet from the video code and adds a packet header and a pack header. Further, the audio pack generating means 31 cuts out data for a packet from the audio code and adds a packet header and a pack header.

【0014】この時にビデオの場合であって、パケット
のデータにフレームの先頭が含まれているときには、タ
イムスタンプ生成手段34で生成したPTSやDTSを
挿入する。オーディオの場合であって、パケットのデー
タにAAUの先頭が含まれているときには、タイムスタ
ンプ生成手段34で生成したPTSを挿入する。また、
パディングパック生成手段33は、システムビットレー
トが平均するようにパディングパックを挿入する。
At this time, in the case of video, if the head of the frame is included in the packet data, the PTS or DTS generated by the time stamp generating means 34 is inserted. In the case of audio, if the head of the AAU is included in the packet data, the PTS generated by the time stamp generating means 34 is inserted. Also,
The padding pack generation means 33 inserts padding packs so that the system bit rate is averaged.

【0015】このように画像と音声をリアルタイムで圧
縮するときには、画像と音声の符号量の差が大きくなっ
た場合に少ない方の符号を補間して、画像と音声の同期
を取る必要がある。このような従来技術としては、例え
ば、特開平10−42295号公報に記載のものがある
(第1従来技術)。
As described above, when the image and the sound are compressed in real time, it is necessary to synchronize the image and the sound by interpolating the smaller code when the difference between the code amounts of the image and the sound becomes large. As such a prior art, for example, there is one described in Japanese Patent Application Laid-Open No. 10-42295 (first prior art).

【0016】上記第1従来技術では、実際の圧縮を行わ
ずに前後のフレームと同一であることを示す符号を生成
することで、ビデオ符号を補間して同期を取っている。
In the first prior art, a video code is interpolated and synchronized by generating a code indicating that it is the same as the previous and next frames without performing actual compression.

【0017】また、他の従来技術としては、例えば、特
開平10−164556号公報に記載のもの(第2従来
技術)、特開2000−206994号公報に記載のも
の(第3従来技術)がある。
As other conventional techniques, for example, those described in JP-A-10-164556 (second conventional technique) and those described in JP-A-2000-206994 (third conventional technique) are exemplified. is there.

【0018】上記第2従来技術及び上記第3従来技術で
は、無音の符号を挿入することで、オーディオ符号を補
間して同期を取っている。
In the second prior art and the third prior art, audio codes are interpolated and synchronized by inserting silent codes.

【0019】さらに他の従来技術としては、例えば、特
開2000−78531号公報に記載のもの(第4従来
技術)がある。
Still another prior art is disclosed in, for example, JP-A-2000-78531 (fourth prior art).

【0020】上記第4従来技術では、無音に相当するダ
ミーオーディオデータを挿入することで、オーディオ符
号を補間して同期を取っている。
In the fourth prior art, the audio code is interpolated and synchronized by inserting dummy audio data corresponding to silence.

【0021】[0021]

【発明が解決しようとする課題】しかしながら、上記従
来技術では、ビデオ圧縮(ビデオ符号圧縮化)またはオ
ーディオ圧縮(オーディオ符号圧縮化)のどちらかが連
続して符号を生成できることを前提としている。このた
めに、複数のプログラムが動作できるシステム上でソフ
トウェアによるリアルタイム圧縮を行っている場合、他
のプログラムが動作して圧縮を継続できない程の重い負
荷がかかったときは画像と音声の同期を取ることができ
なくなり、圧縮を停止しなければならなくなるという問
題点があった。
However, the above prior art is based on the premise that either video compression (video code compression) or audio compression (audio code compression) can generate codes continuously. For this reason, if real-time compression is performed by software on a system that can run multiple programs, synchronization of image and audio is performed when a heavy load that other programs run and compression can not be continued is applied And the compression has to be stopped.

【0022】また、負荷が下がってから符号圧縮化を再
開するときは、キャプチャデバイスの初期化や符号圧縮
化のためのメモリ獲得・ファイルオープンを行う必要が
あるので、その処理時間分だけ符号圧縮化の再開が遅れ
るという問題点もあった。
When code compression is resumed after the load has been reduced, it is necessary to initialize the capture device and acquire memory and open a file for code compression. There was also a problem that the resumption of gasification was delayed.

【0023】本発明は斯かる問題点を鑑みてなされたも
のであり、その目的とするところは、アプリケーション
が処理しなくても、システムの負荷が上がったときに画
像・音声符号圧縮化を自動的に容易に一時停止し、シス
テムの負荷が下がったときに当該画像・音声符号圧縮化
を再開するシステムを構築でき、負荷が下がると直ちに
符号圧縮化を再開できる符号圧縮化/データ変換装置及
び符号圧縮化/データ変換方法を提供する点にある。
The present invention has been made in view of such a problem, and a purpose thereof is to automatically compress image / audio codes when the load on the system increases without processing by an application. A code compression / data conversion device capable of easily and temporarily suspending and resuming the video / audio code compression when the load on the system is reduced, and capable of restarting the code compression immediately after the load is reduced; and It is to provide a code compression / data conversion method.

【0024】[0024]

【課題を解決するための手段】この発明の請求項1に記
載の発明の要旨は、複数のプログラムが動作できるシス
テム上で画像と音声、もしくはそれらのどちらかを符号
圧縮化あるいはデータ変換し、リアルタイムに記録もし
くは配信する符号圧縮化/データ変換装置であって、符
号圧縮化あるいはデータ変換の自動一時停止または自動
再開機能を有することを特徴とする符号圧縮化/データ
変換装置に存する。また、この発明の請求項2に記載の
発明の要旨は、符号圧縮化あるいはデータ変換を継続で
きない間は、画像あるいは音声データを符号圧縮化ある
いは変換しないでアプリケーションに応答を返す手段を
有することを特徴とする請求項1に記載の符号圧縮化/
データ変換装置に存する。また、この発明の請求項3に
記載の発明の要旨は、画像符号と音声符号の時間量の差
を減らすような時刻で符号圧縮化あるいはデータ変換を
再開する手段を有することを特徴とする請求項1に記載
の符号圧縮化/データ変換装置に存する。また、この発
明の請求項4に記載の発明の要旨は、前記アプリケーシ
ョンが直接符号圧縮化あるいはデータ変換処理に関与し
なくてよいように、符号圧縮化あるいはデータ変換を集
約して処理するインターフェース制御手段を有し、他の
プログラムの実行によりシステムの負荷が上がりリアル
タイム処理が継続できなくなったときに、前記アプリケ
ーション側またはオペレーティングシステムからの制御
を必要としないように構成されていることを特徴とする
請求項1乃至3のいずれか一項に記載の符号圧縮化/デ
ータ変換装置に存する。また、この発明の請求項5に記
載の発明の要旨は、ユーザが操作する前記アプリケーシ
ョンと、前記アプリケーションからの要求に従って圧縮
動作を制御する前記インターフェース制御手段と、ビデ
オ圧縮を制御するビデオ符号変換制御手段と、オーディ
オ圧縮を制御するオーディオ符号変換制御手段と、シス
テム符号化を制御する画像・音声符号変換制御手段と、
符号圧縮化もしくはデータ変換またはキャプチャしたビ
デオデータを一時的に格納するビデオキャプチャバッフ
ァと、生成したビデオ符号を一時的に格納するビデオ符
号バッファと、符号圧縮化もしくはデータ変換またはキ
ャプチャしたオーディオデータを一時的に格納するオー
ディオキャプチャバッファと、生成したオーディオ符号
を一時的に格納するオーディオ符号バッファと、システ
ム符号を一時的に格納するシステムバッファを有し、前
記インターフェース制御手段は、符号圧縮化もしくはデ
ータ変換またはキャプチャした原画像を前記ビデオ符号
変換制御手段に渡す原画像受け渡し制御手段と、符号圧
縮化もしくはデータ変換またはキャプチャした原音声を
前記オーディオ符号変換制御手段に渡す原音声受け渡し
制御手段と、符号圧縮化の一時停止と再開を行う一時停
止・再開制御手段を有し、前記アプリケーションは、符
号圧縮化もしくはデータ変換またはキャプチャした原画
像と原音声を受け取って、前記インターフェース制御手
段に渡して、前記インターフェース制御手段に渡された
システム符号をシステム符号ファイルに書き込み、前記
インターフェース制御手段は、符号圧縮化もしくはデー
タ変換またはキャプチャした原画像を前記ビデオキャプ
チャバッファに格納し、符号圧縮化もしくはデータ変換
またはキャプチャした原音声を前記オーディオキャプチ
ャバッファに格納し、前記ビデオ符号変換制御手段と前
記オーディオ符号変換制御手段と前記画像・音声符号変
換制御手段を制御し、生成された符号を前記ビデオ符号
バッファや前記オーディオ符号バッファや前記システム
バッファに格納して、前記アプリケーションに符号を渡
すことを特徴とする請求項4に記載の符号圧縮化/デー
タ変換装置に存する。また、この発明の請求項6に記載
の発明の要旨は、前記アプリケーションは、ビデオとオ
ーディオのキャプチャデバイスを初期化する第1工程を
実行し、符号圧縮化制御に開始要求を出して必要なメモ
リを獲得させる第2工程を実行し、MPEG符号を記録
するファイルをオープンする第3工程を実行し、ビデオ
キャプチャデバイスから符号圧縮化もしくはデータ変換
またはキャプチャしたデータがあるかどうかを判断する
第4工程を実行し、前記ビデオキャプチャデバイスから
符号圧縮化もしくはデータ変換またはキャプチャしたデ
ータがある場合は前記原画像受け渡し制御手段を呼び出
す第5工程を実行し、前記ビデオキャプチャデバイスか
ら符号圧縮化もしくはデータ変換またはキャプチャした
データがない場合はオーディオのキャプチャデバイスか
ら符号圧縮化もしくはデータ変換またはキャプチャした
データがあるかどうかを判断する第6工程を実行し、前
記オーディオのキャプチャデバイスから符号圧縮化もし
くはデータ変換またはキャプチャしたデータがある場合
は前記原音声受け渡し制御手段を呼び出す第7工程を実
行し、前記オーディオのキャプチャデバイスから符号圧
縮化もしくはデータ変換またはキャプチャしたデータが
ない場合は圧縮符号があるかどうかを判断する第8工程
を実行し、前記オーディオのキャプチャデバイスから符
号圧縮化もしくはデータ変換またはキャプチャしたデー
タがある場合は圧縮符号をファイルに書き込む第9工程
を実行するとともに、前記オーディオのキャプチャデバ
イスから符号圧縮化もしくはデータ変換またはキャプチ
ャしたデータがない場合は符号圧縮化もしくはデータ変
換またはキャプチャが終了したかどうかを判断する第1
0工程を実行し、前記符号圧縮化もしくはデータ変換ま
たはキャプチャが終了していない場合は前記第4工程に
戻り、前記符号圧縮化もしくはデータ変換またはキャプ
チャが終了した場合はファイルをクローズする第11工
程を実行するとともに、符号圧縮化制御に終了要求を出
して獲得したメモリを解放させる第12工程を実行する
ことを特徴とする請求項5に記載の符号圧縮化/データ
変換装置に存する。また、この発明の請求項7に記載の
発明の要旨は、前記原画像受け渡し制御手段は、キャプ
チャフレーム番号を加算する第21工程を実行するとと
もに、一時停止かどうかを判断する第22工程を実行
し、前記一時停止でない場合は前記ビデオキャプチャバ
ッファに符号圧縮化もしくはデータ変換またはキャプチ
ャした原画像が格納可能かどうかを判断する第26工程
に進み、前記一時停止である場合は再開かどうかを判断
する第23工程を実行するとともに、前記再開でない場
合は所定応答を前記アプリケーションに返す第25工程
に進み、前記再開である場合はキャプチャフレーム番号
が再開フレーム番号以上であるかどうかを判断する第2
4工程を実行するとともに、前記キャプチャフレーム番
号が再開フレーム番号以上でない場合は所定応答を前記
アプリケーションに返す第25工程を実行して処理を終
了し、前記キャプチャフレーム番号が再開フレーム番号
以上である場合は前記ビデオキャプチャバッファに符号
圧縮化もしくはデータ変換またはキャプチャした原画像
が格納可能かどうかを判断する第26工程を実行すると
ともに、前記キャプチャフレーム番号が再開フレーム番
号以上でない場合は前記一時停止・再開制御手段を起動
する第29工程に進み、前記ビデオキャプチャバッファ
に符号圧縮化もしくはデータ変換またはキャプチャした
原画像が格納可能である場合は符号圧縮化もしくはデー
タ変換またはキャプチャした原画像を前記ビデオキャプ
チャバッファに格納する第27工程を実行するととも
に、前記ビデオ符号変換制御手段に符号圧縮化もしくは
データ変換またはキャプチャしたデータがあることを知
らせる第28工程を実行し、第29工程に進んだ場合は
前記一時停止・再開制御手段を起動することを特徴とす
る請求項5に記載の符号圧縮化/データ変換装置に存す
る。また、この発明の請求項8に記載の発明の要旨は、
前記原音声受け渡し制御手段は、キャプチャサンプル番
号を加算する第31工程を実行するとともに、一時停止
かどうかを判断する第32工程を実行し、前記一時停止
でない場合は前記オーディオキャプチャバッファに符号
圧縮化もしくはデータ変換またはキャプチャした原画像
が格納可能かどうかを判断する第36工程に進み、前記
一時停止である場合は再開かどうかを判断する第33工
程を実行するとともに、前記再開でない場合は所定応答
を前記アプリケーションに返す第35工程に進み、前記
再開である場合はキャプチャサンプル番号が再開サンプ
ル番号以上であるかどうかを判断する第34工程を実行
するとともに、前記キャプチャサンプル番号が再開サン
プル番号以上でない場合は所定応答を前記アプリケーシ
ョンに返す第35工程を実行して処理を終了し、前記キ
ャプチャサンプル番号が再開サンプル番号以上である場
合は前記オーディオキャプチャバッファに符号圧縮化も
しくはデータ変換またはキャプチャした原画像が格納可
能かどうかを判断する第36工程を実行するとともに、
前記オーディオキャプチャバッファに符号圧縮化もしく
はデータ変換またはキャプチャした原画像が格納可能で
ない場合は前記一時停止・再開制御手段を起動する第3
9工程に進み、前記オーディオキャプチャバッファに符
号圧縮化もしくはデータ変換またはキャプチャした原画
像が格納可能である場合は符号圧縮化もしくはデータ変
換またはキャプチャした原画像を前記オーディオキャプ
チャバッファに格納する第37工程を実行するととも
に、前記ビデオ符号変換制御手段に符号圧縮化もしくは
データ変換またはキャプチャしたデータがあることを知
らせる第38工程を実行し、前記第39工程に進んだ場
合は前記一時停止・再開制御手段を起動することを特徴
とする請求項5に記載の符号圧縮化/データ変換装置に
存する。また、この発明の請求項9に記載の発明の要旨
は、前記ビデオ符号変換制御手段は、前記ビデオキャプ
チャバッファに格納されたデータがあるかどうかを判断
する第41工程を実行し、前記ビデオキャプチャバッフ
ァから原画像を取り出す第42工程を実行し、圧縮フレ
ーム数を加算する第43工程を実行し、原画像をビデオ
圧縮する第44工程を実行し、生成したビデオ符号を前
記ビデオ符号バッファに格納する第45工程を実行し、
その後に、前記インターフェース制御手段から一時停止
の要求があるかどうかを判断する第46工程を実行し、
前記インターフェース制御手段から一時停止の要求がな
い場合は前記第41工程に戻り、前記インターフェース
制御手段から一時停止の要求がある場合は前記インター
フェース制御手段から再開の要求があるかどうかを判断
する第47工程を実行するとともに、前記インターフェ
ース制御手段から再開の要求がない場合は前記第47工
程の先頭に戻り、前記インターフェース制御手段から再
開の要求がある場合は圧縮終了かどうかを判断する第4
8工程を実行するとともに、前記再開の要求がない場合
は前記第41工程に戻り、前記インターフェース制御手
段から再開の要求がある場合は処理を終了することを特
徴とする請求項5に記載の符号圧縮化/データ変換装置
に存する。また、この発明の請求項10に記載の発明の
要旨は、前記オーディオ符号変換制御手段は、前記オー
ディオキャプチャバッファに格納されたデータがあるか
どうかを判断する第51工程を実行し、前記オーディオ
キャプチャバッファから原画像を取り出す第52工程を
実行し、圧縮サンプル数を加算する第53工程を実行
し、原音声をオーディオ圧縮する第54工程を実行し、
生成したオーディオ符号を前記オーディオ符号バッファ
に格納する第55工程を実行し、その後に、前記インタ
ーフェース制御手段から一時停止の要求があるかどうか
を判断する第56工程を実行するとともに、前記インタ
ーフェース制御手段から一時停止の要求がない場合は前
記第51工程に戻り、前記インターフェース制御手段か
ら一時停止の要求がある場合は前記インターフェース制
御手段から再開の要求があるかどうかを判断する第57
工程を実行するとともに、前記インターフェース制御手
段から再開の要求がない場合は前記第57工程の先頭に
戻り、前記インターフェース制御手段から再開の要求が
ある場合は圧縮終了かどうかを判断する第58工程を実
行し、前記圧縮終了でない場合は前記第51工程に戻
り、前記圧縮終了である場合は処理を終了することを特
徴とする請求項5に記載の符号圧縮化/データ変換装置
に存する。また、この発明の請求項11に記載の発明の
要旨は、前記一時停止・再開制御手段は、ビデオ圧縮を
一時停止する第61工程を実行し、オーディオ圧縮を一
時停止する第62工程を実行し、負荷が低下したかどう
かを判断する第63工程を実行し、前記負荷が低下して
いない場合は前記第63工程に戻り、前記負荷が低下し
ている場合は現在までの圧縮フレーム数から時間量を計
算する第64工程を実行し、その後に、現在までの圧縮
サンプル数から時間量を計算する第65工程を実行し、
その後に、圧縮フレーム数と圧縮サンプル数から時間量
の差を計算する第66工程を実行し、その後に、時間量
の差と現在のキャプチャフレーム番号からビデオ圧縮
(ビデオ符号圧縮化)の再開フレーム番号を計算する第
67工程を実行し、その後に、時間量の差と現在のキャ
プチャサンプル数からオーディオ圧縮(オーディオ符号
圧縮化)の再開サンプル番号を計算する第68工程を実
行し、その後に、前記ビデオキャプチャバッファに格納
された原画像を全て破棄する第69工程を実行し、ビデ
オ圧縮(ビデオ符号圧縮化)を再開する第70工程を実
行し、前記オーディオキャプチャバッファに格納された
原音声を全て破棄する第71工程を実行し、オーディオ
圧縮(オーディオ符号圧縮化)を再開する第72工程を
実行することを特徴とする請求項5に記載の符号圧縮化
/データ変換装置に存する。また、この発明の請求項1
2に記載の発明の要旨は、前記インターフェース制御手
段は、ビデオ圧縮またはオーディオ圧縮が継続できなく
なったとき、前記ビデオ符号変換制御手段と前記オーデ
ィオ符号変換制御手段を一時停止して、前記アプリケー
ションから渡されるビデオとオーディオのキャプチャデ
ータを圧縮しないで、所定応答を前記アプリケーション
に返し、ビデオ符号とオーディオ符号の時間量の差が少
なくなるようにビデオ圧縮(ビデオ符号圧縮化)とオー
ディオ圧縮(オーディオ符号圧縮化)の再開時刻を変え
て、リアルタイム符号圧縮化を再開することを特徴とす
る請求項6乃至12のいずれか一項に記載の符号圧縮化
/データ変換装置に存する。また、この発明の請求項1
3に記載の発明の要旨は、前記インターフェース制御手
段は、ビデオ圧縮またはオーディオ圧縮が継続できなく
なった際に、前記ビデオ符号変換制御手段と前記オーデ
ィオ符号変換制御手段を一時停止して、前記アプリケー
ションから渡される原画像と原音声を処理しないで、所
定応答を返し、その後に、生成したビデオ符号とオーデ
ィオ符号の時間量の差を調べて、前記ビデオ符号の方が
多い場合は差が少なくなるようにオーディオ圧縮(オー
ディオ符号圧縮化)の再開時刻を早め、前記ビデオ符号
の方が少ない場合は差が少なくなるようにオーディオ圧
縮(オーディオ符号圧縮化)の再開時刻を遅くすること
を特徴とする請求項12に記載の符号圧縮化/データ変
換装置に存する。また、この発明の請求項14に記載の
発明の要旨は、複数のプログラムが動作できるシステム
上で画像と音声を符号圧縮化してリアルタイムで蓄積媒
体に記録する符号圧縮化/データ変換方法であって、ビ
デオ圧縮を継続できない間は、符号圧縮化もしくはデー
タ変換またはキャプチャした画像データを圧縮しないで
アプリケーションに所定応答を返す工程と、オーディオ
圧縮を継続できない間は、符号圧縮化もしくはデータ変
換またはキャプチャした音声データを圧縮しないでアプ
リケーションに所定応答を返す工程と、ビデオ符号とオ
ーディオ符号の時間量の差を減らすような時刻でビデオ
圧縮(ビデオ符号圧縮化)を再開する工程と、ビデオ符
号とオーディオ符号の時間量の差を減らすような時刻で
オーディオ圧縮を再開する工程と、前記アプリケーショ
ンが直接圧縮処理に関与しなくてもよいように、画像圧
縮処理を集約して処理するインターフェース制御工程を
有し、他のプログラムの実行によりシステムの負荷が上
がり、リアルタイム圧縮が継続できなくなったときに、
前記アプリケーション側は何も処理しなくても、自動的
にリアルタイム圧縮を一時停止して、その後で自動的に
AV同期を取ってリアルタイム符号圧縮化を再開するこ
とを特徴とする符号圧縮化/データ変換方法に存する。
The gist of the invention described in claim 1 of the present invention is to code-compress or convert data of an image and / or sound on a system capable of operating a plurality of programs, A code compression / data conversion device for recording or distributing data in real time, the code compression / data conversion device having an automatic pause or automatic restart function of code compression or data conversion. Further, the gist of the invention described in claim 2 of the present invention is to have means for returning a response to an application without code compression or conversion of image or audio data while code compression or data conversion cannot be continued. The code compression / code compression method according to claim 1,
Exists in the data converter. The gist of the invention described in claim 3 of the present invention is characterized in that there is provided a means for restarting code compression or data conversion at a time such as to reduce the difference in the amount of time between the image code and the audio code. Item 1 is a code compression / data conversion device. The gist of the invention described in claim 4 of the present invention resides in that an interface control that collectively processes code compression or data conversion so that the application does not need to directly participate in code compression or data conversion processing. Means for controlling the application or operating system when the load on the system is increased due to execution of another program and real-time processing cannot be continued. A code compression / data conversion device according to any one of claims 1 to 3. The gist of the invention described in claim 5 of the present invention is that the application operated by the user, the interface control means for controlling a compression operation according to a request from the application, and a video code conversion control for controlling video compression. Means, audio code conversion control means for controlling audio compression, image / audio code conversion control means for controlling system coding,
A video capture buffer for temporarily storing code-compressed or data-converted or captured video data, a video code buffer for temporarily storing generated video codes, and a temporary buffer for code-compressed or data-converted or captured audio data. An audio capture buffer for temporarily storing the generated audio code, an audio code buffer for temporarily storing the generated audio code, and a system buffer for temporarily storing the system code, wherein the interface control means performs code compression or data conversion. Or an original image transfer control unit that passes a captured original image to the video code conversion control unit; an original audio transfer control unit that transfers code compression or data conversion or captured original audio to the audio code conversion control unit; The application has a pause / resume control unit for performing pause and resumption of compression, and the application receives the original image and the original audio that has been subjected to code compression or data conversion or capture, and passes the received original image and audio to the interface control unit. The system code passed to the interface control means is written into a system code file, and the interface control means stores the compressed or data converted or captured original image in the video capture buffer, and performs the code compression or data conversion or capture. Storing the original audio in the audio capture buffer, controlling the video code conversion control means, the audio code conversion control means, and the image / audio code conversion control means, and transmitting the generated code to the video code buffer or the audio codec. Sign Stored in § and the system buffer resides in compacted coded / data conversion apparatus according to claim 4, characterized in that passing the code to the application. The gist of the invention according to claim 6 of the present invention resides in that the application executes a first step of initializing a video and audio capture device, issues a start request to the code compression control, and requires a memory. A third step of opening a file for recording an MPEG code, and a fourth step of determining whether there is code compression or data conversion or captured data from the video capture device. And performing a fifth step of calling the original image transfer control means if there is code compression or data conversion or captured data from the video capture device, and performing code compression or data conversion or If there is no captured data, audio Performing a sixth step of determining whether there is code compression or data conversion or captured data from the audio capture device, and if there is code compression or data conversion or captured data from the audio capture device, passing the original audio Performing a seventh step of calling control means, and performing an eighth step of determining whether there is a compression code if there is no code compression or data conversion or data captured from the audio capture device, Performing a ninth step of writing a compressed code to a file when there is code compression or data conversion or data captured from the capture device, and performing code compression or data conversion or capture from the audio capture device; If there is no data first to determine whether compacted coded or data conversion or capture is completed
Step 11 is performed. If the code compression or data conversion or capture is not completed, the process returns to the fourth step. If the code compression or data conversion or capture is completed, a file is closed. And executing a twelfth step of issuing a termination request to the code compression control to release the acquired memory. 6. The code compression / data conversion apparatus according to claim 5, wherein The gist of the invention described in claim 7 of the present invention resides in that the original image transfer control means executes a twenty-first step of adding a capture frame number and executes a twenty-second step of determining whether or not to temporarily stop. If it is not the pause, the process proceeds to a step 26 for determining whether or not the video compression buffer can store the code-compressed or data-converted or captured original image. If it is the pause, it is determined whether or not to resume. Performing the twenty-third step, and if not restarting, proceed to a twenty-fifth step of returning a predetermined response to the application; otherwise, determine whether the capture frame number is greater than or equal to the restart frame number.
Performing the fourth step, and if the capture frame number is not equal to or greater than the restart frame number, executing a twenty-fifth step of returning a predetermined response to the application and terminating the processing; and if the capture frame number is equal to or greater than the restart frame number. Executes a 26th step of judging whether the compressed image or data conversion or the captured original image can be stored in the video capture buffer, and if the capture frame number is not equal to or larger than the restart frame number, the pause / restart Proceeding to a twenty-ninth step of activating the control means, if the compressed video or data converted or captured original image can be stored in the video capture buffer, the compressed video or data converted or captured original image is stored in the video capture buffer. Case Performing a twenty-seventh step, and performing a twenty-eighth step of notifying the video code conversion control means that there is code compression or data conversion or captured data. The code compression / data conversion apparatus according to claim 5, wherein the restart control means is activated. The gist of the invention described in claim 8 of the present invention is as follows.
The source audio transfer control means executes a thirty-first step of adding a capture sample number, and executes a thirty-second step of determining whether or not a pause has occurred. Alternatively, the process proceeds to a step 36 for judging whether or not the data conversion or the captured original image can be stored. In the case of the pause, a step 33 for judging whether or not the image is to be resumed is executed. To the 35th step of returning to the application, and in the case of the resumption, performing a 34th step of determining whether or not the capture sample number is equal to or greater than the resumption sample number, and the capture sample number is not greater than or equal to the resumption sample number. In this case, a predetermined response is returned to the application. Performing the process and terminating the process. If the captured sample number is equal to or larger than the resumed sample number, it is determined whether the audio capture buffer can store a code-compressed or data-converted or captured original image. And
Activating the pause / restart control means if the compressed image or data converted or the captured original image cannot be stored in the audio capture buffer.
Proceeding to a ninth step, if a code-compressed or data-converted or captured original image can be stored in the audio capture buffer, a code-compressed or data-converted or captured original image is stored in the audio capture buffer in a 37th step And performing a thirty-eighth step of notifying the video code conversion control means that there is code compression or data conversion or captured data. If the process proceeds to the thirty-ninth step, the pause / resume control means is executed. The code compression / data conversion device according to claim 5, wherein The gist of the invention described in claim 9 is that the video code conversion control means executes a forty-first step of determining whether or not there is data stored in the video capture buffer. Performing a forty-second step of extracting the original image from the buffer, performing a forty-third step of adding the number of compressed frames, performing a forty-fourth step of video-compressing the original image, and storing the generated video code in the video code buffer. Execute the forty-fifth step,
Thereafter, a 46th step of determining whether or not there is a request for suspension from the interface control means is executed,
If there is no request for suspension from the interface control means, the process returns to the forty-first step. If there is a request for suspension from the interface control means, it is determined whether there is a request for resumption from the interface control means. Performing the step and returning to the beginning of the forty-seventh step if there is no request for resumption from the interface control means, and judging whether or not to end compression if there is a request for resumption from the interface control means.
6. The code according to claim 5, wherein the process is performed in eight steps, and if there is no request for resumption, the process returns to step 41, and if there is a request for resumption from the interface control means, the process is terminated. The compression / data converter resides. The gist of the invention described in claim 10 is that the audio code conversion control means executes a fifty-first step of determining whether or not there is data stored in the audio capture buffer. Performing a 52nd step of extracting the original image from the buffer, performing a 53rd step of adding the number of compressed samples, and performing a 54th step of audio-compressing the original audio;
Performing a fifty-fifth step of storing the generated audio code in the audio code buffer, and subsequently performing a fifty-sixth step of determining whether there is a request for a pause from the interface control means; If there is no request for suspension, the process returns to the 51st step. If there is a request for suspension from the interface control means, it is determined whether there is a request for resumption from the interface control means.
Performing the step, returning to the beginning of the fifty-seventh step when there is no request for resumption from the interface control means, and performing a fifty-eighth step for determining whether or not to end compression when there is a request for resumption from the interface control means. The code compression / data conversion apparatus according to claim 5, wherein the code compression / data conversion apparatus performs the compression and returns to the fifty-first step if the compression is not completed, and ends the processing if the compression is completed. The gist of the invention described in claim 11 is that the pause / resume control means executes a 61st step of temporarily stopping video compression and executes a 62nd step of temporarily stopping audio compression. Performing a 63rd step of determining whether the load has decreased; if the load has not decreased, the process returns to the 63rd step; if the load has decreased, the time is calculated from the number of compressed frames up to the present. Performing a sixty-fourth step of calculating the amount, followed by a sixty-fifth step of calculating the amount of time from the number of compressed samples to date;
Thereafter, a 66th step of calculating a difference in the amount of time from the number of compressed frames and the number of compressed samples is performed, and thereafter, a restart frame of video compression (video code compression) is performed based on the difference in the amount of time and the current capture frame number. Performing a 67th step of calculating a number, followed by a 68th step of calculating a restart sample number of audio compression (audio code compression) from the difference in the amount of time and the current number of captured samples; A 69th step of discarding all the original images stored in the video capture buffer is performed, and a 70th step of restarting video compression (video code compression) is performed. Performing a 71st step of discarding all data and executing a 72nd step of restarting audio compression (audio code compression). To claim 5 which consists in compacted coded / data conversion apparatus according. Further, claim 1 of the present invention
The gist of the invention described in claim 2 is that, when the video compression or the audio compression cannot be continued, the interface control means suspends the video code conversion control means and the audio code conversion control means and transfers the video code conversion control means and the audio code conversion control means from the application. A predetermined response is returned to the application without compressing the video and audio capture data to be compressed, and video compression (video code compression) and audio compression (audio code compression) are performed so that the time difference between the video code and the audio code is reduced. The code compression / data conversion apparatus according to any one of claims 6 to 12, wherein the real time code compression is restarted by changing the restart time of (en). Further, claim 1 of the present invention
The gist of the invention described in claim 3 is that the interface control means temporarily stops the video code conversion control means and the audio code conversion control means when video compression or audio compression cannot be continued, and A predetermined response is returned without processing the passed original image and original sound, and thereafter, the difference in the amount of time between the generated video code and the audio code is checked, and if the video code is larger, the difference is reduced. Wherein the restart time of audio compression (audio code compression) is advanced, and the restart time of audio compression (audio code compression) is delayed so as to reduce the difference when the number of video codes is smaller. Item 12 is the code compression / data conversion device. The gist of the invention described in claim 14 of the present invention is a code compression / data conversion method for code-compressing an image and a sound on a system capable of operating a plurality of programs and recording the image and sound on a storage medium in real time. Returning a predetermined response to the application without compressing or converting data or compressing the captured image data while video compression cannot be continued; and performing code compression or data conversion or capturing while the audio compression cannot be continued. Returning a predetermined response to the application without compressing the audio data; restarting video compression (video code compression) at a time that reduces the time difference between the video code and the audio code; Restarting audio compression at a time that reduces the amount of time difference between Has an interface control step to collectively process image compression processing so that the application does not need to be directly involved in the compression processing. Execution of other programs increases the load on the system, making it impossible to continue real-time compression. When
Code compression / data, wherein the application automatically suspends real-time compression without any processing, and then automatically resumes real-time code compression with AV synchronization. It consists in a conversion method.

【0025】[0025]

【発明の実施の形態】本発明は、複数のプログラムが動
作できるシステム上で画像と音声を符号圧縮化してリア
ルタイムで蓄積媒体に記録する符号圧縮化/データ変換
装置において、他のプログラムの実行によりシステムの
負荷が上がり、リアルタイム圧縮が継続できなくなった
ときに、アプリケーション側は何も処理しなくても、自
動的にリアルタイム圧縮を一時停止して、その後で自動
的にAV同期を取ってリアルタイム符号圧縮化を再開で
きる構成を提供するものである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention relates to a code compression / data conversion apparatus for code-compressing an image and a sound on a system capable of operating a plurality of programs and recording the resulting data in a storage medium in real time by executing another program. When the load on the system rises and real-time compression cannot be continued, the application side automatically suspends real-time compression without performing any processing, and then automatically synchronizes with the real-time real-time code. It is intended to provide a configuration capable of restarting compression.

【0026】(第1の実施の形態)以下、本発明の第1
の実施の形態を図面に基づいて詳細に説明する。図7を
用いて後述するように、アプリケーション41が直接圧
縮処理に関与しなくてもよいようにインターフェース制
御手段42が画像圧縮処理を集約して処理する。
(First Embodiment) Hereinafter, a first embodiment of the present invention will be described.
An embodiment will be described in detail with reference to the drawings. As described later with reference to FIG. 7, the interface control unit 42 collectively processes the image compression processing so that the application 41 does not need to directly participate in the compression processing.

【0027】また、インターフェース制御手段42はビ
デオ圧縮(ビデオ符号圧縮化)またはオーディオ圧縮
(オーディオ符号圧縮化)が継続できなくなるとビデオ
符号変換制御手段10とオーディオ符号変換制御手段2
0を一時停止して、アプリケーション41から渡される
ビデオとオーディオのキャプチャデータを圧縮しない
で、所定応答をアプリケーション41に返す。次に、ビ
デオ符号とオーディオ符号の時間量の差が少なくなるよ
うにビデオ圧縮(ビデオ符号圧縮化)とオーディオ圧縮
(オーディオ符号圧縮化)の再開時刻を変えて、リアル
タイム符号圧縮化を再開する。以下、本発明の実施の形
態を図面に基づいて詳細に説明する。なお、本実施の形
態では、MPEG(Moving Picture E
xpertsGroup)圧縮方式の場合について図を
参照して説明する。
When the video compression (video code compression) or the audio compression (audio code compression) cannot be continued, the interface control means 42 controls the video code conversion control means 10 and the audio code conversion control means 2.
0 is temporarily stopped, and a predetermined response is returned to the application 41 without compressing the video and audio capture data passed from the application 41. Next, real-time code compression is restarted by changing the restart time of video compression (video code compression) and audio compression (audio code compression) so that the difference in the amount of time between the video code and the audio code is reduced. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the present embodiment, MPEG (Moving Picture E)
(xpartsGroup) compression method will be described with reference to the drawings.

【0028】図1は、MPEGビデオに準拠した符号フ
ォーマットの構成図である。図1を参照すると、本実施
の形態では、ビデオデータは1個以上のビデオシーケン
ス(Video Sequence)から構成されてい
て、ビデオシーケンスエンドコードで終了する。
FIG. 1 is a configuration diagram of a code format conforming to MPEG video. Referring to FIG. 1, in the present embodiment, video data is composed of one or more video sequences (Video Sequence), and ends with a video sequence end code.

【0029】上記ビデオシーケンスは、ビデオシーケン
スヘッダ(Video Sequence Heade
r)と、1個以上のGOP(Group Of Pic
ture)から構成される。GOPは1個以上のピクチ
ャから構成され、1つのピクチャが1枚の画像を示して
いる。ピクチャの先頭にはピクチャ種別等の情報を含ん
だピクチャヘッダが置かれる。
The video sequence includes a video sequence header (Video Sequence Head).
r) and one or more GOPs (Group Of Pic)
cure). A GOP is composed of one or more pictures, and one picture indicates one image. At the head of the picture, a picture header including information such as a picture type is placed.

【0030】上記ピクチャには、フレーム内符号のみか
ら構成されるIピクチャと、前方向のみのフレーム間符
号から構成されるPピクチャと、前後の双方向のフレー
ム間符号から構成されるBピクチャの3種類がある。こ
のようなピクチャは、任意の領域に分割された複数のス
ライスから構成される。
The pictures include an I picture composed of only intra-frame codes, a P picture composed only of forward inter-frame codes, and a B picture composed of preceding and succeeding bi-directional inter-frame codes. There are three types. Such a picture is composed of a plurality of slices divided into arbitrary regions.

【0031】上記スライスは、左から右へ、または上か
ら下への順序で並んだ複数のマクロブロックから構成さ
れる。当該マクロブロックは、大別してフレーム内符号
であるイントラブロックと前方向や双方向のフレーム間
符号であるインターブロックの2種類がある。
The slice is composed of a plurality of macroblocks arranged in order from left to right or from top to bottom. The macroblocks are roughly classified into two types: intra blocks, which are intra-frame codes, and inter blocks, which are forward or bidirectional inter-frame codes.

【0032】上記Iピクチャは、イントラブロックのみ
で構成されるが、PピクチャやBピクチャはインターブ
ロックのみでなくイントラブロックも含む場合がある。
The I picture is composed of only intra blocks, but P pictures and B pictures may include not only inter blocks but also intra blocks.

【0033】また、上記マクロブロックは、16×16
ドットのブロックをさらに8×8ドットのブロックに分
割した輝度成分(Y1,Y2,Y3,Y4)と輝度成分
に一致する領域の8×8ドットのブロックの色差成分
(Cb,Cr)の6個のブロックから構成される。当該
8×8ドットのブロックが符号化の最小単位となる。
The macro block is 16 × 16
Six luminance components (Y1, Y2, Y3, Y4) obtained by further dividing the dot block into 8 × 8 dot blocks, and six color difference components (Cb, Cr) of the 8 × 8 dot block in the region matching the luminance component Block. The block of 8 × 8 dots is the minimum unit of encoding.

【0034】図2は、MPEGオーディオに準拠した符
号フォーマットの構成図である。図2を参照すると、本
実施の形態では、オーディオデータは1個のオーディオ
シーケンスから構成されて、オーディオシーケンスは1
個以上のAAU(AudioAccess Unit:
オーディオ復号単位)から構成される。
FIG. 2 is a configuration diagram of a code format conforming to MPEG audio. Referring to FIG. 2, in the present embodiment, audio data is composed of one audio sequence, and the audio sequence is one audio sequence.
AAUs (AudioAccess Units)
Audio decoding unit).

【0035】また、上記1個のAAUは、同期ワード、
ビットレート、サンプリング周波数等の情報を含んだA
AUヘッダと圧縮されたオーディオ符号から構成され
る。1個のAAUが符号化の最小単位となる。
The one AAU includes a synchronization word,
A including information such as bit rate and sampling frequency
It is composed of an AU header and a compressed audio code. One AAU is the minimum unit of encoding.

【0036】図3は、MPEGシステムに準拠したビデ
オ符号・オーディオ符号の多重化フォーマットの構成図
である。図3を参照すると、本実施の形態では、ビデオ
符号・オーディオ符号は1個のシステムストリームから
構成されて、システムストリームは複数のパックから構
成される。
FIG. 3 is a configuration diagram of a multiplex format of a video code and an audio code conforming to the MPEG system. Referring to FIG. 3, in the present embodiment, a video code / audio code is composed of one system stream, and the system stream is composed of a plurality of packs.

【0037】上記パックはパックヘッダとシステムヘッ
ダと1個以上のパケットから構成される。また、システ
ムヘッダはビットレート等の情報が格納されていて、2
番目以降のパックには付けても、付けなくてもよい。パ
ケットにはビデオパケットとオーディオパケットがあ
る。
The pack includes a pack header, a system header, and one or more packets. Further, the system header stores information such as a bit rate.
It may or may not be attached to the subsequent packs. Packets include video packets and audio packets.

【0038】このうちビデオパケットは、パケットヘッ
ダとビデオ符号から構成される。このビデオパケット内
のビデオ符号のみを取り出して連続すると、一連のビデ
オシーケンスが構成される。
The video packet includes a packet header and a video code. When only the video code in the video packet is extracted and continued, a series of video sequences is formed.

【0039】また、上記ビデオパケットのパケットヘッ
ダは、パケット開始コードと、パケット長(このパケッ
ト長の直後に続くパケットデータの全バイト数)を示す
コードと、再生出力の時刻を示すPTS(Presen
tation Time Stamp)と、復号の時刻
を示すDTS(Decoding Time Stam
p)等から構成される。
The packet header of the video packet includes a packet start code, a code indicating a packet length (the total number of bytes of packet data immediately following the packet length), and a PTS (Presen) indicating a reproduction output time.
station time stamp) and a decoding time stamp (DTS) indicating a decoding time.
p) and the like.

【0040】上記ビデオ符号ではIピクチャやPピクチ
ャがBピクチャよりも前に符号化されるので、復号する
順番と再生する順番が異なることがある。このため、時
刻を示すコードも再生時と復号時の2種類が用意されて
いて、復号の時刻と再生の時刻が異なる場合はPTSと
DTSの両方が出力される。復号の時刻と再生の時刻が
同じ場合はPTSのみが出力される。
In the above video code, since the I picture and the P picture are coded before the B picture, the order of decoding and the order of reproduction may be different. For this reason, two types of codes indicating the time are also provided for reproduction and decoding. If the decoding time and the reproduction time are different, both PTS and DTS are output. If the decoding time and the reproduction time are the same, only the PTS is output.

【0041】また、上記オーディオパケットはパケット
ヘッダとオーディオ符号から構成される。このようなオ
ーディオパケット内のオーディオ符号のみを取り出して
連続することで、一連のオーディオシーケンスが構成さ
れる。
The audio packet includes a packet header and an audio code. A series of audio sequences is formed by extracting and continuing only the audio code in such an audio packet.

【0042】また、上記オーディオパケットのパケット
ヘッダは、パケット開始コードとパケット長を示すコー
ドと再生出力の時刻を示すPTS(Presentat
ion Time Stamp)等から構成される。オ
ーディオ符号では復号の順番と再生の順番が同じなので
PTSのみが出力される。
The packet header of the audio packet has a packet start code, a code indicating a packet length, and a PTS (Presentat) indicating a reproduction output time.
ion Time Stamp). Since the order of decoding and the order of reproduction are the same in the audio code, only the PTS is output.

【0043】上記ビデオパケットのPTSとオーディオ
パケットのPTSが一致している場合は、その符号が同
時に再生されることになる。
If the PTS of the video packet and the PTS of the audio packet match, the codes are reproduced simultaneously.

【0044】以下、画像と音声をリアルタイムでMPE
G圧縮中に圧縮を一時停止してAV同期を取って再開す
る場合の圧縮動作について説明する。図7は、本発明の
第1の実施の形態に係る符号圧縮化/データ変換装置1
00を説明するための機能ブロック図である。
In the following, images and sounds are reproduced in real time by MPE.
A description will be given of a compression operation when the compression is temporarily stopped during the G compression and resumed with AV synchronization. FIG. 7 shows a code compression / data conversion apparatus 1 according to the first embodiment of the present invention.
It is a functional block diagram for explaining 00.

【0045】図7を参照すると、本実施の形態の符号圧
縮化/データ変換装置100は、ユーザが操作するアプ
リケーション41と、アプリケーション41からの要求
に従って圧縮動作を制御するインターフェース制御手段
42と、図4で後述するビデオ圧縮(ビデオ符号圧縮
化)を制御するビデオ符号変換制御手段10と、図5で
後述するオーディオ圧縮(オーディオ符号圧縮化)を制
御するオーディオ符号変換制御手段20と、図6で後述
するシステム符号化を制御する画像・音声符号変換制御
手段30と、符号圧縮化もしくはデータ変換またはキャ
プチャしたビデオデータを一時的に格納するビデオキャ
プチャバッファ43と、生成したビデオ符号を一時的に
格納するビデオ符号バッファ44と、符号圧縮化もしく
はデータ変換またはキャプチャしたオーディオデータを
一時的に格納するオーディオキャプチャバッファ46
と、生成したオーディオ符号を一時的に格納するオーデ
ィオ符号バッファ47と、システム符号を一時的に格納
するシステムバッファ45を中心にして構成されてい
る。
Referring to FIG. 7, a code compression / data conversion apparatus 100 according to the present embodiment includes an application 41 operated by a user, an interface control means 42 for controlling a compression operation in accordance with a request from the application 41, 4, a video code conversion control means 10 for controlling video compression (video code compression) described later, an audio code conversion control means 20 for controlling audio compression (audio code compression) described later in FIG. 5, and FIG. Image / audio code conversion control means 30 for controlling system coding described later, video capture buffer 43 for temporarily storing code-compressed or data-converted or captured video data, and temporarily stored generated video codes Video code buffer 44 and code compression or data conversion or Audio capture buffer 46 for temporarily storing Yapucha audio data
, An audio code buffer 47 for temporarily storing the generated audio code, and a system buffer 45 for temporarily storing the system code.

【0046】インターフェース制御手段42には、符号
圧縮化もしくはデータ変換またはキャプチャした原画像
をビデオ符号変換制御手段10に渡す原画像受け渡し制
御手段48と、符号圧縮化もしくはデータ変換またはキ
ャプチャした原音声をオーディオ符号変換制御手段20
に渡す原音声受け渡し制御手段49と、符号圧縮化の一
時停止と再開を行う一時停止・再開制御手段50が含ま
れる。
The interface control means 42 includes an original image transfer control means 48 for transferring the code-compressed or data-converted or captured original image to the video code-conversion control means 10, and a code-compressed or data-converted or captured original sound. Audio code conversion control means 20
And a pause / resume control unit 50 for suspending and resuming code compression.

【0047】アプリケーション41は、符号圧縮化もし
くはデータ変換またはキャプチャした原画像と原音声を
受け取って、インターフェース制御手段42に渡して、
インターフェース制御手段42に渡されたシステム符号
をシステム符号ファイルに書き込む。
The application 41 receives the original image and the original image that have been code-compressed, converted, or captured, and passes them to the interface control means 42.
The system code passed to the interface control means 42 is written in a system code file.

【0048】インターフェース制御手段42は、符号圧
縮化もしくはデータ変換またはキャプチャした原画像を
ビデオキャプチャバッファ43に格納し、符号圧縮化も
しくはデータ変換またはキャプチャした原音声をオーデ
ィオキャプチャバッファ46に格納し、ビデオ符号変換
制御手段10とオーディオ符号変換制御手段20と画像
・音声符号変換制御手段30を制御し、生成された符号
をビデオ符号バッファ44やオーディオ符号バッファ4
7やシステムバッファ45に格納して、アプリケーショ
ン41に符号を渡す。
The interface control means 42 stores the code-compressed or data-converted or captured original image in the video capture buffer 43, stores the code-compressed or data-converted or captured original audio in the audio capture buffer 46, The code conversion control means 10, the audio code conversion control means 20, and the image / audio code conversion control means 30 are controlled, and the generated codes are stored in the video code buffer 44 and the audio code buffer 4.
7 and the system buffer 45 and pass the code to the application 41.

【0049】インターフェース制御手段42は、ビデオ
圧縮(ビデオ符号圧縮化)またはオーディオ圧縮(オー
ディオ符号圧縮化)が継続できなくなった際に、ビデオ
符号変換制御手段10とオーディオ符号変換制御手段2
0を一時停止して、アプリケーション41から渡される
原画像と原音声を処理しないで、所定応答を返す。その
後に、生成したビデオ符号とオーディオ符号の時間量の
差を調べて、ビデオ符号の方が多い場合は差が少なくな
るようにオーディオ圧縮(オーディオ符号圧縮化)の再
開時刻を早くする。ビデオ符号の方が少ない場合は差が
少なくなるようにオーディオ圧縮(オーディオ符号圧縮
化)の再開時刻を遅くする。
When video compression (video code compression) or audio compression (audio code compression) cannot be continued, the interface control means 42 controls the video code conversion control means 10 and the audio code conversion control means 2.
0 is temporarily stopped, and a predetermined response is returned without processing the original image and original sound passed from the application 41. Thereafter, the difference between the amount of time between the generated video code and the audio code is checked. If the number of video codes is larger, the restart time of audio compression (audio code compression) is advanced so that the difference is reduced. When the number of video codes is smaller, the restart time of audio compression (audio code compression) is delayed so as to reduce the difference.

【0050】本実施の形態では、このようにインターフ
ェース制御手段42が符号圧縮化の一時停止と再開を処
理しているので、アプリケーション41は何も処理する
必要がないといった効果を奏する。
In this embodiment, since the interface control means 42 processes the suspension and resumption of the code compression in this manner, the application 41 does not need to perform any processing.

【0051】なお、図7に示す符号圧縮化/データ変換
装置100ではアプリケーション41が原画像と原音声
の受け取り及び生成された符号のファイル書き込みを行
っているが、これに特に限定されることなく、インター
フェース制御手段42がこの2つの処理を行ってもよ
い。
In the code compression / data converter 100 shown in FIG. 7, the application 41 receives the original image and the original sound and writes the generated code into a file. However, the application is not limited to this. The interface control means 42 may perform these two processes.

【0052】次に、符号圧縮化/データ変換装置100
の動作(符号圧縮化/データ変換方法)について説明す
る。
Next, the code compression / data conversion device 100
(Code compression / data conversion method) will be described.

【0053】図8は、アプリケーション41が処理する
キャプチャ符号圧縮化の一処理を説明するためのフロー
チャートである。図8を参照すると、本実施の形態のキ
ャプチャ圧縮では、ビデオとオーディオのキャプチャデ
バイスを初期化し(ステップS1)、符号圧縮化制御
(ビデオ符号変換制御手段10、オーディオ符号変換制
御手段20)に開始要求を出して必要なメモリを獲得さ
せ(ステップS2)、MPEG符号を記録するファイル
をオープンし(ステップS3)、ビデオキャプチャデバ
イスから符号圧縮化もしくはデータ変換またはキャプチ
ャしたデータがあるかどうかを判断し(ステップS
4)、そうでない場合(ステップS4のN)はステップ
S6に進む。そうである場合(ステップS4のY)は原
画像受け渡し制御手段48を呼び出す(ステップS
5)。
FIG. 8 is a flow chart for explaining one process of the capture code compression processed by the application 41. Referring to FIG. 8, in the capture compression of the present embodiment, the video and audio capture devices are initialized (step S1), and the code compression control (video code conversion control means 10, audio code conversion control means 20) starts. A request is issued to acquire necessary memory (step S2), a file for recording the MPEG code is opened (step S3), and it is determined whether or not there is code compression or data conversion or data captured from the video capture device. (Step S
4) If not (N in step S4), the process proceeds to step S6. If so (Y in step S4), the original image transfer control unit 48 is called (step S4).
5).

【0054】その後に、オーディオのキャプチャデバイ
スから符号圧縮化もしくはデータ変換またはキャプチャ
したデータがあるかどうかを判断し(ステップS6)、
そうでない場合(ステップS6のN)はステップS8に
進む。そうである場合(ステップS6のY)は原音声受
け渡し制御手段49を呼び出す(ステップS7)。
Thereafter, it is determined whether or not there is code compression, data conversion, or captured data from the audio capture device (step S6).
Otherwise (N in step S6), the process proceeds to step S8. If so (Y in step S6), the original voice transfer control means 49 is called (step S7).

【0055】その後に、圧縮符号があるかどうかを判断
して(ステップS8)、そうでない場合(ステップS8
のN)はステップS10に進む。そうである場合(ステ
ップS8のY)は圧縮符号をファイルに書き込み(ステ
ップS9)、キャプチャが終了したかどうかを判断し
(ステップS10)、そうでない場合(ステップS10
のN)はステップS4に戻る。そうである場合(ステッ
プS10のY)はファイルをクローズし(ステップS1
1)、符号圧縮化制御(ビデオ符号変換制御手段10、
オーディオ符号変換制御手段20)に終了要求を出して
獲得したメモリを解放させる(ステップS12)。
Thereafter, it is determined whether or not there is a compression code (step S8). If not (step S8)
N) proceeds to step S10. If so (Y in step S8), the compression code is written to the file (step S9), and it is determined whether or not the capture has been completed (step S10). If not (step S10)
N) returns to step S4. If so (Y in step S10), the file is closed (step S1).
1), code compression control (video code conversion control means 10,
It issues an end request to the audio code conversion control means 20) to release the acquired memory (step S12).

【0056】図9は、原画像受け渡し制御手段48の一
処理を説明するためのフローチャートである。図9を参
照すると、本実施の形態の原画像受け渡し制御手段48
はキャプチャフレーム番号を加算し(ステップS2
1)、一時停止かどうかを判断し(ステップS22)、
そうでない場合(ステップS22のN)はステップS2
6に進む。
FIG. 9 is a flowchart for explaining one process of the original image transfer control means 48. Referring to FIG. 9, original image transfer control means 48 according to the present embodiment.
Adds the capture frame number (step S2
1) It is determined whether or not it is a temporary stop (step S22),
Otherwise (N in step S22), step S2
Proceed to 6.

【0057】そうである場合(ステップS22のY)は
再開かどうかを判断し(ステップS23)、そうでない
場合(ステップS23のN)はステップS25に進む。
If so (Y in step S22), it is determined whether or not to resume (step S23). If not (N in step S23), the process proceeds to step S25.

【0058】そうである場合(ステップS23のY)は
キャプチャフレーム番号が再開フレーム番号以上である
かどうかを判断し(ステップS24)、そうでない場合
(ステップS24のN)は所定応答をアプリケーション
41に返して(ステップS25)、終了する。
If so (Y in step S23), it is determined whether the capture frame number is equal to or greater than the restart frame number (step S24). If not (N in step S24), a predetermined response is sent to the application 41. Return (step S25) and end.

【0059】そうである場合(ステップS24のY)は
ビデオキャプチャバッファ43に符号圧縮化もしくはデ
ータ変換またはキャプチャした原画像が格納可能かどう
かを判断して(ステップS26)、そうでない場合(ス
テップS26のN)はステップS29に進む。
If so (Y in step S24), it is determined whether the video compression buffer 43 can store the code-compressed or data-converted or captured original image (step S26). If not (step S26) N) proceeds to step S29.

【0060】そうである場合(ステップS26のY)は
符号圧縮化もしくはデータ変換またはキャプチャした原
画像をビデオキャプチャバッファ43に格納し(ステッ
プS27)、ビデオ符号変換制御手段10に符号圧縮化
もしくはデータ変換またはキャプチャしたデータがある
ことを知らせる(ステップS28)。
If so (Y in step S26), the compressed or data converted or captured original image is stored in the video capture buffer 43 (step S27), and the video code conversion control means 10 performs code compression or data conversion. It notifies that there is converted or captured data (step S28).

【0061】また、ステップS29に進んだ場合は一時
停止・再開制御手段50を起動する。これはマルチタス
クで動作するので、一時停止・再開制御手段50の終了
を待たずに終了する。
When the operation proceeds to step S29, the pause / restart control means 50 is started. Since this operates in a multitask, the operation is terminated without waiting for the suspension / resumption control unit 50 to terminate.

【0062】このように、本実施の形態では、一時停止
中でもビデオのキャプチャ動作を止める必要がないの
で、直ちに再開できるといった効果を奏する。
As described above, in the present embodiment, there is no need to stop the video capture operation even during the temporary stop, so that there is an effect that the video capture operation can be immediately resumed.

【0063】図10は、原音声受け渡し制御手段49の
一処理を説明するためのフローチャートである。図10
を参照すると、本実施の形態の原音声受け渡し制御手段
49は、キャプチャサンプル番号を加算し(ステップS
31)、一時停止かどうかを判断して(ステップS3
2)、そうでない場合(ステップS32のN)はステッ
プS36に進む。
FIG. 10 is a flowchart for explaining one process of the original voice transfer control means 49. FIG.
, The original audio transfer control means 49 of the present embodiment adds the capture sample number (step S
31), and determine whether or not it is a temporary stop (step S3).
2) If not (N in step S32), the process proceeds to step S36.

【0064】そうである場合(ステップS32のY)は
再開かどうかを判断し(ステップS33)、そうでない
場合(ステップS33のN)はステップS35に進む。
If so (Y in step S32), it is determined whether or not to resume (step S33). If not (N in step S33), the process proceeds to step S35.

【0065】そうである場合(ステップS33のY)は
キャプチャサンプル番号が再開サンプル番号以上である
かどうかを判断し(ステップS34)、そうでない場合
(ステップS34のN)は所定応答をアプリケーション
41に返し(ステップS35)、終了する。
If so (Y in step S33), it is determined whether the capture sample number is greater than or equal to the restart sample number (step S34). If not (N in step S34), a predetermined response is sent to the application 41. Return (step S35) and end.

【0066】そうである場合(ステップS34のY)は
オーディオキャプチャバッファ46に符号圧縮化もしく
はデータ変換またはキャプチャした原画像が格納可能か
どうかを判断し(ステップS36)、そうでない場合
(ステップS36のN)はステップS39に進む。
If so (Y in step S34), it is determined whether the audio compression buffer 46 can store the code-compressed or data-converted or captured original image (step S36). If not (step S36). N) proceeds to step S39.

【0067】そうである場合(ステップS36のY)は
符号圧縮化もしくはデータ変換またはキャプチャした原
画像をオーディオキャプチャバッファ46に格納し(ス
テップS37)、オーディオ符号変換制御手段20に符
号圧縮化もしくはデータ変換またはキャプチャしたデー
タがあることを知らせる(ステップS38)。
If so (Y in step S36), the code compression or data conversion or the captured original image is stored in the audio capture buffer 46 (step S37), and the code compression or data conversion is performed by the audio code conversion control means 20. It notifies that there is converted or captured data (step S38).

【0068】また、ステップS39に進んだ場合は一時
停止・再開制御手段50を起動する。これはマルチタス
クで動作するので、一時停止・再開制御手段50の終了
を待たずに終了する。
When the operation proceeds to step S39, the pause / restart control means 50 is started. Since this operates in a multitask, the operation is terminated without waiting for the suspension / resumption control unit 50 to terminate.

【0069】このように、本実施の形態では、一時停止
中でもオーディオのキャプチャ動作を止める必要がない
ので、直ちに再開できるといった効果を奏する。
As described above, in the present embodiment, there is no need to stop the audio capture operation even during the temporary stop, so that there is an effect that the operation can be immediately resumed.

【0070】なお、図9や図10に示す処理では、キャ
プチャバッファにデータを格納できなくなったら一時停
止を始めているが、これに特に限定されることなく、前
フレームと同一と見なす符号を挿入してもリアルタイム
で圧縮できなくなった時に一時停止を始めてもよい。
In the processing shown in FIGS. 9 and 10, the pause is started when the data cannot be stored in the capture buffer. However, the present invention is not limited to this, and a code regarded as the same as the previous frame is inserted. Even when compression cannot be performed in real time, a pause may be started.

【0071】図11は、ビデオ符号変換制御手段10の
一処理を説明するためのフローチャートである。図11
を参照すると、本実施の形態のビデオ符号変換制御手段
10は、ビデオキャプチャバッファ43に格納されたデ
ータがあるかどうかを判断し(ステップS41)、ない
場合(ステップS41のN)はステップS41の先頭に
戻る。ある場合(ステップS41のY)はビデオキャプ
チャバッファ43から原画像を取り出し(ステップS4
2)、圧縮フレーム数を加算し(ステップS43)、原
画像をビデオ圧縮(ビデオ符号圧縮化)し(ステップS
44)、生成したビデオ符号をビデオ符号バッファ44
に格納する(ステップS45)。
FIG. 11 is a flow chart for explaining one process of the video code conversion control means 10. FIG.
, The video code conversion control means 10 of the present embodiment determines whether or not there is data stored in the video capture buffer 43 (step S41). If there is no data (N in step S41), the process proceeds to step S41. Back to the top. If there is (Y in step S41), the original image is extracted from the video capture buffer 43 (step S4).
2) The number of compressed frames is added (step S43), and the original image is subjected to video compression (video code compression) (step S43).
44), the generated video code is stored in a video code buffer 44.
(Step S45).

【0072】その後に、インターフェース制御手段42
から一時停止の要求があるかどうかを判断し(ステップ
S46)、そうでない場合(ステップS46のN)はス
テップS41に戻る。
Thereafter, the interface control means 42
It is determined whether or not there is a request for a temporary stop (step S46). If not (N in step S46), the process returns to step S41.

【0073】そうである場合(ステップS46のY)は
インターフェース制御手段42から再開の要求があるか
どうかを判断し(ステップS47)、そうでない場合
(ステップS47のN)はステップS47の先頭に戻
る。
If so (Y in step S46), it is determined whether there is a request for resumption from the interface control means 42 (step S47). If not (N in step S47), the process returns to the beginning of step S47. .

【0074】そうである場合(ステップS47のY)は
圧縮終了かどうかを判断し(ステップS48)、そうで
ない場合(ステップS48のN)はステップS41に戻
る。そうである場合(ステップS48のY)は処理を終
了する。
If so (Y in step S47), it is determined whether or not the compression is completed (step S48). If not (N in step S48), the process returns to step S41. If so (Y in step S48), the process ends.

【0075】このように、本実施の形態では、インター
フェース制御手段42からの要求によりビデオ符号変換
制御手段10内で一時停止・再開を行うので、アプリケ
ーション41は一時停止・再開の処理を行う必要がな
い。また、キャプチャデバイスの初期化、メモリの獲
得、ファイルのオープンがされたままで一時停止するの
で、直ちに再開できるといった効果を奏する。
As described above, in the present embodiment, the pause / resume is performed in the video code conversion control means 10 in response to the request from the interface control means 42, so that the application 41 needs to perform the pause / resume processing. Absent. In addition, since the capture device is temporarily stopped while the initialization, the acquisition of the memory, and the opening of the file are performed, it is possible to immediately resume the operation.

【0076】図12は、オーディオ符号変換制御手段2
0の一処理を説明するためのフローチャートである。図
12を参照すると、本実施の形態のオーディオ符号変換
制御手段20は、オーディオキャプチャバッファ46に
格納されたデータがあるかどうかを判断し(ステップS
51)、オーディオキャプチャバッファ46から原画像
を取り出し(ステップS52)、圧縮サンプル数を加算
し(ステップS53)、原音声をオーディオ圧縮(オー
ディオ符号圧縮化)し(ステップS54)、生成したオ
ーディオ符号をオーディオ符号バッファ47に格納する
(ステップS55)。
FIG. 12 shows the audio code conversion control means 2
9 is a flowchart for explaining one process of the "0" process. Referring to FIG. 12, audio code conversion control means 20 of the present embodiment determines whether or not there is data stored in audio capture buffer 46 (Step S).
51), take out the original image from the audio capture buffer 46 (step S52), add the number of compressed samples (step S53), compress the original audio (audio code compression) (step S54), and generate the generated audio code. The data is stored in the audio code buffer 47 (step S55).

【0077】その後に、インターフェース制御手段42
から一時停止の要求があるかどうかを判断し(ステップ
S56)、そうでない場合(ステップS56のN)はス
テップS51に戻る。
Thereafter, the interface control means 42
It is determined whether or not there is a request for suspension (step S56). If not (N in step S56), the process returns to step S51.

【0078】そうである場合(ステップS56のY)は
インターフェース制御手段42から再開の要求があるか
どうかを判断し(ステップS57)、そうでない場合
(ステップS57のN)はステップS57の先頭に戻
る。
If so (Y in step S56), it is determined whether there is a request for resumption from the interface control means 42 (step S57). If not (N in step S57), the process returns to the beginning of step S57. .

【0079】そうである場合(ステップS57のY)は
圧縮終了かどうかを判断し(ステップS58)、そうで
ない場合(ステップS58のN)はステップS51に戻
る。そうである場合(ステップS58のY)は処理を終
了する。
If so (Y in step S57), it is determined whether or not compression has been completed (step S58). If not (N in step S58), the process returns to step S51. If so (Y in step S58), the process ends.

【0080】このように、本実施の形態では、インター
フェース制御手段42からの要求によりオーディオ符号
変換制御手段20内で一時停止・再開を行うので、アプ
リケーション41は一時停止・再開の処理を行う必要が
ない。また、キャプチャデバイスの初期化、メモリの獲
得、ファイルのオープンがされたままで一時停止するの
で、直ちに再開できるといった効果を奏する。
As described above, in the present embodiment, the pause / resume is performed in the audio code conversion control means 20 in response to the request from the interface control means 42, so that the application 41 needs to perform the pause / resume processing. Absent. In addition, since the capture device is temporarily stopped while the initialization, the acquisition of the memory, and the opening of the file are performed, it is possible to immediately resume the operation.

【0081】図13は、一時停止・再開制御手段50の
一処理を説明するためのフローチャートである。図13
を参照すると、本実施の形態の一時停止・再開制御手段
50は、ビデオ圧縮(ビデオ符号圧縮化)を一時停止し
(ステップS61)、オーディオ圧縮(オーディオ符号
圧縮化)を一時停止し(ステップS62)、負荷が低下
したかどうかを判断し(ステップS63)、そうでない
場合(ステップS63のN)はステップS63に戻る。
そうである場合(ステップS63のY)は現在までの圧
縮フレーム数から時間量を計算する(ステップS6
4)。
FIG. 13 is a flow chart for explaining one process of the suspension / resumption control means 50. FIG.
, The pause / resume control means 50 of the present embodiment temporarily suspends video compression (video code compression) (step S61) and pauses audio compression (audio code compression) (step S62). ), It is determined whether the load has decreased (step S63). If not (N in step S63), the process returns to step S63.
If so (Y in step S63), the amount of time is calculated from the number of compressed frames up to the present (step S6).
4).

【0082】例えば、圧縮フレーム数が1200フレー
ムで、フレームレートが29.97fpsの場合は以下
の計算となる。 1200/29.97=40.040秒
For example, when the number of compressed frames is 1200 and the frame rate is 29.97 fps, the following calculation is performed. 1200 / 29.97 = 40.040 seconds

【0083】その後に、現在までの圧縮サンプル数から
時間量を計算する(ステップS65)。
Thereafter, the amount of time is calculated from the number of compressed samples up to the present (step S65).

【0084】例えば、圧縮サンプル数が1786000
サンプルで、サンプリング周波数が44.1KHzの場
合は以下の計算となる。 1786000/44100=40.498秒
For example, if the number of compressed samples is 1786000
When the sampling frequency is 44.1 KHz, the following calculation is performed. 1786000/44100 = 40.498 seconds

【0085】その後に、圧縮フレーム数と圧縮サンプル
数から時間量の差を計算する(ステップS66)。
After that, a difference in the amount of time is calculated from the number of compressed frames and the number of compressed samples (step S66).

【0086】上記の例では以下の計算となる。 40.498−40.040=0.458秒In the above example, the following calculation is performed. 40.498-40.040 = 0.458 seconds

【0087】その後に、時間量の差と現在のキャプチャ
フレーム番号からビデオ圧縮(ビデオ符号圧縮化)の再
開フレーム番号を計算する(ステップS67)。
Thereafter, the restart frame number of the video compression (video code compression) is calculated from the difference in the amount of time and the current capture frame number (step S67).

【0088】例えば、現在のキャプチャフレーム番号が
1229フレームの場合は以下の計算となる。 1229+α×29.97 =1229+2.997 =1231.997 四捨五入して1232フレームとなる(αは装置毎に最
適な値、例では0.1)。
For example, when the current capture frame number is 1229 frames, the following calculation is performed. 1229 + α × 29.97 = 1229 + 2.997 = 123.997 Rounded down to 1232 frames (α is an optimal value for each device, 0.1 in the example).

【0089】その後に、時間量の差と現在のキャプチャ
サンプル数からオーディオ圧縮(オーディオ符号圧縮
化)の再開サンプル番号を計算する(ステップS6
8)。
Thereafter, the restart sample number of audio compression (audio code compression) is calculated from the difference in the amount of time and the current number of captured samples (step S6).
8).

【0090】例えば、現在のキャプチャサンプル数が1
808438の場合は以下の計算となる。 1808438+0.458×44100+α×44100 =1808438+202197.8+4410 =1833045.8 四捨五入して1833046サンプルとなる(αは装置
毎に最適な値、例では0.1)。
For example, if the current number of captured samples is 1
In the case of 808438, the following calculation is performed. 18084438 + 0.458 × 44100 + α × 44100 = 18084438 + 202197.8 + 4410 = 1833045.8 The result is rounded down to 183,046 samples (α is an optimum value for each apparatus, for example, 0.1).

【0091】その後に、ビデオキャプチャバッファ43
に格納された原画像を全て破棄し(ステップS69)、
ビデオ圧縮(ビデオ符号圧縮化)を再開し(ステップS
70)、オーディオキャプチャバッファ46に格納され
た原音声を全て破棄し(ステップS71)、オーディオ
圧縮(オーディオ符号圧縮化)を再開する(ステップS
72)。
Thereafter, the video capture buffer 43
Are discarded (step S69),
Resume video compression (video code compression) (step S
70), all original voices stored in the audio capture buffer 46 are discarded (step S71), and audio compression (audio code compression) is resumed (step S71).
72).

【0092】上記計算例ではビデオ符号がオーディオ符
号よりも少ないので、ビデオ圧縮(ビデオ符号圧縮化)
の再開時刻をオーディオ圧縮(オーディオ符号圧縮化)
の再開時刻よりも早くしているが、ビデオ符号がオーデ
ィオ符号よりも多い場合はビデオ圧縮(ビデオ符号圧縮
化)の再開時刻をオーディオ圧縮(オーディオ符号圧縮
化)の再開時刻よりも遅くする。
In the above calculation example, since the video code is smaller than the audio code, video compression (video code compression) is performed.
Compression of audio resume time (audio code compression)
However, when the video code is larger than the audio code, the restart time of the video compression (video code compression) is made later than the restart time of the audio compression (audio code compression).

【0093】このように、本実施の形態では、再開時刻
をずらしてビデオ符号とオーディオ符号の時間量の差を
減らすので、ビデオとオーディオの同期を取って符号圧
縮化を再開できるといった効果を奏する。
As described above, in the present embodiment, since the difference in the amount of time between the video code and the audio code is reduced by shifting the restart time, there is an effect that the code compression can be restarted by synchronizing the video and the audio. .

【0094】なお、図13に示す処理では、負荷が下が
るのを待ってから再開時刻の計算を行っているが、これ
に特に限定されることなく、一定時間待ってから再開時
刻の計算を行ってもよい。また、図13に示す処理で
は、再開時刻をずらすことのみで同期を取っているが、
これに特に限定されることなく、符号圧縮化制御に渡さ
れた原画像と原音声の時間量の差が大きい場合はビデオ
符号に前フレームと同一と見なす符号を挿入したり、オ
ーディオ符号に無音を挿入したりして、その差を縮めて
から再開時刻をずらして同期を取ってもよい。また、ビ
デオ符号はフレーム単位で、オーディオ符号はAAU単
位で多い方の符号を切り捨てて、その差を縮めてから再
開時刻をずらして同期を取ってもよい。また、図13に
示す処理では、圧縮フレーム数と圧縮サンプル数から時
間量の差を計算しているが、これに特に限定されること
なく、生成したビデオ符号とオーディオ符号の符号量と
ビットレートから時間量の差を計算したり、生成したシ
ステム符号のビデオパケットとオーディオパケットのタ
イムスタンプから時間量の差を計算してもよい。
In the processing shown in FIG. 13, the restart time is calculated after the load is reduced. However, the present invention is not limited to this. The restart time is calculated after waiting for a certain time. You may. Further, in the processing shown in FIG. 13, synchronization is achieved only by shifting the restart time.
Without being particularly limited to this, when the time difference between the original image and the original audio passed to the code compression control is large, a code assumed to be the same as the previous frame is inserted into the video code, and silence is added to the audio code. , Or the like, the difference may be reduced, and then the restart time may be shifted for synchronization. Alternatively, the video code may be framed in units of frames, and the audio code may be synchronized in units of AAUs by truncating the larger code in order to reduce the difference and then shift the restart time. Further, in the processing shown in FIG. 13, the difference in the amount of time is calculated from the number of compressed frames and the number of compressed samples. However, the present invention is not limited thereto, and the code amount and bit rate of the generated video code and audio code are calculated. , Or the time difference may be calculated from the time stamps of the generated video and audio packets of the system code.

【0095】図14は、図13で生成されたビデオ符号
とオーディオ符号の一処理を説明する図である。図13
で説明したように、一時停止直後では、ビデオ符号はフ
レーム数が1200フレームで29.97fpsなの
で、時間量は40.040秒となり、オーディオ符号は
サンプル数が1786000サンプルでサンプリング周
波数が44.1KHzなので、時間量は40.498秒
となり、ビデオ符号とオーディオ符号の時間量の差は
0.458秒となる。
FIG. 14 is a view for explaining one process of the video code and the audio code generated in FIG. FIG.
As described above, immediately after the pause, the video code has a frame count of 29.97 fps at 1200 frames, so the amount of time is 40.040 seconds, and the audio code has a sample count of 1786000 samples and a sampling frequency of 44.1 KHz. , The amount of time is 40.498 seconds, and the difference between the amount of time between the video code and the audio code is 0.458 seconds.

【0096】また、図13で説明したように、ビデオの
再開フレーム番号が1232フレームで、オーディオの
再開サンプル番号が1833046サンプルとなるの
で、先行するビデオ符号の時間量は以下の計算となる。 (1833046/44100)−(1232/29.97) =41.565−41.107 =0.458秒
As described with reference to FIG. 13, since the video restart frame number is 1232 frames and the audio restart sample number is 183046 samples, the time amount of the preceding video code is calculated as follows. (18333046/44100)-(1232 / 29.97) = 41.565-41.107 = 0.458 sec.

【0097】このように、一時停止直後のビデオ符号と
オーディオ符号の時間量の差は0.458秒なので、そ
の差は0.458−0.458=0秒となり、オーディ
オ圧縮(オーディオ符号圧縮化)が再開した時点で差が
無くなるので、ビデオとオーディオの同期が取れる。
As described above, since the time difference between the video code and the audio code immediately after the pause is 0.458 seconds, the difference is 0.458−0.458 = 0 seconds, and the audio compression (audio code compression) is performed. ) Resumes when the difference disappears, so that video and audio can be synchronized.

【0098】以上説明したように本実施の形態によれ
ば、以下に掲げる効果を奏する。まず第1の効果は、ア
プリケーション41が処理しなくても、システムの負荷
が上がったときに画像・音声符号圧縮化を自動的に容易
に一時停止し、システムの負荷が下がったときに当該画
像・音声符号圧縮化を再開するシステムを構築できるこ
とである。その理由は、符号圧縮化制御装置(不図示)
に画像・音声の符号圧縮化の制御を集約して、アプリケ
ーション41が直接圧縮処理に関与しなくてもよいよう
に構成したからである。
As described above, according to the present embodiment, the following effects can be obtained. First, the first effect is that even if the application 41 does not perform processing, the image / speech code compression is automatically and easily suspended when the system load increases, and the image / audio code compression is automatically stopped when the system load decreases. -It is possible to construct a system that restarts speech code compression. The reason is that the code compression control device (not shown)
This is because the control of the code compression of the image / sound is integrated so that the application 41 does not need to directly participate in the compression processing.

【0099】そして第2の効果は、負荷が下がると直ち
に符号圧縮化を再開できることである。その理由は、キ
ャプチャ動作を止めずに圧縮を一時停止しているので、
処理時間のかかるキャプチャデバイスの初期化や符号圧
縮化のためのメモリ獲得・ファイルオープンを行わずに
符号圧縮化を再開できるからである。
The second effect is that code compression can be resumed immediately after the load decreases. The reason is that compression is paused without stopping the capture operation,
This is because code compression can be restarted without performing initialization of a capture device that takes a long processing time, or acquiring memory and opening a file for code compression.

【00100】(第2の実施の形態)以下、本発明の第
2の実施の形態を図面に基づいて詳細に説明する。な
お、上記実施の形態において既に記述したものと同一の
部分については、同一符号を付し、重複した説明は省略
する。
(Second Embodiment) Hereinafter, a second embodiment of the present invention will be described in detail with reference to the drawings. Note that the same parts as those already described in the above embodiment are denoted by the same reference numerals, and redundant description will be omitted.

【00101】図15は、画像サイズを変換するビデオ
符号変換(画像符号変換の1形態)を実行する第2の実
施の形態の機能ブロック図である。なお、本実施の形態
のビデオ符号変換では、説明を簡単にするためにIピク
チャのみのビデオ符号(画像符号の1形態)を変換する
構成を示す。
FIG. 15 is a functional block diagram of a second embodiment for executing video code conversion (one form of image code conversion) for converting an image size. In the video code conversion according to the present embodiment, a configuration for converting a video code of only an I picture (one form of an image code) is shown for simplicity of description.

【00102】図15を参照すると、本実施の形態のビ
デオ符号変換制御手段10は、ビデオ符号を復号する復
号化手段151と、逆量子化を行う逆量子化手段152
と、ビデオ符号を空間周波数から元(時間空間)に戻す
逆DCT手段153と、画像サイズを変換する画像サイ
ズ変換手段154と、ビデオ符号を時間空間から空間周
波数に変換するDCT手段155と、量子化を行う量子
化手段156と、可変長符号化を行う可変長符号化手段
157を中心にして構成されている。
Referring to FIG. 15, a video code conversion control means 10 according to the present embodiment comprises a decoding means 151 for decoding a video code and an inverse quantization means 152 for performing an inverse quantization.
An inverse DCT unit 153 for converting a video code from a spatial frequency to an original (temporal space), an image size converting unit 154 for converting an image size, a DCT unit 155 for converting a video code from a temporal space to a spatial frequency, And a variable length coding unit 157 for performing variable length coding.

【00103】本実施の形態のビデオ符号変換制御手段
10が実行するビデオ符号変換では、ビデオ符号を画像
データに戻してから画像サイズを変えて新たなビデオ符
号に圧縮する。また、ビデオ符号を復号化手段151で
復号して、逆量子化手段152で逆量子化して、逆DC
T手段153で画像データに戻す。次に画像データの画
像サイズを画像サイズ変換手段154で変換して、DC
T手段155により空間周波数に変換して、量子化手段
156により量子化して、可変長符号化手段157によ
り可変長符号化して新たなビデオ符号を出力する。
[0010] In the video code conversion executed by the video code conversion control means 10 of the present embodiment, the video code is converted into image data, and then the image size is changed and compressed to a new video code. In addition, the video code is decoded by the decoding means 151, inversely quantized by the inverse quantization means 152, and
The image data is returned to the T means 153. Next, the image size of the image data is converted by the image size
The data is converted into a spatial frequency by the T means 155, quantized by the quantization means 156, and subjected to variable length coding by the variable length coding means 157 to output a new video code.

【00104】(第3の実施の形態)以下、本発明の第
3の実施の形態を図面に基づいて詳細に説明する。な
お、上記実施の形態において既に記述したものと同一の
部分については、同一符号を付し、重複した説明は省略
する。図16は、オーディオ符号変換(音声符号変換の
1形態)を実行する第3の実施の形態の機能ブロック図
である。
(Third Embodiment) Hereinafter, a third embodiment of the present invention will be described in detail with reference to the drawings. Note that the same parts as those already described in the above embodiment are denoted by the same reference numerals, and redundant description will be omitted. FIG. 16 is a functional block diagram of the third embodiment for executing audio code conversion (one form of voice code conversion).

【00105】図16を参照すると、本実施の形態のオ
ーディオ符号変換制御手段20は、オーディオ符号変換
はオーディオ符号(音声符号の1形態)を分解するフレ
ーム分解手段161と、復号化及び逆量子化を行う再構
成手段162と、逆写像を行う逆写像手段163と、音
声の周波数を変換する音声周波数変換手段164と、3
2の周波数帯域写像を生成する周波数帯域写像手段16
5と、線形量子化及び符号化を行う量子化符号化手段1
66と、符号化されたデータに付加情報を加えて圧縮デ
ータを作成するフレーム形成手段167と、心理聴覚処
理を行う心理聴覚処理手段168を中心にして構成され
ている。
Referring to FIG. 16, the audio code conversion control means 20 of the present embodiment includes a frame decomposition means 161 for decomposing an audio code (one form of a voice code) for audio code conversion, and a decoding and inverse quantization. 162, an inverse mapping means 163 for performing an inverse mapping, an audio frequency converting means 164 for converting an audio frequency,
Frequency band mapping means 16 for generating the second frequency band mapping
5 and quantization encoding means 1 for performing linear quantization and encoding
66, a frame forming means 167 for creating compressed data by adding additional information to the encoded data, and a psychological hearing processing means 168 for performing psychological hearing processing.

【00106】本実施の形態のオーディオ符号変換制御
手段20が実行するオーディオ符号変換では、オーディ
オ符号を音声データに戻してから周波数を変換して新た
なオーディオ符号に圧縮する。また、オーディオ符号を
フレーム分解手段161で分解して、再構成手段162
で復号化及び逆量子化を行い、逆写像手段163で逆写
像を行い、音声データに戻す。次に音声周波数変換手段
164で音声の周波数を変換して、周波数帯域写像手段
165で音声を32帯域のサブバンド信号に分解して、
各サブバンド信号に対してスケール・ファクタを計算
し、ダイナミックレンジを揃え、心理聴覚処理手段16
8で音声を高速フーリエ変換し、その結果を使って心理
聴覚のマスキングを計算し、各サブバンドに対するビッ
ト割り当てを計算し、量子化符号化手段166で決定し
たビット割り当てに従って量子化、符号化を行い、フレ
ーム形成手段167で量子化符号化したサブバンド信号
にヘッダや補助情報を追加し、ビットストリームに整形
することで、新たなオーディオ符号として出力する。
[0010] In the audio code conversion executed by the audio code conversion control means 20 of the present embodiment, the audio code is converted into audio data, the frequency is converted, and the audio code is compressed into a new audio code. Further, the audio code is decomposed by the frame decomposing means 161 and
Perform decoding and inverse quantization, and perform inverse mapping by inverse mapping means 163 to return to audio data. Next, the audio frequency is converted by the audio frequency conversion means 164, and the audio is decomposed into 32 sub-band signals by the frequency band mapping means 165.
The scale factor is calculated for each subband signal, the dynamic range is adjusted, and the psychological auditory processing means 16 is calculated.
8, fast Fourier transform is performed on the speech, and the result is used to calculate psychological auditory masking, calculate bit allocation for each subband, and perform quantization and coding according to the bit allocation determined by the quantization coding means 166. Then, a header and auxiliary information are added to the sub-band signal quantized and encoded by the frame forming means 167, and the sub-band signal is shaped into a bit stream and output as a new audio code.

【00107】(第4の実施の形態)以下、本発明の第
4の実施の形態を図面に基づいて詳細に説明する。な
お、上記実施の形態において既に記述したものと同一の
部分については、同一符号を付し、重複した説明は省略
する。図17は、符号圧縮を伴わない変換制御を実行す
る第4の実施の形態の機能ブロック図である。
(Fourth Embodiment) Hereinafter, a fourth embodiment of the present invention will be described in detail with reference to the drawings. Note that the same parts as those already described in the above embodiment are denoted by the same reference numerals, and redundant description will be omitted. FIG. 17 is a functional block diagram of the fourth embodiment for executing conversion control without code compression.

【00108】図17を参照すると、本実施の形態の画
像・音声符号変換制御手段30は、ビデオ符号またはオ
ーディオ符号の解析を行う符号解析処理手段171と間
引き処理手段172を中心にして構成されている。
Referring to FIG. 17, the image / audio code conversion control means 30 of the present embodiment is constituted mainly by a code analysis processing means 171 for analyzing a video code or an audio code and a thinning processing means 172. I have.

【00109】本実施の形態の画像・音声符号変換制御
手段30が実行する符号変換では、ビデオ符号またはオ
ーディオ符号を復号することなくそのデータ内部情報を
符号解析処理手段171にて解析して、データ(画像の
場合は色、フレーム、画素など、また音声の場合はサン
プリング周波数、1サンプル当たりのビット数、チャン
ネル数など)の間引き処理を間引き処理手段172にて
行い、所望の低ビットレートへ変換した新たなビデオ符
号またはオーディオ符号を出力する。
In the code conversion executed by the image / audio code conversion control means 30 of the present embodiment, the internal data of the data is analyzed by the code analysis processing means 171 without decoding the video code or the audio code, and (Decimation processing is performed by the decimation processing means 172 to convert to a desired low bit rate (color, frame, pixel, etc. for images, sampling frequency, number of bits per sample, number of channels, etc. for audio)) And output the new video code or audio code.

【00110】なお、上記実施の形態では、キャプチャ
されたデータのみを対象として説明を行ったが、これに
特に限定されることなく、デジタル放送等で使用される
データ(特に、デジタル圧縮化済みのデータ)にも同様
に適用でき、圧縮化済みデータのトランスコード化にも
適用できる。当該デジタル放送等で使用されるデータ
(特に、デジタル圧縮化済みのデータ)に適用する場合
は、キャプチャの処理を符号圧縮化あるいはデータ変換
の処理と読み変えればよい。また、本発明が上記実施の
形態に限定されず、本発明の技術思想の範囲内におい
て、上記実施の形態は適宜変更され得ることは明らかで
ある。また上記構成部材の数、位置、形状等は上記実施
の形態に限定されず、本発明を実施する上で好適な数、
位置、形状等にすることができる。また、各図におい
て、同一構成要素には同一符号を付している。
In the above-described embodiment, the description has been made with respect to only captured data. However, the present invention is not limited to this, and data used in digital broadcasting or the like (particularly, digitally compressed data) may be used. Data), and transcoding of compressed data. When the present invention is applied to data used in digital broadcasting or the like (particularly, data that has been digitally compressed), the capture processing may be replaced with code compression or data conversion processing. Further, it is apparent that the present invention is not limited to the above-described embodiment, and that the above-described embodiment can be appropriately modified within the scope of the technical idea of the present invention. Further, the number, position, shape, and the like of the constituent members are not limited to the above-described embodiment, but are suitable numbers for implementing the present invention,
Position, shape, etc. In each drawing, the same components are denoted by the same reference numerals.

【00111】[00111]

【発明の効果】本発明は以上のように構成されているの
で、以下に掲げる効果を奏する。まず第1の効果は、ア
プリケーションが処理しなくても、システムの負荷が上
がったときに画像・音声符号圧縮化を自動的に容易に一
時停止し、システムの負荷が下がったときに当該画像・
音声符号圧縮化を再開するシステムを構築できることで
ある。その理由は、符号圧縮化制御装置(不図示)に画
像・音声の符号圧縮化の制御を集約して、アプリケーシ
ョンが直接圧縮処理に関与しなくてもよいように構成し
たからである。
Since the present invention is configured as described above, the following effects can be obtained. The first effect is that even if the application does not process, the video / audio code compression is automatically and easily suspended when the system load increases, and the image / audio code compression is automatically stopped when the system load decreases.
That is, it is possible to construct a system for restarting speech code compression. The reason is that the control of image / sound code compression is centralized in a code compression control device (not shown) so that the application does not need to directly participate in the compression processing.

【00112】そして第2の効果は、負荷が下がると直
ちに符号圧縮化を再開できることである。その理由は、
キャプチャ動作を止めずに圧縮を一時停止しているの
で、処理時間のかかるキャプチャデバイスの初期化や符
号圧縮化のためのメモリ獲得・ファイルオープンを行わ
ずに符号圧縮化を再開できるからである。
The second effect is that code compression can be restarted immediately after the load decreases. The reason is,
This is because the compression is temporarily stopped without stopping the capture operation, so that the code compression can be resumed without performing the initialization of the capture device, which takes a long time, or acquiring the memory and opening the file for the code compression.

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

【図1】MPEGビデオに準拠した符号フォーマットの
構成図である。
FIG. 1 is a configuration diagram of a code format conforming to MPEG video.

【図2】MPEGオーディオに準拠した符号フォーマッ
トの構成図である。
FIG. 2 is a configuration diagram of a code format conforming to MPEG audio.

【図3】MPEGシステムに準拠したビデオ符号・オー
ディオ符号の多重化フォーマットの構成図である。
FIG. 3 is a configuration diagram of a multiplex format of a video code and an audio code conforming to the MPEG system.

【図4】画像圧縮を行うビデオ符号変換制御手段の構成
図である。
FIG. 4 is a configuration diagram of a video code conversion control unit that performs image compression.

【図5】音声圧縮を行うオーディオ符号変換制御手段の
構成図である。
FIG. 5 is a configuration diagram of audio code conversion control means for performing audio compression.

【図6】ビデオ符号とオーディオ符号を多重化する画像
・音声符号変換制御手段の構造を示した図である。
FIG. 6 is a diagram showing a structure of an image / audio code conversion control means for multiplexing a video code and an audio code.

【図7】本発明の第1の実施の形態に係る符号圧縮化/
データ変換装置を説明するための機能ブロック図であ
る。
FIG. 7 is a diagram illustrating code compression / coding according to the first embodiment of the present invention.
It is a functional block diagram for explaining a data conversion device.

【図8】アプリケーションが処理するキャプチャ符号圧
縮化の一処理を説明するためのフローチャートである。
FIG. 8 is a flowchart for explaining one process of capture code compression processed by an application.

【図9】原画像受け渡し制御手段の一処理を説明するた
めのフローチャートである。
FIG. 9 is a flowchart illustrating one process of an original image transfer control unit.

【図10】原音声受け渡し制御手段の一処理を説明する
ためのフローチャートである。
FIG. 10 is a flowchart for explaining one process of an original voice transfer control means.

【図11】ビデオ符号変換制御手段の一処理を説明する
ためのフローチャートである。
FIG. 11 is a flowchart illustrating one process of video code conversion control means.

【図12】オーディオ符号変換制御手段の一処理を説明
するためのフローチャートである。
FIG. 12 is a flowchart illustrating one process of audio code conversion control means.

【図13】一時停止・再開制御手段の一処理を説明する
ためのフローチャートである。
FIG. 13 is a flowchart illustrating one process of a suspension / resumption control unit.

【図14】図13で生成されたビデオ符号とオーディオ
符号の一処理を説明する図である。
14 is a diagram illustrating one process of the video code and the audio code generated in FIG.

【図15】画像サイズを変換するビデオ符号変換を実行
する第2の実施の形態の機能ブロック図である。
FIG. 15 is a functional block diagram of a second embodiment for executing video code conversion for converting an image size.

【図16】オーディオ符号変換を実行する第3の実施の
形態の機能ブロック図である。
FIG. 16 is a functional block diagram of a third embodiment for executing audio code conversion.

【図17】符号圧縮を伴わない変換制御を実行する第4
の実施の形態の機能ブロック図である。
FIG. 17 shows a fourth example of performing conversion control without code compression.
It is a functional block diagram of an embodiment.

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

10…ビデオ符号変換制御手段 20…オーディオ符号変換制御手段 30…画像・音声符号変換制御手段 41…アプリケーション 42…インターフェース制御手段 43…ビデオキャプチャバッファ 44…ビデオ符号バッファ 45…システムバッファ 46…オーディオキャプチャバッファ 47…オーディオ符号バッファ 48…原画像受け渡し制御手段 49…原音声受け渡し制御手段 50…一時停止・再開制御手段 100…符号圧縮化/データ変換装置 151…復号化手段 152…逆量子化手段 153…逆DCT手段 154…画像サイズ変換手段 155…DCT手段 156…量子化手段 157…可変長符号化手段 161…フレーム分解手段 162…再構成手段 163…逆写像手段 164…音声周波数変換手段 165…周波数帯域写像手段 166…量子化符号化手段 167…フレーム形成手段 168…心理聴覚処理手段 171…符号解析処理手段 172…間引き処理手段 DESCRIPTION OF SYMBOLS 10 ... Video code conversion control means 20 ... Audio code conversion control means 30 ... Image / audio code conversion control means 41 ... Application 42 ... Interface control means 43 ... Video capture buffer 44 ... Video code buffer 45 ... System buffer 46 ... Audio capture buffer 47 audio code buffer 48 original image transfer control means 49 original sound transfer control means 50 pause / restart control means 100 code compression / data conversion device 151 decoding means 152 inverse quantization means 153 inverse DCT means 154 image size converting means 155 DCT means 156 quantizing means 157 variable length coding means 161 frame decomposing means 162 reconstructing means 163 inverse mapping means 164 voice frequency converting means 165 frequency band mapping Image means 166 ... Quantization coding means 167 ... Frame forming means 168 ... Psychological hearing processing means 171 ... Code analysis processing means 172 ... Thinning processing means

フロントページの続き Fターム(参考) 5C053 GB11 GB37 JA07 JA22 KA03 KA24 5C059 KK35 MA00 MA05 MA14 MA23 MC11 ME01 NN01 NN21 PP05 PP06 PP07 PP16 RB10 RC04 RC07 RC32 RC37 SS06 SS12 TA00 TB04 TC15 TC18 TD11 UA02 UA32 UA39 5D045 DA20 5J064 AA01 BA09 BA16 BB09 BC16 BC26 BD03 Continued on front page F-term (reference) 5C053 GB11 GB37 JA07 JA22 KA03 KA24 5C059 KK35 MA00 MA05 MA14 MA23 MC11 ME01 NN01 NN21 PP05 PP06 PP07 PP16 RB10 RC04 RC07 RC32 RC37 SS06 SS12 TA00 TB04 TC15 TC18 TD11 UA02 UA0 UA32 A39 5 BA16 BB09 BC16 BC26 BD03

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 複数のプログラムが動作できるシステム
上で画像と音声、もしくはそれらのどちらかを符号圧縮
化あるいはデータ変換し、リアルタイムに記録もしくは
配信する符号圧縮化/データ変換装置であって、 符号圧縮化あるいはデータ変換の自動一時停止または自
動再開機能を有することを特徴とする符号圧縮化/デー
タ変換装置。
1. A code compression / data conversion apparatus for code-compressing or data-converting an image and / or sound on a system capable of operating a plurality of programs and recording or distributing the data in real time. A code compression / data conversion device having an automatic pause or automatic restart function of compression or data conversion.
【請求項2】 符号圧縮化あるいはデータ変換を継続で
きない間は、画像あるいは音声データを符号圧縮化ある
いは変換しないでアプリケーションに応答を返す手段を
有することを特徴とする請求項1に記載の符号圧縮化/
データ変換装置。
2. A code compression apparatus according to claim 1, further comprising means for returning a response to the application without code compression or conversion of the image or audio data while code compression or data conversion cannot be continued. /
Data converter.
【請求項3】 画像符号と音声符号の時間量の差を減ら
すような時刻で符号圧縮化あるいはデータ変換を再開す
る手段を有することを特徴とする請求項1に記載の符号
圧縮化/データ変換装置。
3. The code compression / data conversion according to claim 1, further comprising means for restarting code compression or data conversion at such a time as to reduce a difference in time amount between the image code and the audio code. apparatus.
【請求項4】 前記アプリケーションが直接符号圧縮化
あるいはデータ変換処理に関与しなくてよいように、符
号圧縮化あるいはデータ変換を集約して処理するインタ
ーフェース制御手段を有し、他のプログラムの実行によ
りシステムの負荷が上がりリアルタイム処理が継続でき
なくなったときに、前記アプリケーション側またはオペ
レーティングシステムからの制御を必要としないように
構成されていることを特徴とする請求項1乃至3のいず
れか一項に記載の符号圧縮化/データ変換装置。
4. An interface control unit that collectively processes code compression or data conversion so that the application does not need to directly participate in code compression or data conversion processing. The system according to any one of claims 1 to 3, wherein when the load on the system increases and real-time processing cannot be continued, control from the application side or the operating system is not required. A code compression / data conversion apparatus as described in the above.
【請求項5】 ユーザが操作する前記アプリケーション
と、 前記アプリケーションからの要求に従って圧縮動作を制
御する前記インターフェース制御手段と、 ビデオ圧縮を制御するビデオ符号変換制御手段と、 オーディオ圧縮を制御するオーディオ符号変換制御手段
と、 システム符号化を制御する画像・音声符号変換制御手段
と、 符号圧縮化もしくはデータ変換またはキャプチャしたビ
デオデータを一時的に格納するビデオキャプチャバッフ
ァと、 生成したビデオ符号を一時的に格納するビデオ符号バッ
ファと、 符号圧縮化もしくはデータ変換またはキャプチャしたオ
ーディオデータを一時的に格納するオーディオキャプチ
ャバッファと、 生成したオーディオ符号を一時的に格納するオーディオ
符号バッファと、 システム符号を一時的に格納するシステムバッファを有
し、 前記インターフェース制御手段は、 符号圧縮化もしくはデータ変換またはキャプチャした原
画像を前記ビデオ符号変換制御手段に渡す原画像受け渡
し制御手段と、 符号圧縮化もしくはデータ変換またはキャプチャした原
音声を前記オーディオ符号変換制御手段に渡す原音声受
け渡し制御手段と、 符号圧縮化の一時停止と再開を行う一時停止・再開制御
手段を有し、 前記アプリケーションは、符号圧縮化もしくはデータ変
換またはキャプチャした原画像と原音声を受け取って、
前記インターフェース制御手段に渡して、前記インター
フェース制御手段に渡されたシステム符号をシステム符
号ファイルに書き込み、 前記インターフェース制御手段は、符号圧縮化もしくは
データ変換またはキャプチャした原画像を前記ビデオキ
ャプチャバッファに格納し、符号圧縮化もしくはデータ
変換またはキャプチャした原音声を前記オーディオキャ
プチャバッファに格納し、前記ビデオ符号変換制御手段
と前記オーディオ符号変換制御手段と前記画像・音声符
号変換制御手段を制御し、生成された符号を前記ビデオ
符号バッファや前記オーディオ符号バッファや前記シス
テムバッファに格納して、前記アプリケーションに符号
を渡すことを特徴とする請求項4に記載の符号圧縮化/
データ変換装置。
5. The application operated by a user, the interface control means for controlling a compression operation according to a request from the application, a video code conversion control means for controlling video compression, and an audio code conversion for controlling audio compression. Control means, image / audio code conversion control means for controlling system coding, video capture buffer for temporarily storing code compression or data conversion or captured video data, and temporarily storing generated video codes A video code buffer, an audio capture buffer for temporarily storing code compression or data conversion or captured audio data, an audio code buffer for temporarily storing generated audio codes, and a system code for temporarily storing system codes. An original image transfer control unit that passes a code compressed or data converted or captured original image to the video code conversion control unit; and a code compression or data converted or captured image buffer. An original audio transfer control unit for passing an original audio to the audio code conversion control unit; a pause / resume control unit for temporarily stopping and restarting code compression; the application includes code compression or data conversion or capture; Received the original image and audio,
The interface control means writes the system code passed to the interface control means to a system code file, and the interface control means stores the original image obtained by code compression or data conversion or capture in the video capture buffer. The code compression or data conversion or the captured original audio is stored in the audio capture buffer, and the video code conversion control means, the audio code conversion control means, and the image / audio code conversion control means are controlled, and the generated The code compression / code compression method according to claim 4, wherein a code is stored in the video code buffer, the audio code buffer, or the system buffer, and the code is passed to the application.
Data converter.
【請求項6】 前記アプリケーションは、 ビデオとオーディオのキャプチャデバイスを初期化する
第1工程を実行し、符号圧縮化制御に開始要求を出して
必要なメモリを獲得させる第2工程を実行し、MPEG
符号を記録するファイルをオープンする第3工程を実行
し、 ビデオキャプチャデバイスから符号圧縮化もしくはデー
タ変換またはキャプチャしたデータがあるかどうかを判
断する第4工程を実行し、 前記ビデオキャプチャデバイスから符号圧縮化もしくは
データ変換またはキャプチャしたデータがある場合は前
記原画像受け渡し制御手段を呼び出す第5工程を実行
し、 前記ビデオキャプチャデバイスから符号圧縮化もしくは
データ変換またはキャプチャしたデータがない場合はオ
ーディオのキャプチャデバイスから符号圧縮化もしくは
データ変換またはキャプチャしたデータがあるかどうか
を判断する第6工程を実行し、 前記オーディオのキャプチャデバイスから符号圧縮化も
しくはデータ変換またはキャプチャしたデータがある場
合は前記原音声受け渡し制御手段を呼び出す第7工程を
実行し、 前記オーディオのキャプチャデバイスから符号圧縮化も
しくはデータ変換またはキャプチャしたデータがない場
合は圧縮符号があるかどうかを判断する第8工程を実行
し、 前記オーディオのキャプチャデバイスから符号圧縮化も
しくはデータ変換またはキャプチャしたデータがある場
合は圧縮符号をファイルに書き込む第9工程を実行する
とともに、前記オーディオのキャプチャデバイスから符
号圧縮化もしくはデータ変換またはキャプチャしたデー
タがない場合は符号圧縮化もしくはデータ変換またはキ
ャプチャが終了したかどうかを判断する第10工程を実
行し、 前記符号圧縮化もしくはデータ変換またはキャプチャが
終了していない場合は前記第4工程に戻り、 前記符号圧縮化もしくはデータ変換またはキャプチャが
終了した場合はファイルをクローズする第11工程を実
行するとともに、符号圧縮化制御に終了要求を出して獲
得したメモリを解放させる第12工程を実行することを
特徴とする請求項5に記載の符号圧縮化/データ変換装
置。
6. The application executes a first step of initializing a video and audio capture device, executes a second step of issuing a start request to a code compression control to acquire necessary memory, and executes an MPEG process.
Performing a third step of opening a file for recording the code, performing a fourth step of determining whether there is code compression or data conversion or captured data from the video capture device, and performing a code compression from the video capture device. Performing a fifth step of calling the original image transfer control means if there is data converted or converted or captured, and an audio capture device if there is no code compression or data converted or captured data from the video capture device Performing a sixth step of determining whether there is data that has been code-compressed or converted or captured from, and if there is code-compressed or converted or captured data from the audio capture device, Performing a seventh step of calling the original voice transfer control means, and performing an eighth step of determining whether there is a compression code if there is no code compression or data conversion or captured data from the audio capture device. Performing a ninth step of writing a compressed code to a file when there is code compression or data conversion or captured data from the audio capture device, and performing code compression or data conversion or capture from the audio capture device. If there is no data, execute a tenth step of determining whether code compression or data conversion or capture is completed, and return to the fourth step if code compression or data conversion or capture is not completed. The code compression When the encoding, data conversion, or capture is completed, the eleventh step of closing the file is executed, and the twelfth step of issuing an end request to the code compression control to release the acquired memory is executed. The code compression / data conversion device according to claim 5.
【請求項7】 前記原画像受け渡し制御手段は、 キャプチャフレーム番号を加算する第21工程を実行す
るとともに、一時停止かどうかを判断する第22工程を
実行し、前記一時停止でない場合は前記ビデオキャプチ
ャバッファに符号圧縮化もしくはデータ変換またはキャ
プチャした原画像が格納可能かどうかを判断する第26
工程に進み、 前記一時停止である場合は再開かどうかを判断する第2
3工程を実行するとともに、前記再開でない場合は所定
応答を前記アプリケーションに返す第25工程に進み、 前記再開である場合はキャプチャフレーム番号が再開フ
レーム番号以上であるかどうかを判断する第24工程を
実行するとともに、前記キャプチャフレーム番号が再開
フレーム番号以上でない場合は所定応答を前記アプリケ
ーションに返す第25工程を実行して処理を終了し、 前記キャプチャフレーム番号が再開フレーム番号以上で
ある場合は前記ビデオキャプチャバッファに符号圧縮化
もしくはデータ変換またはキャプチャした原画像が格納
可能かどうかを判断する第26工程を実行するととも
に、前記キャプチャフレーム番号が再開フレーム番号以
上でない場合は前記一時停止・再開制御手段を起動する
第29工程に進み、 前記ビデオキャプチャバッファに符号圧縮化もしくはデ
ータ変換またはキャプチャした原画像が格納可能である
場合は符号圧縮化もしくはデータ変換またはキャプチャ
した原画像を前記ビデオキャプチャバッファに格納する
第27工程を実行するとともに、前記ビデオ符号変換制
御手段に符号圧縮化もしくはデータ変換またはキャプチ
ャしたデータがあることを知らせる第28工程を実行
し、 第29工程に進んだ場合は前記一時停止・再開制御手段
を起動することを特徴とする請求項5に記載の符号圧縮
化/データ変換装置。
7. The original image transfer control means executes a twenty-first step of adding a capture frame number, and executes a twenty-second step of determining whether or not a pause has occurred. It is determined whether the buffer can store the code-compressed or data-converted or captured original image.
Proceed to the step, and if it is the temporary stop, determine whether to resume the second
While executing the three steps, proceeding to a twenty-fifth step of returning a predetermined response to the application if the resumption is not the resumption, and determining the twenty-fourth step of determining whether the capture frame number is equal to or greater than the resumption frame number if the resumption is the resumption. Executing, and if the capture frame number is not equal to or greater than the restart frame number, executing a twenty-fifth step of returning a predetermined response to the application, and terminating the process. Performing a twenty-sixth step of judging whether the compressed buffer or the data conversion or the captured original image can be stored in the capture buffer, and if the capture frame number is not equal to or greater than the restart frame number, the pause / restart control means Proceed to the 29th step to start, If the original image captured by code compression or data conversion or captured can be stored in the video capture buffer, a 27th step of storing the compressed image or data converted or captured original image in the video capture buffer is performed, A step 28 of informing the video code conversion control means that there is code compression or data conversion or captured data, and activating the pause / resume control means when the process proceeds to the 29th step. The code compression / data conversion device according to claim 5, wherein
【請求項8】 前記原音声受け渡し制御手段は、 キャプチャサンプル番号を加算する第31工程を実行す
るとともに、一時停止かどうかを判断する第32工程を
実行し、前記一時停止でない場合は前記オーディオキャ
プチャバッファに符号圧縮化もしくはデータ変換または
キャプチャした原画像が格納可能かどうかを判断する第
36工程に進み、 前記一時停止である場合は再開かどうかを判断する第3
3工程を実行するとともに、前記再開でない場合は所定
応答を前記アプリケーションに返す第35工程に進み、 前記再開である場合はキャプチャサンプル番号が再開サ
ンプル番号以上であるかどうかを判断する第34工程を
実行するとともに、前記キャプチャサンプル番号が再開
サンプル番号以上でない場合は所定応答を前記アプリケ
ーションに返す第35工程を実行して処理を終了し、 前記キャプチャサンプル番号が再開サンプル番号以上で
ある場合は前記オーディオキャプチャバッファに符号圧
縮化もしくはデータ変換またはキャプチャした原画像が
格納可能かどうかを判断する第36工程を実行するとと
もに、前記オーディオキャプチャバッファに符号圧縮化
もしくはデータ変換またはキャプチャした原画像が格納
可能でない場合は前記一時停止・再開制御手段を起動す
る第39工程に進み、 前記オーディオキャプチャバッファに符号圧縮化もしく
はデータ変換またはキャプチャした原画像が格納可能で
ある場合は符号圧縮化もしくはデータ変換またはキャプ
チャした原画像を前記オーディオキャプチャバッファに
格納する第37工程を実行するとともに、前記ビデオ符
号変換制御手段に符号圧縮化もしくはデータ変換または
キャプチャしたデータがあることを知らせる第38工程
を実行し、 前記第39工程に進んだ場合は前記一時停止・再開制御
手段を起動することを特徴とする請求項5に記載の符号
圧縮化/データ変換装置。
8. The original voice transfer control means executes a thirty-first step of adding a capture sample number, and executes a thirty-second step of determining whether or not the audio capture is to be paused. The process proceeds to a step 36 in which it is determined whether or not the code compression or data conversion or the captured original image can be stored in the buffer.
In addition to executing the three steps, proceeding to the 35th step of returning a predetermined response to the application if the restart is not the above, and the 34th step of determining whether or not the capture sample number is equal to or larger than the restart sample number in the case of the restart Executing the 35th step of returning a predetermined response to the application if the capture sample number is not equal to or greater than the restart sample number, and terminating the process. If the capture sample number is equal to or greater than the restart sample number, Performing a 36th step of judging whether the code compression or data conversion or the captured original image can be stored in the capture buffer and not storing the code compression or data conversion or the captured original image in the audio capture buffer; If Proceeding to a thirty-ninth step of activating the pause / restart control means, the code compression or data conversion or the captured original image if the compressed or data converted or captured original image can be stored in the audio capture buffer. In the audio capture buffer, and a thirty-eighth step of notifying the video code conversion control means that there is code compression or data conversion or captured data. 6. The code compression / data conversion device according to claim 5, wherein the pause / resume control unit is activated when the process proceeds.
【請求項9】 前記ビデオ符号変換制御手段は、 前記ビデオキャプチャバッファに格納されたデータがあ
るかどうかを判断する第41工程を実行し、前記ビデオ
キャプチャバッファから原画像を取り出す第42工程を
実行し、圧縮フレーム数を加算する第43工程を実行
し、原画像をビデオ圧縮する第44工程を実行し、生成
したビデオ符号を前記ビデオ符号バッファに格納する第
45工程を実行し、 その後に、前記インターフェース制御手段から一時停止
の要求があるかどうかを判断する第46工程を実行し、
前記インターフェース制御手段から一時停止の要求がな
い場合は前記第41工程に戻り、 前記インターフェース制御手段から一時停止の要求があ
る場合は前記インターフェース制御手段から再開の要求
があるかどうかを判断する第47工程を実行するととも
に、前記インターフェース制御手段から再開の要求がな
い場合は前記第47工程の先頭に戻り、 前記インターフェース制御手段から再開の要求がある場
合は圧縮終了かどうかを判断する第48工程を実行する
とともに、前記再開の要求がない場合は前記第41工程
に戻り、前記インターフェース制御手段から再開の要求
がある場合は処理を終了することを特徴とする請求項5
に記載の符号圧縮化/データ変換装置。
9. The video code conversion control means executes a 41st step of determining whether there is data stored in the video capture buffer, and executes a 42nd step of extracting an original image from the video capture buffer. And performing a forty-third step of adding the number of compressed frames, performing a forty-fourth step of video-compressing the original image, and performing a forty-fifth step of storing the generated video code in the video code buffer. Performing a 46th step of determining whether there is a request for a pause from the interface control means;
If there is no request for suspension from the interface control means, the process returns to the forty-first step. If there is a request for suspension from the interface control means, it is determined whether there is a request for resumption from the interface control means. Performing the step, returning to the beginning of the step 47 when there is no request for resumption from the interface control means, and performing a step 48 for determining whether or not to end compression when there is a request for resumption from the interface control means. 6. The method according to claim 5, wherein the step is executed, and if there is no request for resumption, the process returns to the forty-first step, and if there is a request for resumption from the interface control means, the process is terminated.
2. A code compression / data conversion device according to claim 1.
【請求項10】 前記オーディオ符号変換制御手段は、 前記オーディオキャプチャバッファに格納されたデータ
があるかどうかを判断する第51工程を実行し、前記オ
ーディオキャプチャバッファから原画像を取り出す第5
2工程を実行し、圧縮サンプル数を加算する第53工程
を実行し、原音声をオーディオ圧縮する第54工程を実
行し、生成したオーディオ符号を前記オーディオ符号バ
ッファに格納する第55工程を実行し、 その後に、前記インターフェース制御手段から一時停止
の要求があるかどうかを判断する第56工程を実行する
とともに、前記インターフェース制御手段から一時停止
の要求がない場合は前記第51工程に戻り、 前記インターフェース制御手段から一時停止の要求があ
る場合は前記インターフェース制御手段から再開の要求
があるかどうかを判断する第57工程を実行するととも
に、前記インターフェース制御手段から再開の要求がな
い場合は前記第57工程の先頭に戻り、 前記インターフェース制御手段から再開の要求がある場
合は圧縮終了かどうかを判断する第58工程を実行し、
前記圧縮終了でない場合は前記第51工程に戻り、前記
圧縮終了である場合は処理を終了することを特徴とする
請求項5に記載の符号圧縮化/データ変換装置。
10. The audio code conversion control means executes a fifty-first step of determining whether there is data stored in the audio capture buffer, and retrieves an original image from the audio capture buffer.
Performing the two steps, performing a fifty-third step of adding the number of compressed samples, performing a fifty-fourth step of audio-compressing the original voice, and performing a fifty-fifth step of storing the generated audio code in the audio code buffer. Thereafter, a 56th step of determining whether or not there is a request for suspension from the interface control means is executed, and if there is no request for suspension from the interface control means, the process returns to the 51st step, When there is a request for suspension from the control means, a 57th step of judging whether or not there is a request for resumption from the interface control means is executed. To the beginning of the above, when there is a restart request from the interface control means Run the 58th step of determining whether the compression end,
The code compression / data conversion apparatus according to claim 5, wherein if the compression is not completed, the process returns to the fifty-first step, and if the compression is completed, the process is terminated.
【請求項11】 前記一時停止・再開制御手段は、 ビデオ圧縮を一時停止する第61工程を実行し、オーデ
ィオ圧縮を一時停止する第62工程を実行し、負荷が低
下したかどうかを判断する第63工程を実行し、前記負
荷が低下していない場合は前記第63工程に戻り、前記
負荷が低下している場合は現在までの圧縮フレーム数か
ら時間量を計算する第64工程を実行し、 その後に、現在までの圧縮サンプル数から時間量を計算
する第65工程を実行し、 その後に、圧縮フレーム数と圧縮サンプル数から時間量
の差を計算する第66工程を実行し、 その後に、時間量の差と現在のキャプチャフレーム番号
からビデオ圧縮(ビデオ符号圧縮化)の再開フレーム番
号を計算する第67工程を実行し、 その後に、時間量の差と現在のキャプチャサンプル数か
らオーディオ圧縮(オーディオ符号圧縮化)の再開サン
プル番号を計算する第68工程を実行し、 その後に、前記ビデオキャプチャバッファに格納された
原画像を全て破棄する第69工程を実行し、ビデオ圧縮
(ビデオ符号圧縮化)を再開する第70工程を実行し、
前記オーディオキャプチャバッファに格納された原音声
を全て破棄する第71工程を実行し、オーディオ圧縮
(オーディオ符号圧縮化)を再開する第72工程を実行
することを特徴とする請求項5に記載の符号圧縮化/デ
ータ変換装置。
11. The pause / resume control means executes a 61st step of temporarily stopping video compression, executes a 62nd step of temporarily stopping audio compression, and determines whether the load has decreased. Performing step 63, if the load is not reduced, return to the 63rd step, and if the load is reduced, perform a 64th step of calculating the amount of time from the number of compressed frames up to the present, Thereafter, a 65th step of calculating the amount of time from the number of compressed samples up to the present is performed, and then a 66th step of calculating the difference of the amount of time from the number of compressed frames and the number of compressed samples is performed. Performing a 67th step of calculating a restart frame number of video compression (video code compression) from the difference in the amount of time and the current capture frame number; Performing a 68th step of calculating a restart sample number of audio compression (audio code compression) from the number of pulls, and then performing a 69th step of discarding all original images stored in the video capture buffer, Performing a 70th step of restarting compression (video code compression);
The code according to claim 5, wherein a 71st step of discarding all original voices stored in the audio capture buffer is executed, and a 72nd step of restarting audio compression (audio code compression) is executed. Compression / data converter.
【請求項12】 前記インターフェース制御手段は、ビ
デオ圧縮またはオーディオ圧縮が継続できなくなったと
き、前記ビデオ符号変換制御手段と前記オーディオ符号
変換制御手段を一時停止して、前記アプリケーションか
ら渡されるビデオとオーディオのキャプチャデータを圧
縮しないで、所定応答を前記アプリケーションに返し、
ビデオ符号とオーディオ符号の時間量の差が少なくなる
ようにビデオ圧縮(ビデオ符号圧縮化)とオーディオ圧
縮(オーディオ符号圧縮化)の再開時刻を変えて、リア
ルタイム符号圧縮化を再開することを特徴とする請求項
6乃至12のいずれか一項に記載の符号圧縮化/データ
変換装置。
12. When the video compression or the audio compression cannot be continued, the interface control means suspends the video code conversion control means and the audio code conversion control means, and controls the video and audio signals passed from the application. Without compressing the captured data, return a predetermined response to the application,
Real-time code compression is restarted by changing the restart time of video compression (video code compression) and audio compression (audio code compression) so that the time difference between the video code and the audio code is reduced. The code compression / data conversion device according to any one of claims 6 to 12.
【請求項13】 前記インターフェース制御手段は、ビ
デオ圧縮またはオーディオ圧縮が継続できなくなった際
に、前記ビデオ符号変換制御手段と前記オーディオ符号
変換制御手段を一時停止して、前記アプリケーションか
ら渡される原画像と原音声を処理しないで、所定応答を
返し、 その後に、生成したビデオ符号とオーディオ符号の時間
量の差を調べて、前記ビデオ符号の方が多い場合は差が
少なくなるようにオーディオ圧縮(オーディオ符号圧縮
化)の再開時刻を早め、前記ビデオ符号の方が少ない場
合は差が少なくなるようにオーディオ圧縮(オーディオ
符号圧縮化)の再開時刻を遅くすることを特徴とする請
求項12に記載の符号圧縮化/データ変換装置。
13. The interface control means, when video compression or audio compression cannot be continued, suspends the video code conversion control means and the audio code conversion control means, and the original image transferred from the application. And a predetermined response is returned without processing the original audio. Then, the difference in the amount of time between the generated video code and the audio code is checked, and if the video code is larger, the audio compression ( 13. The resumption time of audio compression (audio code compression) is advanced, and when the number of video codes is smaller, the resumption time of audio compression (audio code compression) is delayed so as to reduce the difference. Code compression / data conversion device.
【請求項14】 複数のプログラムが動作できるシステ
ム上で画像と音声を符号圧縮化してリアルタイムで蓄積
媒体に記録する符号圧縮化/データ変換方法であって、 ビデオ圧縮を継続できない間は、符号圧縮化もしくはデ
ータ変換またはキャプチャした画像データを圧縮しない
でアプリケーションに所定応答を返す工程と、オーディ
オ圧縮を継続できない間は、符号圧縮化もしくはデータ
変換またはキャプチャした音声データを圧縮しないでア
プリケーションに所定応答を返す工程と、ビデオ符号と
オーディオ符号の時間量の差を減らすような時刻でビデ
オ圧縮(ビデオ符号圧縮化)を再開する工程と、ビデオ
符号とオーディオ符号の時間量の差を減らすような時刻
でオーディオ圧縮を再開する工程と、前記アプリケーシ
ョンが直接圧縮処理に関与しなくてもよいように、画像
圧縮処理を集約して処理するインターフェース制御工程
を有し、他のプログラムの実行によりシステムの負荷が
上がり、リアルタイム圧縮が継続できなくなったとき
に、前記アプリケーション側は何も処理しなくても、自
動的にリアルタイム圧縮を一時停止して、その後で自動
的にAV同期を取ってリアルタイム符号圧縮化を再開す
ることを特徴とする符号圧縮化/データ変換方法。
14. A code compression / data conversion method for code-compressing images and sounds on a system capable of operating a plurality of programs and recording the data in a storage medium in real time, wherein code compression is performed while video compression cannot be continued. Returning a predetermined response to the application without encoding or data conversion or compressing the captured image data, and transmitting the predetermined response to the application without code compression or data conversion or compression of the captured audio data while audio compression cannot be continued. A step of returning, a step of restarting video compression (video code compression) at a time that reduces the time difference between the video code and the audio code, and a time of reducing the time amount of the video code and the audio code. Resuming audio compression; and An interface control step for consolidating and processing image compression processing so as not to be involved in the application, and when the load on the system increases due to the execution of another program and real-time compression cannot be continued, the application A code compression / data conversion method characterized by automatically suspending real-time compression without any processing, and then automatically resuming real-time code compression with AV synchronization thereafter. .
JP2000402099A 2000-12-28 2000-12-28 Code compression / data conversion apparatus and code compression / data conversion method Expired - Fee Related JP3671842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000402099A JP3671842B2 (en) 2000-12-28 2000-12-28 Code compression / data conversion apparatus and code compression / data conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000402099A JP3671842B2 (en) 2000-12-28 2000-12-28 Code compression / data conversion apparatus and code compression / data conversion method

Publications (2)

Publication Number Publication Date
JP2002204451A true JP2002204451A (en) 2002-07-19
JP3671842B2 JP3671842B2 (en) 2005-07-13

Family

ID=18866444

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000402099A Expired - Fee Related JP3671842B2 (en) 2000-12-28 2000-12-28 Code compression / data conversion apparatus and code compression / data conversion method

Country Status (1)

Country Link
JP (1) JP3671842B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007017715A (en) * 2005-07-07 2007-01-25 Denso Corp On-vehicle navigator
WO2007111006A1 (en) * 2006-03-27 2007-10-04 Nec Corporation Moving image storage system, moving image storage method, and moving image storage program
JP2008027366A (en) * 2006-07-25 2008-02-07 Softbank Mobile Corp Copyright management method and communication terminal device
JP2009232187A (en) * 2008-03-24 2009-10-08 Nec Personal Products Co Ltd Audio and video compression apparatus, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007017715A (en) * 2005-07-07 2007-01-25 Denso Corp On-vehicle navigator
JP4609209B2 (en) * 2005-07-07 2011-01-12 株式会社デンソー Car navigation system
WO2007111006A1 (en) * 2006-03-27 2007-10-04 Nec Corporation Moving image storage system, moving image storage method, and moving image storage program
JPWO2007111006A1 (en) * 2006-03-27 2009-08-06 日本電気株式会社 Moving image storage system, moving image storage method, and moving image storage program
JP4662085B2 (en) * 2006-03-27 2011-03-30 日本電気株式会社 Moving image storage system, moving image storage method, and moving image storage program
US8237772B2 (en) 2006-03-27 2012-08-07 Nec Corporation Moving picture storage system, moving picture storage method, and moving picture storage program
JP2008027366A (en) * 2006-07-25 2008-02-07 Softbank Mobile Corp Copyright management method and communication terminal device
JP2009232187A (en) * 2008-03-24 2009-10-08 Nec Personal Products Co Ltd Audio and video compression apparatus, and program

Also Published As

Publication number Publication date
JP3671842B2 (en) 2005-07-13

Similar Documents

Publication Publication Date Title
US6324217B1 (en) Method and apparatus for producing an information stream having still images
US8260122B2 (en) MPEG picture data recording apparatus, MPEG picture data recording method, MPEG picture data recording medium, MPEG picture data generating apparatus, MPEG picture data reproducing apparatus, and MPEG picture data reproducing method
JP2007012218A (en) Player, video decoder and synchronizing playback method
JP2003199045A (en) Information-recording-signal generating method and apparatus, information-signal reproducing method and apparatus, information-signal transmitting method, apparatus and program, and information-signal recording medium
JPH09135227A (en) Transmission system and transmission method
KR100917481B1 (en) Moving image conversion apparatus, moving image conversion system, and server apparatus
JP3578069B2 (en) Long-term image / sound compression apparatus and method
US20040103446A1 (en) Audio-video multiplexed data generating apparatus, reproducing apparatus and moving video decoding apparatus
JP2002204451A (en) Code compression/data conversion device and code compression/data conversion method
JP3748234B2 (en) MPEG data recording method
JP3469866B2 (en) Method for changing the bit rate of a data stream of an encoded video picture
JP2003052040A (en) Mpeg data reproduction equipment
US20020196852A1 (en) Picture signal processing method and apparatus, picture signal recording method and apparatus and recording medium
JP3709835B2 (en) Code amount conversion method and apparatus
JP3000949B2 (en) Audio / video synchronous compression / playback apparatus and method
JP3496714B2 (en) Multiplexing device and multiplexing method
JP3748243B2 (en) MPEG data recording device
JPH099215A (en) Data multiplex method, data transmission method, multiplex data decoding method and multiplex data decoder
JP3748242B2 (en) MPEG data recording method
JP3748241B2 (en) MPEG data recording method
JP3748240B2 (en) MPEG data recording method
JP3748245B2 (en) MPEG data recording device
JP3748244B2 (en) MPEG data recording device
JP4148200B2 (en) MPEG image data recording apparatus and MPEG image data recording method
JP2007325304A (en) Mpeg data recording and reproducing method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040817

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041228

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050228

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050329

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050411

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080428

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110428

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130428

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130428

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140428

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees