JP2011155474A - Encoding apparatus and system using thereof - Google Patents

Encoding apparatus and system using thereof Download PDF

Info

Publication number
JP2011155474A
JP2011155474A JP2010015492A JP2010015492A JP2011155474A JP 2011155474 A JP2011155474 A JP 2011155474A JP 2010015492 A JP2010015492 A JP 2010015492A JP 2010015492 A JP2010015492 A JP 2010015492A JP 2011155474 A JP2011155474 A JP 2011155474A
Authority
JP
Japan
Prior art keywords
frames
value
encoding
frame
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010015492A
Other languages
Japanese (ja)
Inventor
Ryuji Mano
竜二 眞野
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.)
Renesas Electronics Corp
Original Assignee
Renesas Electronics 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 Renesas Electronics Corp filed Critical Renesas Electronics Corp
Priority to JP2010015492A priority Critical patent/JP2011155474A/en
Publication of JP2011155474A publication Critical patent/JP2011155474A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an encoding apparatus which prevents the occurrence of remarkable quality differences between frames and a system using thereof. <P>SOLUTION: An amount-of-code calculating part 13 calculates the amount of codes for data encoding for each frame, and a bit rate management part 14 calculates and manages the difference value between a target value and the amount of codes, which is calculated by the amount-of-code calculating part 13 to assign the total storage value to a specified number of frames. Then, an encoding apparatus 15 encodes the specified number of frames to be the target value assigned by the bit rate management part 14. Thereby, the occurrence of remarkable quality differences between frames can be prevented. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、音声や映像などを符号化する技術に関し、特に、フレーム間の品質に差が生じることを防止した符号化装置およびそれを用いたシステムに関する。   The present invention relates to a technique for encoding audio, video, and the like, and more particularly, to an encoding apparatus that prevents a difference in quality between frames and a system using the same.

近年、音声や映像などを符号化する装置が種々開発されている。このような装置で用いられるMPEG(Moving Picture Experts Group)−AUDIO、MPEG−VIDEOなどの符号化方式においては、VBR(Variable Bit Rate)が用いられている。   In recent years, various apparatuses for encoding audio and video have been developed. VBR (Variable Bit Rate) is used in coding schemes such as MPEG (Moving Picture Experts Group) -AUDIO and MPEG-VIDEO used in such apparatuses.

VBRにおいては、現フレームの計画ビットレート(目標値)から実績ビットレート(算出符号量)を差し引いた差分値を計算して蓄積する。そして、その差分値が“0”よりも大きければ、すなわちビットレートに余剰ができた場合には、その余剰分を次のフレームの計画ビットレートに加算することによって、フレームごとにそのアドバンテージを付加する。これに関連する技術として、下記の特許文献1〜3に開示された発明がある。   In the VBR, a difference value obtained by subtracting the actual bit rate (calculated code amount) from the planned bit rate (target value) of the current frame is calculated and stored. If the difference value is larger than “0”, that is, if there is a surplus in the bit rate, the surplus is added to the planned bit rate of the next frame to add the advantage for each frame. To do. As technologies related to this, there are inventions disclosed in the following Patent Documents 1 to 3.

特許文献1は、入力映像に対し、シーンの特徴による著しいを画質劣化を抑え、映像全体において画質のばらつきを抑える符号化方法を提供することを目的とする。フレーム群の符号化の難易度をあらわす符号化難易度情報を算出するステップと、フレーム群を構成する各フレームの符号化の難易度をあらわす符号化難易度情報を算出するステップと、フレーム群の目標符号量を算出するステップと、フレーム群を構成する各フレームの目標符号量を算出するステップと、各フレームにおいて、算出の目標符号量以下に発生符号量を制御して符号化を行い、符号化データを出力する符号化ステップとからなる。これによって、動きの激しいシーン、シーンチェンジを含むシーン、動きの少ないシーンなどシーンの違いによる画質のばらつきを抑えることができると共に、シーンの変わり目などの著しい画質劣化を抑えることができる。   Patent Document 1 aims to provide an encoding method that suppresses image quality deterioration due to scene characteristics, and suppresses variations in image quality in the entire image, with respect to an input image. A step of calculating encoding difficulty level information representing the difficulty level of encoding of the frame group; a step of calculating encoding difficulty level information indicating the encoding difficulty level of each frame constituting the frame group; and A step of calculating a target code amount; a step of calculating a target code amount of each frame constituting the frame group; and encoding in each frame by controlling the generated code amount to be equal to or less than the calculated target code amount. Encoding step for outputting encoded data. As a result, it is possible to suppress variations in image quality due to scene differences such as scenes with intense motion, scenes with scene changes, and scenes with little motion, and it is possible to suppress significant image quality degradation such as scene transitions.

特許文献2は、量子化歪みを抑制しビットレートを平均値に保つことを目的とする。増加ビット量決定部は、ブロックタイプ判別部からの処理ブロックタイプがショートタイプである場合に、量子化に使用するための増加ビット量を決定する。ビット制御部は、決定された増加ビット量に平均ビット割当量を加算し、量子化に使用できる許容ビット量をビット量/誤差量制御部に出力すると共に、多重化部から得た前回の符号化フレームの処理時の使用ビット量と平均ビット割当量との差分を求める。そして、今までに蓄積されたビット量との加算を行い、その値が所定の上限値を超える場合に、蓄積ビット解放量を多重化部に出力する。   Patent Document 2 aims to suppress quantization distortion and keep the bit rate at an average value. The increase bit amount determination unit determines an increase bit amount to be used for quantization when the processing block type from the block type determination unit is a short type. The bit control unit adds the average bit allocation amount to the determined increase bit amount, outputs an allowable bit amount usable for quantization to the bit amount / error amount control unit, and also obtains the previous code obtained from the multiplexing unit. The difference between the used bit amount and the average bit allocation amount when processing a frame is obtained. Then, addition with the bit amount accumulated so far is performed, and when the value exceeds a predetermined upper limit value, the accumulated bit release amount is output to the multiplexing unit.

