[go: up one dir, main page]

JPH10304377A - Picture encoding method/device and recording medium - Google Patents

Picture encoding method/device and recording medium

Info

Publication number
JPH10304377A
JPH10304377A JP11160197A JP11160197A JPH10304377A JP H10304377 A JPH10304377 A JP H10304377A JP 11160197 A JP11160197 A JP 11160197A JP 11160197 A JP11160197 A JP 11160197A JP H10304377 A JPH10304377 A JP H10304377A
Authority
JP
Japan
Prior art keywords
customization
bit
bits
bit allocation
encoding
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.)
Withdrawn
Application number
JP11160197A
Other languages
Japanese (ja)
Inventor
Masaaki Isozaki
正明 五十崎
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP11160197A priority Critical patent/JPH10304377A/en
Publication of JPH10304377A publication Critical patent/JPH10304377A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To prevent the deterioration of picture quality in other ranges, and to reduce a working time by re-calculating bit distribution for each coded picture designated in a customized designation process. SOLUTION: An MPEG encoder controller 23, i.e., a control means, preliminarily calculates bit distribution, including reserve data amount, for each coded picture whose customized range is designated for picture quality adjustment according to the operation of a user, and re-calculates bit distribution for each coded picture within a customized designated range by using the reserve data amount. At the time of customization by the re-distribution calculation, the range of customization from stock bits to bits to be used for the bit re-distribution at the time of customization is obtained, and bit amount obtained by adding preliminarily stocked bits to the total sum of bit amount distributed at the time of the initial bit distribution calculation are supplied to a range designated as the range of customization. Thus, the bit amount of a part outside the customized range remains changed.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、符号化により圧
縮されたビデオ情報の画質が劣化した場合に、ビデオ情
報の再符号化を行うことにより画質を改善する画像符号
化方法、装置及び記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding method, apparatus, and recording medium for improving the image quality by re-encoding the video information when the image quality of the video information compressed by encoding is deteriorated. About.

【0002】[0002]

【従来の技術】ビデオ情報をディジタルビデオディスク
(Digital Video Disk; DVD)やビデオCDのようなパ
ッケージメディアに蓄積する際、ビデオ情報を圧縮する
符号化処理を施すエンコードシステムにおいては、最初
に素材の画像の符号化難易度(DIFFICULTY)を測定し、
その符号化難易度を元に、パッケージメディアの記録容
量内の与えられたビット数に収まるように、各ビデオ情
報のフレームごとにビット配分処理を行ってエンコード
している。
2. Description of the Related Art When video information is stored on a package medium such as a digital video disk (DVD) or a video CD, an encoding system for performing an encoding process for compressing the video information firstly stores the material. Measure the encoding difficulty (DIFFICULTY) of the image,
Based on the encoding difficulty level, encoding is performed by performing a bit allocation process for each frame of each piece of video information so as to be within a given number of bits within the recording capacity of the package medium.

【0003】例えば、DVD用に、ビデオ情報をエンコ
ードするためのビデオエンコードシステムの具体例を図
9に示す。
For example, FIG. 9 shows a specific example of a video encoding system for encoding video information for a DVD.

【0004】この図9において、ビデオエンコードの制
御を行うビデオエンコードコントローラ20は、システ
ム全体を管理するスーパーバイザコントローラ1に、ネ
ットワークを介して接続されている。
In FIG. 9, a video encoding controller 20 for controlling video encoding is connected via a network to a supervisor controller 1 for managing the entire system.

【0005】スーパーバイザコントローラ1はオペレー
ティングシステムを構成するプログラムの内、特にシス
テム全体の動きを監視し、効率的に制御するプログラム
であるスーパーバイザを実行するコントローラであり、
このビデオエンコードシステムにおいてはDVDのオー
サリングシステム全体の管理を行い、ビデオ、オーディ
オ、字幕やメニューといった各エンコードシステムにエ
ンコード条件を与え、エンコード結果の報告を受ける。
The supervisor controller 1 is a controller for executing a supervisor which is a program for monitoring the operation of the entire system and for controlling efficiently, among programs constituting the operating system,
In this video encoding system, the entire DVD authoring system is managed, encoding conditions are given to each encoding system such as video, audio, subtitles, and menus, and a report of the encoding result is received.

【0006】このビデオエンコードシステムの具体例に
対しては、例えばv.enc というファイルによってビデオ
エンコード条件を指定している。そして、ビデオエンコ
ードコントローラ20側からは、エンコード結果のビッ
トストリームがハードディスクドライブ(HDD)等を
複数並列に接続して記録容量と転送速度性能を向上させ
たRAID(Redundant Arrays of Inexpensive Diske
s)16上に書き込まれたアドレスv.adrと、エンコード
結果のビットストリームがオーディオや字幕,メニュー
等のサブピクチャとマルチプレックスされる際に必要と
されるデータ(vxxx.aui)を報告している。
For a specific example of this video encoding system, video encoding conditions are specified by, for example, a file named v.enc. Then, from the video encode controller 20 side, the bit stream of the encoded result is a RAID (Redundant Arrays of Inexpensive Diske) in which a plurality of hard disk drives (HDDs) are connected in parallel to improve the recording capacity and transfer speed performance.
s) Report the address v.adr written on 16 and the data (vxxx.aui) required when the encoded bit stream is multiplexed with sub-pictures such as audio, subtitles, and menus. I have.

【0007】ビデオエンコードコントローラ10は、グ
ラフィカルユーザインターフェース(Graphical User I
nterface; GUI)11と、後述するビット配分計算処理
プログラム(BIT_ASSIGN)を格納しているビット配分計
算部12と、このビット配分計算部12内部のビット配
分計算処理プログラムを実行させるMPEGエンコーダ
コントローラ13と、DVTRコントローラ14とを備
えている。
The video encoding controller 10 has a graphical user interface (Graphical User I).
GUI) 11, a bit allocation calculation unit 12 storing a bit allocation calculation program (BIT_ASSIGN) described later, and an MPEG encoder controller 13 for executing the bit allocation calculation processing program inside the bit allocation calculation unit 12. , DVTR controller 14.

【0008】ユーザは、GUI11を用い、ビット配分
計算部12の備えるビット配分計算処理プログラムと、
MPEGエンコーダコントローラ13を管理することが
できる。また、DVTRコントローラ14も管理でき
る。
The user uses the GUI 11 to execute a bit allocation calculation processing program provided in the bit allocation calculation unit 12,
The MPEG encoder controller 13 can be managed. In addition, the DVTR controller 14 can be managed.

【0009】MPEGエンコーダコントローラ13は、
上記ビット配分計算部12の備える上記ビット配分計算
処理プログラムを実行すると共に、MPEGエンコーダ
15を制御する。また、DVTRコントローラ14はD
VTR17を制御する。このDVTR17はMPEGエ
ンコーダ15に接続しており、MPEGエンコーダ15
はエンコードした結果を表示するためにモニタ18に接
続している。さらに、MPEGエンコーダ15は、エン
コード結果を記録するために上記RAID16にも接続
している。
[0009] The MPEG encoder controller 13 comprises:
It executes the bit allocation calculation processing program provided in the bit allocation calculation unit 12 and controls the MPEG encoder 15. In addition, the DVTR controller 14
The VTR 17 is controlled. The DVTR 17 is connected to the MPEG encoder 15, and the MPEG encoder 15
Is connected to the monitor 18 for displaying the encoded result. Further, the MPEG encoder 15 is also connected to the RAID 16 for recording an encoding result.

【0010】MPEGエンコーダ15では、動き補償予
測による時間方向の冗長度の除去を行っている。また、
MPEGエンコーダ15では、フレーム内だけで符号化
されるフレーム内符号化画像をIピクチャ(Intra Code
d)、過去の画面から現在を予測することによって符号
化されるフレーム間順方向予測符号化画像をPピクチャ
(Predictive Coded)、過去、未来の両方向の画像から
現在を予測することによって符号化される双方向予測符
号化画像をBピクチャ(Bidirectionaly Predictive Co
ded)を用いて、ビデオ情報を圧縮符号化している。こ
こでは、必ずIピクチャを1つ含むピクチャーのまとま
りを図10に示すようなGOP(Groupof Pictures)と
している。この図10において、GOPのフレーム数N
は15であり、図中(A)に示す表示順のGOPの先頭
は、Iピクチャの前で、P又はIピクチャの次のBピク
チャである。GOPの最後は、次のIピクチャの前の最
初のPピクチャである。また、図中(B)に示す符号化
順のGOPは、Iピクチャが先頭となる。このビデオエ
ンコードシステムの動作について、図11のフローチャ
ートを参照して説明する。先ず、ステップS101で、
スーパーバイザコントローラ1からネットワーク2経由
でビデオに割り当てるビット総量や最大レートなどのエ
ンコード条件v.encが与えられる。
The MPEG encoder 15 removes the redundancy in the time direction by motion compensation prediction. Also,
The MPEG encoder 15 converts an intra-frame encoded image encoded only within a frame into an I-picture (Intra Code
d), an inter-frame forward prediction coded image coded by predicting the present from a past screen is coded by predicting the present from a P-picture (Predictive Coded), a picture in both past and future directions. A bidirectional predictive coded image is converted to a B-picture (Bidirectionaly Predictive Co
ded) to compress and encode the video information. Here, a group of pictures including one I picture is always a GOP (Group of Pictures) as shown in FIG. In FIG. 10, the number of frames N of the GOP
Is 15, and the head of the GOP in the display order shown in (A) in the figure is the B picture next to the P or I picture before the I picture. The end of the GOP is the first P picture before the next I picture. Also, the GOP in the coding order shown in (B) in the figure has the I picture at the top. The operation of the video encoding system will be described with reference to the flowchart of FIG. First, in step S101,
An encoding condition v.enc such as a total bit amount and a maximum rate to be assigned to video via the network 2 is given from the supervisor controller 1.

【0011】そして、このエンコード条件設定後、ステ
ップS102でMPEGエンコードコントローラ10が
エンコード素材の符号化難易度を測定する。ここでは、
各画素のDC値や動きベクトル量MEも読んでおく。そ
して、これらの測定結果により、ファイルを作成してお
く。
After setting the encoding conditions, in step S102, the MPEG encoding controller 10 measures the encoding difficulty of the encoded material. here,
The DC value and the motion vector amount ME of each pixel are also read. Then, a file is created based on these measurement results.

