JPH0993136A - Method and device for editing compression data - Google Patents

Method and device for editing compression data

Info

Publication number
JPH0993136A
JPH0993136A JP7247236A JP24723695A JPH0993136A JP H0993136 A JPH0993136 A JP H0993136A JP 7247236 A JP7247236 A JP 7247236A JP 24723695 A JP24723695 A JP 24723695A JP H0993136 A JPH0993136 A JP H0993136A
Authority
JP
Japan
Prior art keywords
value
equation
data
unit
unit group
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
JP7247236A
Other languages
Japanese (ja)
Inventor
Toshikazu Akama
俊和 赤間
Koji Arimura
耕治 有村
Takayuki Sasaki
孝幸 佐々木
Hitoshi Fujimoto
仁 藤本
Ikuji Shimizu
郁二 志水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP7247236A priority Critical patent/JPH0993136A/en
Publication of JPH0993136A publication Critical patent/JPH0993136A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To avoid overflow and underflow of data in advance in a data buffer by compressing again unit data after expansion into a compression object value or a value close thereto and combining compression data already re-compressed and existing compression data while selecting them. SOLUTION: The device is made up of an expansion section 1, a compression section 2, a compression object value calculation section 3, and changeover switches 4A, 4B. Some expansion units in the expansion unit group are expanded by the expansion section 1 as expansion unit data, the compression object value calculation section 3 calculates a proper compression object so as not to cause an overflow or an underflow in a data buffer. Then the compression section 2 compresses again the after-expansion unit data to be the same as or close to sub-object value and the data changeover switches 4A, 4B are used to select the compression data compressed again and existing compression data and to combine them and a new required expansion unit group is formed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、圧縮データを編集する
方法及びその装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for editing compressed data.

【0002】[0002]

【従来の技術】フレーム又はフィールドを画像単位と
し、圧縮後の各画像単位のデータ量は不定の動画像圧縮
データがあり、これを番組Aとする。
2. Description of the Related Art There is moving image compressed data in which a frame or a field is used as an image unit and the data amount of each image unit after compression is indefinite.

【0003】図6に動画像圧縮データを伸長する伸長器
の構成を示す。図6において5は、入力される動画像圧
縮データを一時記憶しておく、データバッファであり、
6はデータバッファに記憶されているデータを伸長する
伸長部である。
FIG. 6 shows the structure of a decompressor for decompressing moving image compressed data. In FIG. 6, 5 is a data buffer for temporarily storing the input moving image compressed data,
Reference numeral 6 is a decompression unit that decompresses the data stored in the data buffer.

【0004】この伸長器に番組Aの動画像圧縮データを
入力したときの、データバッファ5内のある時間帯のデ
ータ占有量を図7に示す。図7において横軸は時間で縦
軸はデータ占有量を示す。データバッファ5にデータが
入力される速度は一定で、データバッファ5からデータ
は時間間隔t(i)毎に各画像単位分(図7中のデータ
占有量が垂直に減少している部分)ずつ出力される。な
お、図7では例としてt(i)はt(固定)にしてい
る。各画像単位のデータ量は不定であるので、各画像単
位が出力される速度は変動することになるが、図7に示
すように番組Aの動画像圧縮データはデータバッファ5
内でオーバーフローやアンダーフローしないように考慮
して圧縮されている。
FIG. 7 shows the amount of data occupied in a certain time zone in the data buffer 5 when the moving image compressed data of the program A is input to the decompressor. In FIG. 7, the horizontal axis represents time and the vertical axis represents data occupancy. The speed at which the data is input to the data buffer 5 is constant, and the data from the data buffer 5 is divided by each image unit (the portion in which the data occupancy in FIG. 7 is decreasing vertically) at each time interval t (i). Is output. In FIG. 7, t (i) is t (fixed) as an example. Since the data amount of each image unit is indefinite, the speed at which each image unit is output fluctuates. However, as shown in FIG.
It is compressed so that it does not overflow or underflow.

【0005】この番組Aの中から、任意の必要な画像単
位を取り出して1つのシーンとする。そして複数のシー
ンを任意の順番に接続して新しく1つの番組Bを作成す
る。図7に示す例では、F10からF15の画像単位を
シーン1とし、F20からF25をシーン2とし、シー
ン1とシーン2を接続して番組Bを作成する。番組Bを
図8に示す。
From the program A, an arbitrary necessary image unit is taken out to make one scene. Then, a plurality of scenes are connected in an arbitrary order to create a new program B. In the example shown in FIG. 7, the image unit of F10 to F15 is scene 1, F20 to F25 is scene 2, and scene 1 and scene 2 are connected to create program B. Program B is shown in FIG.

【0006】なお、シーン1及びシーン2の各画像単位
のデータ量は、時間tにデータバッファ5に入力される
データ量よりは小さいものとする。
The data amount of each image of scene 1 and scene 2 is smaller than the data amount input to the data buffer 5 at time t.

【0007】[0007]

【発明が解決しようとする課題】上記のような場合、番
組Bはデータバッファ5に入力されるデータ量より、出
力されるデータ量の方が小さくなるため、図8に示すよ
うにデータバッファ5においてデータのオーバーフロー
が生じる。上記の例ではシーン1及びシーン2の各画像
単位のデータ量は、時間tにデータバッファ5に入力さ
れるデータ量よりは小さいものとしたが、逆に各画像単
位のデータ量が、時間tにデータバッファ5に入力され
るデータ量より大きい場合は、アンダーフローが生じる
可能性もある。このようにオーバーフローやアンダーフ
ローが生じた場合は、図6の伸長部6において、伸長す
べきデータを適切に伸長することが困難になるという問
題点がある。
In the above case, since the data amount of the program B to be output is smaller than the data amount to be input to the data buffer 5, as shown in FIG. Data overflow occurs at. In the above example, the data amount of each image unit of scene 1 and scene 2 is smaller than the data amount input to the data buffer 5 at time t, but conversely, the data amount of each image unit changes at time t. Underflow may occur if the amount of data input to the data buffer 5 is larger than that. When overflow or underflow occurs in this way, there is a problem that it is difficult for the decompression unit 6 in FIG. 6 to properly decompress the data to be decompressed.

【0008】本発明は上記問題点を回避する圧縮データ
編集方法及びその装置を提供するものである。
The present invention provides a compressed data editing method and apparatus for avoiding the above problems.

【0009】[0009]

【課題を解決するための手段】上記問題点を解決するた
めに本発明の圧縮データ編集方法及びその装置は、デー
タの大きさが不定の伸長単位で構成される圧縮データの
うち、少なくとも一つの伸長単位を伸長して伸長後単位
データとする伸長手段と、伸長後単位データを圧縮する
際の目標データ量を圧縮目標値とし、圧縮目標値を算出
決定する圧縮目標値算出手段と、少なくとも1つの伸長
後単位データを圧縮目標値あるいは前記圧縮目標値に近
いデータ量に再圧縮して再圧縮後単位データとする圧縮
手段と、圧縮データを切替えながら結合するデータ切替
え手段を有する。
In order to solve the above problems, a compressed data editing method and apparatus according to the present invention include at least one of compressed data composed of decompression units whose data size is indefinite. At least one decompressing unit that decompresses the decompression unit into decompressed unit data and a compression target value calculation unit that calculates and determines a compression target value by setting a target data amount when compressing the decompressed unit data as a compression target value. It has a compression means for recompressing one decompressed unit data to a compression target value or a data amount close to the compression target value to obtain recompressed unit data, and a data switching means for coupling while switching the compressed data.

