JPH0750838A - Motion picture coder - Google Patents

Motion picture coder

Info

Publication number
JPH0750838A
JPH0750838A JP5188297A JP18829793A JPH0750838A JP H0750838 A JPH0750838 A JP H0750838A JP 5188297 A JP5188297 A JP 5188297A JP 18829793 A JP18829793 A JP 18829793A JP H0750838 A JPH0750838 A JP H0750838A
Authority
JP
Japan
Prior art keywords
code
frame
data
video
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5188297A
Other languages
Japanese (ja)
Inventor
Kunihiro Yamamoto
邦浩 山本
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP5188297A priority Critical patent/JPH0750838A/en
Priority to DE69422943T priority patent/DE69422943T2/en
Priority to EP94304514A priority patent/EP0631441B1/en
Publication of JPH0750838A publication Critical patent/JPH0750838A/en
Priority to US08/960,117 priority patent/US5898461A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate a frame skip for synchronization reproduction. CONSTITUTION:Video data are coded by a coding circuit 80 and stored tentatively in a code buffer 82. A counter 86 counts in parallel a code data quantity generated by the coding circuit 80. When coding processing is finished by one frame, an insertion circuit 84 inserts a code representing the code data quantity from the counter 86 before code data from the code buffer 82. That is, the insertion circuit 84 outputs the code data after a code representing generated code quantity data. Frame skip processing in the case of synchronization reproduction is facilitated by a code representing the code data quantity at a video receiver side.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、動画像符号化装置に関
し、より具体的には、画像通信システムにおける動画像
符号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a moving picture coding apparatus, and more particularly to a moving picture coding apparatus in an image communication system.

【0002】[0002]

【従来の技術】低ビットレートの画像通信方式にはTV
電話がある。TV電話システムでは、実時間のやりとり
が基本であり、専用端末や専用拡張ボードなどのハード
ウエアが必要になる。一方、汎用のワークステーション
などのコンピュータ上で映像ファイルを交換するシステ
ムが知られている。このような映像ファイルを用いる方
式では、CPUのスピードの向上に伴い、画像の通信・
再生表示などの処理をソフトウエアで処理することが可
能になってきた。
2. Description of the Related Art A TV is a low bit rate image communication system.
I have a phone. The video telephone system is basically based on real-time communication and requires hardware such as a dedicated terminal and a dedicated expansion board. On the other hand, a system for exchanging video files on a computer such as a general-purpose workstation is known. In the method using such a video file, the image communication /
It has become possible to perform processing such as playback display by software.

【0003】汎用ワークステーションを利用して構築し
た映像音声伝送システムでは、次のような制限がある。
即ち、表示系のフレーム・メモリは通常8ビットで、
1,640万色の内の256色を使用するのが一般的で
ある。表示する色は、ルックアップ・テーブル方式で選
択できるようになっている。また、8ビット・カラー・
モニタで白黒画像とカラー画像を混在させる場合、白黒
画像は128階調(グレー・スケール)を表現でき、カ
ラー画像は、ディザ処理でR,G及びBの各色に2ビッ
トを割り当てて64色を表現できる。
A video / audio transmission system constructed by using a general-purpose workstation has the following restrictions.
That is, the frame memory of the display system is usually 8 bits,
It is common to use 256 of the 16.4 million colors. The colors to be displayed can be selected by a look-up table method. In addition, 8-bit color
When a black-and-white image and a color image are mixed on a monitor, the black-and-white image can express 128 gradations (gray scale), and the color image is dithered to allocate 2 bits to each color of R, G and B, and 64 colors Can be expressed.

【0004】通信及び蓄積系では、音声データ及び映像
データ共に圧縮符号化して、データ量を削減する。圧縮
方式には、フレーム間符号化(INTER)方式、フレ
ーム内符号化(INTRA)方式、及びこれらを併用す
る方式がある。フレーム間符号化方式とフレーム内符号
化方式を併用する圧縮方式では、伝送エラーの伝搬を防
ぎ且つ特殊再生を容易にするために、フレーム内符号化
したフレームを適応的に又は一律に適当な間隔で配置す
るのが普通である。個別的な符号化方式には、離散コサ
イン変換(DCT)や差分パルス符号化(DPCM)な
どを使用する。
In the communication and storage system, both audio data and video data are compression-coded to reduce the data amount. The compression method includes an inter-frame coding (INTER) method, an intra-frame coding (INTRA) method, and a method using these in combination. In the compression method that uses both the inter-frame coding method and the intra-frame coding method, in order to prevent transmission of transmission error and facilitate special reproduction, the intra-coded frames are adaptively or uniformly spaced at appropriate intervals. It is usual to place in. Discrete cosine transform (DCT), differential pulse coding (DPCM), or the like is used as an individual coding method.

【0005】圧縮率を高めるにはフレーム間符号化を多
用すればよいが、復号するのに前フレームのデータを必
要とする欠点がある。
Interframe coding may be frequently used to increase the compression rate, but there is a drawback that the data of the previous frame is required for decoding.