特許文献3は、符号化が困難なシーンが連続した場合における、割り当て可能なビット数の激減やフレームレートの急変による画質の劣化を防止し得る画像符号化装置などを提供することを目的とする。フレーム群目標ビット数導出部は、残りのフレームに割り当て可能なフレーム群単位の総ビット数を記憶部から読み出し、前フレームの符号化で使用した発生ビット数を引いて更新し、次フレーム目標ビット数導出部に送信する。次フレーム目標ビット数導出部は、受信した総ビット数とフレームレート値Rfを考慮した残りのフレーム数とに基づいて、次のフレームに割り当てるビット数の目標値を算出する。平均フレームビット数導出部は、過去のフレームに割り当てられたビット数の平均値を算出する。演算部は、算出されたビット数の平均値に所定の係数を掛け、これと上記のビット数の目標値とを比較し、値の大きい方を選択して量子化ステップ導出部に送信する。   Patent Document 3 aims to provide an image encoding device and the like that can prevent deterioration in image quality due to a drastic decrease in the number of assignable bits and a sudden change in frame rate when scenes that are difficult to encode are continuous. . The frame group target bit number deriving unit reads out the total number of bits in frame group units that can be allocated to the remaining frames from the storage unit, updates the subframe by subtracting the generated bit number used in the previous frame encoding, and Sent to the number derivation unit. The next frame target bit number deriving unit calculates a target value of the number of bits to be allocated to the next frame based on the received total number of bits and the remaining number of frames considering the frame rate value Rf. The average frame bit number deriving unit calculates an average value of the number of bits allocated to the past frame. The calculation unit multiplies the average value of the calculated number of bits by a predetermined coefficient, compares this with the target value of the number of bits, selects the larger value, and transmits it to the quantization step deriving unit.

特開平7−288810号公報JP 7-288810 A 特開2003−066998号公報JP 2003-066998 A 特開2004−007619号公報JP 2004-007619 A

上述のVBRにおいては、現フレームまでに余剰が蓄積されない限り、現フレームでアドバンテージが付加されないことから、ビットレートの増減分制御が効率よく行なわれているとは言えず、たとえば、全体ビットレートを厳格に保証する組み込み機器などにおいてはそれを保証することができなくなるといった問題がある。   In the above-described VBR, unless the surplus is accumulated until the current frame, the advantage is not added in the current frame, so it cannot be said that the bit rate increase / decrease control is performed efficiently. There is a problem that it cannot be assured in an embedded device that strictly guarantees.

また、総フレーム数が小さいデータを符号化する場合には、フレーム間の品質に顕著な差が生じる可能性が高い。たとえば、ビットレートの余剰分が使われないままフレームの符号化が終了してしまうことも起こり得る。   In addition, when data with a small total number of frames is encoded, there is a high possibility that a significant difference in quality between frames will occur. For example, it is possible that the encoding of the frame is finished without using the surplus bit rate.

本発明は、上記問題点を解決するためになされたものであり、その目的は、フレーム間の品質に顕著な差が生じることを防止した符号化装置およびそれを用いたシステムを提供することである。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide an encoding apparatus and a system using the same that prevent a significant difference in quality between frames. is there.

本発明の一実施例によれば、符号化装置が提供される。符号量算出部は、データを符号化したときの符号量をフレームごとに算出する。ビットレート管理部は、目標値と符号量算出部によって算出された符号量とから差分値を算出して管理し、蓄積合計値を所定数のフレームに割り当てる。そして、符号化部は、ビットレート管理部によって割り当てられた後の目標値となるように所定数のフレームを符号化する。   According to an embodiment of the present invention, an encoding device is provided. The code amount calculation unit calculates the code amount when data is encoded for each frame. The bit rate management unit calculates and manages a difference value from the target value and the code amount calculated by the code amount calculation unit, and assigns the accumulated total value to a predetermined number of frames. Then, the encoding unit encodes a predetermined number of frames so as to be the target value after being assigned by the bit rate management unit.

本発明の他の実施例によれば、音楽または映像データを符号化して記憶し、符号化された音楽または映像データを復号して再生するシステムが提供される。ハードディスクは、符号化データを記憶する。データ処理部は、音楽または映像データを符号化してハードディスクに記憶させる。また、データ処理部は、ハードディスクに記憶される符号化された音楽または映像データを復号して再生する。表示処理部は、データ処理部によって再生する音楽または映像データに関連する表示データを表示する。符号化装置は、音楽または映像データを符号化したときの符号量をフレームごとに算出する符号量算出部と、目標値と符号量算出部によって算出された符号量とから差分値を算出して管理し、蓄積合計値を所定数のフレームに割り当てるビットレート管理部と、ビットレート管理部によって割り当てられた後の目標値となるように所定数のフレームを符号化する符号化部とを含む。   According to another embodiment of the present invention, a system for encoding and storing music or video data and decoding and reproducing the encoded music or video data is provided. The hard disk stores encoded data. The data processing unit encodes music or video data and stores it in the hard disk. The data processing unit decodes and reproduces the encoded music or video data stored in the hard disk. The display processing unit displays display data related to music or video data reproduced by the data processing unit. The encoding device calculates a difference value from a code amount calculation unit that calculates a code amount when encoding music or video data for each frame and a code amount calculated by the target value and the code amount calculation unit. A bit rate management unit that manages and allocates the accumulated total value to a predetermined number of frames, and an encoding unit that encodes the predetermined number of frames so as to be a target value after being allocated by the bit rate management unit.