【0012】実際の符号化難易度の測定は以下にように
行う。エンコード素材となるビデオ情報はDVTR17
によってディジタルビデオカセットにマスターとして収
録されており、このマスターをDVTRコントローラ1
4でDVTR17を制御しながら再生してエンコード素
材の符号化難易度を測定する。
The actual measurement of the encoding difficulty is performed as follows. Video information to be encoded is DVTR17
Is recorded as a master on a digital video cassette, and this master is used as the DVTR controller 1
In step 4, the reproduction is performed while controlling the DVTR 17, and the encoding difficulty of the encoded material is measured.

【0013】ここでは、符号化の際に量子化ステップ数
を固定値に設定した条件で発生ビット量を測定する。動
きが多く、高い周波数成分が大きい画像では発生ビット
量が大きくなり、静止画や平坦な部分が多い画像では発
生ビット量が少なくなる。この発生ビット量の大きさを
画像の符号化難易度としている。
Here, the amount of generated bits is measured under the condition that the number of quantization steps is set to a fixed value at the time of encoding. The amount of generated bits is large in an image having many motions and large high frequency components, and the generated bit amount is small in a still image or an image having many flat portions. The magnitude of this generated bit amount is defined as the image encoding difficulty.

【0014】次に、ステップS103では、ステップS
101で設定されたエンコード条件を元に、ステップS
2で測定された各ピクチャーの符号化難易度の大きさに
応じて、ビット配分計算部22がビット配分計算処理計
算プログラムを実行し、割り当てビット量(ターゲット
量 :TARGET)の配分計算を行う。
Next, in Step S103, Step S
Based on the encoding conditions set in step 101, step S
The bit allocation calculation unit 22 executes the bit allocation calculation processing calculation program in accordance with the degree of encoding difficulty of each picture measured in 2 and performs allocation calculation of the allocated bit amount (target amount: TARGET).

【0015】そして、このステップS103でのビット
配分計算による結果を使ってエンコードを実行するかど
うかをMPEGエンコーダ15に内蔵されているローカ
ルデコーダ出力の画質によってユーザに判断させる。
The user is made to determine whether or not to execute encoding using the result of the bit allocation calculation in step S103, based on the image quality of the output of the local decoder built in the MPEG encoder 15.

【0016】実際には、ステップS104で、上記ビッ
ト配分によるビットストリームをRAID16に出力し
ないで、任意の処理範囲を指定できるプレビユーモード
(Preview)を行って、ユーザが画質をチェックする。
Actually, in step S104, the user checks the image quality by performing a preview mode (Preview) in which an arbitrary processing range can be designated without outputting the bit stream based on the bit allocation to the RAID 16.

【0017】ステップS105の画質評価で画質に問題
がない場合にはステップS106に進み、エンコード処
理を実行するが、画質に問題がある場合には、ステップ
S108に進み、問題のある部分のレートを上げると
か、フィルターレベルを調整するといった画質調整のた
めのカスタマイズ作業を行ってから、ステップS109
で再びビット配分計算部22内部のビット配分計算処理
プログラムを実行し、ビット再配分計算を行う。
If there is no problem in the image quality in the image quality evaluation in step S105, the process proceeds to step S106, and the encoding process is executed. After performing customization work for image quality adjustment, such as raising the filter level or adjusting the filter level, step S109 is performed.
Then, the bit allocation calculation processing program inside the bit allocation calculation unit 22 is executed again to perform the bit redistribution calculation.

【0018】その後、ステップS104に戻り、カスタ
マイズした部分をプレビューして、ステップS105で
画質を確認し、すべての部分が良ければステップS10
6に進み、全体のエンコードをMPEGエンコーダ25
に実行させる。エンコード結果であるビットストリーム
は、ステップS107でSCSI(Small Computer Sys
tem Interface)経由で直接、RAID16に書き込ま
れる。
Thereafter, the process returns to step S104, where the customized portion is previewed, and the image quality is confirmed in step S105.
6, the entire encoding is performed by the MPEG encoder 25.
To run. In step S107, the bit stream that is the encoding result is a SCSI (Small Computer Sys
The data is directly written to RAID 16 via the tem interface.

【0019】ステップS106でのエンコード後、ビデ
オエンコードコントローラ10は上述したようなエンコ
ード結果情報をネットワーク経由でスーパーバイザコン
トローラ1に報告する。
After the encoding in step S106, the video encode controller 10 reports the above-described encoding result information to the supervisor controller 1 via the network.

【0020】この図11のフローチャートにおいて、ス
テップS102,ステップS104及びステップS10
6を除いた各ステップの処理はオフライン処理を意味し
ている。
In the flowchart of FIG. 11, steps S102, S104 and S10
The processing of each step except for 6 means offline processing.

【0021】以下、特に、ステップS103で実行され
るビット配分計算部12内のビット配分計算処理につい
て詳細に説明する。先ず、スーパーバイザコントローラ
1からディスク容量の中からビット総量(QTY_BYTES)
と、最大ビットレート(MAXRATE)が指定されると、こ
れに対して、MPEGエンコーダコントローラ13は、
最大ビットレート(MAXRATE)以下になるように制限を
加えた総ビット数 (USB_BYTES)を求め、この値からGO
Pのヘッダ(GOP_HEADER)に必要なビット数(TOTAL_HEA
DER)を引いた値と、全体のフレーム総数からターゲット
数の総和の目標値となるサプライビット数(SUPPLY_BYT
ES)を算出する。
Hereinafter, the bit allocation calculation process in the bit allocation calculation unit 12 executed in step S103 will be described in detail. First, the total amount of bits (QTY_BYTES) from the disk capacity from the supervisor controller 1
And the maximum bit rate (MAXRATE) is specified, the MPEG encoder controller 13 responds
Calculate the total number of bits (USB_BYTES) that is limited so that it is less than the maximum bit rate (MAXRATE), and from this value GO
Number of bits required for P header (GOP_HEADER) (TOTAL_HEADER)
DER) minus the number of supply bits (SUPPLY_BYT) that is the target value of the total number of targets from the total number of frames.
ES).

【0022】そして、このサプライビット数(SUPPLY_B
YTES)の大きさに収まるようにビット配分計算部22内
部のビット配分計算処理プログラムを実行し、各ピクチ
ャへの割り当てビット量(TARGET)を配分する。このス
テップS103でのビット配分計算処理を詳細に示した
のが図12のフローチャートである。
The number of supply bits (SUPPLY_B
The bit allocation calculation processing program inside the bit allocation calculation unit 22 is executed so as to be within the size of (YTES), and the bit amount (TARGET) allocated to each picture is allocated. FIG. 12 is a flowchart showing details of the bit allocation calculation process in step S103.

【0023】先ず、ステップS201では、上述したよ
うに、スーパーバイザコントローラ1から送られた上記
ビット総量(QTY_BYTES)と、最大ビットレート(MAXRA
TE)を入力されると、MPEGエンコーダコントローラ
13は、上述したようにサプライビット数(SUPPLY_BYT
ES)を算出する。
First, in step S201, as described above, the total bit amount (QTY_BYTES) sent from the supervisor controller 1 and the maximum bit rate (MAXRA)
Upon input of (TE), the MPEG encoder controller 13 supplies the number of supply bits (SUPPLY_BYT) as described above.
ES).

【0024】次に、上記図10のステップS102の符
号化難易度の測定で作成された測定ファイルをステップ
S202でそのまま読み込み、符号化難易度の測定の際
に、併せて測定された各画像のDC値や動きベクトル量
MEの大きさのパラメータの変化量から、ステップS2
03でシーンが変化するポイントを見つける。
Next, the measurement file created by the measurement of the encoding difficulty in step S102 in FIG. 10 is read as it is in step S202, and when the encoding difficulty is measured, each of the images measured together is measured. From the DC value and the amount of change of the parameter of the magnitude of the motion vector amount ME, step S2
03 finds the point where the scene changes.

【0025】このステップS203でのシーンチェンジ
検出/処理は、本件出願人が既に特願平8−27409
4号明細書及び図面にて開示した「映像信号処理装置」
に応じてシーンチェンジ点を検出する処理である。
The scene change detection / processing in this step S203 has already been disclosed by the present applicant in Japanese Patent Application No. 8-27409.
"Video signal processing device" disclosed in the specification 4 and the drawings
Is a process of detecting a scene change point in accordance with.

【0026】この「映像信号処理装置」は、映像信号の
各フレームの直流レベルを検出し、この直流レベルを曲
線近似して得られる誤差値より、上記映像信号のシーン
チェンジのフレームを検出して、シーンチェンジ点を明
らかにする。
This "video signal processing apparatus" detects the DC level of each frame of the video signal, and detects the frame of the scene change of the video signal from the error value obtained by approximating the DC level with a curve. , Clarify the scene change point.

【0027】次に、ステップS204でチャプター(CH
APTER)境界処理を行う。DVD再生装置でのチャプタ
ーサーチ時には、特定されないピクチャーからジャンプ
してくることになるが、その場合でも再生画像の乱れが
ないようにするため、チャプターの位置が必ずGOPの
先頭になるようにピクチャータイプを変更する。即ち、
PピクチャをIピクチャに変更する。
Next, in step S204, a chapter (CH
APTER) Perform boundary processing. At the time of a chapter search in a DVD playback device, a jump is performed from an unspecified picture. To change. That is,
Change P picture to I picture.