【0006】動画像では、映像の再生と音声の再生で同
期を取る必要があるが、ハードウエアの処理能力が低
い、又は再生処理に割ける処理能力が低い場合、適当な
フレームをスキップする必要がある。
In a moving image, it is necessary to synchronize the reproduction of video and the reproduction of audio. However, when the processing capacity of hardware is low or the processing capacity of the reproduction processing is low, it is necessary to skip an appropriate frame. There is.

【0007】[0007]

【発明が解決しようとする課題】従来の画像圧縮方式、
特にフレーム毎に符号データ量が変動する可変長符号化
方式を採用した画像圧縮方式では、1フレーム分の符号
データ量を計算するために非常に複雑な処理が必要にな
ることが多く、フレーム・スキップが困難になるという
問題点があった。即ち、再生処理の負担を軽減する目的
でフレーム・スキップを行なうにも関わらず、フレーム
・スキップのために新たな負担(1フレーム分の符号デ
ータ量の計算)を強いられるという問題点があった。
A conventional image compression method,
In particular, in an image compression method that employs a variable-length coding method in which the code data amount changes for each frame, very complicated processing is often required to calculate the code data amount for one frame. There was a problem that skipping became difficult. That is, although the frame skip is performed for the purpose of reducing the load of the reproduction process, a new burden (calculation of the code data amount for one frame) is imposed due to the frame skip. .

【0008】本発明は、このような問題点を解決する動
画像符号化装置を提示することを目的とする。
It is an object of the present invention to provide a moving picture coding apparatus which solves such a problem.

【0009】[0009]

【課題を解決するための手段】本発明に係る動画像符号
化装置は、動画像を圧縮符号化する圧縮符号化手段と、
当該圧縮符号化手段による所定画面分の発生符号量をカ
ウントするカウント手段と、所定画面分の符号データを
記憶する記憶手段と、符号データの画面毎に、当該画面
の符号量を示すコードを挿入するコード挿入手段とから
なることを特徴とする。
A moving picture coding apparatus according to the present invention comprises a compression coding means for compressing and coding a moving picture,
Counting means for counting the generated code amount for a predetermined screen by the compression encoding means, storage means for storing code data for the predetermined screen, and inserting a code indicating the code amount of the screen for each screen of the code data. And a code inserting means for performing the same.

【0010】[0010]

【作用】上記手段により、再生処理で1フレームの符号
データ量を予め知ることができるので、フレーム・スキ
ップが非常に簡単になる。
By the above means, the code data amount of one frame can be known in advance by the reproduction process, so that the frame skip becomes very simple.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】先ず、本発明の前提となる映像ファイル通
信システムを説明する。図1はその概略構成ブロック図
を示す。図1において、10はファイル・サーバであ
り、大容量記憶装置12に映像データベースを蓄積保存
してある。14はクライアントとなるワークステーショ
ン又は小型コンピュータであり、ネットワーク16を介
してファイル・サーバ10と接続する。クライアント1
4のモニタ表示システムには、ワークステーションで周
知のXウインドウ・システムを使用する。
First, a video file communication system which is a premise of the present invention will be described. FIG. 1 shows a schematic block diagram thereof. In FIG. 1, reference numeral 10 is a file server, which stores a video database in the mass storage device 12. Reference numeral 14 is a workstation or a small computer which is a client, and is connected to the file server 10 via the network 16. Client 1
For the monitor display system of No. 4, the X window system well known in the workstation is used.

【0013】図2はクライアント14のモニタ画面を示
す。クライアント14のモニタ画面には、サーバ10の
記憶装置12に記憶される映像データベースのインデッ
クス画像を表示するインデックス・ウインドウ20、映
像データベースからクライアント14に転送済みの映像
ファイル名をリスト表示するファイルボックス・ウイン
ドウ22、及びファイルボックス・ウインドウ22に表
示される映像ファイルから指定した映像ファイルを映像
表示する再生表示ウインドウ24がある。
FIG. 2 shows a monitor screen of the client 14. On the monitor screen of the client 14, an index window 20 for displaying index images of a video database stored in the storage device 12 of the server 10, a file box for displaying a list of video file names transferred from the video database to the client 14, There is a window 22 and a playback display window 24 for displaying a video file designated from the video files displayed in the file box window 22.

【0014】また、インデックス・ウインドウ20に
は、指定の映像ファイルの自機への転送を指示するge
tボタン26がある。再生表示ウインドウ24には、再
生開始を指示する再生ボタン28、及び再生停止ボタン
30があり、その他に、再生中断を指示するポーズ・ボ
タン、並びに順及び逆の駒送りボタンなどがあってもよ
い。
Further, in the index window 20, ge for instructing the transfer of the designated video file to the own device is generated.
There is a t button 26. The reproduction display window 24 has a reproduction button 28 for instructing reproduction start and a reproduction stop button 30, and may additionally have a pause button for instructing reproduction interruption and forward and reverse frame advance buttons. .