【0010】[0010]

【作用】本発明は上記した構成によって、圧縮データの
編集を行うことにより、編集の際に必要な伸長単位群の
うち、いくつかの伸長単位を伸長手段により伸長して伸
長後単位データとし、圧縮目標値算出決定手段により、
図8のデータバッファ5でオーバーフローやアンダーフ
ローが生じないような適切な圧縮目標値を算出し、圧縮
手段により、伸長後単位データを圧縮目標値と同じ、あ
るいはそれに近い値に再圧縮して、データ切替え手段に
より、既に再圧縮された圧縮データと既存の圧縮データ
とを切替えて結合して新たな必要伸長単位群を形成する
ことにより、図8に示すようにデータバッファ5におい
てデータのオーバーフロー、あるいはアンダーフローを
未然に回避する圧縮データを生成することができる。
According to the present invention, by editing the compressed data by the above-mentioned configuration, some expansion units of the expansion unit group necessary for editing are expanded by the expansion means to be expanded unit data, By the compression target value calculation determining means,
An appropriate compression target value that does not cause overflow or underflow is calculated in the data buffer 5 of FIG. 8, and the compression unit recompresses the decompressed unit data to a value equal to or close to the compression target value, By the data switching means, the recompressed compressed data and the existing compressed data are switched and combined to form a new necessary decompression unit group, so that data overflow in the data buffer 5 as shown in FIG. Alternatively, compressed data that avoids underflow can be generated.

【0011】[0011]

【実施例】以下、図面を用いて本発明の説明を行う。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0012】図1は本発明の一実施例の圧縮データ編集
装置の構成図で、図2は本発明の一実施例の圧縮データ
編集の処理の流れ図である。
FIG. 1 is a block diagram of a compressed data editing apparatus according to an embodiment of the present invention, and FIG. 2 is a flow chart of a compressed data editing process according to an embodiment of the present invention.

【0013】なお、本実施例においては編集の対象とな
る圧縮データを動画像圧縮データとする。
In this embodiment, the compressed data to be edited is the moving image compressed data.

【0014】図1において、1は編集を施す前の動画像
圧縮データ(以下番組Aと呼ぶ)から任意に取り出した
各シーンの最初付近と最後付近のいくつかの画像単位
(以下再圧縮対象画像と呼ぶ)、又は再圧縮対象画像と
それを伸長するための伸長補助データを入力とし、入力
された再圧縮対象画像を伸長して出力する伸長部、2は
伸長部1の出力と圧縮目標値g(n)(後述)を入力と
し、入力された伸長部1の出力を圧縮(以下再圧縮と呼
ぶ)して再圧縮後単位データとして出力する圧縮部、3
は図6のデータバッファ5内における各シーンの先頭と
最後の共通の目標バッファ占有量Bc[bit]の値を
算出し、又、各画像単位の圧縮目標値g(n)を算出し
て出力する圧縮目標値算出部で、4Aと4Bは圧縮デー
タを結合するための切替えスイッチである。
In FIG. 1, reference numeral 1 denotes several image units near the beginning and the end of each scene arbitrarily extracted from moving image compressed data (hereinafter referred to as program A) before being edited (hereinafter referred to as recompression target image). , Or a recompression target image and decompression auxiliary data for decompressing the recompression target image, and decompresses and outputs the input recompression target image. 2 is an output of the decompression unit 1 and a compression target value. A compression unit that inputs g (n) (described later), compresses the input output of the decompression unit 1 (hereinafter referred to as recompression), and outputs the recompressed unit data as a unit 3.
Calculates the value of the common target buffer occupancy Bc [bit] at the beginning and end of each scene in the data buffer 5 of FIG. 6, and also calculates and outputs the compression target value g (n) for each image unit. In the compression target value calculation unit, 4A and 4B are changeover switches for connecting the compressed data.