【0028】このようなステップS204、ステップS
205での一連の作業の結果、ピクチャタイプ(I,
P,Bピクチャ)の変更処理が実行されると、符号化難
易度測定時のピクチャタイプが変更されるため、ステッ
プS206で変更後のピクチャタイプに合わせた符号化
難易度の値に補間/補正する。
Steps S204 and S
As a result of the series of operations at 205, the picture type (I,
(P, B picture) is changed, the picture type at the time of measuring the coding difficulty is changed. Therefore, in step S206, interpolation / correction is performed to the value of the coding difficulty corresponding to the changed picture type. I do.

【0029】ステップS206での符号化難易度の補間
/補正によって得られた符号化難易度と、全体に与えら
れたサプライビット数(SUPPLY_BYTES)に応じて、ステッ
プS207で各ピクチャごとの割り当てビット数(TARG
ET)を計算する。
In step S207, according to the encoding difficulty obtained by interpolation / correction of the encoding difficulty in step S206 and the total number of supply bits (SUPPLY_BYTES), the number of bits allocated to each picture in step S207 (TARG
ET).

【0030】そして、ステップS208でRAID16
にエンコード結果のビットストリームを書き込む際のア
ドレスの計算を行った上で、ステップS209に進み、
エンコーダ用のコントロールファイルを作成する。
Then, in step S208, RAID 16
After calculating the address at the time of writing the bit stream of the encoding result to step S209, the process proceeds to step S209.
Create a control file for the encoder.

【0031】例えば、ビット配分計算の具体例として、
先ずGOP単位にビット量を配分してから、各GOP内
で各ピクチャの符号化難易度に応じたビット配分を行う
場合を説明する。ここでは、各GOP毎の符号化難易度
の和(GOP_DIFF)に応じて、エンコードする際のGOP
単位のビット割り当て量(GOP_TARGET)を配分してい
る。このGOP毎の符号化難易度の和(GOP_DIFF)とG
OP単位のビット割り当て量(GOP_TARGET)とを変換す
るもっとも簡単な関数の例を図13に図示する。
For example, as a specific example of the bit allocation calculation,
First, a case will be described in which a bit amount is allocated in GOP units, and then bit allocation is performed in each GOP according to the encoding difficulty of each picture. Here, the GOP at the time of encoding is determined according to the sum of the encoding difficulty levels (GOP_DIFF) for each GOP.
The unit bit allocation amount (GOP_TARGET) is allocated. The sum of the encoding difficulty for each GOP (GOP_DIFF) and G
FIG. 13 shows an example of the simplest function for converting the bit allocation amount (GOP_TARGET) in OP units.

【0032】この例では、縦軸YをGOP単位のビット
割り当て量(GOP_TARGET)、横軸XをGOP毎の符号化
難易度の和(GOP_DIFF)として、Y=AX+Bという評
価関数を用いている。なお、全てのピクチャーの符号化
難易度の総和(DIFFICULTY_SUM) を算出しておく。
In this example, an evaluation function of Y = AX + B is used, where the vertical axis Y is the bit allocation amount (GOP_TARGET) in GOP units, and the horizontal axis X is the sum of the encoding difficulty levels for each GOP (GOP_DIFF). Note that the sum of the encoding difficulty levels of all the pictures (DIFFICULTY_SUM) is calculated in advance.

【0033】先ず、最大ビットレート以下になるように
制限された総ビット数(USB_BYTES)を、スーパーバイ
ザコントローラ1から与えられたビット総量(QTY_BYTE
S)と、最大ビットレート(MAXRATE)を使って、 USB_BYTES = min (QTY_BYTES, MAXRATE × KT × TOTAL_FRAME_NUMBER) ・・・(1) のように求める。
First, the total number of bits (USB_BYTES) limited so as to be equal to or less than the maximum bit rate is determined by the total bit amount (QTY_BYTE) given from the supervisor controller 1.
USB_BYTES = min (QTY_BYTES, MAXRATE × KT × TOTAL_FRAME_NUMBER) using S) and the maximum bit rate (MAXRATE).

【0034】ここで、NTSCの場合 KT=1/8(bits)/30(H
z), PALの場合1/8(bits)/25(Hz)である。また、TOTAL_F
RAME_NUMBERはエンコードする素材のフレーム総数、min
(s,t)は s,t の内で小さい方を選択する関数である。
Here, in the case of NTSC, KT = 1/8 (bits) / 30 (H
z), 1/8 (bits) / 25 (Hz) for PAL. Also, TOTAL_F
RAME_NUMBER is the total number of frames of the material to be encoded, min
(s, t) is a function that selects the smaller one of s, t.

【0035】また、サプライビット数(SUPPLY_BYTES)
は、上記(1)式で求めた制限された総ビット数(USB_
BYTES)からGOPのヘッダに必要なビット数(TOTAL_H
EADER)を引いて、 SUPPLY_BYTES = USB_BYTES - TOTAL_HEADER ・・・(2) のように求める。
The number of supply bits (SUPPLY_BYTES)
Is the limited total number of bits (USB_
BYTES) to the number of bits required for the GOP header (TOTAL_H
EADER) and SUPPLY_BYTES = USB_BYTES-TOTAL_HEADER (2)

【0036】また、全てのピクチャの符号化難易度の総
和(DIFFICULTY_SUM)は、 DIFFICULTY_SUM = ΣDIFFICULTY ・・・(3) と表せる。
The sum of the encoding difficulty of all pictures (DIFFICULTY_SUM) can be expressed as DIFFICULTY_SUM = ΣDIFFICULTY (3).