【0015】図3は図1及び図2に示すシステムの動作
フローチャートを示す。サーバ10にある映像データベ
ースのインデックス画像をインデックス・ウインドウ2
0に表示する(S1)。インデックス画像は、例えば、
映像ファイルの最初の又は代表的な画面の静止画像であ
る。表示されたインデックス画像により再生したい映像
ファイルを選択する(S2)。getボタン26を押す
と、選択した映像ファイルがサーバ10からネットワー
ク16を介してクライアント14に転送される(S
3)。クライアント14は、受信した映像ファイルを図
示しない記憶装置に保存する。クライアント14に転送
された映像ファイルは、映像ファイル名がファイルボッ
クス・ウインドウ22にリスト表示される。
FIG. 3 shows an operational flowchart of the system shown in FIGS. Index window 2 of the index image of the video database on the server 10
It is displayed at 0 (S1). The index image is, for example,
It is a still image of the first or representative screen of a video file. A video file to be reproduced is selected according to the displayed index image (S2). When the get button 26 is pressed, the selected video file is transferred from the server 10 to the client 14 via the network 16 (S
3). The client 14 saves the received video file in a storage device (not shown). For the video files transferred to the client 14, the video file names are displayed as a list in the file box window 22.

【0016】ファイルボックス・ウインドウ22にリス
ト表示された映像ファイル名の1つを指定すると、その
最初の画像が再生表示ウインドウ24に映像表示され
る。再生ボタン28を操作すると、クライアント14
は、指定した映像ファイルの圧縮符号を復号処理し(S
4)、YUV系からRGB系に色変換し(S5)、ディ
ザ処理して(S6)、再生表示ウインドウ24に映像表
示し、再生音声を音声出力する(S7)。
When one of the video file names listed in the file box window 22 is designated, the first image is displayed in the playback display window 24. When the play button 28 is operated, the client 14
Decodes the compression code of the specified video file (S
4), color conversion from YUV system to RGB system (S5), dither processing (S6), video display on the playback display window 24, and playback voice output as voice (S7).

【0017】図4は、映像ファイル化したい映像をデー
タ化する回路の概略構成ブロック図を示す。ビデオ・カ
メラやビデオ・テープ・レコーダからの映像信号はA/
D変換器40によりディジタル化され、NTSCデコー
ダ42により輝度信号Yと色差信号U/Vに変換され
る。
FIG. 4 is a schematic block diagram of a circuit for converting a video to be a video file into data. The video signal from a video camera or video tape recorder is A /
It is digitized by the D converter 40 and converted into a luminance signal Y and a color difference signal U / V by the NTSC decoder 42.

【0018】ディザ回路44は、NTSCデコーダ42
からの輝度信号Yを8ビットのルックアップ・テーブル
番号に変換する。また、色変換回路46は、NTSCデ
コーダ42からの輝度信号Y及び色差信号U/VをRG
B信号に変換し、ディザ回路48は、そのRGB信号を
8ビットのルックアップ・テーブル番号に変換する。色
変換回路46はまた、NTSCデコーダ42からの輝度
信号Y及び色差信号U/Vをそのままインターフェース
50を介して大容量記憶装置52に供給する。大容量記
憶装置52には図示しない音声処理系からディジタル音
声信号も供給されており、映像信号と一緒に大容量記憶
装置52に記憶される。
The dither circuit 44 includes the NTSC decoder 42.
The luminance signal Y from is converted into an 8-bit lookup table number. Further, the color conversion circuit 46 receives the luminance signal Y and the color difference signal U / V from the NTSC decoder 42 as RG.
Converted into a B signal, the dither circuit 48 converts the RGB signal into an 8-bit lookup table number. The color conversion circuit 46 also supplies the luminance signal Y and the color difference signal U / V from the NTSC decoder 42 to the mass storage device 52 via the interface 50 as they are. A digital audio signal is also supplied to the large-capacity storage device 52 from an audio processing system (not shown) and is stored in the large-capacity storage device 52 together with the video signal.

【0019】ディザ回路44の出力は、フレーム・メモ
リ54上の、白黒階調画像を表示する画面に対応するメ
モリ領域54Aに格納され、ディザ回路48の出力は、
カラー画像を表示する画面に対応するメモリ領域54B
に格納される。フレーム・メモリ54に記憶される8ビ
ット・データは順に読み出され、ルックアップ・テーブ
ル56を介して映像表示装置58に印加される。映像表
示装置58の表示画面内のウインドウ58Aにメモリ領
域54Aの画像が表示され、ウインドウ58Bにメモリ
領域54Bの画像が表示される。
The output of the dither circuit 44 is stored in the memory area 54A of the frame memory 54 corresponding to the screen displaying a black and white gradation image, and the output of the dither circuit 48 is
Memory area 54B corresponding to the screen displaying a color image
Stored in. The 8-bit data stored in the frame memory 54 is sequentially read and applied to the video display device 58 via the look-up table 56. The image in the memory area 54A is displayed in the window 58A in the display screen of the video display device 58, and the image in the memory area 54B is displayed in the window 58B.

【0020】図5は、大容量記憶装置52に記憶される
映像及び音声の生データをサーバ10の大容量記憶装置
12に映像ファイルとして記憶する処理のフローチャー
トを示す。記憶装置52から映像及び音声の生データを
読み出し(S11)、圧縮符号化処し(S12)、サー
バ10の大容量記憶装置12に記憶し、映像ファイルと
して登録する(S13)。
FIG. 5 shows a flowchart of a process for storing raw video and audio data stored in the mass storage device 52 as a video file in the mass storage device 12 of the server 10. Raw video and audio data is read from the storage device 52 (S11), compression encoded (S12), stored in the mass storage device 12 of the server 10, and registered as a video file (S13).