【0015】圧縮目標値算出部3の入力は、連続する再
圧縮対象画像の数Nと、番組Aが図6のデータバッファ
5に入力されるときの速度R[bit/s](=番組A
の平均ビットレート)と、図6のデータバッファ5から
番組A内の各画像単位が出力される時間間隔t(i)
[s](=t[s])と、各シーンの再圧縮対象画像の
うち非再圧縮対象画像より時間的に前方に位置するもの
を再圧縮する場合は1、時間的に後方に位置するものを
再圧縮する場合は0を示す信号Sと、図6のデータバッ
ファ5の最大許容量Bmax[bit]と、図6のデー
タバッファ11内における各シーンの再圧縮対象画像群
と非再圧縮対象画像群の接点のデータ占有量Bvと、圧
縮部2から出力される再圧縮後単位データである。
The input of the compression target value calculation unit 3 is the number N of consecutive recompression target images and the speed R [bit / s] (= program A when the program A is input to the data buffer 5 in FIG.
And the time interval t (i) at which each image unit in program A is output from the data buffer 5 in FIG.
[S] (= t [s]) and one of the recompression target images of each scene that is ahead of the non-recompression target image in time is 1; When re-compressing the object, a signal S indicating 0, the maximum allowable amount Bmax [bit] of the data buffer 5 of FIG. 6, the re-compression target image group of each scene in the data buffer 11 of FIG. The data occupancy Bv at the contact point of the target image group and the recompressed unit data output from the compression unit 2.

【0016】圧縮目標値算出部3の出力g(n)のnは
1以上の整数である。圧縮目標値算出部3では再圧縮後
単位データのデータ量をカウントしてg(n−1)とし
圧縮目標値g(n)の算出に使用する。
The n of the output g (n) of the compression target value calculation unit 3 is an integer of 1 or more. The compression target value calculation unit 3 counts the data amount of the recompressed unit data and sets it as g (n-1), which is used to calculate the compression target value g (n).

【0017】ここで図3、図4、図5について説明す
る。図3は番組Aが図6の伸長器で伸長される場合のあ
る時間帯におけるデータバッファ5内のデータ占有状態
を示している。なお、後に編集する際に使用するシーン
1とシーン2はそれぞれF10からF15とF20から
F25、再圧縮を施す範囲は例として各シーンの最初と
最後の2画像単位ずつ(F10、F11、F14、F1
5、F20、F21、F24、F25)とする。
Here, FIGS. 3, 4, and 5 will be described. FIG. 3 shows a data occupation state in the data buffer 5 in a time zone when the program A is decompressed by the decompressor of FIG. It should be noted that scenes 1 and 2 used when editing later are respectively F10 to F15 and F20 to F25, and the range to be recompressed is, for example, the first and last two image units of each scene (F10, F11, F14, F1
5, F20, F21, F24, F25).

【0018】図4は各シーンの最初と最後の2画像単位
ずつを再圧縮し、シーン1とシーン2を接続して作成さ
れた番組Bが図6の伸長器で伸長される場合のデータバ
ッファ5内のデータ占有状態を示している。
FIG. 4 is a data buffer in the case where the first and last two image units of each scene are recompressed, and the program B created by connecting scene 1 and scene 2 is expanded by the expander of FIG. 5 shows the data occupation state within 5.

【0019】図5は図4に示した再圧縮部分の一部を示
す。ここで、再圧縮を行う際に、図6のデータバッファ
5内でデータのオーバーフロー及びアンダーフローが生
じないための条件を整理すると、以下の数式のようにな
る。
FIG. 5 shows a part of the recompression portion shown in FIG. Here, when recompressing is performed, the following formulas are arranged when the conditions for preventing data overflow and underflow in the data buffer 5 of FIG. 6 are arranged.

【0020】[0020]

【数13】 (Equation 13)

【0021】[0021]

【数14】 [Equation 14]

【0022】[0022]

【数15】 (Equation 15)

【0023】[0023]

【数16】 (Equation 16)

【0024】[0024]

【数17】 [Equation 17]

【0025】[0025]

【数18】 (Equation 18)

【0026】[0026]

【数19】 [Equation 19]

【0027】[0027]

【数20】 (Equation 20)

【0028】[0028]

【数21】 (Equation 21)

【0029】[0029]

【数22】 (Equation 22)

【0030】[0030]

【数23】 (Equation 23)

【0031】[0031]

【数24】 (Equation 24)

【0032】なお、(数15)と(数16)のBsは連
続する再圧縮対象画像の圧縮目標値g(n)の総和であ
る。
Bs of (Equation 15) and (Equation 16) is the sum of the compression target values g (n) of the continuous recompression target images.

【0033】図1の圧縮目標値算出部3では、上記の
(数13)から(数24)を満たす圧縮目標値g(n)
を算出する。
In the compression target value calculation unit 3 of FIG. 1, the compression target value g (n) satisfying the above (Equation 13) to (Equation 24) is satisfied.
Is calculated.

【0034】以下に(数13)から(数24)までの導
出過程を記す。まず、各シーンの先頭と最後の共通の目
標バッファ占有量であるBcの値の範囲を明確にする。
The derivation process from (Equation 13) to (Equation 24) will be described below. First, the range of the value of Bc, which is the common target buffer occupancy at the beginning and the end of each scene, is clarified.

【0035】再圧縮する各画像単位の再圧縮後のデータ
サイズを0より大きくすることを考慮した場合、Bcの
値の範囲に関して(数13)が導かれる。図5は、シー
ン1のF10とF11を再圧縮する場合の例を示してい
るが、F10とF11は、シーン1の中で非再圧縮対象
画像より時間的に前方に位置している(すなわちS=
1)。この場合、再圧縮する各画像単位の再圧縮後のデ
ータサイズを0より大きくするためにはBcの値はBv
の値を基準に考えると、RとtとN(この場合は2)を
かけたものをBvから引いた値よりも大きくなければな
らない。図5の例とは逆で、F10とF11は、シーン
1の中で非再圧縮対象画像より時間的に後方に位置して
いる(すなわちS=0)場合はBcの値は、RとtとN
をかけたものをBvに加えた値よりも小さくなければな
らない。これらをまとめると(数13)になる。ただ
し、Bvの値は一定ではなく、Bvは0以上で、かつB
maxからRtを引いた値以下である。
In consideration of making the recompressed data size of each image unit to be recompressed larger than 0, the following expression (13) is derived for the range of the value of Bc. FIG. 5 shows an example in which F10 and F11 of scene 1 are recompressed, but F10 and F11 are located temporally ahead of the non-recompression target image in scene 1 (that is, S =
1). In this case, in order to make the recompressed data size of each image unit to be recompressed larger than 0, the value of Bc is Bv.
Considering the value of as a reference, it must be larger than the value obtained by subtracting the product of R, t and N (2 in this case) from Bv. Contrary to the example of FIG. 5, when F10 and F11 are located temporally posterior to the non-recompression target image in scene 1 (that is, S = 0), the values of Bc are R and t. And N
Must be smaller than the value obtained by multiplying Bv by Bv. These can be summarized as (Equation 13). However, the value of Bv is not constant, Bv is 0 or more, and
It is not more than the value obtained by subtracting Rt from max.

【0036】又、図6のデータバッファ5内でオーバー
フロー、アンダーフローが生じないようなBcの値の範
囲を求めると(数14)が導かれる。
Further, when the range of the value of Bc at which overflow or underflow does not occur in the data buffer 5 of FIG. 6 is obtained, (Equation 14) is derived.

【0037】次に、連続する再圧縮対象画像の圧縮目標
値g(n)の総和であるBsの値の算出方法を明確にす
る。各シーンの再圧縮対象画像のうち非再圧縮対象画像
より時間的に前方に位置するものを再圧縮する場合(す
なわちS=1で図5と同様の場合)は、Bsは(数1
5)で算出できる。各シーンの再圧縮対象画像のうち非
再圧縮対象画像より時間的に後方に位置するものを再圧
縮する場合(すなわちS=0)は、Bsは(数16)で
算出できる。なお、Bsの値は0より大きくなければな
らない。
Next, the method of calculating the value of Bs, which is the sum of the compression target values g (n) of consecutive recompression target images, will be clarified. When recompressing one of the recompression-target images of each scene that is temporally ahead of the non-recompression-target image (that is, S = 1 and the same as in FIG. 5), Bs is (equation 1).
It can be calculated in 5). When recompressing one of the recompression target images of each scene that is temporally behind the non-recompression target image (that is, S = 0), Bs can be calculated by (Equation 16). The value of Bs must be greater than 0.

【0038】次に、圧縮目標値g(n)の値の範囲を明
確にする。まず、オーバーフロー対策について説明す
る。
Next, the range of the compression target value g (n) is clarified. First, measures against overflow will be described.

【0039】図5の例においてB1やB3の値がそれぞ
れオーバーフローしないように考慮する必要がある。
In the example of FIG. 5, it is necessary to consider so that the values of B1 and B3 do not overflow.

【0040】例えば図5は、再圧縮を施すF10とF1
1が非再圧縮対象画像より時間的に前方に位置している
(すなわちS=1)。このときB3がオーバーフローし
ないための条件を考えてみる。B2の値は、Rとtをか
けた値をBcに加え、更にg(1)を引いたものであ
る。B3がオーバーフローしないためには、B2の値
が、Rとtをかけた値をBmaxから引いた値以下でな
ければならない。この条件を整理するとS=1でかつ、
nが1のときのg(n)の値の範囲は(数18)とな
る。又、nが2以上の場合を同様に整理すると(数1
7)となる。図5の例とは逆で、再圧縮を施すF10と
F11が非再圧縮対象画像より時間的に後方に位置して
いる(すなわちS=0)場合は、オーバーフローを防ぐ
ためのg(n)の範囲は(数19)と(数20)のよう
になり、これらはそれぞれ、(数17)と(数18)の
Bcの部分をBvに置き換えたものである。
For example, FIG. 5 shows F10 and F1 to be recompressed.
1 is located ahead of the non-recompression target image in time (that is, S = 1). At this time, consider a condition for B3 not to overflow. The value of B2 is obtained by adding a value obtained by multiplying R and t to Bc, and further subtracting g (1). In order for B3 not to overflow, the value of B2 must be less than or equal to the value obtained by subtracting the value obtained by multiplying R and t from Bmax. When this condition is arranged, S = 1 and
The range of the value of g (n) when n is 1 is (Equation 18). Similarly, when n is 2 or more, the same can be obtained (Equation 1)
7). Contrary to the example of FIG. 5, when F10 and F11 to be recompressed are temporally behind the non-recompression target image (that is, S = 0), g (n) for preventing overflow The ranges are as in (Equation 19) and (Equation 20), and these are obtained by replacing the Bc portion of (Equation 17) and (Equation 18) with Bv, respectively.

【0041】次に、アンダーフロー対策について説明す
る。図5の例においてB2の値がアンダーフローしない
ように考慮必要がある。
Next, measures against underflow will be described. In the example of FIG. 5, it is necessary to consider so that the value of B2 does not underflow.