【0037】また、GOP単位のビット割り当て量(GO
P_TARGET)の最小値(GOP_MINBYTES)を次の(4)式の
ように、 B = GOP_MINBYTES ・・・(4) とする。
Also, the bit allocation amount (GO
The minimum value (GOP_MINBYTES) of (P_TARGET) is set to B = GOP_MINBYTES (4) as in the following equation (4).

【0038】すると、図12に示した評価関数のような Σy = A×Σx + B×n が得られる。Then, Σy = A × Σx + B × n as in the evaluation function shown in FIG. 12 is obtained.

【0039】ここで、Σy = SUPPLY_BYTES, Σx = D
IFFICULTY_SUM 、n は GOP の総数である。
Where Σy = SUPPLY_BYTES, Σx = D
IFFICULTY_SUM, n is the total number of GOPs.

【0040】よって A = (SUPPLY_BYTES - B×n)/ DIF
FICULTY_SUM となる。すると、各GOP毎のビット割り
当て量(GOP_TARGET)は、 GOP_TARGET = A × GOP_DIFF + B ・・・(5) と表せる。
Therefore, A = (SUPPLY_BYTES-B × n) / DIF
FICULTY_SUM. Then, the bit allocation amount (GOP_TARGET) for each GOP can be expressed as GOP_TARGET = A × GOP_DIFF + B (5).

【0041】その後、各GOP内で各ピクチャーの符号
化難易度に応じたビット配分を行う。GOP内での各ピ
クチャーの配分は符号化難易度の大きさに比例させた場
合には、各ピクチャーのターゲット量は以下の(6)式
で求められる。
Thereafter, bits are allocated in each GOP according to the degree of difficulty of encoding each picture. When the distribution of each picture in the GOP is proportional to the magnitude of the encoding difficulty, the target amount of each picture is obtained by the following equation (6).

【0042】 target(k) = GOP_TARGET × diffuculty(k)/GOP_diff ・・・(6) (1 ≦ k ≦ GOP 内の picture 数) このようにして求められたターゲット量を用いて作成さ
れたコントロールファイルによるエンコード処理を行う
ことで、素材の画像の難しさに応じた可変ビットレート
エンコーディングが実行される。
Target (k) = GOP_TARGET × diffuculty (k) / GOP_diff (6) (1 ≦ k ≦ the number of pictures in GOP) A control file created using the target amount obtained in this manner Performs variable bit rate encoding according to the difficulty of the material image.

【0043】エンコード出力の画像の画質を上掲図11
のステップS104においてプレビューにて確認する際
に、特定の位置の画質に問題があることを発見する場合
がある。このような場合には、カスタマイズ(customiz
e)により上記位置のターゲットビット量を増やして画
質の改善を図ることができる。
The quality of the encoded output image is shown in FIG.
When confirming by preview in step S104, it may be found that there is a problem with the image quality at a specific position. In such cases, customization (customiz
According to e), the image quality can be improved by increasing the target bit amount at the above position.

【0044】ここでは、画質の改善のためにパラメータ
の時間変化をカスタマイズすることとする。このパラメ
ータの時間情報の一例としては、図14に示すように、
カスタマイズコントロール用ファイル(weight.txt)に
定義されるものを挙げることができる。
Here, it is assumed that the parameter change over time is customized to improve the image quality. As an example of the time information of this parameter, as shown in FIG.
Examples include those defined in the customization control file (weight.txt).

【0045】図中、ENCU_nbはエンコードするロールの
番号、Filterはフィルターの強さ、D_weightはビット配
分の際の重み係数を、CS_enbはカスタマイズエネーブル
をそれぞれ意味している。なお、ここではパラメータの
変化点の時間情報が、タイムコード(Timecode)として
表されている。
In the figure, ENCU_nb indicates the number of the role to be encoded, Filter indicates the strength of the filter, D_weight indicates the weighting factor at the time of bit allocation, and CS_enb indicates the customization enable. Here, the time information of the change point of the parameter is represented as a time code (Timecode).

【0046】このようにして作成されたファイル(weig
ht.txt)に基づいて、ビット配分の再計算が行われる。
このビット配分の再計算の結果、カスタマイズが反映さ
れたコントロールファイルが作成される。
The file (weig
ht.txt), the bit allocation is recalculated.
As a result of the recalculation of the bit allocation, a control file reflecting the customization is created.

【0047】カスタマイズ時のビット再配分計算のフロ
ーは、図15に示す一連の手順に従って行われる。ステ
ップS301においては、画像をカスタマイズする範囲
を、カスタマイズ開始点(KSATART)及びカスタマイズ
終了点(KEND)に設定し、これに続くステップS302
においてはカスタマイズレベル(D_WEGHT[k])を指定す
る。そして、次のステップS303においては、カスタ
マイズコントロール用ファイル(weight.txt)を作成す
る。ここでは、上記のカスタマイズレベル(D_WEGHT
[k])の値が初期値でない範囲のカスタマイズエネーブ
ル(CS_ENB[k])を0にする。そして、このカスタマイ
ズパラメータの設定についての一連の工程を終了する。
The flow of the bit reallocation calculation at the time of customization is performed according to a series of procedures shown in FIG. In step S301, the range for customizing the image is set to a customization start point (KSATART) and a customization end point (KEND), and the subsequent step S302.
Specifies the customization level (D_WEGHT [k]). Then, in the next step S303, a customization control file (weight.txt) is created. Here, the customization level (D_WEGHT
Set the customization enable (CS_ENB [k]) in the range where the value of [k]) is not the initial value to 0. Then, a series of steps for setting the customization parameters is completed.

【0048】ビデオ情報の映像の符号化を行う際には、
このコントロールファイルに基づいて全体の画像の画質
をプレビューにより確認する。そして、画質に問題がな
ければ全体のエンコードを実行させる。
When encoding video of video information,
The image quality of the entire image is confirmed by preview based on the control file. If there is no problem in the image quality, the entire encoding is executed.

【0049】ところで、上述のように、特定の位置の画
質を改善するために、カスタマイズにより割り当てられ
るビット数であるターゲットビットを増やしてビットレ
ートを大きくしたい場合がある。
As described above, in order to improve the image quality at a specific position, there are cases where it is desired to increase the bit rate by increasing the number of target bits, which is the number of bits allocated by customization.

【0050】このように、ビット再配分によりカスタマ
イズを行う計算は、図16に示すように、ステップS4
01からステップS407までのステップからなる一連
の工程によって実行される。このビット再配分の計算
は、ビデオエンコードコントローラ20のビット配分計
算部22の備えるビット配分計算処理プログラムによっ
て行われるものである。
As described above, the calculation for customizing by bit reallocation is performed in step S4 as shown in FIG.
It is executed by a series of steps including steps from 01 to S407. The calculation of the bit redistribution is performed by a bit allocation calculation processing program provided in the bit allocation calculator 22 of the video encoding controller 20.

【0051】ステップS401においてはこのビット再
配分計算のエンコード条件を入力し、ステップS402
においてはカスタマイズを行う範囲を指定しする。ステ
ップS403においては初回のビット配分計算結果のコ
ントロールパラメータを入力し、ステップS404にお
いてはカスタマイズパラメータをカスタマイズコントロ
ール用ファイル(weight.txt)によって入力する。
In step S401, the encoding conditions for this bit redistribution calculation are input, and in step S402
Specifies the range of customization. In step S403, the control parameters of the first bit allocation calculation result are input, and in step S404, the customization parameters are input using a customization control file (weight.txt).

【0052】このステップS405においては上述した
方法によりターゲットビット数を計算し、ステップS4
06においてはこのカスタマイズされたデータを収める
アドレスを計算する。そして、ステップS407におい
てはエンコーダ用コントロールファイルを作成し、この
一連の手順を終了する。
In step S405, the number of target bits is calculated by the above-described method, and in step S4
At 06, an address for storing the customized data is calculated. Then, in step S407, an encoder control file is created, and this series of procedures ends.

【0053】[0053]

【発明が解決しようとする課題】しかしながら、ビット
再配分によりカスタマイズの範囲R1に割り当てられる
ターゲットビットを増加させてビットレートを向上させ
る場合には、図17に示すように、全体のビット数は固
定されているので、上記範囲R1のビット増加量を補う
ため、他の範囲R2のビット数が削減されることにな
る。
However, when the bit rate is improved by increasing the number of target bits allocated to the customization range R1 by bit reallocation, the total number of bits is fixed as shown in FIG. Therefore, the number of bits in the other range R2 is reduced in order to compensate for the bit increase in the range R1.

【0054】このため、他の部分の画質が、ビット数の
削減により新たに劣化する虞れがある。新たに画質が劣
化した場合には、画質確認とエンコード処理は、全ての
範囲についての再度の実行が必要になることもある。
For this reason, there is a possibility that the image quality of other parts may be newly deteriorated due to the reduction in the number of bits. When the image quality is newly deteriorated, the image quality check and the encoding process may need to be performed again for the entire range.

【0055】さらに、画質のカスタマイズと、画質確認
及びエンコード処理とを、繰り返し実行する場合には、
カスタマイズに必要な作業時間Tは、素材の長さをSourc
e_length、カスタマイズ回数をCNとすると、素材の長さ
とカスタマイズ回数の積、即ちT = Source_length × C
N にて与えられる。従って、素材の長さSource_lengthd
が大きい場合には、上記作業時間Tが非常に長くなる。
Further, when the customization of the image quality and the image quality confirmation and encoding processing are repeatedly executed,
Work time T required for customization, Sourc the length of the material
If e_length and the number of customizations are CN, the product of the length of the material and the number of customizations, that is, T = Source_length × C
Given by N. Therefore, the length of the material Source_lengthd
Is large, the work time T becomes very long.

【0056】また、映像の特定の位置をカスタマイズに
より改善すると、他の部分の画質が劣化するということ
が繰り返され、画質の改善の作業が収束しなくなる虞れ
があった。
Further, if a specific position of an image is improved by customization, the image quality of other parts is repeatedly deteriorated, and there is a possibility that the operation of improving the image quality may not be converged.

【0057】この発明は、上述の実情に鑑みてなされる
ものであって、画質の改善を実行する他の範囲の画質を
劣化させず、また、作業時間の低減を図ると共に、画質
の改善の作業を所定回の工程にて終了させる画像符号化
方法、装置及び記録媒体を提供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and does not degrade the image quality of the other range in which the image quality is improved, reduces the working time, and improves the image quality. It is an object of the present invention to provide an image encoding method, an apparatus, and a recording medium for completing an operation in a predetermined number of steps.

【0058】[0058]

【発明を解決するための手段】上述の課題を解決するた
めに、この発明に係る画像符号化方法は、フレーム内符
号化画像、フレーム間順方向予測符号化画像、双方向予
測符号化画像を所定数含んでなる画像符号化グループに
より、ビデオ素材を符号化する画像符号化方法におい
て、上記各符号化画像に対してのビット配分を計算する
と共に、予備データ量を確保するビット配分工程と、上
記ビット配分工程でのビット配分に対して画質調整のた
めのカスタマイズの指定を行うカスタマイズ指定工程
と、上記予備データ量を用いて上記カスタマイズ指定工
程で指定された上記各符号化画像に対して、再度ビット
配分を計算するビット再配分工程とを備えるものであ
る。
In order to solve the above-mentioned problems, an image encoding method according to the present invention comprises an intra-frame encoded image, an inter-frame forward predicted encoded image, and a bidirectional predicted encoded image. In an image encoding method for encoding a video material by an image encoding group including a predetermined number, a bit allocation step of calculating a bit allocation for each of the encoded images and securing a reserve data amount, A customization specifying step of specifying customization for image quality adjustment with respect to the bit allocation in the bit allocation step, and for each of the encoded images specified in the customization specifying step using the preliminary data amount, And a bit redistribution step of calculating the bit allocation again.

【0059】この発明に係る画像符号化装置は、フレー
ム内符号化画像、フレーム間順方向予測符号化画像、双
方向予測符号化画像を所定数含んでなる画像符号化グル
ープにより、ビデオ素材を符号化する画像符号化装置に
おいて、ユーザの操作に応じて画質調整のためのカスタ
マイズの範囲を指定するカスタマイズ指定手段と、上記
カスタマイズ指定手段でカスタマイズ範囲が指定される
上記各符号化画像に対し、予めビット配分を、予備デー
タ量を確保して計算すると共に、上記予備データ量を用
いて上記カスタマイズ範囲内の上記各符号化画像に対し
て、再度ビット配分を計算するビット配分手段とを備え
るものである。
An image encoding apparatus according to the present invention encodes a video material by an image encoding group including a predetermined number of intra-frame encoded images, inter-frame forward predicted encoded images, and bidirectional predicted encoded images. In the image encoding apparatus to be customized, a customization designating unit that designates a customization range for image quality adjustment according to a user operation, and the above-mentioned encoded images for which the customization range is designated by the customization designating unit, Bit allocation means for calculating the bit allocation while securing the spare data amount, and for each of the encoded images within the customization range using the spare data amount, the bit allocation means for calculating the bit allocation again. is there.

【0060】この発明に係る記録媒体は、フレーム内符
号化画像、フレーム間順方向予測符号化画像、双方向予
測符号化画像を所定数含んでなる画像符号化グループに
より符号化されたビデオ素材を記録している記録媒体に
おいて、上記各符号化画像に対する初回のビット配分計
算時に予備データ量を確保し、上記初回のビット配分後
の画像に画質調整のためのカスタマイズの指定処理を施
すときには上記予備データ量を用いて上記カスタマイズ
指定処理で指定された上記各符号化画像に対して再度ビ
ット配分を計算して、上記ビデオ素材を記録するもので
ある。
[0060] A recording medium according to the present invention stores video material encoded by an image encoding group including a predetermined number of intra-coded images, inter-frame forward predicted coded images, and bidirectional predicted coded images. In the recording medium on which recording is performed, a spare data amount is secured at the time of the first bit allocation calculation for each of the encoded images, and the above spare is used when performing customization designation processing for image quality adjustment on the image after the first bit allocation. The bit allocation is calculated again for each of the encoded images specified in the customization specifying process using the data amount, and the video material is recorded.

【0061】[0061]

【発明の実施の形態】以下、この発明に係る画像符号化
方法、装置及び記録媒体の実施の形態の一例について、
図面を参照しながら詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of an image encoding method, apparatus and recording medium according to the present invention will be described below.
This will be described in detail with reference to the drawings.

【0062】画像符号化装置は、例えばディジタルビデ
オカセットテープに記録されたビデオ素材をDVD用
に、エンコードするためのビデオエンコードシステムで
あり、図1に示すような構成である。
The image encoding apparatus is a video encoding system for encoding a video material recorded on a digital video cassette tape for DVD, for example, and has a configuration as shown in FIG.

【0063】このビデオエンコードシステムは、上記図
9に示したビデオエンコードシステムと基本的に構成を
同じにしているが、ビデオエンコードコントローラ20
内部のMPEGエンコーダコントローラ23が行う処理
を異ならせている。
This video encoding system has basically the same configuration as the video encoding system shown in FIG.
The processing performed by the internal MPEG encoder controller 23 is different.

【0064】すなわち、図1において、このビデオエン
コーダシステムでは、GUI21がユーザの操作に応じ
て画質調整のためのカスタマイズ範囲を指定した各符号
化画像に対して、制御手段となるMPEGエンコーダコ
ントローラ23が、予めビット配分を、予備データ量を
確保して計算すると共に、この予備データ量を用いてカ
スタマイズ指定範囲内の上記各符号化画像に対して再度
ビット配分を計算する。なお、上記図9と同様の動作を
行う各部については同一符号を付し、説明を省略する。
That is, in FIG. 1, in this video encoder system, the GUI encoder 21 controls the MPEG encoder controller 23 as control means for each encoded image in which the customization range for adjusting the image quality is specified according to the operation of the user. Then, the bit allocation is calculated in advance while securing the spare data amount, and the bit allocation is calculated again for each of the coded images within the customization designated range using the spare data amount. Note that the same reference numerals are given to the units performing the same operations as those in FIG. 9 and description thereof is omitted.

【0065】上記ビデオエンコードシステム、及びこの
ビデオエンコードシステムに係る画像符号化方法、即ち
ビデオエンコードの方法におけるビット配分計算処理プ
ログラム(BIT_ASSIGN)においては、次に述べるような
ビット配分方法を採用している。
In the video encoding system and the image encoding method according to the video encoding system, that is, the bit allocation calculation processing program (BIT_ASSIGN) in the video encoding method, the following bit allocation method is employed. .

【0066】即ち、このビット配分方法においては、再
配分計算前の範囲に予め一定のビットをストックビット
数(STC_BYTES)として確保し、再配分計算によりカス
タマイズを行う際にはこのストックビット数(STC_BYTE
S)から、カスタマイズ時のビット再分配に用いられる
ビットを、カスタマイズの範囲として指定された範囲
の、初回のビット配分計算時に分配された量の総和に、
あらかじめストックされたビットを加えた量(avl_byte
s) から供給し、カスタマイズ範囲外の部分のビット量
を変えないようにするものである。これによって、カス
タマイズ後に影響を受ける範囲を限定させることが可能
となり、エンコード作業の時間が大幅に削減される。
That is, in this bit allocation method, a certain number of bits are previously secured as a stock bit number (STC_BYTES) in the range before the reallocation calculation, and when customization is performed by the reallocation calculation, the stock bit number (STC_BYTE) is used.
From S), the bits used for bit redistribution at the time of customization are added to the sum of the amounts distributed at the time of the first bit allocation calculation within the range specified as the range of customization,
Amount (avl_byte
s), and does not change the bit amount of the part outside the customization range. As a result, it is possible to limit the range affected after customization, and the encoding operation time is greatly reduced.