【0021】図6は、階調白黒画像とカラー画像を混在
表示する場合の256色ルックアップ・テーブルの一例
である。テーブル番号0〜127は白黒用であり、7ビ
ットの128階調で表現する。テーブル番号128〜1
91はカラー用であり、カラー・ディザの64色を表現
する。テーブル番号192〜255は未使用又は他のア
プリケーション用である。
FIG. 6 shows an example of a 256-color look-up table in the case of displaying a grayscale monochrome image and a color image in a mixed manner. Table numbers 0 to 127 are for black and white and are represented by 7-bit 128 gradations. Table number 128-1
Reference numeral 91 is for color and represents 64 colors of color dither. Table numbers 192-255 are for unused or other applications.

【0022】図7は、ディザ回路48の詳細な回路ブロ
ック図を示す。色変換回路46は、下記式に従いYUV
系をRGB系に変換する。即ち、 R=Y+(V−128)/0.713 G=Y+(U−128)/0.564 B=(Y−0.299R−0.114B)/0.587 4値ディザ回路48a,48b,48cは夫々、色変換
回路46からのR,G,Bデータを2ビットに変換し、
変換回路48dは、4値ディザ回路48a,48b,4
8cからの合計6ビットのデータを、図6に示すテーブ
ル番号128〜191に割り付ける。
FIG. 7 shows a detailed circuit block diagram of the dither circuit 48. The color conversion circuit 46 uses YUV according to the following formula.
Convert the system to the RGB system. That is, R = Y + (V-128) /0.713 G = Y + (U-128) /0.564 B = (Y-0.299R-0.114B) /0.587 4-value dither circuits 48a and 48b. , 48c respectively convert the R, G, B data from the color conversion circuit 46 into 2 bits,
The conversion circuit 48d is a four-value dither circuit 48a, 48b, 4
A total of 6-bit data from 8c is assigned to the table numbers 128 to 191 shown in FIG.

【0023】映像信号の圧縮方式には、先に説明したよ
うに、フレーム間符号化(INTER)とフレーム内符
号化(INTRA)を一定順序又は適応的に配置する圧
縮符号化方式が知られている。フレーム・スキップを考
えると、ある程度の間隔でフレーム内符号化を配置する
必要があり、フレーム内符号化とフレーム間符号化の配
分は、必要とされる圧縮率、画質及び再生処理能力等に
より決定される。本発明の一実施例では、フレーム内符
号化とフレーム間符号化を1フレーム毎に配置する。こ
れにより、フレーム・スキップを細かく制御できる。
As a video signal compression method, as described above, there is known a compression coding method in which interframe coding (INTER) and intraframe coding (INTRA) are arranged in a fixed order or adaptively. There is. Considering frame skipping, it is necessary to arrange intraframe coding at a certain interval, and the distribution of intraframe coding and interframe coding is determined by the required compression ratio, image quality, playback processing capacity, etc. To be done. In one embodiment of the present invention, intra-frame coding and inter-frame coding are arranged for each frame. This allows fine control of frame skip.

【0024】図8は映像信号の圧縮符号化装置の概略構
成ブロック図を示す。フレーム・メモリ60は入力画像
データを1フレーム遅延し、その出力はスイッチ62の
a接点に印加される。スイッチ62のb接点には、’
0’が印加されている。スイッチ62の選択値は、減算
器64の負入力に印加され、減算器64の正入力には入
力画像データが印加されている。
FIG. 8 shows a schematic block diagram of a video signal compression encoding apparatus. The frame memory 60 delays the input image data by one frame, and its output is applied to the a contact of the switch 62. At the b contact of the switch 62,
0'is applied. The selected value of the switch 62 is applied to the negative input of the subtractor 64, and the input image data is applied to the positive input of the subtractor 64.

【0025】スイッチ62はINTRA/INTER切
換え信号により、フレーム間符号化のときにはa接点に
接続し、フレーム内符号化のときにはb接点に接続す
る。従って、減算器64は、フレーム内符号化では入力
画像データをそのまま出力し、フレーム間符号化では前
フレームとの差分値を出力する。符号化回路66は減算
器64の出力を圧縮符号化し、圧縮符号データを出力す
る。
In response to the INTRA / INTER switching signal, the switch 62 is connected to the a contact during interframe coding and to the b contact during intraframe coding. Therefore, the subtractor 64 outputs the input image data as it is in the intra-frame coding, and outputs the difference value from the previous frame in the inter-frame coding. The encoding circuit 66 compression-codes the output of the subtractor 64 and outputs compressed code data.