【0042】例えば図5は、再圧縮を施すF10とF1
1が非再圧縮対象画像より時間的に前方に位置している
(すなわちS=1)。
For example, FIG. 5 shows F10 and F1 to be recompressed.
1 is located ahead of the non-recompression target image in time (that is, S = 1).

【0043】このときB2の値がアンダーフローしない
ためには、g(1)の値がB1以下であれば良い。
At this time, in order that the value of B2 does not underflow, the value of g (1) may be B1 or less.

【0044】よって、S=1で、かつn=1のときのg
(n)の値の範囲は(数22)のようになる。又、nが
2以上の場合を同様に整理すると(数21)となる。
Therefore, g when S = 1 and n = 1
The range of the value of (n) is as shown in (Equation 22). Similarly, when n is 2 or more, the same equation is obtained (Equation 21).

【0045】図5の例とは逆で、再圧縮を施すF10と
F11が非再圧縮対象画像より時間的に後方に位置して
いる(すなわちS=0)場合は、アンダーフローを防ぐ
ためのg(n)の範囲は(数23)と(数24)のよう
になり、これらはそれぞれ、(数21)と(数22)の
Bcの部分をBvに置き換えたものである。
Contrary to the example of FIG. 5, when F10 and F11 to be recompressed are temporally behind the non-recompressed image (that is, S = 0), underflow is prevented. The range of g (n) is as in (Equation 23) and (Equation 24), and these are obtained by replacing the Bc portions of (Equation 21) and (Equation 22) with Bv.

【0046】以上のように構成された圧縮データ編集装
置について、図1、図2、図3、図4、図5を用いて以
下に動作を説明する。
The operation of the compressed data editing apparatus configured as described above will be described below with reference to FIGS. 1, 2, 3, 4, and 5.

【0047】例として、図3に示す番組Aのうちのシー
ン1とシーン2を接続して、図4に示すような番組Bを
作成する。
As an example, scene 1 and scene 2 of program A shown in FIG. 3 are connected to create program B as shown in FIG.

【0048】動作の概要は、以下の通りである。図3の
シーン1及び、シーン2の各画像単位が圧縮された状態
で図1のスイッチ4Aに入力される。入力された画像単
位が再圧縮対称画像(例として図3のF10、F11、
F14、F15、F20、F21、F24、F25とす
る)の場合は図1のスイッチ4Aとスイッチ4Bはそれ
ぞれb側に接続され、画像単位は伸長部1で伸長され
る。伸長された画像単位は、圧縮目標値算出部3で算出
された圧縮目標値g(n)を目標に、圧縮部2で再圧縮
される。スイッチ4Aに入力される画像単位が再圧縮対
称画像でない場合は、スイッチ4Aとスイッチ4Bはそ
れぞれa側に接続され、スイッチ4Bのcに素通りす
る。このように再圧縮対称画像は再圧縮し、再圧縮対称
画像以外は素通りさせてスイッチ4Bのcに出力させる
ことにより、図4に示すようなオーバーフローやアンダ
ーフローのない番組Bを得る。
The outline of the operation is as follows. The image units of scene 1 and scene 2 in FIG. 3 are input to the switch 4A in FIG. 1 in a compressed state. The input image unit is a recompression symmetrical image (for example, F10, F11 in FIG.
In the case of F14, F15, F20, F21, F24, and F25), the switch 4A and the switch 4B of FIG. 1 are connected to the b side, respectively, and the image unit is expanded by the expansion unit 1. The decompressed image unit is recompressed by the compression unit 2 with the compression target value g (n) calculated by the compression target value calculation unit 3 as a target. When the image unit input to the switch 4A is not a recompression symmetric image, the switch 4A and the switch 4B are connected to the a side, respectively, and are passed through c of the switch 4B. In this way, the recompressed symmetric image is recompressed, and the other than the recompressed symmetric image is passed through and output to c of the switch 4B, thereby obtaining the program B without overflow or underflow as shown in FIG.

【0049】以下、動作の詳細を記す。図1において、
まず圧縮目標値算出部3にR、Bmaxの値が入力され
る(図2のS201)。
The details of the operation will be described below. In FIG.
First, the values of R and Bmax are input to the compression target value calculation unit 3 (S201 in FIG. 2).

【0050】次にt(1)からt(N)の値を入力し、
nに1を代入する(図2のS202)。例ではt(1)
からt(N)の各値はそれぞれtとしている。
Next, input the values of t (1) to t (N),
Substitute 1 for n (S202 in FIG. 2). In the example, t (1)
Each value from t to (N) is t.

【0051】次に、図1のスイッチ4Aに編集に用いら
れる各シーンのうちシーン1の画像単位が入力される
(図2のS203)。
Next, the image unit of scene 1 of each scene used for editing is input to the switch 4A of FIG. 1 (S203 of FIG. 2).

【0052】ここで入力された画像単位が再圧縮対象画
像かどうかを判定する(図2のS204)。
It is determined whether the image unit input here is a recompression target image (S204 in FIG. 2).

【0053】入力された画像単位が再圧縮対象画像でな
い場合は、スイッチ4Aとスイッチ4Bをそれぞれaへ
接続し(図2のSの206)、図2のS203のステッ
プへ戻る。
If the input image unit is not the image to be recompressed, the switch 4A and the switch 4B are connected to a (206 of S in FIG. 2), and the process returns to the step of S203 in FIG.

【0054】再圧縮対象画像が入力されるとスイッチ4
Aとスイッチ4Bをそれぞれbへ接続し(図2のS20
5)、次に圧縮目標値算出部3にN、S、Bvが入力さ
れる(図2のS207)。
When the image to be recompressed is input, the switch 4
A and switch 4B are respectively connected to b (see S20 in FIG. 2).
5) Next, N, S, and Bv are input to the compression target value calculation unit 3 (S207 in FIG. 2).

【0055】例では再圧縮対象画像の連続数Nは2と
し、まずはじめに図3のF10とF11を再圧縮するも
のとする。F10とF11の間においては、Sの値は1
とする。
In the example, the number N of consecutive recompression target images is set to 2, and F10 and F11 in FIG. 3 are first recompressed. The value of S is 1 between F10 and F11.
And

【0056】以後図2のS208からS227のステッ
プのうち、S210とS224以外はいずれも図1の圧
縮目標値算出部3で行われる。
Thereafter, in steps S208 to S227 of FIG. 2, all steps other than S210 and S224 are performed by the compression target value calculation unit 3 of FIG.

【0057】ここで図2のS208のステップにおい
て、ここまでの一連の処理が1回目かどうかを判定す
る。1回目でなければ図2の210のステップへ行く。
1回目であれば、(数13)及び(数14)を満たす範
囲内でBcの値を決定する(図2の209)。
Here, in step S208 of FIG. 2, it is determined whether or not the series of processing up to this point is the first time. If it is not the first time, go to step 210 in FIG.
If it is the first time, the value of Bc is determined within the range that satisfies (Equation 13) and (Equation 14) (209 in FIG. 2).

【0058】次に、図1の伸長部1でn番目の再圧縮対
象画像(図3のF10)を伸長する(図2のS21
0)。
Next, the decompression unit 1 in FIG. 1 decompresses the n-th recompression target image (F10 in FIG. 3) (S21 in FIG. 2).
0).

【0059】次にSの値が1かどうかを判断する(図2
のS211)。次にNの値が1かどうかを判断する(図
2のS212とS213)。
Next, it is judged whether the value of S is 1 (FIG. 2).
S211). Next, it is determined whether the value of N is 1 (S212 and S213 in FIG. 2).