この実施例によれば、符号化部が、ビットレート管理部によって割り当てられた後の目標値となるように所定数のフレームを符号化するので、フレーム間の品質に顕著な差が生じることを防止することが可能となる。   According to this embodiment, the encoding unit encodes a predetermined number of frames so as to be the target value after being assigned by the bit rate management unit, so that there is a significant difference in quality between frames. It becomes possible to prevent.

本発明の第1の実施の形態における符号化装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the encoding apparatus in the 1st Embodiment of this invention. ビットレート管理部14の構成をさらに詳細に説明するためのブロック図である。3 is a block diagram for explaining the configuration of a bit rate management unit 14 in more detail. FIG. 本発明の第1の実施の形態における符号化装置の処理手順を説明するためのフローチャートである。It is a flowchart for demonstrating the process sequence of the encoding apparatus in the 1st Embodiment of this invention. 本発明の第2の実施の形態における符号化装置の処理手順を説明するためのフローチャートである。It is a flowchart for demonstrating the process sequence of the encoding apparatus in the 2nd Embodiment of this invention. 本発明の第3の実施の形態における携帯型音楽プレイヤーシステムの構成例を示すブロック図である。It is a block diagram which shows the structural example of the portable music player system in the 3rd Embodiment of this invention.

(第1の実施の形態)
図1は、本発明の第1の実施の形態における符号化装置の構成例を示すブロック図である。この符号化装置は、入力用のバッファとして用いられるSDRAM(Synchronous Dynamic Random Access Memory)11と、データ取得制御部12と、符号量算出部13と、ビットレート管理部14と、符号化部15と、出力用のバッファとして用いられるSDRAM16とを含む。
(First embodiment)
FIG. 1 is a block diagram showing a configuration example of an encoding apparatus according to the first embodiment of the present invention. This encoding apparatus includes an SDRAM (Synchronous Dynamic Random Access Memory) 11 used as an input buffer, a data acquisition control unit 12, a code amount calculation unit 13, a bit rate management unit 14, and an encoding unit 15. And SDRAM 16 used as an output buffer.

SDRAM11は、符号化するデータ、たとえば音楽データを一時的に保持するバッファである。また、SDRAM16は、符号化した後のデータを一時的に保持するバッファである。SDRAM11と16とは、異なる半導体メモリで構成されてもよいし、同じ半導体メモリで構成され、その領域を入力用バッファと出力用バッファとに分割して使用するようにしてもよい。   The SDRAM 11 is a buffer that temporarily stores data to be encoded, for example, music data. The SDRAM 16 is a buffer that temporarily holds the encoded data. SDRAMs 11 and 16 may be composed of different semiconductor memories, or may be composed of the same semiconductor memory, and the area may be divided into an input buffer and an output buffer.

データ取得制御部12は、ビットレート管理部14からの取り込み要求信号に応じて、SDRAM11に保持されるデータを1フレーム分だけ取得して、符号量算出部13に出力する。符号量算出部13は、データ取得制御部12から受けた1フレーム分のデータを符号化したときの符号量を算出する。   In response to the capture request signal from the bit rate management unit 14, the data acquisition control unit 12 acquires the data held in the SDRAM 11 for one frame and outputs it to the code amount calculation unit 13. The code amount calculation unit 13 calculates the code amount when the data for one frame received from the data acquisition control unit 12 is encoded.

ビットレート管理部14は、符号量算出部13によって算出された符号量と目標値とに基づいてビットレート(符号量)の余剰分を算出し、余剰分を蓄積することによって複数のフレームに分配する割当合計値を管理する。なお、目標値は予めSDRAM11などに格納されているものとする。   The bit rate management unit 14 calculates a surplus of the bit rate (code amount) based on the code amount calculated by the code amount calculation unit 13 and the target value, and distributes the surplus to a plurality of frames. Manage the assigned total value. Note that the target value is stored in advance in the SDRAM 11 or the like.

また、ビットレート管理部14は、次のフレームを取得するときに、データ取得制御部12に取り込み要求信号を出力する。さらに、ビットレート管理部14は、符号化部15によって実際に符号化されたときの符号量を受け、ビットレート(符号量)の余剰分を繰越量として管理し、それ以降のフレーム群に割り当てる機能も有している。   Also, the bit rate management unit 14 outputs a capture request signal to the data acquisition control unit 12 when acquiring the next frame. Further, the bit rate management unit 14 receives the code amount when it is actually encoded by the encoding unit 15, manages the surplus bit rate (code amount) as a carry-over amount, and assigns it to the subsequent frame groups It also has a function.

符号化部15は、ビットレート管理部14によって余剰分が割り当てられた後の目標値(符号量)となるようにフレームのデータを符号化し、符号化データをSDRAM16に書き込む。   The encoding unit 15 encodes the frame data so as to be the target value (code amount) after the surplus is allocated by the bit rate management unit 14, and writes the encoded data to the SDRAM 16.

図2は、ビットレート管理部14の構成をさらに詳細に説明するためのブロック図である。ビットレート管理部14は、閾値判定部21と、計画ビットレート管理部22とによって構成される。   FIG. 2 is a block diagram for explaining the configuration of the bit rate management unit 14 in more detail. The bit rate management unit 14 includes a threshold determination unit 21 and a planned bit rate management unit 22.