【0026】図9は、図8に対応する復号化装置の構成
ブロック図を示す。復号化回路68は符号化回路66に
対応しており、圧縮符号データを復号化する。その出力
は加算器70に印加される。加算器70の出力はフレー
ム・メモリ72で1フレーム遅延されて、スイッチ74
のa接点に印加される。スイッチ74のb接点には’
0’が印加されている。スイッチ74の選択値は加算器
70に印加される。
FIG. 9 is a block diagram showing the configuration of the decoding device corresponding to FIG. The decoding circuit 68 corresponds to the encoding circuit 66 and decodes the compressed code data. The output is applied to the adder 70. The output of the adder 70 is delayed by one frame in the frame memory 72, and the switch 74
Is applied to the a contact of the. For switch b contact b '
0'is applied. The selected value of the switch 74 is applied to the adder 70.

【0027】スイッチ74は、スイッチ62と同様に、
INTRA/INTER切換え信号により、フレーム間
符号化のときにはa接点に接続し、フレーム内符号化の
ときにはb接点に接続する。スイッチ74に対するIN
TRA/INTER切換え信号は、圧縮画像データのヘ
ッダに含まれるフレーム内符号化/フレーム間符号化識
別情報から形成される。
The switch 74, like the switch 62,
By the INTRA / INTER switching signal, the inter-frame coding is connected to the a contact, and the intra-frame coding is connected to the b contact. IN for switch 74
The TRA / INTER switching signal is formed from the intra-frame coding / inter-frame coding identification information included in the header of the compressed image data.

【0028】スイッチ74の切り換えにより、加算器7
0は、フレーム内符号化されたフレームでは、復号化回
路68の出力をそのまま出力し、フレーム間符号化され
たフレームでは、復号化回路68の出力に前フレームの
画像データを加算して出力する。加算器70の出力が復
元された画像データになる。
By switching the switch 74, the adder 7
In the case of 0, the output of the decoding circuit 68 is output as it is in an intra-frame encoded frame, and in the case of an inter-frame encoded frame, the output of the previous circuit is added to the output of the decoding circuit 68 and output. . The output of the adder 70 becomes the restored image data.

【0029】図10は、1フレーム毎にフレーム内符号
化とフレーム間符号化を切り換えるようにしたシーケン
スの説明図である。1秒を4枚のフレームで構成してい
る。再生表示処理が間に合わなくてフレーム・スキップ
する場合、フレーム間符号化のフレームをスキップし
て、フレーム内符号化のフレームから再生表示する。
FIG. 10 is an explanatory diagram of a sequence in which intraframe coding and interframe coding are switched for each frame. One second is composed of four frames. When the frame is skipped because the reproduction and display process is not in time, the frame for inter-frame encoding is skipped and the frame for intra-frame encoding is reproduced and displayed.

【0030】符号化した映像データは、図11に示すよ
うなフォーマットで保存され、伝送される。符号化デー
タの前に固定長のヘッダがあり、そのヘッダには、圧縮
方式、フレーム内符号化又はフレーム間符号化を示す識
別情報、及び符号化データの量を示す情報が含まれる。
フレーム・スキップしたい場合、各フレームのヘッダを
読むことにより、フレーム間符号化フレームの符号量が
分かり、複雑な演算をしなくてもそのフレームをスキッ
プできる。
The encoded video data is stored and transmitted in the format as shown in FIG. There is a fixed-length header in front of the encoded data, and the header includes identification information indicating the compression method, intraframe encoding or interframe encoding, and information indicating the amount of encoded data.
When it is desired to skip the frame, the code amount of the inter-frame coded frame can be known by reading the header of each frame, and the frame can be skipped without performing a complicated operation.

【0031】図12は、映像ファイルの構成を示す。FIG. 12 shows the structure of a video file.

【0032】TV電話では、単位時間毎の映像データ及
び音声データをパケットにして交互に伝送しているが、
ファイル通信の場合には、音声と映像を独立に通信する
ことができる。
In the videophone, the video data and the audio data for each unit time are alternately transmitted in packets.
In the case of file communication, voice and video can be communicated independently.

【0033】音声については、周知の一般的な符号化方
式を使用できる。
For speech, a well-known general coding method can be used.

【0034】一般に、音声データの方が映像データより
小さいので、音声データを先に送り、この部分の転送が
終わった時点で音声のみの再生を行なうような階層的な
使い方も可能になる。
Since the audio data is generally smaller than the video data, it is possible to use the hierarchical structure such that the audio data is sent first and only the audio is reproduced when the transfer of this portion is completed.

【0035】図13は、同期制御のフローチャートを示
す。時刻t0からΔt間隔でフレーム表示する場合を例
にとって説明する。tは内部時計の参照により得られる
現在時刻である。
FIG. 13 shows a flow chart of the synchronous control. An example will be described in which frames are displayed at Δt intervals from time t0. t is the current time obtained by referring to the internal clock.

【0036】変数nを初期化し、変数t0を現在時刻t
で初期化する(S41)。変数t1に現在時刻tを代入
する(S42)。ファイルから圧縮データを読み出し、
伸長、色変換及びディザ処理など既に説明した処理を行
なって、表示可能な形式の画像データをメモリ内に展開
する(S43)。現在時刻tからt1を減算した値を変
数sに代入する(S44)。sはステップS43の実行
に要した時間を示す。
The variable n is initialized and the variable t0 is set to the current time t.
Initialize with (S41). The current time t is substituted into the variable t1 (S42). Read the compressed data from the file,
The previously described processing such as decompression, color conversion, and dither processing is performed to develop the image data in a displayable format in the memory (S43). The value obtained by subtracting t1 from the current time t is substituted into the variable s (S44). s indicates the time required to execute step S43.