【0060】Sの値が1で、かつNの値が1ならば、
(数15)のみを用いてg(n)を算出する(図2のS
214)。
If the value of S is 1 and the value of N is 1,
G (n) is calculated using only (Equation 15) (S in FIG. 2).
214).

【0061】Sの値が0で、かつNの値が1ならば、
(数16)のみを用いてg(n)を算出する(図2のS
215)。
If the value of S is 0 and the value of N is 1, then
G (n) is calculated using only (Equation 16) (S in FIG. 2).
215).

【0062】Nの値が2以上ならば、次にnが1かどう
かを判断する(図2のS216とS217)。
If the value of N is 2 or more, then it is determined whether n is 1 (S216 and S217 in FIG. 2).

【0063】Sの値が1で、かつNの値が2以上で、n
の値が1ならば、(数15)と(数18)と(数22)
を満たす範囲よりg(n)を決定する(図2のS22
0)。
If the value of S is 1 and the value of N is 2 or more, n
If the value of is 1, (Equation 15), (Equation 18) and (Equation 22)
G (n) is determined from the range that satisfies the condition (S22 in FIG. 2).
0).

【0064】Sの値が0で、かつNの値が2以上で、n
の値が1ならば、(数16)と(数20)と(数24)
を満たす範囲よりg(n)を決定する(図2のS22
2)。
If the value of S is 0 and the value of N is 2 or more, n
If the value of is 1, (Equation 16), (Equation 20) and (Equation 24)
G (n) is determined from the range that satisfies the condition (S22 in FIG. 2).
2).

【0065】nの値が2以上のときは、図1の圧縮部2
から出力されるデータの大きさをカウントしてg(n−
1)に代入する(図2のS218とS219)。
When the value of n is 2 or more, the compression unit 2 in FIG.
Counting the size of the data output from g (n-
1) (S218 and S219 of FIG. 2).

【0066】Sが1で、Nとnが2以上ならば、図2の
S218のステップを経た後に、(数15)と(数1
7)と(数21)を満たす範囲よりg(n)を決定する
(図2のS221)。
If S is 1 and N and n are 2 or more, after passing through the step of S218 in FIG. 2, (Equation 15) and (Equation 1)
7) and g (n) are determined from the range satisfying (Equation 21) (S221 in FIG. 2).

【0067】Sが0で、Nとnが2以上ならば、図2の
S219のステップを経た後に、(数16)と(数1
9)と(数23)を満たす範囲よりg(n)を決定する
(図2のS223)。
If S is 0 and N and n are 2 or more, after the step of S219 in FIG.
9) and g (n) are determined from the range satisfying (Equation 23) (S223 in FIG. 2).

【0068】例では、Sの値が1で、Nの値が2で、n
の値が1であるので、図2のS210のステップで既に
伸長されている図3のF10のデータを、再圧縮する際
の圧縮目標値g(1)は図2のS220のステップで決
定される。
In the example, the value of S is 1, the value of N is 2, and n
2 is 1, the compression target value g (1) at the time of recompressing the data of F10 of FIG. 3 already decompressed in the step of S210 of FIG. 2 is determined in the step of S220 of FIG. It

【0069】次に、図2のS210のステップで既に伸
長されている図3のF10のデータを、図1の圧縮部2
でg(1)を目標値として、g(1)と同じ、あるいは
g(1)に近い値に再圧縮する(図2のS2254)。
次にnの値がカウントアップされて2になる(図2のS
225)。次にnがNより大きいかを判断する(図2の
S226)。
Next, the data of F10 of FIG. 3 which has already been expanded in the step of S210 of FIG. 2 is converted into the compression unit 2 of FIG.
With g (1) as the target value, recompression is performed to a value equal to or close to g (1) (S2254 in FIG. 2).
Next, the value of n is counted up to 2 (S in FIG.
225). Next, it is determined whether n is larger than N (S226 in FIG. 2).

【0070】nがN以下のときは、図2のS203のス
テップへ行き、次の画像単位(例では図3のF11)を
入力し、S203以後の動作を行う。nがNより大きい
ときは、N個の連続する再圧縮対象画像(例ではF10
とF11)が全て再圧縮が済んだことを意味し、図2の
S227のステップへ行く。図2のS227のステップ
では、編集に使用する全ての再圧縮対象画像の再圧縮処
理が終了したか(例ではF10、F11、F14、F1
5、F20、F21、F24、F25に対応する画像単
位の再圧縮処理が終了したか)を判別する。全ての再圧
縮対象画像の再圧縮処理が終了していれば、全ての処理
を終了する。全ての再圧縮対象画像の再圧縮処理が終了
していなければ、図2のS202以後の処理を繰り返
す。
When n is N or less, the process proceeds to step S203 in FIG. 2, the next image unit (F11 in FIG. 3 in the example) is input, and the operation after S203 is performed. When n is larger than N, N consecutive recompression target images (F10 in the example)
And F11) mean that the recompression has been completed, and the process goes to step S227 in FIG. In the step S227 of FIG. 2, whether all the recompression target images used for editing have been recompressed (in the example, F10, F11, F14, F1).
5) F20, F21, F24, and F25, and whether the recompression process for each image unit is completed) is determined. If all the recompression target images have been recompressed, all the processes are terminated. If all the recompression target images have not been recompressed, the processes after S202 in FIG. 2 are repeated.

【0071】以上の動作を繰り返すことにより、例にお
いては図1のスイッチ4Bのcより、図4に示す番組B
のような動画像圧縮データを得ることができる。
By repeating the above operation, in the example, the program B shown in FIG.
It is possible to obtain moving image compressed data such as.

【0072】このように各シーンの境界付近のいくつか
の画像単位を再圧縮目標値g(n)と同じ、あるいはg
(n)に近い値に再圧縮して接続することで、伸長を行
う際に図6のデータバッファ5内でデータのオーバーフ
ローやアンダーフローを生じることのない新しい番組を
作成できる。
In this way, some image units near the boundary of each scene are the same as the recompression target value g (n), or g
By recompressing to a value close to (n) and connecting, it is possible to create a new program without causing data overflow or underflow in the data buffer 5 of FIG. 6 when performing decompression.

【0073】なお、各シーンの接続部分において図6の
データバッファ5内でのデータの占有量を共通の値Bc
に設定して再圧縮を行っているため、例えば図4のシー
ン1とシーン2の順番を入れ換えたりしても図6のデー
タバッファ5内でデータのオーバーフローやアンダーフ
ローを起こすことがなく、編集のやり直しが行い易い利
点がある。
It should be noted that the data occupancy in the data buffer 5 of FIG.
Since the recompression is performed by setting to, the data overflow or underflow does not occur in the data buffer 5 in FIG. 6 even if the order of scene 1 and scene 2 in FIG. There is an advantage that it is easy to redo.

【0074】なお、g(n)の決定及び各再圧縮対象画
像の再圧縮は、連続する各再圧縮対象画像の時間的に前
と後ろのどちらから行っても良い。
The determination of g (n) and the recompression of each recompression target image may be performed before or after each successive recompression target image.

【0075】なお、上記では例として各シーンの最初と
最後の2画像単位ずつを再圧縮したが、再圧縮する画像
単位の数Nはこれに限る必要はない。
In the above description, the first and last two image units of each scene are recompressed as an example, but the number N of image units to be recompressed is not limited to this.