閾値判定部21は、そのフレームの目標値から符号量算出部13によって算出された符号量を差し引くことによりビットレート(符号量)の余剰分を算出し、差分値として蓄積する。そして、閾値判定部21は、蓄積された差分値(蓄積合計値)が閾値以下の場合には、次フレームのデータを取得して符号量算出部13に出力するように取り込み要求信号をデータ取得制御部12に出力する。なお、閾値判定部21が閾値を予め保持していてもよいし、閾値判定部21がSDRAM11などに格納された閾値を読み出すようにしてもよい。   The threshold determination unit 21 calculates the surplus of the bit rate (code amount) by subtracting the code amount calculated by the code amount calculation unit 13 from the target value of the frame, and accumulates it as a difference value. Then, when the accumulated difference value (accumulated total value) is equal to or smaller than the threshold value, the threshold determination unit 21 acquires the capture request signal so as to acquire the data of the next frame and output it to the code amount calculation unit 13. Output to the control unit 12. The threshold determination unit 21 may hold the threshold in advance, or the threshold determination unit 21 may read the threshold stored in the SDRAM 11 or the like.

計画ビットレート管理部22は、閾値判定部21から出力される蓄積合計値を管理しており、ビットレート(符号量)の余剰分が蓄積されている場合には1つまたは複数のフレームにその余剰分を割り当てる。   The planned bit rate management unit 22 manages the accumulated total value output from the threshold value determination unit 21. When the surplus bit rate (code amount) is accumulated, the plan bit rate management unit 22 stores the accumulated value in one or more frames. Allocate the surplus.

図3は、本発明の第1の実施の形態における符号化装置の処理手順を説明するためのフローチャートである。まず、データ取得制御部12は、SDRAM11に格納されたデータの中から1フレーム分のデータを取得し、符号量算出部13に出力する(S11)。そして、データ取得制御部12は、取得フレーム数Fを“1”だけインクリメントすることによって取得フレーム数をカウントする(S12)。   FIG. 3 is a flowchart for explaining the processing procedure of the coding apparatus according to the first embodiment of the present invention. First, the data acquisition control unit 12 acquires data for one frame from the data stored in the SDRAM 11 and outputs the data to the code amount calculation unit 13 (S11). Then, the data acquisition control unit 12 counts the number of acquired frames by incrementing the acquired frame number F by “1” (S12).

次に、符号量算出部13は、データ取得制御部12によって取得された1フレーム分のデータの符号量(B)を算出し、閾値判定部21にその符号量(B)を出力する(S13)。   Next, the code amount calculation unit 13 calculates the code amount (B) of the data for one frame acquired by the data acquisition control unit 12, and outputs the code amount (B) to the threshold determination unit 21 (S13). ).

閾値判定部21は、そのフレームの目標値(A)から符号量算出部13によって算出された符号量(B)を差し引くことにより、差分値(C)を計算する。そして、閾値判定部21は、蓄積合計値(D)に差分値(C)を加算する(S14)。   The threshold determination unit 21 calculates the difference value (C) by subtracting the code amount (B) calculated by the code amount calculation unit 13 from the target value (A) of the frame. Then, the threshold determination unit 21 adds the difference value (C) to the accumulated total value (D) (S14).

次に、閾値判定部21は、取得フレーム数Fが、取得可能なフレーム数Nと一致するか否かを判定する(S15)。なお、取得可能なフレーム数Nは、入力用バッファであるSDRAM11の容量に基づいて求められる。たとえば、SDRAM11に格納できるフレーム数をNとしてもよいし、符号量の余剰分の分配処理による処理負荷を考慮して、SDRAM11に格納できるフレーム数よりも小さい値をNとしてもよい。   Next, the threshold determination unit 21 determines whether or not the acquired frame number F matches the acquireable frame number N (S15). Note that the number N of frames that can be acquired is obtained based on the capacity of the SDRAM 11 that is an input buffer. For example, the number of frames that can be stored in the SDRAM 11 may be N, or a value that is smaller than the number of frames that can be stored in the SDRAM 11 may be set in consideration of the processing load due to the distribution processing of the excess code amount.

取得フレーム数Fが取得可能なフレーム数Nと一致する場合には(S15,Yes)、ステップS18に処理が進む。また、一致しない場合には(S15,No)、次の入力データがあるか否かが判定される(S16)。次の入力データがない場合には(S16,No)、ステップS18に処理が進む。   If the acquired frame number F matches the acquireable frame number N (S15, Yes), the process proceeds to step S18. If they do not match (S15, No), it is determined whether there is next input data (S16). If there is no next input data (S16, No), the process proceeds to step S18.

次の入力データがある場合(S16,Yes)、閾値判定部21は、次フレームのデータを取得して符号量算出部13に出力するように取り込み要求信号をデータ取得制御部12に出力する。そして、閾値判定部21は、蓄積合計値(D)が閾値よりも大きいか否かを判定する(S17)。この閾値として任意の値が設定されるが、たとえば蓄積合計値(D)をF個のフレームに割り当てる場合に、割り当て切れないような上限値が設定されるようにしてもよい。   When there is next input data (S16, Yes), the threshold determination unit 21 outputs a capture request signal to the data acquisition control unit 12 so as to acquire the data of the next frame and output it to the code amount calculation unit 13. Then, the threshold determination unit 21 determines whether or not the accumulated total value (D) is larger than the threshold (S17). An arbitrary value is set as the threshold value. For example, when the accumulated total value (D) is allocated to F frames, an upper limit value that cannot be allocated may be set.

蓄積合計値(D)が閾値よりも小さければ(S17,No)、ステップS11に戻って以降の処理を繰り返す。また、蓄積合計値(D)が閾値よりも大きければ(S17,Yes)、閾値判定部21は、蓄積合計値(D)が“0”よりも大きいか否かを判定する(S18)。   If the accumulated total value (D) is smaller than the threshold (S17, No), the process returns to step S11 and the subsequent processing is repeated. If the accumulated total value (D) is larger than the threshold (S17, Yes), the threshold determination unit 21 determines whether the accumulated total value (D) is larger than “0” (S18).