【0037】現在時刻が第n番目のフレームの表示予定
時刻を過ぎたか否かを判断し(S45)、過ぎた場合に
は次のS46に進み、過ぎていない場合には、過ぎるの
を待つ。このループにより、表示が早く進み過ぎること
による同期ずれを防ぐ。
It is judged whether or not the current time has passed the display scheduled time of the nth frame (S45), and if it has passed, the process proceeds to the next S46, and if it has not passed, it waits for it to pass. This loop prevents synchronization deviation due to the display advancing too fast.

【0038】メモリ内の画像データを表示し(S4
6)、フレーム番号nをインクリメントし(S47)、
S42の実行に要する時間sを考慮に入れた上で、次に
表示されるべきフレームの番号を計算し、変数mに代入
する(S48)。mとnを比較し(S49)、mがnよ
り大きければS52に飛び、そうでなければ、S50に
進む。
The image data in the memory is displayed (S4
6), the frame number n is incremented (S47),
The number of the frame to be displayed next is calculated in consideration of the time s required to execute S42, and is substituted for the variable m (S48). m and n are compared (S49). If m is larger than n, the process jumps to S52, and if not, the process proceeds to S50.

【0039】S50では、(m−n)枚分のデータをス
キップする。具体的には、その時点におけるデータ・フ
ァイルへのシーク・ポインタの位置から、本実施例の方
法で記録された符号量を示すデータを再生することによ
って得られる次のフレームの符号データ量だけシーク・
ポインタを進めることにより、1フレーム分のデータを
スキップできる。これを(m−n)回繰り返す。この
後、フレーム番号nにmを代入する(S51)。即ち、
データ・スキップによるフレーム番号とファイルへのシ
ーク・ポインタのずれを修正する。
In S50, the data for (mn) sheets is skipped. Specifically, a seek is performed by the code data amount of the next frame obtained by reproducing the data indicating the code amount recorded by the method of the present embodiment from the position of the seek pointer to the data file at that time.・
By advancing the pointer, one frame of data can be skipped. This is repeated (mn) times. Then, m is substituted for the frame number n (S51). That is,
Correct the gap between the frame number and seek pointer to the file due to data skip.

【0040】以上のS48〜S51までの処理によっ
て、表示が間に合わない場合の同期ずれを防止してい
る。
By the above-described processing of S48 to S51, the synchronization shift when the display is not in time is prevented.

【0041】S52では、動画再生を終了するか否かを
判断している。判断基準としては、ファイルへのシーク
・ポインタが終端に達した、即ち、動画像を最後まで再
生してしまった場合や、再生停止ボタンやポーズ・ボタ
ンの操作があった場合などが挙げられる。再生終了する
場合には、本ルーチンは終了する。そうでなければ、S
42に戻り、S42以降を繰り返す。
In S52, it is determined whether or not the reproduction of the moving image is ended. The criteria for determination include the case where the seek pointer to the file reaches the end, that is, the moving image is reproduced to the end, and the case where the reproduction stop button or the pause button is operated. When the reproduction ends, this routine ends. Otherwise, S
It returns to 42 and repeats S42 and subsequent steps.

【0042】図14は、符号データに符号データ量を示
すコードを挿入する回路の概略構成ブロック図を示す。
80は符号化回路、82は符号バッファ、84は符号デ
ータに符号データ量を示すコードを挿入する挿入回路、
86は発生した符号データ量をカウントするカウント回
路である。
FIG. 14 shows a schematic block diagram of a circuit for inserting a code indicating the code data amount into the code data.
80 is an encoding circuit, 82 is a code buffer, 84 is an insertion circuit for inserting a code indicating the code data amount into the code data,
A counting circuit 86 counts the generated code data amount.

【0043】映像データは符号化回路80により符号化
された後、符号バッファ82に一時記憶される。その
間、並行して、カウンタ86が符号化回路80の発生す
る符号データ量をカウントする。符号化処理が1フレー
ム分終了すると、挿入回路84は、カウンタ86からの
符号データ量を示すコードを、符号バッファ82からの
符号データの前に挿入する。即ち、挿入回路84は、発
生符号量データを示すコードの後に、符号データを出力
する。
The video data is coded by the coding circuit 80 and then temporarily stored in the code buffer 82. Meanwhile, in parallel, the counter 86 counts the code data amount generated by the encoding circuit 80. When the encoding process is completed for one frame, the inserting circuit 84 inserts the code indicating the code data amount from the counter 86 before the code data from the code buffer 82. That is, the insertion circuit 84 outputs the code data after the code indicating the generated code amount data.

【0044】映像受信側では、符号データ量を示すコー
ドにより、同期再生の際のフレーム・スキップ処理が容
易になる。
On the video receiving side, the code indicating the amount of coded data facilitates frame skip processing at the time of synchronous reproduction.