【0076】又、上記の例では図1の圧縮部2から出力
される再圧縮後単位データのデータ量を、圧縮目標値算
出部3でカウントしてg(n−1)に代入したが、必ず
しも上記のような代入は行わなくても良く、その場合は
圧縮部2から出力される再圧縮後単位データを圧縮目標
値算出部3に入力する必要は無い。
In the above example, the data amount of the recompressed unit data output from the compression unit 2 of FIG. 1 is counted by the compression target value calculation unit 3 and substituted into g (n-1). The substitution as described above does not necessarily have to be performed, and in that case, it is not necessary to input the recompressed unit data output from the compression unit 2 to the compression target value calculation unit 3.

【0077】なお、上記では各シーンの接続部分におい
て図6のデータバッファ5内でのデータの占有量を共通
の値Bcに設定して再圧縮を行うようにしたが、図4の
番組Bのようにシーン1とシーン2をこの順に接続する
という前提がある場合は、例えば図4のF14、F1
5、F20、F21を一連として再圧縮を行なっても良
い。
Although the amount of data occupied in the data buffer 5 of FIG. 6 is set to the common value Bc in the connection portion of each scene in the above description and recompression is performed, the program B of FIG. If it is premised that scene 1 and scene 2 are connected in this order, for example, F14 and F1 in FIG.
The recompression may be performed with 5, F20 and F21 as a series.

【0078】この場合は、必ずしもBcを設定する必要
はなく、(数15)と(数17)と(数18)と(数2
1)と(数22)のみを用い、(数15)と(数17)
と(数18)と(数21)と(数22)のBcの代わり
に、図4のBv(2)の値を用い、(数15)のBvの
代わりに、図4のBv(3)の値を用いて圧縮目標値を
算出する。
In this case, it is not always necessary to set Bc, and (Equation 15), (Equation 17), (Equation 18) and (Equation 2)
Using only 1) and (Equation 22), (Equation 15) and (Equation 17)
And (Equation 18), (Equation 21) and (Equation 22) instead of Bc, the value of Bv (2) of FIG. 4 is used, and instead of Bv of (Equation 15), Bv (3) of FIG. The compression target value is calculated using the value of.

【0079】なお、上記では例として動画像圧縮データ
を用いた場合を示したが、動画像に限定する必要はな
く、例えば音声やテキストデータなどが圧縮されたもの
においても同様に摘要できる。
In the above, the case where the moving image compressed data is used is shown as an example, but it is not limited to the moving image, and the same can be applied to the case where the voice or text data is compressed.

【0080】なお、上記では例として信号Sが1のとき
が、各シーンの再圧縮対象画像のうち非再圧縮対象画像
より時間的に前方に位置するものを再圧縮する場合、信
号Sが0のときを時間的に後方に位置するものを再圧縮
する場合としたが、これに限定する必要はない。
In the above description, when the signal S is 1, for example, when recompressing one of the recompression target images in each scene that is temporally ahead of the non-recompression target image, the signal S is 0. In the case of, the case of re-compressing the one located backward in time is described, but the present invention is not limited to this.

【0081】[0081]

【発明の効果】編集の際に必要な伸長単位群のうち、い
くつかの伸長単位を伸長して伸長後単位データとし、適
切な圧縮目標値を決定し、伸長後単位データを圧縮目標
値と同じ、あるいはそれに近い値に再圧縮して、既に再
圧縮された圧縮データと既存の圧縮データとを切替えて
結合して新たな必要伸長単位群を形成することにより、
図8に示すようにデータバッファ5においてデータのオ
ーバーフロー、又はアンダーフローを未然に回避する圧
縮データを生成することができる。
EFFECTS OF THE INVENTION Of the decompression unit group necessary for editing, some decompression units are decompressed to be decompressed unit data, an appropriate compression target value is determined, and the decompressed unit data is set as a compression target value. By recompressing to the same value or a value close to it, and switching and combining already recompressed compressed data and existing compressed data to form a new necessary decompression unit group,
As shown in FIG. 8, it is possible to generate compressed data in the data buffer 5 that avoids data overflow or underflow.

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

【図1】本発明の実施例における圧縮データ編集装置の
構成図
FIG. 1 is a configuration diagram of a compressed data editing device according to an embodiment of the present invention.

【図2】本発明の実施例における動作説明のための圧縮
データ編集の処理の流れ図
FIG. 2 is a flow chart of a process of editing compressed data for explaining the operation in the embodiment of the present invention.

【図3】本発明の実施例を説明するための番組Aのデー
タ占有量を示す図
FIG. 3 is a diagram showing a data occupation amount of a program A for explaining an embodiment of the present invention.

【図4】本発明の実施例を説明するための番組Bのデー
タ占有量を示す図
FIG. 4 is a diagram showing a data occupation amount of a program B for explaining an embodiment of the present invention.

【図5】本発明の実施例を説明するための再圧縮対象画
像のデータ占有量を示す図
FIG. 5 is a diagram showing a data occupation amount of an image to be recompressed for explaining an embodiment of the present invention.

【図6】本発明の実施例及び従来例を説明するための伸
長器の構成図
FIG. 6 is a configuration diagram of an expander for explaining an embodiment of the present invention and a conventional example.

【図7】従来例を説明するための番組Aのデータ占有量
を示す図
FIG. 7 is a diagram showing a data occupation amount of a program A for explaining a conventional example.

【図8】従来例を説明するための番組Bのデータ占有量
を示す図
FIG. 8 is a diagram showing a data occupation amount of a program B for explaining a conventional example.

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