蓄積合計値(D)が“0”以下であれば(S18,No)、そのままステップS20に処理が進む。また、蓄積合計値(D)が“0”よりも大きければ(S18,Yes)、計画ビットレート管理部22は、取得したF個のフレーム全てに対して蓄積合計値(D)を均等に割り当て(S19)、ステップS20に処理が進む。   If the accumulated total value (D) is “0” or less (S18, No), the process proceeds to step S20 as it is. If the accumulated total value (D) is greater than “0” (S18, Yes), the planned bit rate management unit 22 assigns the accumulated total value (D) evenly to all the acquired F frames. (S19), the process proceeds to step S20.

ステップS20において、符号化部15は、計画ビットレート管理部22によって蓄積合計値(D)が均等に割り当てられた後の目標値(符号量)となるようにF個のフレームを符号化する。   In step S <b> 20, the encoding unit 15 encodes F frames so that the accumulated value (D) is evenly assigned by the planned bit rate management unit 22 to a target value (code amount).

なお、ここで説明した均等に割り当てるとは蓄積合計値(D)をF個のフレームに厳密に均等に割り当て方がある。また、例えばF個のフレームに対して5F+1の蓄積合計値(D)がある場合には、F個のフレームに5ずつ割り当て、残りをいずれか1個のフレームに割り当てることで、実質的に均一に割り当ててもよい。つまり、本実施例の均等とは狭義の意味ではなく、実質的に均等な割り当て方を含む広義の意味である。   Note that evenly allocated as described herein is a method of allocating the accumulated total value (D) to F frames strictly evenly. Also, for example, if there is an accumulated total value (D) of 5F + 1 for F frames, it is substantially uniform by assigning 5 to F frames and assigning the rest to any one frame. May be assigned. That is, the equality of the present embodiment does not mean in a narrow sense but has a broad meaning including a substantially equal allocation method.

そして、閾値判定部21は、F個のフレームについて目標値(A)から実際の符号量(B)を差し引いた差分値(C)を算出し、それらを合計する。そして、蓄積合計値(D)に差分値(C)を加算する(S21)。最後に、取得フレームのカウンタFをリセットして(S22)、処理を終了する。   Then, the threshold determination unit 21 calculates a difference value (C) obtained by subtracting the actual code amount (B) from the target value (A) for the F frames, and sums them. Then, the difference value (C) is added to the accumulated total value (D) (S21). Finally, the acquisition frame counter F is reset (S22), and the process ends.

以上説明したように、本実施の形態における符号化装置によれば、計画ビットレート管理部22が蓄積合計値(D)をF個のフレームに均等に割り当てるようにしたので、フレーム間の品質に顕著な差が生じることを防止することができ、ビットレートの増減分制御を効率よく行なうことが可能となった。   As described above, according to the coding apparatus in the present embodiment, the planned bit rate management unit 22 assigns the accumulated total value (D) evenly to the F frames, so that the quality between frames is improved. A significant difference can be prevented from occurring, and the bit rate increase / decrease control can be efficiently performed.

(第2の実施の形態)
本発明の第2の実施の形態における符号化装置の構成は、図1および図2に示す第1の実施の形態における符号化装置の構成と同様である。したがって、重複する構成および機能の詳細な説明は繰り返さない。
(Second Embodiment)
The configuration of the encoding apparatus according to the second embodiment of the present invention is the same as the configuration of the encoding apparatus according to the first embodiment shown in FIGS. Therefore, detailed description of overlapping configurations and functions will not be repeated.

図4は、本発明の第2の実施の形態における符号化装置の処理手順を説明するためのフローチャートである。まず、データ取得制御部12は、SDRAM11に格納されたデータの中から1フレーム分のデータを取得し、符号量算出部13に出力する(S31)。そして、データ取得制御部12は、取得フレーム数Fを“1”だけインクリメントすることによって取得フレーム数をカウントする(S32)。   FIG. 4 is a flowchart for explaining the processing procedure of the encoding apparatus according to the second embodiment of the present invention. First, the data acquisition control unit 12 acquires data for one frame from the data stored in the SDRAM 11, and outputs the data to the code amount calculation unit 13 (S31). Then, the data acquisition control unit 12 counts the number of acquired frames by incrementing the acquired frame number F by “1” (S32).

次に、符号量算出部13は、データ取得制御部12によって取得された1フレーム分のデータの符号量(B)を算出し、閾値判定部21にその符号量(B)を出力する(S33)。   Next, the code amount calculation unit 13 calculates the code amount (B) of the data for one frame acquired by the data acquisition control unit 12, and outputs the code amount (B) to the threshold determination unit 21 (S33). ).

閾値判定部21は、そのフレームの目標値(A)から符号量算出部13によって算出された符号量(B)を差し引くことにより、差分値(C)を計算する。そして、閾値判定部21は、蓄積合計値(D)に差分値(C)を加算する(S34)。   The threshold determination unit 21 calculates the difference value (C) by subtracting the code amount (B) calculated by the code amount calculation unit 13 from the target value (A) of the frame. Then, the threshold determination unit 21 adds the difference value (C) to the accumulated total value (D) (S34).

次に、閾値判定部21は、取得フレーム数Fが、取得可能なフレーム数Nと一致するか否かを判定する(S35)。取得フレーム数Fが取得可能なフレーム数Nと一致する場合には(S35,Yes)、ステップS38に処理が進む。また、一致しない場合には(S35,No)、次の入力データがあるか否かが判定される(S36)。次の入力データがない場合には(S36,No)、ステップS38に処理が進む。   Next, the threshold determination unit 21 determines whether or not the acquired frame number F matches the acquireable frame number N (S35). If the acquired frame number F matches the acquireable frame number N (S35, Yes), the process proceeds to step S38. If they do not match (S35, No), it is determined whether there is next input data (S36). If there is no next input data (S36, No), the process proceeds to step S38.