【0045】既存の符号化方式では、勝手に、符号デー
タ量を示すコードを挿入することはできない。しかし、
例えば、MPEGなどの標準的な符号化方式において
は、ユーザがある程度自由に使用できる”ユーザ領域”
があるのが普通であり、この領域に1フレームの符号デ
ータ量の情報を書き込むことで、同様の作用効果を得る
ことができる。即ち、図14で、挿入回路84が符号デ
ータ量を示すコードを挿入する代わりに、”ユーザ領
域”に1フレーム分の符号データ量を示すコードを書き
込むようにすればよい。他の処理は上記実施例と全く同
じなので省略する。
In the existing coding method, it is not possible to arbitrarily insert a code indicating the code data amount. But,
For example, in a standard encoding method such as MPEG, a "user area" that a user can freely use to some extent
It is usual that the same effect can be obtained by writing the information of the code data amount of one frame in this area. That is, in FIG. 14, instead of inserting the code indicating the code data amount by the inserting circuit 84, the code indicating the code data amount for one frame may be written in the “user area”. The other processing is exactly the same as that of the above-mentioned embodiment, and therefore its explanation is omitted.

【0046】また、本実施例では、1フレーム、即ち、
1画面毎に符号量を示すデータを挿入したが、これに限
らず、2画面毎、又は5画面毎等の単位毎に符号量デー
タを挿入してもよい。
In this embodiment, one frame, that is,
Although the data indicating the code amount is inserted for each screen, the present invention is not limited to this, and the code amount data may be inserted for each unit such as every two screens or every five screens.

【0047】上記実施例の処理が、その一部又は全部を
ハードウエア又はソフトウエアのどちらでも実現できる
ことは明らかである。
It is obvious that the processing of the above embodiment can be partially or entirely realized by either hardware or software.

【0048】[0048]

【発明の効果】以上の説明から容易に理解できるよう
に、本発明によれば、再生時にフレーム・スキップ処理
が簡単になる。
As can be easily understood from the above description, according to the present invention, frame skip processing is simplified at the time of reproduction.

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

【図1】 本発明の前提となる映像音声伝送システムの
概略構成ブロック図である。
FIG. 1 is a schematic block diagram of a video / audio transmission system that is a premise of the present invention.

【図2】 クライアント14の操作表示画面の説明図で
ある。
FIG. 2 is an explanatory diagram of an operation display screen of the client 14.

【図3】 図1の動作フローチャートである。FIG. 3 is an operation flowchart of FIG.

【図4】 映像情報をデータ化する装置の概略構成ブロ
ック図である。
FIG. 4 is a schematic block diagram of a device for converting video information into data.

【図5】 データ化した映像データを映像ファイル化す
るフローチャートである。
FIG. 5 is a flowchart for converting the converted video data into a video file.

【図6】 白黒とカラーの混在する画像のルックアップ
・テーブルである。
FIG. 6 is a lookup table of an image in which black and white and color are mixed.

【図7】 ディザ回路48の詳細な回路ブロック図であ
る。
FIG. 7 is a detailed circuit block diagram of the dither circuit 48.

【図8】 映像情報の圧縮符号化装置の概略構成ブロッ
ク図である。
FIG. 8 is a schematic block diagram of a compression encoding device for video information.

【図9】 図8に対応する復号化装置の概略構成ブロッ
ク図である。
9 is a schematic block diagram of a decoding device corresponding to FIG.

【図10】 フレーム内符号化とフレーム間符号化を交
互配置した例のシーケンス図である。
FIG. 10 is a sequence diagram of an example in which intra-frame coding and inter-frame coding are alternately arranged.

【図11】 符号化映像情報の記録フォーマットであ
る。
FIG. 11 is a recording format of encoded video information.

【図12】 本発明の一実施例の映像ファイルの構造図
である。
FIG. 12 is a structural diagram of a video file according to an embodiment of the present invention.

【図13】 映像の同期再生のフローチャートである。FIG. 13 is a flowchart of synchronized playback of video.

【図14】 符号データに符号データ量を示すコードを
挿入する回路の概略構成ブロック図である。
FIG. 14 is a schematic block diagram of a circuit that inserts a code indicating a code data amount into code data.

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