【0067】このビット配分方法は、図2に示すよう
に、カスタマイズによって調整するビット数を、最初に
ストックされたビット数(STC_BYTES) と、カスタマイズ
指定された範囲(CS_ENABLE が 0 の範囲)R1から供給
する。このようにすると、カスタマイズの影響は、この
カスタマイズを実行する範囲R1にのみ及ぶので、他の
範囲R2、R3の画質確認をやり直す必要がなくなる。
従って、カスタマイズの作業は必ず収束し、際限なく繰
り返さなくてもよい。
In this bit allocation method, as shown in FIG. 2, the number of bits to be adjusted by customization is adjusted from the number of initially stocked bits (STC_BYTES) and the customization designated range (CS_ENABLE is 0) R1. Supply. In this way, the effect of the customization extends only to the range R1 in which the customization is performed, so that it is not necessary to check the image quality of the other ranges R2 and R3 again.
Therefore, the customizing operation always converges, and need not be repeated endlessly.

【0068】但し、この方式での問題点としては、最初
に設定するストックビット数(STC_BYTES)の評価が難
しいということがある。ストックビット数(STC_BYTE
S)が多過ぎると、全体の画質が劣化してしまう。逆に
少な過ぎるとカスタマイズできる範囲が短くなってしま
い、満足いく修正ができなくなる。さらに、カスタマイ
ズ指定する範囲が少ないと、指定された範囲内でのビッ
ト配分の調整量が大きくなる。
However, a problem with this method is that it is difficult to evaluate the number of stock bits (STC_BYTES) to be set first. Stock bits (STC_BYTE
If S) is too large, the overall image quality deteriorates. On the other hand, if it is too small, the range of customization becomes short, and satisfactory correction cannot be performed. Furthermore, if the range for customizing is small, the amount of adjustment of the bit distribution within the specified range increases.

【0069】次に、図3を参照しながらストックビット
数(STC_BYTES)の求め方について説明する。
Next, a method for obtaining the number of stock bits (STC_BYTES) will be described with reference to FIG.

【0070】図中(A)は、スーパーバイザコントロー
ラ1によって指定された、エンコード出力の総ビット数
(QTY_BYTES)である。この総ビット数(QTY_BYTES)に
指定された最大レート(MAXRATE)のビット数でリミッ
タを掛けると、図中(B)に示す、制限をつけた総ビッ
ト数(USB_BYTES)となる。
FIG. 9A shows the total number of bits of the encoded output (QTY_BYTES) specified by the supervisor controller 1. When the total number of bits (QTY_BYTES) is multiplied by the number of bits of the specified maximum rate (MAXRATE), the total number of limited bits (USB_BYTES) shown in FIG.

【0071】サプライビット数(SUPPLY_BYTES)は、図
中(C)に示すように、制限をつけた総ビット数(USB_
BYTES)からGOPのヘッダビット数(GOP_HEADER)を
除いたものである。
The number of supply bits (SUPPLY_BYTES) is, as shown in FIG.
BYTES) minus the number of GOP header bits (GOP_HEADER).

【0072】例えば、ストックビット数(STC_BYTES)
として、サプライビット数(SUPPLY_BYTES)に対するス
トックビット数比率(STC_RATE)を確保する場合があ
る。この場合には、ストックビット数(STC_BYTES)
は、ストックビット数(STC_BYTES)とストックビット
数比率(STC_RATE)の積(SUPPLY_BYTES×STC_RATE)に
て与えられる。
For example, the number of stock bits (STC_BYTES)
In some cases, a stock bit number ratio (STC_RATE) to the supply bit number (SUPPLY_BYTES) may be secured. In this case, the number of stock bits (STC_BYTES)
Is given by the product of the number of stock bits (STC_BYTES) and the ratio of the number of stock bits (STC_RATE) (SUPPLY_BYTES × STC_RATE).

【0073】このサプライビット数(SUPPLY_BYTES)は
図中(D)に示されるように、再配分時に利用するため
にストックしておくストックビット数(STY_BYTES)
と、初回から利用可能であるアベイラブルビット数(AV
L_BYTES)とから構成される。
The number of supply bits (SUPPLY_BYTES) is the number of stock bits (STY_BYTES) to be stored for use at the time of reallocation as shown in FIG.
And the number of available bits (AV
L_BYTES).

【0074】ここで、MPEGエンコーダコントローラ
23が実行するビット配分計算処理におけるビット数の
配分の一例について説明する。このビット配分計算処理
は、ビデオエンコードコントローラ20のビット配分計
算部22の備えるビット配分計算処理プログラムが、所
定の制御の下に行うものである。
Here, an example of the distribution of the number of bits in the bit distribution calculation processing executed by the MPEG encoder controller 23 will be described. This bit allocation calculation process is performed by a bit allocation calculation processing program provided in the bit allocation calculation unit 22 of the video encode controller 20 under predetermined control.

【0075】ここでは、図4中の(A)に示す総ビット
数(QTY_BYTES)と、(B)に示す制限されたビット総
数(USB_BYTES)と、(C)に示すサプライビット数(S
UPPLY_BUTES)と、(D)に示すアベイラブルビット数
(AVL_BYTES)及びストックビット数(STC_BYTES)と
が、それぞれ設定される。
Here, the total number of bits (QTY_BYTES) shown in (A), the limited total number of bits (USB_BYTES) shown in (B), and the number of supply bits (S
UPPLY_BUTES), the number of available bits (AVL_BYTES) and the number of stock bits (STC_BYTES) shown in (D) are set, respectively.

【0076】ここで、総ビット数(QTY_BYTES)、制限
されたビット総数(USB_BYTES)、サプライビット数(S
UPPLY_BUTES)、アベイラブルビット数(AVL_BYTES)及
びストックビット数(STC_BYTES)の各ビット数の間に
は次のような関係がある。
Here, the total number of bits (QTY_BYTES), the total number of limited bits (USB_BYTES), and the number of supply bits (S
UPPLY_BUTES), the number of available bits (AVL_BYTES), and the number of stock bits (STC_BYTES) have the following relationship.

【0077】即ち、制限されたビット総数(USB_BYTE
S)は、総ビット数(QTY_BYTES)以下である。また、サ
プライビット数(SUPPLY_BYTES)のビット数は、制限さ
れたビット総数(USB_BYTES)から、GOPのヘッダ(G
OP_HEADER)のビット数を減じたものである。さらに、
アベイラブルビット数(AVL_BYTES)は、サプライビッ
ト数(SUPPLY_BYTES)からストックビット数(STC_BYTE
S)のビット数を除いたものである。これらの関係は、
次の式に表される。
That is, the total number of limited bits (USB_BYTE
S) is equal to or less than the total number of bits (QTY_BYTES). Also, the number of bits of the supply bit number (SUPPLY_BYTES) is calculated from the limited total number of bits (USB_BYTES) by using the header (G
OP_HEADER). further,
The number of available bits (AVL_BYTES) is calculated from the number of supply bits (SUPPLY_BYTES) to the number of stock bits (STC_BYTE).
S) excluding the number of bits. These relationships are
It is expressed by the following equation.

【0078】QTY_BYTES >= USB_BYTES SUPPLY_BYTES = USB_BYTES - GOP_HEADER AVL_BYTES = SUPPLY_BYTES - STC_BYTES そして、アベイラブルビット数(AVL_BYTES)は、各ピ
クチャに割り当てられたターゲットビット数(TARGET_B
YTES)と、上記割り当ての余り(REMAIN)との和とな
る。従って上記余りは、次の式にて表される。
QTY_BYTES> = USB_BYTES SUPPLY_BYTES = USB_BYTES-GOP_HEADER AVL_BYTES = SUPPLY_BYTES-STC_BYTES The number of available bits (AVL_BYTES) is determined by the number of target bits (TARGET_B) assigned to each picture.
YTES) and the remainder of the above allocation (REMAIN). Therefore, the remainder is expressed by the following equation.

【0079】REMAIN = AVL_BYTES - TARGET_BYTES この一連のビット配分計算の結果であるアウトビット数
(OUT_BYTES)は、上記ターゲットビット数(TARGET_BY
TES)と、GOPのヘッダ(GOP_HEADER)が加算されて
なる。従って、アウトビット数は次の式にて表される。
REMAIN = AVL_BYTES-TARGET_BYTES The number of out bits (OUT_BYTES) which is the result of this series of bit allocation calculations is the number of target bits (TARGET_BY
TES) and the GOP header (GOP_HEADER). Therefore, the number of out bits is represented by the following equation.