次の入力データがある場合(S36,Yes)、閾値判定部21は、次フレームのデータを取得して符号量算出部12に出力するように取り込み要求信号をデータ取得制御部12に出力する。そして、閾値判定部21は、蓄積合計値(D)が閾値よりも大きいか否かを判定する(S37)。   When there is next input data (S 36, Yes), the threshold determination unit 21 outputs a capture request signal to the data acquisition control unit 12 so as to acquire data of the next frame and output it to the code amount calculation unit 12. Then, the threshold determination unit 21 determines whether or not the accumulated total value (D) is larger than the threshold (S37).

蓄積合計値(D)が閾値よりも小さければ(S37,No)、ステップS31に戻って以降の処理を繰り返す。また、蓄積合計値(D)が閾値よりも大きければ(S37,Yes)、閾値判定部21は、差分値(C)が負になるフレームがあるか否かを判定する(S38)。   If the accumulated total value (D) is smaller than the threshold value (S37, No), the process returns to step S31 and the subsequent processing is repeated. If the accumulated total value (D) is larger than the threshold value (S37, Yes), the threshold value determination unit 21 determines whether there is a frame in which the difference value (C) is negative (S38).

差分値(C)が負になるフレームがなければ(S38,No)、計画ビットレート管理部22は、取得したF個のフレーム全てに対して蓄積合計値(D)を均等に割り当て(S39)、ステップS41に処理が進む。   If there is no frame in which the difference value (C) is negative (S38, No), the planned bit rate management unit 22 evenly assigns the accumulated total value (D) to all the acquired F frames (S39). The process proceeds to step S41.

また、差分値(C)が負になるフレームがあれば(S38,Yes)、計画ビットレート管理部22は、取得したF個のフレームのうち差分値(C)が負になるフレームのみに対して蓄積合計値(D)を均等に割り当て(S40)、ステップS41に処理が進む。   In addition, if there is a frame in which the difference value (C) is negative (S38, Yes), the planned bit rate management unit 22 applies only to a frame in which the difference value (C) is negative among the acquired F frames. Thus, the accumulated total value (D) is equally allocated (S40), and the process proceeds to step S41.

ステップS41において、符号化部15は、計画ビットレート管理部22によって蓄積合計値(D)が割り当てられた後の目標値(符号量)となるようにF個のフレームを符号化する。   In step S <b> 41, the encoding unit 15 encodes the F frames so that the target value (code amount) after the accumulated total value (D) is assigned by the planned bit rate management unit 22.

そして、閾値判定部21は、F個のフレームについて目標値(A)から実際の符号量(B)を差し引いた差分値(C)を算出し、それらを合計する。そして、蓄積合計値(D)に差分値(C)を加算する(S42)。最後に、取得フレームのカウンタFをリセットして(S43)、処理を終了する。   Then, the threshold determination unit 21 calculates a difference value (C) obtained by subtracting the actual code amount (B) from the target value (A) for the F frames, and sums them. Then, the difference value (C) is added to the accumulated total value (D) (S42). Finally, the acquisition frame counter F is reset (S43), and the process ends.

以上説明したように、本実施の形態における符号化装置によれば、計画ビットレート管理部22が蓄積合計値(D)を差分値(C)が負になるフレームに均等に割り当てるようにしたので、第1の実施の形態において説明した効果に加えて、目標値よりも実際の符号量が多くなっているフレームに対して優先的に余剰分の符号量を割り当てることが可能となった。   As described above, according to the encoding apparatus in the present embodiment, the planned bit rate management unit 22 assigns the accumulated total value (D) evenly to frames in which the difference value (C) is negative. In addition to the effects described in the first embodiment, it is possible to preferentially allocate a surplus code amount to a frame in which the actual code amount is larger than the target value.

(第3の実施の形態)
第3の実施の形態は、第1および第2の実施の形態において説明した符号化装置を用いた携帯型音楽プレイヤーシステムに関するものである。
(Third embodiment)
The third embodiment relates to a portable music player system using the encoding device described in the first and second embodiments.

図5は、本発明の第3の実施の形態における携帯型音楽プレイヤーシステムの構成例を示すブロック図である。この携帯型音楽プレイヤーシステムは、システム全体の制御を行なうCPU(Central Processing Unit)41と、ROM(Read Only Memory)42と、RAM43と、ハードディスク(HDD)44と、入力処理部45と、外部IF46と、データ処理部47と、スピーカ48と、表示処理部49と、ディスプレイ50と、メディアドライブ51とを含む。   FIG. 5 is a block diagram showing a configuration example of a portable music player system according to the third embodiment of the present invention. This portable music player system includes a central processing unit (CPU) 41, a read only memory (ROM) 42, a RAM 43, a hard disk (HDD) 44, an input processing unit 45, and an external IF 46 that control the entire system. A data processing unit 47, a speaker 48, a display processing unit 49, a display 50, and a media drive 51.

CPU41は、内部バスを介してROM42に記憶される各種プログラムを読み出してRAM43に転送し、そのプログラムを実行することによって携帯型音楽プレイヤーシステム全体の制御を行なう。また、CPU41は、所定の演算処理を行なうことによって入力処理部45から受けたコマンドに応じた処理を実行する。   The CPU 41 reads out various programs stored in the ROM 42 via the internal bus, transfers them to the RAM 43, and executes the programs to control the entire portable music player system. In addition, the CPU 41 performs a process according to a command received from the input processing unit 45 by performing a predetermined arithmetic process.