10:ファイル・サーバ 12:大容量記憶装置 1
4:クライアント 16:ネットワーク 20:インデ
ックス・ウインドウ 22:ファイルボックス・ウイン
ドウ 24:再生表示ウインドウ 26:getボタン
28:再生ボタン 30:再生停止ボタン 40:A/D変換器 42:N
TSCデコーダ 44:ディザ回路 46:色変換回路
48:ディザ回路 48a,48b,48c:4値デ
ィザ回路 48d:変換回路 50:インターフェース
52:大容量記憶装置 54:フレーム・メモリ 5
4A,54B:メモリ領域 56:ルックアップ・テー
ブル 58:映像表示装置 58A:ウインドウ 58
B:ウインドウ 60:フレーム・メモリ 62:スイ
ッチ 64:減算器 66:符号化回路 68:復号化
回路 70:加算器 72:フレーム・メモリ 74:
スイッチ 80:符号化回路 82:符号バッファ 8
4:挿入回路 86:符号データ量カウント回路
10: File server 12: Mass storage device 1
4: client 16: network 20: index window 22: file box window 24: playback display window 26: get button 28: playback button 30: playback stop button 40: A / D converter 42: N
TSC decoder 44: Dither circuit 46: Color conversion circuit 48: Dither circuit 48a, 48b, 48c: 4-value dither circuit 48d: Conversion circuit 50: Interface 52: Mass storage device 54: Frame memory 5
4A, 54B: Memory area 56: Look-up table 58: Video display device 58A: Window 58
B: Window 60: Frame memory 62: Switch 64: Subtractor 66: Encoding circuit 68: Decoding circuit 70: Adder 72: Frame memory 74:
Switch 80: Encoding circuit 82: Code buffer 8
4: Insertion circuit 86: Code data amount counting circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 5/92 7/15 7251−5C 7734−5C H04N 5/92 H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 5/92 7/15 7251-5C 7734-5C H04N 5/92 H

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 動画像を圧縮符号化する圧縮符号化手段
と、当該圧縮符号化手段による所定画面分の発生符号量
をカウントするカウント手段と、所定画面分の符号デー
タを記憶する記憶手段と、符号データの画面毎に、当該
画面の符号量を示すコードを挿入するコード挿入手段と
からなることを特徴とする動画像符号化装置。
1. A compression encoding means for compression encoding a moving image, a counting means for counting the generated code amount for a predetermined screen by the compression encoding means, and a storage means for storing code data for a predetermined screen. , A code inserting means for inserting a code indicating a code amount of the screen for each screen of the code data.
JP5188297A 1993-06-22 1993-07-29 Motion picture coder Pending JPH0750838A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP5188297A JPH0750838A (en) 1993-07-29 1993-07-29 Motion picture coder
DE69422943T DE69422943T2 (en) 1993-06-22 1994-06-21 Image processing device
EP94304514A EP0631441B1 (en) 1993-06-22 1994-06-21 Image processing apparatus
US08/960,117 US5898461A (en) 1993-06-22 1997-10-27 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5188297A JPH0750838A (en) 1993-07-29 1993-07-29 Motion picture coder

Publications (1)

Publication Number Publication Date
JPH0750838A true JPH0750838A (en) 1995-02-21

Family

ID=16221157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5188297A Pending JPH0750838A (en) 1993-06-22 1993-07-29 Motion picture coder

Country Status (1)

Country Link
JP (1) JPH0750838A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6043851A (en) * 1997-01-13 2000-03-28 Nec Corporation Image and sound synchronizing reproduction apparatus and method of the same
US6754274B2 (en) 1995-12-11 2004-06-22 Samsung Electronics Co., Ltd. Video data recording method and apparatus for high-speed reproduction
JP2005055824A (en) * 2003-08-07 2005-03-03 Seiko Epson Corp Image display device, image display method and image display program
JP2007049542A (en) * 2005-08-11 2007-02-22 Canon Inc Reproducing apparatus and reproducing method
US7664373B2 (en) 2003-07-30 2010-02-16 Sony Corporation Program, data processing method, and system of same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754274B2 (en) 1995-12-11 2004-06-22 Samsung Electronics Co., Ltd. Video data recording method and apparatus for high-speed reproduction
US6043851A (en) * 1997-01-13 2000-03-28 Nec Corporation Image and sound synchronizing reproduction apparatus and method of the same
US7664373B2 (en) 2003-07-30 2010-02-16 Sony Corporation Program, data processing method, and system of same
JP2005055824A (en) * 2003-08-07 2005-03-03 Seiko Epson Corp Image display device, image display method and image display program
JP2007049542A (en) * 2005-08-11 2007-02-22 Canon Inc Reproducing apparatus and reproducing method

Similar Documents

Publication Publication Date Title
US6690881B1 (en) Digital camera apparatus and recording method thereof
KR960010857B1 (en) High efficiency coding recording and reproducing apparatus
JP4358081B2 (en) Video recording device
EP1158810B1 (en) Recording medium
US5748256A (en) Subtitle data encoding/decoding method and apparatus and recording medium for the same
JPH08275205A (en) Method and device for data coding/decoding and coded data recording medium
US5898461A (en) Image processing apparatus
JP2009268129A (en) Video recording apparatus, multiplexing method, program, and recording medium
US5801777A (en) Device and method for decoding digital video data
JPH09200695A (en) Method and device for decoding video data for high-speed reproduction
JP2001025007A (en) Mpeg stream switching method
JPH0750838A (en) Motion picture coder
JP3501514B2 (en) Image playback method
JPH0723323A (en) Video reproducing device
JP3308129B2 (en) Image signal decoding method and image signal decoding device
JPH0723319A (en) Video/sound processing system
JP3295204B2 (en) Video playback method
JPH0595547A (en) Video telephone
JP2002369220A (en) Extended image coding method, extended image decoding method, extended image coder, extended image decoder and extended image recording medium
JP3017646B2 (en) Image decoding device with frame rate conversion function
JPH0879703A (en) Method and device for processing picture information
JPH07231435A (en) Caption data encoding device and decoding device for it and recording medium
JP4391187B2 (en) Data decoding method and apparatus
JPH08181999A (en) Moving image processing unit
JPH06245076A (en) Compression method for digital picture information

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030507