【0080】OUT_BYTES = TARGET_BYTES + GOP_HEADER 次に、ビット再配分計算処理の一例について説明する。
このビット再配分計算処理も、MPEGエンコードコン
トローラ23がビット配分計算部22の備えるビット配
分計算処理プログラムを実行することにより行われる。
OUT_BYTES = TARGET_BYTES + GOP_HEADER Next, an example of the bit redistribution calculation processing will be described.
This bit redistribution calculation process is also performed by the MPEG encoding controller 23 executing the bit allocation calculation processing program provided in the bit allocation calculation unit 22.

【0081】このビット再配分計算処理においては、図
5中の(A)に示すビット配分計算処理における制限さ
れたビット総数(USB_BYTES)が、(B)に示すリトラ
イビット数(RETRY_BYTES)となる。即ち、これらのビ
ット数の関係は、次の式にて表される。
In this bit redistribution calculation processing, the limited total number of bits (USB_BYTES) in the bit allocation calculation processing shown in (A) in FIG. 5 becomes the number of retry bits (RETRY_BYTES) shown in (B). That is, the relationship between these bit numbers is represented by the following equation.

【0082】RETRY_BYTES = USB_BYTES このリトライビット数(RETRY_BYTES)から、GOPの
ヘッダビット数(GOP_HEADER)を除いたビット数を、図
中(C)に示すように、チェンジビット数(CHANGE_BYT
ES)とする。これらのビット数の関係は、次の式に示す
ようになる。
RETRY_BYTES = USB_BYTES The number of bits obtained by removing the number of GOP header bits (GOP_HEADER) from the number of retry bits (RETRY_BYTES) is shown in FIG.
ES). The relationship between these bit numbers is as shown in the following equation.

【0083】 CHANGE_BYTES = RETRY_BYTES - GOP_HEADER 上記アベイラブルビット数(AVL_BYTES)は、図中
(D)に示すように、このチェンジビット数(CHANGE_B
YTES)からホールドビット数(HOLD_BYTES)を除いたも
のである。即ち、これらのビット数の関係は、次の式に
て与えられる。
CHANGE_BYTES = RETRY_BYTES−GOP_HEADER The number of available bits (AVL_BYTES) is, as shown in (D) in the figure, the number of change bits (CHANGE_B
YTES) minus the number of hold bits (HOLD_BYTES). That is, the relationship between these bit numbers is given by the following equation.

【0084】 AVL_BYTES = CHANGE_BYTES - HOLD_BYTES ここで、ホールドビット数(HOLD_BYTES)とは、後述す
るカスタマイズエネーブル(CS_ENABLE)の値が1であ
るカスタマイズの範囲外について、初回のビット配分時
に分配されたターゲットビット数(TARGET_BYTES)のビ
ット数の総和を求めたものである。
AVL_BYTES = CHANGE_BYTES-HOLD_BYTES Here, the number of hold bits (HOLD_BYTES) is a target bit distributed at the time of the first bit distribution outside the range of customization in which the value of a customization enable (CS_ENABLE) described later is 1. This is the sum of the number of bits of the number (TARGET_BYTES).

【0085】このアベイラブルビット数(AVL_BYTES)
を用いて、カスタマイズ範囲に指定された各ピクチャの
符号化難易度に応じて、割り当ての変更ビット数である
チェンジターゲットビット数(CHANGE_TARGET)を設定
する。
The number of available bits (AVL_BYTES)
Is used, the number of change target bits (CHANGE_TARGET), which is the number of change bits of the allocation, is set according to the encoding difficulty of each picture specified in the customization range.

【0086】ここで、図中(E)に示すように、各ピク
チャに与えられる最大ビット数が制限されているため、
このチェンジターゲットビット数(CHANGE_TARGET)を
各ピクチャに割り当てた余り(REMAIN)が生じる場合が
ある。これらのビット数の間には、次の関係がある。
Here, since the maximum number of bits given to each picture is limited, as shown in FIG.
The remainder (REMAIN) of allocating the number of change target bits (CHANGE_TARGET) to each picture may occur. The following relationship exists between these bit numbers.

【0087】REMAIN = AVL_BYTES - CHANGE_TARGET この一連のビット再配分計算の結果によって出力がされ
るビット量の総和であるアウトビット数(OUT_BYTES)
は、ホールドビット数(HOLD_BYTES)と、チェンジター
ゲットビット数(CHANGE_TARGET)とを結合したビット
数である。即ち、これらのビット数の間の関係は、次の
式にて与えられる。
REMAIN = AVL_BYTES-CHANGE_TARGET The number of out bits (OUT_BYTES) which is the sum of the amount of bits output according to the result of this series of bit redistribution calculations
Is the number of bits obtained by combining the number of hold bits (HOLD_BYTES) and the number of change target bits (CHANGE_TARGET). That is, the relationship between these bit numbers is given by:

【0088】OUT_BYTES = CHANGE_TARGET + HOLD_BYTES
+ GOP_HEADER ここで上述した画質改善のためのカスタマイズ時におけ
る、パラメータ設定方法の一例について説明する。
OUT_BYTES = CHANGE_TARGET + HOLD_BYTES
+ GOP_HEADER Here, an example of a parameter setting method at the time of customization for improving the image quality described above will be described.

【0089】エンコード出力の画像の画質をプレビュー
にて確認する際に、特定の位置の画質に問題があること
を発見する場合には、カスタマイズにより上記位置のタ
ーゲットビット量を増やして画質の改善を図る。例え
ば、上記プレビューにおける画質確認の結果、 時刻T
Sから時刻TEまでの区間のビット量を増加させる場合
がある。
If it is found that there is a problem with the image quality of a specific position when checking the image quality of the image of the encoded output by previewing, the target bit amount at the position is increased by customization to improve the image quality. Aim. For example, as a result of the image quality check in the preview, the time T
In some cases, the bit amount in the section from S to time TE is increased.

【0090】上記ビデオエンコーダシステムのビデオエ
ンコードコントローラ20は、GUI21を備え、ユー
ザはこのGUI21を介してビット再配分に係る操作を
行うことができる。ここで、GUI21とは、モニタ1
8上に表示されるウインドウ等を用いて、マウスなどに
より画面上のアイコンをクリックすると設定できるよう
になされた、グラフィカルなインターフェースである。
The video encoder controller 20 of the video encoder system has a GUI 21 through which a user can perform operations related to bit redistribution. Here, the GUI 21 is the monitor 1
8 is a graphical interface that can be set by using a window or the like displayed on the screen 8 and clicking an icon on the screen with a mouse or the like.

【0091】上記モニタ18には、少なくとも第1と第
2のウインドウが表示されている。第1のウインドウ
は、図6中の(A)に示されるように、各ピクチャに対
するカスタマイズ前の割り当てビット数であるターゲッ
トビット数(TARGET_BYTES)が、時間方向に並んで表示
されている。
The monitor 18 displays at least a first window and a second window. In the first window, as shown in FIG. 6A, the target bit number (TARGET_BYTES), which is the allocated bit number before customization for each picture, is displayed in a time direction.

【0092】第2のウインドウは、図中(B)に示され
るように、カスタマイズ時のビットレートのレベルの重
み(ウエイト)を時間方向に表示し、また、上記レベル
を設定できるようになっている。ここで、この第2のウ
インドウにおいては、時刻TSから時刻TEまでの区間
を第1加重レベル W1、他の区間は基本レベル W0と
なっている。
In the second window, the weight (weight) of the bit rate at the time of customization is displayed in the time direction as shown in (B) in the figure, and the level can be set. I have. Here, in the second window, the section from time TS to time TE has the first weight level W1, and the other sections have the basic level W0.

【0093】カスタマイズエネーブル(CS_ENABLE[k])
は、各フレーム又はピクチャ毎に割り当てられ、値が0
の場合に該フレームをカスタマイズ対象とする負論理の
フラグである。このカスタマイズエネーブル(CS_ENABL
E[k])は、図中(C)に示すように、該フレームの重み
関数(D_WEGHT[k])が初期設定値である基本レベルW0
の場合にはハイレベル(1)となり、基本レベルW0以
外の場合にはローレベル(0)となる。ここで、kはフ
レーム又はピクチャを同定する指標である。
Customize enable (CS_ENABLE [k])
Is assigned to each frame or picture, and the value is 0
Is a negative logic flag for which the frame is to be customized. This customization enable (CS_ENABL
E [k]) is a basic level W0 for which the weight function (D_WEGHT [k]) of the frame is an initial set value, as shown in FIG.
In this case, the level becomes a high level (1), and in cases other than the basic level W0, the level becomes a low level (0). Here, k is an index for identifying a frame or a picture.

【0094】次に、ビット再配分の前後の各ピクチャの
割り当てビット数(TARGET_BYTES)の変化を説明する。
Next, the change in the number of allocated bits (TARGET_BYTES) of each picture before and after the bit redistribution will be described.

【0095】ビット再配分前の各ピクチャにおける割り
当てビット数(TARGET_BYTES)に分布の一例としては、
図7中の(A)が挙げられる。ここで、図中(B)に示
すように、図中(A)の第1ピクチャから第20ピクチ
ャまでをカスタマイズすることとする。このために、こ
の範囲ピクチャの重み関数(D_WEGHT[k])を第1加重レ
ベルW1とし、他のピクチャは基本レベルW0とするこ
とにする。このとき、上記範囲のカスタマイズエネーブ
ル(CS_ENABLE[k])の値は0となり、他の範囲における
値は1となる。
As an example of the distribution of the number of allocated bits (TARGET_BYTES) in each picture before bit redistribution,
(A) in FIG. 7 is mentioned. Here, as shown in (B) in the figure, the first picture to the twentieth picture in (A) in the figure are customized. For this purpose, the weight function (D_WEGHT [k]) of this range picture is set to the first weight level W1, and the other pictures are set to the basic level W0. At this time, the value of the customization enable (CS_ENABLE [k]) in the above range is 0, and the value in the other range is 1.

【0096】このように設定したカスタマイズ範囲に係
るビット再配分を行うと、図中(C)に示すように、上
記範囲、即ち第1ピクチャから第20ピクチャまでのピ
クチャに対する割り当てビット数(TARGET_BYTES)は増
加するが、他のピクチャに対する割り当てビット数(TA
RGET_BYTES)は初回の配分のままに留まっている。
When the bits are redistributed according to the customization range set as described above, the number of bits allocated to the above range, ie, the first to twentieth pictures (TARGET_BYTES), as shown in FIG. Increases, but the number of bits allocated to other pictures (TA
RGET_BYTES) remains at the initial allocation.