外部IF46は、ユーザにより操作ボタンの操作を検知して、その操作に応じた操作入力信号を入力処理部45に出力する。入力処理部45は、外部IF46から受けた操作入力信号に応じて所定の処理を行なって操作入力信号をコマンドに変換し、内部バスを介してCPU41にコマンドを転送する。   The external IF 46 detects the operation of the operation button by the user, and outputs an operation input signal corresponding to the operation to the input processing unit 45. The input processing unit 45 performs predetermined processing according to the operation input signal received from the external IF 46 to convert the operation input signal into a command, and transfers the command to the CPU 41 via the internal bus.

データ処理部47は、メディアドライブ51から与えられた音楽データを圧縮符号化してハードディスク44に記憶させる。また、データ処理部47は、ユーザによる操作に応じて音楽データの再生処理を行なう。   The data processing unit 47 compresses and encodes the music data given from the media drive 51 and stores it in the hard disk 44. In addition, the data processing unit 47 performs music data reproduction processing in accordance with a user operation.

ユーザによる操作に応じて音楽データの再生を行なう場合、CPU41は、音楽データ再生のコマンドをデータ処理部47に出力すると共に、ハードディスク44内の指定された音楽データを読み出してデータ処理部47に転送する。データ処理部47は、ハードディスク44から転送された音楽データを復号して音楽データを再生し、スピーカ48に出力させる。第1および第2の実施の形態において説明した符号化装置は、データ処理部47内に配置される。   When playing music data in response to a user's operation, the CPU 41 outputs a music data playing command to the data processing unit 47 and reads designated music data in the hard disk 44 and transfers it to the data processing unit 47. To do. The data processing unit 47 decodes the music data transferred from the hard disk 44 to reproduce the music data, and causes the speaker 48 to output it. The encoding device described in the first and second embodiments is arranged in the data processing unit 47.

また、CPU41は、RAM43に記憶される各種プログラムを実行することによって表示データを生成して表示処理部49に転送したり、ハードディスク44に記憶される音楽関連情報(音楽タイトル)を読み出して表示処理部49に転送したりする。表示処理部49は、CPU41から受けた表示データに応じてディスプレイ50に音楽関連情報などの表示を行なわせる。   Further, the CPU 41 generates display data by executing various programs stored in the RAM 43 and transfers the display data to the display processing unit 49, or reads out music-related information (music title) stored in the hard disk 44 for display processing. Forward to the unit 49. The display processing unit 49 causes the display 50 to display music related information and the like according to the display data received from the CPU 41.

以上説明したように、本実施の形態における携帯型音楽プレイヤーシステムによれば、データ処理部47に第1および第2の実施の形態において説明した符号化装置を配置するようにしたので、第1および第2の実施の形態において説明した効果を奏するシステムを構築することが可能となった。   As described above, according to the portable music player system in the present embodiment, the encoding device described in the first and second embodiments is arranged in the data processing unit 47. It is also possible to construct a system that achieves the effects described in the second embodiment.

なお、本実施の形態では音楽プレイヤーシステム(音楽データの符号化)について説明したが、映像再生システム(映像データの符号化)においても第1および第2の実施の形態において説明した符号化装置を同様に適用することが可能である。   In the present embodiment, the music player system (encoding of music data) has been described. However, the encoding apparatus described in the first and second embodiments is also used in the video reproduction system (encoding of video data). It is possible to apply similarly.

今回開示された実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

11,16 SDRAM、12 データ取得制御部、13 符号量算出部、14 ビットレート管理部、15 符号化部、21 閾値判定部、22 計画ビットレート管理部、41 CPU、42 ROM、43 RAM、44 HDD、45 入力処理部、46 外部IF、47 データ処理部、48 スピーカ、49 表示処理部、50 ディスプレイ、51 メディアドライブ。   11, 16 SDRAM, 12 Data acquisition control unit, 13 Code amount calculation unit, 14 Bit rate management unit, 15 Coding unit, 21 Threshold determination unit, 22 Planned bit rate management unit, 41 CPU, 42 ROM, 43 RAM, 44 HDD, 45 input processing unit, 46 external IF, 47 data processing unit, 48 speaker, 49 display processing unit, 50 display, 51 media drive.

Claims (6)