1 伸長部 2 圧縮部 3 圧縮目標算出部 4A 切替えスイッチ 4B 切替えスイッチ 5 データバッファ 6 伸長部 1 Expansion Unit 2 Compression Unit 3 Compression Target Calculation Unit 4A Changeover Switch 4B Changeover Switch 5 Data Buffer 6 Expansion Unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 藤本 仁 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 志水 郁二 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hitoshi Fujimoto 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (72) Ikuji Shimizu, 1006, Kadoma, Kadoma City, Osaka

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 データの大きさが不定の伸長単位で構成
される圧縮データのうち、 少なくとも一つの伸長単位を伸長して伸長後単位データ
とし、 伸長後単位データを圧縮する際の目標データ量を圧縮目
標値とし、 圧縮目標値を算出決定し、 少なくとも1つの伸長後単位データを圧縮目標値あるい
は前記圧縮目標値に近いデータ量に再圧縮して再圧縮後
単位データとし、 圧縮データを切替えながら結合する圧縮データ編集方
法。
1. A target data amount for compressing the decompressed unit data by decompressing at least one decompression unit among the compressed data composed of decompression units of which the data size is indefinite. Is set as the compression target value, the compression target value is calculated and determined, and at least one decompressed unit data is recompressed to the compression target value or a data amount close to the compression target value to be recompressed unit data, and the compressed data is switched. A compressed data editing method that combines while.
【請求項2】 圧縮データの単位時間当たりの平均のデ
ータ量をRとし、 圧縮データを伸長するために圧縮データの一部又は全部
を一時記憶するためのデータバッファにおいて、 最大許容量をBmax、 入力速度を前記Rと同じ値として、 各伸長単位の出力を時間t(i)毎に行うとし、 圧縮データ内において、 編集の際に必要とする伸長単位で構成される必要伸長単
位群があり、 必要伸長単位群のうち、 編集の際に再圧縮を施す伸長単位群を再圧縮対象単位群
とし、 再圧縮を施さない伸長単位群を非再圧縮対象単位群と
し、 再圧縮対象単位群と非再圧縮対象単位群との接点の前記
データバッファ内でのデータの占有量をBvとし、 各必要伸長単位群の最初と最後における前記データバッ
ファ内の共通の目標占有量をBcとし、 必要伸長単位群内における再圧縮を施す再圧縮対象単位
群が、非再圧縮対象単位群より時間的に前方と後方のど
ちらに位置するかを示す変数をSとし、 各再圧縮対象単位群内の再圧縮される伸長単位の数をN
とし、 nを1以上の整数とし、 n番目の伸長後単位データの圧縮目標値をg(n)と
し、 再圧縮後単位データのデータ量をHとし、 前記Nと、前記Bvと、前記Rと、前記t(i)を用い
て前記圧縮目標値g(n)を算出決定し、 又は更に前記Sや前記Hを用い、 前記Hを用いる場合は、前記Hの値をg(n−1)に代
入して前記圧縮目標値g(n)を算出決定し、 又は更に前記Bcを算出決定する請求項1記載の圧縮デ
ータ編集方法。
2. An average data amount of compressed data per unit time is R, and a maximum allowable amount is Bmax in a data buffer for temporarily storing a part or all of the compressed data for decompressing the compressed data. It is assumed that the input speed is the same value as the above R and the output of each decompression unit is performed every time t (i), and there is a necessary decompression unit group composed of decompression units required for editing in the compressed data. , Of the necessary decompression unit groups, the decompression unit group that is recompressed during editing is the recompression target unit group, and the decompression unit group that is not recompressed is the non-recompression target unit group and the recompression target unit group. The occupancy amount of data in the data buffer at the contact point with the non-recompression target unit group is Bv, the common target occupancy amount in the data buffer at the beginning and end of each required expansion unit group is Bc, and the required extension amount is Let S be a variable that indicates whether the recompression target unit group to be recompressed in the long unit group is temporally ahead or behind the non-recompression target unit group, and N is the number of decompression units to be recompressed
, N is an integer of 1 or more, the compression target value of the n-th expanded unit data is g (n), the data amount of the re-compressed unit data is H, N, Bv, and R Then, the compression target value g (n) is calculated and determined using the t (i), or when the S or the H is further used and the H is used, the value of the H is g (n-1). The compressed data editing method according to claim 1, wherein the compressed target value g (n) is calculated and determined, or the Bc is further calculated and determined.
【請求項3】 圧縮目標値を算出する際、 Bcを用いる場合は、 【数1】 【数2】 の両方を満たす範囲内からBcを決定し、 Sの値が、必要伸長単位群内における再圧縮を施す再圧
縮対象単位群が非再圧縮対象単位群より時間的に前方に
位置することを示す場合において、 Nの値が1のときは 【数3】 のみを満たす値から、 Nの値が2以上で、かつnの値が1のときは(数3)と 【数4】 【数5】 を満たす値から、 Nの値が2以上で、かつnの値が2以上のときは(数
3)と 【数6】 【数7】 を満たす値から、 圧縮目標値g(n)を決定し、 Sの値が、必要伸長単位群内における再圧縮を施す再圧
縮対象単位群が非再圧縮対象単位群より時間的に後方に
位置することを示す場合において、 Nの値が1のときは 【数8】 のみを満たす値から、 Nの値が2以上で、かつnの値が1のときは(数8)と 【数9】 【数10】 を満たす値から、 Nの値が2以上で、かつnの値が2以上のときは(数
8)と 【数11】 【数12】 を満たす値から、 圧縮目標値g(n)を決定し、 Bcを使用しない場合は、 (数3)(数4)(数5)(数6)(数7)のみを用
い、 (数3)(数4)(数5)(数6)(数7)においてB
cの代わりに編集の際に結合する2つの必要伸長単位群
のうち、前方の必要伸長単位群内のBvの値を用い、
(数3)において、Bvの代わりに、編集の際に結合す
る2つの必要伸長単位群のうち、後方の必要伸長単位群
内のBvの値を用いて圧縮目標値g(n)を決定する請
求項2記載の圧縮データ編集方法。
3. When Bc is used in calculating the compression target value, [Equation 2] Bc is determined from the range satisfying both of the above, and the value of S indicates that the recompression target unit group to be recompressed in the necessary decompression unit group is temporally ahead of the non-recompression target unit group. In this case, when the value of N is 1, From the value satisfying only, when the value of N is 2 or more and the value of n is 1, (Equation 3) and (Equation 5) From the value satisfying, when N is 2 or more and n is 2 or more, (Equation 3) and (Equation 7) The compression target value g (n) is determined from the value satisfying the following, and the value of S is such that the recompression target unit group to be recompressed in the necessary decompression unit group is positioned behind the non-recompression target unit group in time. When the value of N is 1, From the value satisfying only, when the value of N is 2 or more and the value of n is 1, (Equation 8) and (Equation 10) From the value that satisfies the above, when the value of N is 2 or more and the value of n is 2 or more, (Equation 8) and (Equation 12) When the compression target value g (n) is determined from the value that satisfies the above and Bc is not used, only (Equation 3) (Equation 4) (Equation 5) (Equation 6) (Equation 7) is used, and (Equation 3 ) (Equation 4) (Equation 5) (Equation 6) (Equation 7) B
In place of c, the value of Bv in the front necessary extension unit group of the two necessary extension unit groups to be combined at the time of editing is used,
In (Equation 3), instead of Bv, the compression target value g (n) is determined using the value of Bv in the rear necessary extension unit group out of the two required extension unit groups to be combined at the time of editing. The compressed data editing method according to claim 2.
【請求項4】 データの大きさが不定の伸長単位で構成
される圧縮データのうち、 少なくとも一つの伸長単位を伸長して伸長後単位データ
とする伸長部と、 伸長後単位データを圧縮する際の目標データ量を圧縮目
標値とし、 圧縮目標値を算出決定する圧縮目標値算出部と、 少なくとも1つの伸長後単位データを圧縮目標値あるい
は前記圧縮目標値に近いデータ量に再圧縮する圧縮部
と、 圧縮データを結合するデータ切替え部を有する圧縮デー
タ編集装置。
4. A decompression unit that decompresses at least one decompression unit to obtain decompressed unit data among compressed data composed of decompression units whose data size is indefinite, and when compressing the decompressed unit data. And a compression target value calculation unit that calculates and determines the compression target value, and a compression unit that recompresses at least one decompressed unit data into a compression target value or a data amount close to the compression target value. And a compressed data editing device having a data switching unit for combining compressed data.
【請求項5】 圧縮データの単位時間当たりの平均のデ
ータ量をRとし、 圧縮データを伸長するために圧縮データの一部又は全部
を一時記憶するためのデータバッファにおいて、 最大許容量をBmax、 入力速度を前記Rと同じ値として、 各伸長単位の出力を時間t(i)毎に行うとし、 圧縮データ内で、編集の際に必要とする伸長単位で構成
される必要伸長単位群があり、 必要伸長単位群のうち編集の際に再圧縮を施す伸長単位
群を再圧縮対象単位群とし、 再圧縮を施さない伸長単位群を非再圧縮対象単位群と
し、 再圧縮対象単位群と非再圧縮対象単位群との接点の前記
データバッファ内でのデータの占有量をBvとし、 各必要伸長単位群の最初と最後における前記データバッ
ファ内の共通の目標占有量をBcとし、 必要伸長単位群内における再圧縮を施す再圧縮対象単位
群が、非再圧縮対象単位群より時間的に前方と後方のど
ちらに位置するかを示す信号をSとし、 各再圧縮対象単位群内の再圧縮される伸長単位の数をN
とし、 nを1以上の整数とし、 n番目の伸長後単位データの圧縮目標値をg(n)と
し、 再圧縮後単位データのデータ量をHとし、 圧縮目標値算出部において、 前記Nと、前記Bvと、前記Rと、前記t(i)を入
力、又は更に前記Sや前記Hを入力し、 前記Hを入力する場合は、前記Hの値をg(n−1)と
して記憶して前記圧縮目標値g(n)を算出決定、 又は更に前記Bcを算出決定する手段を有する請求項4
記載の圧縮データ編集装置。
5. An average data amount of compressed data per unit time is defined as R, and a maximum allowable amount is Bmax in a data buffer for temporarily storing a part or all of the compressed data to decompress the compressed data. It is assumed that the input speed is the same value as R and the output of each decompression unit is performed every time t (i), and there is a necessary decompression unit group composed of decompression units necessary for editing in the compressed data. , Of the necessary decompression unit groups, the decompression unit group that is recompressed during editing is the recompression target unit group, and the decompression unit group that is not recompressed is the non-recompression target unit group. The occupancy of data in the data buffer at the point of contact with the unit group to be recompressed is Bv, and the common target occupancy in the data buffer at the beginning and end of each required decompression unit group is Bc. group In S, a signal indicating whether the recompression target unit group to be recompressed is located ahead or behind the non-recompression target unit group in time is recompressed in each recompression target unit group. The number of extension units is N
, N is an integer of 1 or more, the compression target value of the nth expanded unit data is g (n), the data amount of the recompressed unit data is H, and , Bv, R, and t (i) are input, or S or H is further input, and when H is input, the value of H is stored as g (n-1). 5. The method further comprises means for calculating and determining the compression target value g (n), or further for calculating and determining the Bc.
The compressed data editing device described.
【請求項6】 圧縮目標値算出部において、 Bcを用いる場合は、 (数1)と(数2)の両方を満たす範囲内からBcを決
定し、 Sの値が、必要伸長単位群内における再圧縮を施す再圧
縮対象単位群が非再圧縮対象単位群より時間的に前方に
位置することを示す場合において、 Nの値が1のときは(数3)のみを満たす値から、 Nの値が2以上で、かつnの値が1のときは(数3)と
(数4)と(数5)を満たす値から、 Nの値が2以上で、かつnの値が2以上のときは(数
3)と(数6)と(数7)を満たす値から、 圧縮目標値g(n)を決定し、 Sの値が、必要伸長単位群内における再圧縮を施す再圧
縮対象単位群が非再圧縮対象単位群より時間的に後方に
位置することを示す場合において、 Nの値が1のときは(数8)のみを満たす値から、 Nの値が2以上で、かつnの値が1のときは(数8)と
(数9)と(数10)を満たす値から、 Nの値が2以上で、かつnの値が2以上のときは(数
8)と(数11)と(数12)を満たす値から、 圧縮目標値g(n)を決定し、 Bcを使用しない場合は、(数3)(数4)(数5)
(数6)(数7)のみを用い、 (数3)(数4)(数5)(数6)(数7)において、
Bcの代わりに、編集の際に結合する2つの必要伸長単
位群のうち、前方の必要伸長単位群内のBvの値を用
い、 (数3)において、Bvの代わりに、編集の際に結合す
る2つの必要伸長単位群のうち、後方の必要伸長単位群
内のBvの値を用いて、 圧縮目標値g(n)を決定する手段を有することを特徴
とする請求項5記載の圧縮データ編集装置。
6. When using Bc in the compression target value calculation unit, Bc is determined from a range that satisfies both (Equation 1) and (Equation 2), and the value of S is within the necessary expansion unit group. When it is shown that the recompression target unit group to be recompressed is temporally located ahead of the non-recompression target unit group, when the value of N is 1, from the value satisfying only (Equation 3), When the value is 2 or more and the value of n is 1, from the values satisfying (Equation 3), (Equation 4) and (Equation 5), the value of N is 2 or more and the value of n is 2 or more. In this case, the compression target value g (n) is determined from the values satisfying (Equation 3), (Equation 6) and (Equation 7), and the value of S is the recompression target to be recompressed in the necessary decompression unit group. When the unit group indicates that it is temporally behind the non-recompression target unit group, when N is 1, only (Equation 8) is satisfied. If the value of N is 2 or more and the value of n is 1, the values satisfying (Equation 8), (Equation 9) and (Equation 10) When the value of is 2 or more, the compression target value g (n) is determined from the values that satisfy (Equation 8), (Equation 11) and (Equation 12), and when Bc is not used, (Equation 3) ( (4) (5)
Using only (Equation 6) and (Equation 7), in (Equation 3) (Equation 4) (Equation 5) (Equation 6) (Equation 7),
Instead of Bc, the value of Bv in the necessary necessary extension unit group of the two necessary necessary extension unit groups to be combined at the time of editing is used, and in (Equation 3), instead of Bv, the value is combined at the time of editing. 6. The compressed data according to claim 5, further comprising means for determining the compression target value g (n) by using the value of Bv in the rear necessary expansion unit group of the two necessary expansion unit groups to be processed. Editing device.
JP7247236A 1995-09-26 1995-09-26 Method and device for editing compression data Pending JPH0993136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7247236A JPH0993136A (en) 1995-09-26 1995-09-26 Method and device for editing compression data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7247236A JPH0993136A (en) 1995-09-26 1995-09-26 Method and device for editing compression data

Publications (1)

Publication Number Publication Date
JPH0993136A true JPH0993136A (en) 1997-04-04

Family

ID=17160483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7247236A Pending JPH0993136A (en) 1995-09-26 1995-09-26 Method and device for editing compression data

Country Status (1)

Country Link
JP (1) JPH0993136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100563183B1 (en) * 1997-04-04 2006-07-25 소니 가부시끼 가이샤 Picture editing apparatus and picture editing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100563183B1 (en) * 1997-04-04 2006-07-25 소니 가부시끼 가이샤 Picture editing apparatus and picture editing method

Similar Documents

Publication Publication Date Title
US6512884B1 (en) Method and apparatus for synchronized play back of audio-video signals
JP2000137494A (en) Synchronism reconstruction method and device for audio data and animation data
JP2970417B2 (en) Video coding method
US10629241B2 (en) Time compressing video content
JP3189031B2 (en) Data rate conversion method and apparatus
US6360198B1 (en) Audio processing method, audio processing apparatus, and recording reproduction apparatus capable of outputting voice having regular pitch regardless of reproduction speed
TWI411309B (en) Image processing apparatus and image processing method
JPH0993136A (en) Method and device for editing compression data
KR100287856B1 (en) Apparatus for chroma signal processing
CN1820273A (en) Apparatus and method for reducing noise in image
JPH10200860A (en) Synchronous reproducing device for image and audio
JP5255045B2 (en) Image processing apparatus and image processing method
US6064696A (en) Encoding apparatus
JP2003318673A (en) Electrical volume circuit
JPH11261849A (en) Digital signal processing circuit
WO2005076627A1 (en) Process method for compressing moving pictures and apparatus for performing said method
JP3006107B2 (en) Motion compensation prediction circuit
JP3314571B2 (en) Video signal processing device
JPH1098611A (en) Image size conversion system
JP3168660B2 (en) Scan conversion method
JP2002009590A (en) Digital filter processing system
JP2997886B2 (en) Data compression and compressed data reproduction method and apparatus
JPH1023416A (en) Method for compressing/expanding discrete cosine transformation
JP2006121243A (en) Voice signal level controller and control method
KR100602901B1 (en) Process method for compressing image