【0097】ここで、各ピクチャの符号化難易度は、該
ピクチャの重み関数(D_WEIGHT[k])と、符号化難易度
測定時の該ピクチャの発生ビット量(GEN_BIT[k])との
積にて定義される。即ち、符号化難易度(DIFFICULTY)
は、次の式によって与えられる。
Here, the coding difficulty of each picture is the product of the weight function (D_WEIGHT [k]) of the picture and the number of bits generated (GEN_BIT [k]) of the picture when the coding difficulty is measured. Is defined by That is, encoding difficulty (DIFFICULTY)
Is given by the following equation:

【0098】DIFFCULTY = D_WEGHT[k] × GEN_BIT[k] そこで、割り当てビット数であるターゲット量を求める
方法について説明する。この方法は、符号化難易度(DI
FFICULTY)と、アベイラブルビット数(AVL_BYTES)の
値から評価関数を求め、GOP単位のターゲット量(GO
P_TARGET)を求めるものである。
DIFFCULTY = D_WEGHT [k] × GEN_BIT [k] A method for obtaining the target amount which is the number of allocated bits will be described. This method uses the encoding difficulty (DI
FFICULTY) and the number of available bits (AVL_BYTES) to obtain an evaluation function, and calculate the target amount (GO
P_TARGET).

【0099】上述したように、ビット再配分計算時に
は、チェンジビット数(CHANGE_BYTES)は、制限をつけ
たビット数(USB_BYTES)からGOP単位の割り当てビ
ット数(GOP_HEADER)を減じたビット数として定義され
る、また、アベイラブルビット数(AVL_BYTES)は、チ
ェンジビット数(CHANGE_BYTES)からホールドビット数
(HOLD_BYTES)を減じたバイト数として定義される。即
ち、これらのビット数の間の関係は、次の式にて表現さ
れる。
As described above, at the time of calculating the bit redistribution, the number of change bits (CHANGE_BYTES) is defined as the number of bits obtained by subtracting the number of bits allocated per GOP (GOP_HEADER) from the limited number of bits (USB_BYTES). The number of available bits (AVL_BYTES) is defined as the number of bytes obtained by subtracting the number of hold bits (HOLD_BYTES) from the number of change bits (CHANGE_BYTES). That is, the relationship between these bit numbers is expressed by the following equation.

【0100】 CHANGE_BYTES = USB_BYTES - GOP_HEADER AVL_BYTES = CHANGE_BYTES - HOLD_BYTES 一方、符号化難易度総和(DIFICULTY_SUM)は、カスタ
マイズエネーブル(CS_ENABLE[K])の値が0である重み
が基本レベルW0以外のピクチャについての、符号化難
易度の総和として定義される。
CHANGE_BYTES = USB_BYTES-GOP_HEADER AVL_BYTES = CHANGE_BYTES-HOLD_BYTES On the other hand, the total encoding difficulty (DIFICULTY_SUM) is a value for a picture whose customization enable (CS_ENABLE [K]) has a value of 0 and has a weight other than the basic level W0. , Encoding difficulty.

【0101】DIFFICULTY_SUM = ΣDIFFICULTY[k] (CS_E
NABLE[k] が 0 の部分) すると、BをGOPの最小ビット数(GOP_MIBUYES)、
yについての総和Σyをアベイラブルビット数(AVL_BY
TES)、xについての総和Σxを符号化難易度総和(DIF
FICULTY_SUM)、nをGOPの総数とすると、次の関係
式が成立する。
DIFFICULTY_SUM = ΣDIFFICULTY [k] (CS_E
When NABLE [k] is 0), B is the minimum number of bits of a GOP (GOP_MIBUYES),
The sum Σy of y is calculated as the number of available bits (AVL_BY
TES), the sum of xΣx is the sum of the encoding difficulty (DIF
FICULTY_SUM), where n is the total number of GOPs, the following relational expression holds.

【0102】Σy = A×Σx + B×n 但し、次の諸量が用いられている。Σy = A × Σx + B × n However, the following quantities are used.

【0103】B = GOP_MINBYTES Σy = AVL_BYTES Σx = DIFFICULTY_SUM 従って、Aは次の式にて与えられる。B = GOP_MINBYTESΣy = AVL_BYTESΣx = DIFFICULTY_SUM Therefore, A is given by the following equation.

【0104】 A = (AVL_BYTES - B×n)/ DIFFICULTY_SUM そして、GOP単位の割り当てビット数は(GOP_TARGE
T)を次の式にて与えることにする。
A = (AVL_BYTES−B × n) / DIFFICULTY_SUM And the number of bits allocated in GOP units is (GOP_TARGE
T) is given by the following equation.

【0105】GOP_TARGET = A × GOP_DIFF + B さらに、各GOP内で各ピクチャの符号化難易度(DIFF
ICULTY[k])に応じたビット配分をおこなう。GOP内
での各ピクチャの配分は符号化難易度の大きさに比例さ
せることができる。この場合には、各ピクチャ割り当て
ビット数(TARGET)は次の式で求められる。但し、kは
1から該GOP内のピクチャ総数までの間にある。
GOP_TARGET = A × GOP_DIFF + B Further, the encoding difficulty of each picture (DIFF
Bit allocation according to ICULTY [k]) is performed. The distribution of each picture in a GOP can be proportional to the magnitude of the encoding difficulty. In this case, the number of bits assigned to each picture (TARGET) is obtained by the following equation. Here, k is between 1 and the total number of pictures in the GOP.

【0106】 TARGET[k] = GOP_TARGET × DIFFICULTY[k]/GOP_DIFF (1 ≦ k ≦ GOP 内の picture 数) なお、符号化難易度総和(DIFICULTY_SUM)は、カスタ
マイズエネーブル(CS_ENABLE[K])の値が1であるウエ
イトが基本レベルW0のピクチャについての、初回のビ
ット配分計算された時の量をそのまま用いる。
TARGET [k] = GOP_TARGET × DIFFICULTY [k] / GOP_DIFF (1 ≦ k ≦ the number of pictures in GOP) Note that the total encoding difficulty (DIFICULTY_SUM) is the value of the customization enable (CS_ENABLE [K]). Is used, the amount of the first bit allocation calculation for the picture whose weight is the basic level W0 is used as it is.

【0107】以上述べたビット再配分に係る一連の手順
を図8に示すフローチャートによって説明する。
A series of procedures relating to the above-described bit reallocation will be described with reference to a flowchart shown in FIG.

【0108】先ず、ステップS1においてこのビデオ再
配分のエンコード条件を入力し、次のステップS2にお
いて、初回のビット配分計算結果のコントロールパラメ
ータを入力する。そして、次のステップS3に進む。
First, in step S1, the encoding conditions for this video redistribution are input, and in the next step S2, the control parameters of the first bit allocation calculation result are input. Then, the process proceeds to the next step S3.

【0109】ステップS3においては、カスタマイズ指
定パラメータを入力し、次のステップS4においては、
再計算の対象となる範囲の初回ビット数の配分計算の総
和に、ストックされていた量を加えた、再配分総ビット
数(AVL_BYTES)を算出する。そして、ステップS5に
進む。
In step S3, a customization designation parameter is input, and in the next step S4,
The total number of redistributed bits (AVL_BYTES) is calculated by adding the stock amount to the sum of the allocation calculation of the initial number of bits in the range to be recalculated. Then, the process proceeds to step S5.

【0110】ステップS5においては、再配分総ビット
数(AVL_BYTES)に対して再計算の対象となるターゲッ
トビット数(TARGET)を算出する。そして、ステップS
6に進む。
In step S5, the target bit number (TARGET) to be recalculated is calculated for the total redistributed bit number (AVL_BYTES). And step S
Proceed to 6.

【0111】ステップS6においては、RAID16に
エンコード結果のビットストリームを書き込む際のアド
レスの計算を行う。そしてステップS7においては、エ
ンコーダ用コントロールファイルを作成し、この一連の
工程を終了する。
In step S6, an address for writing the bit stream of the encoding result in RAID 16 is calculated. Then, in step S7, an encoder control file is created, and this series of steps ends.

【0112】なお、以上の実施の形態にて述べた画像符
号化方法及び画像符号化装置は、記録媒体に対しても同
様に適用することができる。
Note that the image encoding method and the image encoding device described in the above embodiments can be similarly applied to a recording medium.