データを符号化したときの符号量をフレームごとに算出する算出手段と、
目標値と前記算出手段によって算出された符号量とから差分値を算出して管理し、蓄積合計値を所定数のフレームに割り当てる管理手段と、
前記管理手段によって割り当てられた後の目標値となるように前記所定数のフレームを符号化する符号化手段とを含む符号化装置。
A calculation means for calculating a code amount when data is encoded for each frame;
Managing means for calculating and managing a difference value from the target value and the code amount calculated by the calculating means, and assigning the accumulated total value to a predetermined number of frames;
An encoding device including encoding means for encoding the predetermined number of frames so as to be a target value after being assigned by the management means.
前記管理手段は、差分値を算出したフレームの全てに対して前記蓄積合計値を均等に割り当てる、請求項1記載の符号化装置。   The encoding apparatus according to claim 1, wherein the management unit assigns the accumulated total value evenly to all frames for which difference values have been calculated. 前記管理手段は、前記蓄積合計値が所定の閾値よりも大きくなるときのフレーム数を求め、該フレーム数に対応するフレームの全てに対して前記蓄積合計値を均等に割り当てる、請求項2記載の符号化装置。   The said management means calculates | requires the number of frames when the said accumulation total value becomes larger than a predetermined threshold value, and allocates the said accumulation total value equally with respect to all the frames corresponding to this frame number. Encoding device. 前記管理手段は、差分値が負になるフレームに対してのみ前記蓄積合計値を均等に割り当てる、請求項1記載の符号化装置。   The encoding apparatus according to claim 1, wherein the management unit assigns the accumulated total value evenly to only frames having a negative difference value. 前記管理手段は、前記蓄積合計値が所定の閾値よりも大きくなるときのフレーム数を求め、該フレーム数に対応するフレームの中の差分値が負になるフレームに対してのみ前記蓄積合計値を均等に割り当てる、請求項4記載の符号化装置。   The management means obtains the number of frames when the accumulated total value is larger than a predetermined threshold value, and calculates the accumulated total value only for a frame in which a difference value in a frame corresponding to the frame number is negative. The encoding device according to claim 4, wherein the encoding device is equally allocated. 音楽または映像データを符号化して記憶し、符号化された音楽または映像データを復号して再生するシステムであって、
符号化データを記憶する記憶手段と、
前記音楽または映像データを符号化して前記記憶手段に記憶させる符号化装置と、
前記記憶手段に記憶される符号化された音楽または映像データを復号して再生する再生手段と、
前記再生手段によって再生する音楽または映像データに関連する表示データを表示する表示手段とを含み、
前記符号化装置は、前記音楽または映像データを符号化したときの符号量をフレームごとに算出する算出手段と、
目標値と前記算出手段によって算出された符号量とから差分値を算出して管理し、蓄積合計値を所定数のフレームに割り当てる管理手段と、
前記管理手段によって割り当てられた後の目標値となるように前記所定数のフレームを符号化する符号化手段とを含む、システム。
A system for encoding and storing music or video data, decoding and reproducing the encoded music or video data,
Storage means for storing encoded data;
An encoding device that encodes the music or video data and stores the encoded data in the storage unit;
Playback means for decoding and playing back the encoded music or video data stored in the storage means;
Display means for displaying display data related to music or video data reproduced by the reproduction means,
The encoding device includes: a calculating unit that calculates a code amount for each frame when the music or video data is encoded;
Managing means for calculating and managing a difference value from the target value and the code amount calculated by the calculating means, and assigning the accumulated total value to a predetermined number of frames;
Encoding means for encoding the predetermined number of frames so as to be a target value after being assigned by the management means.
JP2010015492A 2010-01-27 2010-01-27 Encoding apparatus and system using thereof Pending JP2011155474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010015492A JP2011155474A (en) 2010-01-27 2010-01-27 Encoding apparatus and system using thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010015492A JP2011155474A (en) 2010-01-27 2010-01-27 Encoding apparatus and system using thereof

Publications (1)

Publication Number Publication Date
JP2011155474A true JP2011155474A (en) 2011-08-11

Family

ID=44541114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010015492A Pending JP2011155474A (en) 2010-01-27 2010-01-27 Encoding apparatus and system using thereof

Country Status (1)

Country Link
JP (1) JP2011155474A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11196410A (en) * 1997-12-25 1999-07-21 Victor Co Of Japan Ltd Method and device for dynamic picture encoding and dynamic picture signal record medium
JP2009130810A (en) * 2007-11-27 2009-06-11 Casio Comput Co Ltd Coding rate controller, coding rate control method, coding rate control program, moving picture recording device
WO2009148076A1 (en) * 2008-06-05 2009-12-10 日本電信電話株式会社 Video encoding amount control method, video encoding amount control device, video encoding amount control program, and computer readable recording medium on which said program is recorded

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11196410A (en) * 1997-12-25 1999-07-21 Victor Co Of Japan Ltd Method and device for dynamic picture encoding and dynamic picture signal record medium
JP2009130810A (en) * 2007-11-27 2009-06-11 Casio Comput Co Ltd Coding rate controller, coding rate control method, coding rate control program, moving picture recording device
WO2009148076A1 (en) * 2008-06-05 2009-12-10 日本電信電話株式会社 Video encoding amount control method, video encoding amount control device, video encoding amount control program, and computer readable recording medium on which said program is recorded

Similar Documents

Publication Publication Date Title
KR101135506B1 (en) Information processing apparatus and method, recording medium, and program
US6452610B1 (en) Method and apparatus for displaying graphics based on frame selection indicators
KR100982516B1 (en) Method of managing data recording medium included in video contents recording apparatus, and video contents recording apparatus therefor
JP6225446B2 (en) Moving image data distribution apparatus, method, program, and system
JP2007036666A (en) Contents distribution system, client, and client program
CN101689137B (en) Use the digital data management in shared storage pond
TW201902217A (en) Decoder resource allocating method and associated apparatus
CN109257631A (en) Video carousel playback method, device, computer equipment and storage medium
JP2006074461A (en) Information processing device and method, recording medium and program
JP2006050531A (en) Information recording apparatus
JP3837889B2 (en) Encoding method and encoding apparatus
JP3817728B2 (en) Information recording / reproducing apparatus and information recording / reproducing method
JP4061511B2 (en) Encoding apparatus and encoding method
JP3066301B2 (en) Recording medium reproducing apparatus, reproducing method, recording method, and recording apparatus
JP2011155474A (en) Encoding apparatus and system using thereof
JP5088215B2 (en) Information processing system, information processing method, and program
JPH10304372A (en) Image coding method and device, and image transmission method
JP2005173775A (en) Data processor and method therefor, and encoding device
JP5171666B2 (en) Video / audio recording device
US8358702B2 (en) Information processing system and information processing method, and program
JP4207098B2 (en) Encoding control apparatus, encoding control method, encoding apparatus, and encoding method
JP3443391B2 (en) Digital decoding method
JPH10290429A (en) Data compressor
JP5132789B2 (en) Video encoding apparatus and method
JP4385637B2 (en) Video / audio recording / reproducing apparatus and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120724

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131022

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140304