【0113】即ち、上記GOPにて符号化されたビデオ
素材を記録している記録媒体において、上述のように、
初回のビット配分計算時に上記ストックビット数(STC_
BYTES)を確保しておき、画質の改善を図るためにカス
タマイズを行う際のビット再配分計算時に、このストッ
クビット数を(STC_BYTES)を利用することにより、カ
スタマイズ範囲外の画質を劣化させることなくこの範囲
の画質を改善された符号化画像を記録されることができ
る。
That is, in the recording medium which records the video material encoded by the GOP, as described above,
The number of stock bits (STC_
By using (STC_BYTES), this number of stock bits can be used during bit allocation calculation when customizing to improve image quality without deteriorating image quality outside the customization range. An encoded image with improved image quality in this range can be recorded.

【0114】[0114]

【発明の効果】この発明に係る画像符号化方法、画像符
号化装置及び記録媒体においては、カスタマイズ後のビ
ット再配分計算時に、ビット再配分によるビット削減を
受ける範囲を特定することができる。従って、カスタマ
イズした範囲外の部分の画質が劣化することがない。さ
らに、ビット再配分後に画質の確認を行う範囲を絞りこ
めるため、エンコード作業の時間が大幅に削減できる。
そして、記録媒体には上述の画質の符号化画像を記録す
ることができる。
In the image coding method, the image coding apparatus and the recording medium according to the present invention, it is possible to specify a range to be subjected to the bit reduction by the bit reallocation at the time of the bit reallocation calculation after the customization. Therefore, the image quality of the portion outside the customized range does not deteriorate. Furthermore, since the range in which the image quality is checked after the bit redistribution is narrowed, the encoding time can be significantly reduced.
Then, the encoded image having the above image quality can be recorded on the recording medium.

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

【図1】この発明に係る画像符号化方法、画像符号化装
置及び記録媒体にかかるビデオエンコーダシステムの実
施の形態の一例の概略の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an example of an embodiment of a video encoding system according to an image encoding method, an image encoding device, and a recording medium according to the present invention.

【図2】ビット再配分の前後における符号化画像のビッ
ト数の配分を示すデータ構造図である。
FIG. 2 is a data structure diagram showing the distribution of the number of bits of an encoded image before and after bit redistribution.

【図3】上記符号化画像のビット数の配分を示すデータ
構造図である。
FIG. 3 is a data structure diagram showing the distribution of the number of bits of the encoded image.

【図4】ビット配分時における上記符号化画像のビット
数の配分を示すデータ構造図である。
FIG. 4 is a data structure diagram showing the distribution of the number of bits of the encoded image at the time of bit distribution.

【図5】ビット再配分時における上記符号化画像のビッ
ト数の配分を示すデータ構造図である。
FIG. 5 is a data structure diagram showing the distribution of the number of bits of the encoded image at the time of bit redistribution.

【図6】第1及び第2ののウインドウを示す平面図であ
る。
FIG. 6 is a plan view showing first and second windows.

【図7】上記符号化画像の各ピクチャの再ビット配分の
前後の割り当てビット数と、カスタマイズエネーブルの
重みとを示すグラフである。
FIG. 7 is a graph showing the number of allocated bits before and after the re-bit allocation of each picture of the coded image and the weight of the customization enable.

【図8】上記符号化画像のビット数再配分に係る一連の
工程を示すフローチャートである。
FIG. 8 is a flowchart showing a series of steps relating to the bit number redistribution of the encoded image.

【図9】従来のビデオエンコーダシステムの具体例を概
略的に示すブロック図である。
FIG. 9 is a block diagram schematically showing a specific example of a conventional video encoder system.

【図10】GOPの構造の一例を示す模式図である。FIG. 10 is a schematic diagram illustrating an example of the structure of a GOP.

【図11】上記ビデオエンコーダシステムの動作に係る
一連の工程を示すフローチャートである。
FIG. 11 is a flowchart showing a series of steps relating to the operation of the video encoder system.

【図12】従来のビット配分の計算に係る一連の工程を
示すフローチャートである。
FIG. 12 is a flowchart showing a series of steps related to a conventional calculation of bit allocation.

【図13】GOP単位のビット割り当て量に係る評価関
数の一例を示すグラフである。
FIG. 13 is a graph showing an example of an evaluation function relating to a bit allocation amount in GOP units.

【図14】カスタマイズコントロール用ファイル(weig
ht.txt)の一例の内容を示す表である。
FIG. 14: Customization control file (weig
ht.txt) is a table showing the contents of an example.

【図15】カスタマイズパラメータ設定に係る一連の工
程を示すフローチャートである。
FIG. 15 is a flowchart showing a series of steps relating to customization parameter setting.

【図16】従来のビット再配分の計算に係る一連の工程
を示すフローチャートである。
FIG. 16 is a flowchart showing a series of steps related to a conventional calculation of bit redistribution.

【図17】従来のビット再配分の計算による他のビット
数に対する影響を示すデータ構造図である。
FIG. 17 is a data structure diagram showing an influence on another number of bits by a conventional calculation of bit redistribution.

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

1 スーパーバイザコントローラ、16 RAID、2
0ビデオエンコードコントローラ、22 ビット配分計
算部、25 MPEGエンコーダ
1 Supervisor controller, 16 RAID, 2
0 video encoder controller, 22 bit allocation calculator, 25 MPEG encoder

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 フレーム内符号化画像、フレーム間順方
向予測符号化画像、双方向予測符号化画像を所定数含ん
でなる画像符号化グループにより、ビデオ素材を符号化
する画像符号化方法において、 上記各符号化画像に対してのビット配分を計算すると共
に、予備データ量を確保するビット配分工程と、 上記ビット配分工程でのビット配分に対して調整のため
のカスタマイズの指定を行うカスタマイズ指定工程と、 上記予備データ量を用いて上記カスタマイズ指定工程で
指定された上記各符号化画像に対して、再度ビット配分
を計算するビット再配分工程とを備えることを特徴とす
る画像符号化方法。
1. An image encoding method for encoding a video material by an image encoding group including a predetermined number of intra-frame encoded images, inter-frame forward predictive encoded images, and bidirectional predictive encoded images. A bit allocation step for calculating the bit allocation for each of the encoded images and securing a reserve data amount; and a customization specifying step for specifying customization for adjusting the bit allocation in the bit allocation step. And a bit redistribution step of calculating a bit allocation again for each of the encoded images specified in the customization specifying step using the spare data amount.
【請求項2】 上記ビット配分工程は、上記各符号化画
像の符号化難易度に基づいてビット配分を計算すると共
に、上記予備データ量を確保することを特徴とする請求
項1記載の画像符号化方法。
2. The image code according to claim 1, wherein said bit allocation step calculates the bit allocation based on the encoding difficulty of each of the encoded images, and secures the spare data amount. Method.
【請求項3】 上記カスタマイズ指定工程は、ユーザの
操作に基づいてカスタマイズ指定を行うことを特徴とす
る請求項1記載の画像符号化方法。
3. The image encoding method according to claim 1, wherein said customization specifying step performs customization specification based on a user operation.
【請求項4】 フレーム内符号化画像、フレーム間順方
向予測符号化画像、双方向予測符号化画像を所定数含ん
でなる画像符号化グループにより、ビデオ素材を符号化
する画像符号化装置において、 ユーザの操作に応じて調整のためのカスタマイズの範囲
を指定するカスタマイズ指定手段と、 上記カスタマイズ指定手段でカスタマイズ範囲が指定さ
れる上記各符号化画像に対し、予めビット配分を、予備
データ量を確保して計算すると共に、上記予備データ量
を用いて上記カスタマイズ範囲内の上記各符号化画像に
対して、再度ビット配分を計算する制御手段とを備える
ことを特徴とする画像符号化装置。
4. An image encoding apparatus for encoding a video material by an image encoding group including a predetermined number of intra-frame encoded images, inter-frame forward predictive encoded images, and bidirectional predictive encoded images. Customization designating means for designating a customization range for adjustment in accordance with a user operation; and a bit allocation and reserve data amount are secured in advance for each of the coded images for which the customization range is designated by the customization designating means. Control means for calculating the bit allocation again for each of the encoded images within the customization range using the spare data amount.
【請求項5】 上記制御手段は、上記各符号化画像の符
号化難易度に基づいて予めビット配分を計算すると共
に、上記予備データ量を確保することを特徴とする請求
項4記載の画像符号化装置。
5. The image encoding apparatus according to claim 4, wherein said control means calculates a bit allocation in advance based on the degree of difficulty of encoding each of said encoded images, and secures said spare data amount. Device.
【請求項6】 フレーム内符号化画像、フレーム間順方
向予測符号化画像、双方向予測符号化画像を所定数含ん
でなる画像符号化グループにより符号化されたビデオ素
材を記録している記録媒体において、 上記各符号化画像に対する初回のビット配分計算時に予
備データ量を確保し、上記初回のビット配分後の画像に
画質調整のためのカスタマイズの指定処理を施すときに
は上記予備データ量を用いて上記カスタマイズ指定処理
で指定された上記各符号化画像に対して再度ビット配分
を計算して、上記ビデオ素材を記録することを特徴とす
る記録媒体。
6. A recording medium for recording a video material encoded by an image encoding group including a predetermined number of intra-frame encoded images, inter-frame forward predictive encoded images, and bidirectional predictive encoded images. In the above, reserve the amount of spare data at the time of the first bit allocation calculation for each of the coded images, and use the spare data amount when performing customization designation processing for image quality adjustment on the image after the first bit allocation. A recording medium characterized in that the bit allocation is calculated again for each of the encoded images specified in the customization specifying process, and the video material is recorded.
JP11160197A 1997-04-28 1997-04-28 Picture encoding method/device and recording medium Withdrawn JPH10304377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11160197A JPH10304377A (en) 1997-04-28 1997-04-28 Picture encoding method/device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11160197A JPH10304377A (en) 1997-04-28 1997-04-28 Picture encoding method/device and recording medium

Publications (1)

Publication Number Publication Date
JPH10304377A true JPH10304377A (en) 1998-11-13

Family

ID=14565497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11160197A Withdrawn JPH10304377A (en) 1997-04-28 1997-04-28 Picture encoding method/device and recording medium

Country Status (1)

Country Link
JP (1) JPH10304377A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002034039A (en) * 2000-07-14 2002-01-31 Sony Corp Method and device for encoding image signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002034039A (en) * 2000-07-14 2002-01-31 Sony Corp Method and device for encoding image signal
JP4710108B2 (en) * 2000-07-14 2011-06-29 ソニー株式会社 Image signal encoding method and apparatus

Similar Documents

Publication Publication Date Title
JP5404038B2 (en) Method, apparatus and system used for multimedia signal encoding
KR100288094B1 (en) Method and system for manually changing the quality of encoded video sequences
US7855729B2 (en) Video recording control system
US8331457B2 (en) Information processing apparatus and method, and recording medium and program used therewith
JP3740813B2 (en) Image encoding method and image encoding apparatus
JP3911768B2 (en) Image encoding method and image encoding apparatus
JP3837889B2 (en) Encoding method and encoding apparatus
US7609301B2 (en) Motion image recording device with compression ratio control
JP4162454B2 (en) Data processing device
JPH10304377A (en) Picture encoding method/device and recording medium
JPH10304372A (en) Image coding method and device, and image transmission method
JP3951152B2 (en) Image coding apparatus and method
JP4650454B2 (en) Encoding apparatus and encoding method
JP4462643B2 (en) Image encoding method and image encoding apparatus
JP4161385B2 (en) Image encoding method and apparatus, image processing apparatus and image processing method
EP1411521B1 (en) Data processing apparatus, data processing method, and program
JPH10308942A (en) Image coding method and device, recording medium and image transmission method
JP4717101B2 (en) Video recording device
JP4207098B2 (en) Encoding control apparatus, encoding control method, encoding apparatus, and encoding method
JPH1198499A (en) Image coder and image quality prediction method
JPH10304376A (en) Picture encoding method/device, recording medium and picture transmission method
JP4423215B2 (en) Image processing device
JP2004319080A (en) Device and method for processing information, recording medium, and program
JP2000078529A (en) Variable transfer rate coder
JPH10290427A (en) Data compressor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040706