JP5139187B2 - Image compression device - Google Patents

Image compression device Download PDF

Info

Publication number
JP5139187B2
JP5139187B2 JP2008186781A JP2008186781A JP5139187B2 JP 5139187 B2 JP5139187 B2 JP 5139187B2 JP 2008186781 A JP2008186781 A JP 2008186781A JP 2008186781 A JP2008186781 A JP 2008186781A JP 5139187 B2 JP5139187 B2 JP 5139187B2
Authority
JP
Japan
Prior art keywords
code
unit
stream
image compression
control
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.)
Active
Application number
JP2008186781A
Other languages
Japanese (ja)
Other versions
JP2010028409A (en
JP2010028409A5 (en
Inventor
昌敏 高田
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.)
Hitachi Kokusai Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2008186781A priority Critical patent/JP5139187B2/en
Publication of JP2010028409A publication Critical patent/JP2010028409A/en
Publication of JP2010028409A5 publication Critical patent/JP2010028409A5/ja
Application granted granted Critical
Publication of JP5139187B2 publication Critical patent/JP5139187B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

本発明は、動画像圧縮装置に関わり、特に圧縮された符号化ストリーム中に所定の符号化挿入処理を行う符号挿入回路に関する。   The present invention relates to a moving image compression apparatus, and more particularly to a code insertion circuit that performs a predetermined coding insertion process in a compressed coded stream.

図3を用いて一般的な符号化処理に関して説明する。図3は、H.264符号化方式の画像圧縮装置の概略構成を示すブロック図である。図3のブロック図では、説明を簡便に行うために基本的な機能のみを記してある。   A general encoding process will be described with reference to FIG. FIG. 1 is a block diagram illustrating a schematic configuration of an H.264 encoding image compression apparatus. In the block diagram of FIG. 3, only basic functions are shown for easy explanation.

図3において、予測処理部5は、入力された映像信号BSを加算器6の被減算信号入力端子に出力すると共に、入力された映像信号について、発生する符号量の予測を行い、予測符号量として符号化制御部7に出力する。
加算器6に入力された映像信号は、離散コサイン変換(DCT)部8、量子化部9、逆量子化部10、逆DCT部11を通ることで生成された予測画像との差分を加算器6により演算子し、DCT変換部8で周波数成分に変換される。この時、符号化制御部7は、予測処理部5で計算された予測符号量を元に発生符号量を予測し、量子化係数として量子化部9に出力する。量子化部9は、入力された量子化係数に基づいて量子化する符号量を制御し、DCT部8から入力された映像信号の量子化を行い、符号量が制御されて量子化されたデータをエントロピー符号化部12に出力する。
In FIG. 3, the prediction processing unit 5 outputs the input video signal BS to the subtracted signal input terminal of the adder 6, predicts the amount of code generated for the input video signal, and generates the prediction code amount Is output to the encoding control unit 7 as follows.
The video signal input to the adder 6 adds the difference from the predicted image generated by passing through the discrete cosine transform (DCT) unit 8, the quantization unit 9, the inverse quantization unit 10, and the inverse DCT unit 11. An operator is operated by 6 and converted into a frequency component by the DCT converter 8. At this time, the encoding control unit 7 predicts the generated code amount based on the prediction code amount calculated by the prediction processing unit 5 and outputs the prediction code amount to the quantization unit 9 as a quantization coefficient. The quantization unit 9 controls the amount of code to be quantized based on the input quantization coefficient, quantizes the video signal input from the DCT unit 8, and controls the amount of code to quantize the data Is output to the entropy encoding unit 12.

エントロピー符号化部12は、入力されたデータを可変長符号化して、ビットストリーム変換部13に出力する。ビットストリーム変換部13は、入力されたデータに、ヘッダ等の制御情報を付加し、変動吸収バッファ14に出力する。最後に変動吸収バッファ14は、数フレーム分の画像を蓄積し平均化した後にビットストリームSQとして出力する。
エントロピー符号化部は、また、符号化時の発生符号量を符号化制御部7に出力し、ビットストリーム変換部13も、また、符号挿入処理後の発生符号量を符号化制御部7に出力する。
符号化制御部7は、適応的に量子化の制御をおこなうことでビットストリームのデータ速度を一定とすることができる。
The entropy encoding unit 12 performs variable length encoding on the input data and outputs the encoded data to the bit stream conversion unit 13. The bit stream conversion unit 13 adds control information such as a header to the input data and outputs it to the fluctuation absorbing buffer 14. Finally, the fluctuation absorbing buffer 14 accumulates and averages several frames of images and outputs them as a bit stream SQ.
The entropy encoding unit also outputs the generated code amount at the time of encoding to the encoding control unit 7, and the bit stream conversion unit 13 also outputs the generated code amount after the code insertion process to the encoding control unit 7. To do.
The encoding control unit 7 can keep the bitstream data rate constant by adaptively controlling the quantization.

ここで、ビットストリーム変換部13における符号挿入の動作について、図4によって説明する。図4は、ビットストリーム変換部内で制御コード等を付加されたのちの符号化ストリームに制御コードと同じ特定のコードが存在する場合の処理の概要を示したものである。
H.264符号化方式では、“000000h”から“000003h”までの3バイトのコードがそれに該当し、符号化ストリーム中に前記4種類のコードがストリームヘッダ等に付加される制御コード以外に存在した場合、2バイト目と3バイト目に“03h”を挿入することでデコーダ側において制御コードと誤認識するのを防いでいる。
デコーダ側では、“000003h”を検出した時に、“03h”を取り除く処理を行うだけで元の符号化ストリームに戻すことができる。
なお、画像を圧縮装置については、例えば、特許文献1〜3に記載されている。
Here, the operation of code insertion in the bit stream conversion unit 13 will be described with reference to FIG. FIG. 4 shows an outline of processing when the same specific code as the control code exists in the encoded stream after the control code or the like is added in the bit stream conversion unit.
H. In the H.264 encoding method, a 3-byte code from “000000h” to “000003h” corresponds to this, and when the four types of codes exist in the encoded stream other than the control code added to the stream header or the like, By inserting “03h” into the second and third bytes, it is possible to prevent the decoder from erroneously recognizing the control code.
On the decoder side, when “000003h” is detected, it is possible to return to the original encoded stream simply by performing a process of removing “03h”.
The image compression device is described in, for example, Patent Documents 1 to 3.

特開2006−121531号公報JP 2006-121531 A 特開2004−180238号公報JP 2004-180238 A 特開平09−247466号公報JP 09-247466 A

図4のように“00h”が連続するような符号化ストリームでは、2バイトに1バイトの割合で“03h”が挿入されることになり瞬時的には1.5倍の符号が発生する。
エントロピー符号化部12では、量子化された符号に応じて処理量が異なるため、処理遅延量が変動し易く、生成された符号量も大きく変動する。一般的なエンコーダ(符号化部)であれば、映像信号の入力からビットストリーム出力までのエンコード処理遅延量は数フレーム程度としており、その間に処理遅延量の変動や発生符号量の変動を変動吸収バッファ14にて吸収可能である。
しかし、圧縮伝送された後の映像信号を用いてカメラの遠隔操作を行うような用途においては、映像信号の入力から圧縮及び伸長後の出力映像までの遅延時間が1フレーム未満であることが要求される。
In an encoded stream in which “00h” continues as shown in FIG. 4, “03h” is inserted at a rate of 1 byte per 2 bytes, and a code of 1.5 times is generated instantaneously.
In the entropy encoding unit 12, the processing amount varies depending on the quantized code, so the processing delay amount is likely to vary, and the generated code amount also varies greatly. In the case of a general encoder (encoding unit), the encoding processing delay amount from the input of the video signal to the output of the bit stream is about several frames, and the fluctuation of the processing delay amount and the fluctuation of the generated code amount are absorbed during this period. It can be absorbed by the buffer 14.
However, in applications where remote control of the camera is performed using the video signal after being compressed and transmitted, the delay time from the input of the video signal to the output video after being compressed and expanded is required to be less than one frame. Is done.

処理が破たんすることなくレート制御を行うためには、エンコーダとデコーダの配分を同一とすると、映像入力からビットストリーム出力までのエンコード遅延は、半分の1フィールド(15ms)未満で行うことが必要となる。
このように、低遅延で符号化処理を行うためには、エントロピー符号化部12とビットストリーム変換部13での処理遅延変動を極力減らすことも重要である。
しかし、通常であれば数フレーム時間を要して発生符号量を平坦にならしているものを、例えば1画面の数分の1の単位時間内での発生符号量が平坦となるようにするとする。このためには、発生符号量の予測を高精度に行った後、エントロピー符号化部12とビットストリーム変換部13より発生符号量を数μ〜数十μ秒程度の短時間で符号化制御部7にフィードバックして補正を行う必要がある。
入力映像がHDTV画質である場合、補正をしなければならないデータ量は、入力でおよそ1.5Gbpsある。データ量は、最終的には、数分の1から百分の1程度に圧縮されるのであるが、圧縮過程においてはエントロピー符号化部12の出力で数Gbps、ビットストリーム変換部13では、更にその1.5倍の帯域が瞬間的には計算上必要になり、装置構成上の大きな負担となっている。
In order to perform rate control without breaking the processing, if the allocation of the encoder and the decoder is the same, the encoding delay from the video input to the bit stream output must be performed in less than half of one field (15 ms). Become.
Thus, in order to perform encoding processing with low delay, it is also important to reduce processing delay fluctuations in the entropy encoding unit 12 and the bit stream conversion unit 13 as much as possible.
However, if the generated code amount is flattened in a unit time that is a fraction of one screen, for example, if the generated code amount is flattened over a period of several frames, it is normal. To do. For this purpose, after predicting the generated code amount with high accuracy, the encoded control unit can generate the generated code amount from the entropy encoding unit 12 and the bit stream conversion unit 13 in a short time of about several μ to several tens μ μs. It is necessary to perform correction by feeding back to 7.
If the input video has HDTV image quality, the amount of data that must be corrected is approximately 1.5 Gbps at the input. The amount of data is finally compressed to a fraction to a hundred. However, in the compression process, the output of the entropy encoder 12 is several Gbps, and the bitstream converter 13 further A band of 1.5 times that is instantaneously required for calculation, which is a heavy burden on the device configuration.

本発明は、上記問題点を改善し、低遅延で圧縮符号化が可能な動画像圧縮装置の符号挿入回路を提供することを目的とする。   It is an object of the present invention to provide a code insertion circuit for a moving picture compression apparatus that can improve the above-described problems and can perform compression coding with low delay.

上記の目的を達成するために、本発明の画像圧縮装置は、動画像圧縮を行う画像圧縮装置において、 符号化制御部と、 ビットストリーム変換部と、 前記ビットストリーム変換部から入力される圧縮された符号化ストリームの中から制御コードと同じデータ系列を検出し、挿入する符号量を計算し、計算された符号量を前記符号化制御部に出力し、かつ、圧縮された符号化ストリームのスタートコードを検出しスタートコード検出フラグを符号化ストリームと共に出力するスタートコード検出部と、 前記スタートコード検出部から入力される符号化ストリームとスタートコード検出フラグとを、所定の時間または所定の符号量遅延して出力する変動吸収バッファと、 前記変動吸収バッファから入力される符号化ストリームの中に、前記変動吸収バッファから入力されるスタートコード検出フラグに基づいて、制御コードと同じデータ系列が生成される時に所定の符号挿入処理を行う符号挿入部を備えたものである。   In order to achieve the above object, an image compression apparatus according to the present invention is an image compression apparatus that performs moving image compression, and includes a coding control unit, a bit stream conversion unit, and a compression input from the bit stream conversion unit. The same data sequence as the control code is detected from the encoded stream, the code amount to be inserted is calculated, the calculated code amount is output to the encoding control unit, and the compressed encoded stream is started. A start code detection unit that detects a code and outputs a start code detection flag together with the encoded stream; and the encoded stream and start code detection flag input from the start code detection unit are delayed by a predetermined time or a predetermined code amount. And the variable absorption buffer that is output in the encoded stream that is input from the variable absorption buffer. A code insertion unit is provided that performs a predetermined code insertion process when the same data series as the control code is generated based on the start code detection flag input from the motion absorption buffer.

本発明によれば、符号挿入部の処理において、最初に制御コードと同一のコードの有無から符号挿入処理後の演算のみを行い、高速にレート制御を行うことができる。従って、変動吸収バッファにて平坦化された符号化ストリームに対し、符号挿入処理を行うことが可能となった。このため、符号挿入処理で発生する1.5倍の帯域を持つことなく画像データ処理ができ、低遅延で圧縮符号化が可能となった。   According to the present invention, in the processing of the code insertion unit, it is possible to perform rate control at high speed by first performing only the computation after the code insertion processing from the presence or absence of the same code as the control code. Therefore, it is possible to perform code insertion processing on the encoded stream flattened by the fluctuation absorbing buffer. For this reason, image data processing can be performed without having a band of 1.5 times generated in the code insertion processing, and compression encoding can be performed with low delay.

以下に図を用いて発明の詳細を記す。図1は、本発明の符号挿入回路の第1の実施例の構成を示すブロック図である。図1は、図3の構成の動画像圧縮装置のビットストリーム変換部13と変動吸収バッファ部14において、ビットストリーム変換部13をビットストリーム変換部1に替え、変動吸収バッファ部14を変動吸収バッファ部3aに替え、ビットストリーム変換部1の出力側と変動吸収バッファ部3aの入力側との間にスタートコード(start code)検出部2aを追加し、かつ、変動吸収バッファ部3aの出力側に符号挿入部4aを追加したものである。なお、図1では、図3のビットストリーム変換部13より前段の構成要素を省略している。   Details of the invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a first embodiment of the code insertion circuit of the present invention. FIG. 1 shows a bit stream conversion unit 13 and a fluctuation absorption buffer unit 14 of the moving picture compression apparatus having the configuration shown in FIG. 3, in which the bit stream conversion unit 13 is replaced with the bit stream conversion unit 1 and In place of the unit 3a, a start code detection unit 2a is added between the output side of the bit stream conversion unit 1 and the input side of the fluctuation absorption buffer unit 3a, and the output side of the fluctuation absorption buffer unit 3a A code insertion unit 4a is added. In FIG. 1, constituent elements in the previous stage from the bit stream conversion unit 13 in FIG. 3 are omitted.

図1の第1の実施例は、動画像圧縮を行う画像圧縮装置において、圧縮された符号化ストリーム中に制御コードと同じデータ系列が生成される時に、所定の符号挿入処理を行う画像圧縮装置であって、ビットストリーム変換部から入力された符号化ストリームの中から、制御コードと同じデータ系列を検出して、挿入する符号量を計算し、符号化制御部に出力するスタートコード検出部と、所定の時間内に発生する符号量の発生符号または所定の符号量の発生符号を蓄積する変動吸収バッファと、変動吸収バッファの出力データを入力され、制御コード以外のデータに対し特定の符号挿入処理を行う符号挿入部を具備し、符号挿入の有無にかかわらず瞬時的な帯域を増大させることなく符号挿入処理を行うことが可能な画像圧縮装置である。   The first embodiment of FIG. 1 is an image compression apparatus that performs a predetermined code insertion process when the same data sequence as a control code is generated in a compressed encoded stream in an image compression apparatus that performs moving image compression. A start code detection unit that detects the same data sequence as the control code from the encoded stream input from the bit stream conversion unit, calculates the amount of code to be inserted, and outputs the code amount to the encoding control unit; A code for generating a code amount generated within a predetermined time or a variable absorption buffer for accumulating a generated code of a predetermined code amount, and the output data of the variable absorption buffer are input, and a specific code is inserted into data other than the control code The image compression apparatus includes a code insertion unit that performs processing, and can perform code insertion processing without increasing the instantaneous band regardless of whether or not the code is inserted.

即ち、図1において、ビットストリーム変換部1は、生成した符号化ストリームS1、及び制御コードの位置を示す符号化ストリームS1と同期したマスク信号M1を、スタートコード検出部2aに出力する。スタートコード検出部2aは、入力された符号化ストリームS1中から、制御コード以外の制御コードと同一の符号を検出し、かつ発生符号量を演算し、符号化制御部7へ出力する。更に、スタートコード検出部2aは、符号化ストリームS2と符号化ストリームS2に同期したスタートコード(start code)検出フラグF1とを変動吸収バッファ部3aに出力する。
符号化ストリームS2とスタートコード検出フラグF1を入力された変動吸収バッファ部3aは、所定の遅延時間あるいは所定の符号量だけ遅延して、遅延した符号化ストリームS3とスタートコード検出フラグF2を符号挿入部4aに出力する。
符号化ストリームS3とスタートコード検出フラグF2を入力された符号挿入部4aは、スタートコード検出フラグF2に従い、符号化ストリームS3に符号を挿入し、ビットストリームS0として出力する。
That is, in FIG. 1, the bit stream conversion unit 1 outputs the generated encoded stream S1 and the mask signal M1 synchronized with the encoded stream S1 indicating the position of the control code to the start code detection unit 2a. The start code detection unit 2a detects the same code as the control code other than the control code from the input encoded stream S1, calculates the generated code amount, and outputs it to the encoding control unit 7. Further, the start code detection unit 2a outputs the encoded stream S2 and the start code (start code) detection flag F1 synchronized with the encoded stream S2 to the fluctuation absorbing buffer unit 3a.
The fluctuation absorbing buffer unit 3a to which the encoded stream S2 and the start code detection flag F1 are input is delayed by a predetermined delay time or a predetermined code amount, and the delayed encoded stream S3 and the start code detection flag F2 are inserted. To the unit 4a.
The code insertion unit 4a to which the encoded stream S3 and the start code detection flag F2 are input inserts a code into the encoded stream S3 in accordance with the start code detection flag F2, and outputs it as a bit stream S0.

上述の第1の実施例による符号挿入回路における符号挿入処理において、スタートコード検出部2aは、発生する符号量のみをあらかじめ演算し、演算した結果得られた発生符号量を符号化制御部7にフィードバックする。符号化制御部7は、これによって、レート制御を行い、変動吸収バッファ部において平坦化された符号化ストリームが出力される。
このように、図1の第1の実施例によれば、変動吸収後に符号挿入処理を行うので、従来の処理では大きな帯域を確保する必要があったのに対し、帯域の増大を防ぐことが可能となる。
In the code insertion process in the code insertion circuit according to the first embodiment described above, the start code detection unit 2a calculates only the generated code amount in advance, and the generated code amount obtained as a result of the calculation is sent to the encoding control unit 7. give feedback. Thus, the encoding control unit 7 performs rate control, and outputs an encoded stream flattened in the fluctuation absorbing buffer unit.
As described above, according to the first embodiment of FIG. 1, since the code insertion process is performed after the fluctuation is absorbed, it is necessary to secure a large band in the conventional process, but it is possible to prevent an increase in the band. It becomes possible.

第2の実施例は、図1に係る別の実施例である。第2の実施例では、動画像圧縮を行う画像圧縮装置において、圧縮された符号化ストリーム中に制御コードと同じデータ系列が生成される時に、所定の符号挿入処理を行う符号挿入回路であって、ビットストリーム変換部から、符号化ストリーム及び符号化ストリーム中の制御コードの位置を示す符号化ストリームと同期したマスク信号が入力され、入力されたマスク信号に基づいて、符号化ストリームの制御コードを除く符号化ストリームを抽出し、抽出された符号化ストリームの制御コードを除く符号化ストリームの中から、制御コードと同一のコードを検出して、挿入する符号量を計算し、符号化制御部に出力すると共に、符号化ストリームとスタートコード検出フラグとを同期して変動吸収バッファに出力するスタートコード検出部と、符号化ストリームと符号化ストリームに同期して検出されたスタートコード検出フラグとを夫々入力され、所定の時間の符号量または所定の符号量を蓄積して、蓄積した符号化ストリームと符号化ストリームに同期したスタートコード検出フラグとを符号挿入部に出力する変動吸収バッファと、入力された符号化ストリームに特定の符号挿入処理を行い符号化ストリームとして出力する符号挿入部を具備し、符号挿入の有無にかかわらず瞬時的な帯域を増大させることなく符号挿入処理を行うことが可能な画像圧縮装置である。 The second embodiment is another embodiment according to FIG. The second embodiment is a code insertion circuit that performs a predetermined code insertion process when the same data sequence as a control code is generated in a compressed encoded stream in an image compression apparatus that performs moving image compression. The bit stream conversion unit receives the encoded stream and a mask signal synchronized with the encoded stream indicating the position of the control code in the encoded stream. Based on the input mask signal, the control code of the encoded stream is input. The encoded stream to be extracted is extracted, the same code as the control code is detected from the encoded stream excluding the control code of the extracted encoded stream , the code amount to be inserted is calculated, and the encoding control unit A start code detection unit that outputs an encoded stream and a start code detection flag to a fluctuation absorbing buffer in synchronization with the output The encoded stream and the start code detection flag detected in synchronization with the encoded stream are respectively input, the code amount for a predetermined time or the predetermined code amount is stored, and the stored encoded stream and encoded stream are stored. A fluctuation absorbing buffer that outputs a start code detection flag synchronized with the code insertion unit to the code insertion unit, and a code insertion unit that performs a specific code insertion process on the input encoded stream and outputs it as an encoded stream. It is an image compression apparatus capable of performing code insertion processing without increasing the instantaneous band regardless of presence or absence.

即ち、第2の実施例は、図1において、符号化ストリームS1とマスク信号M1を入力されたスタートコード検出部2bは、符号化ストリームS1に同期して符号挿入の有無をスタートコード検出フラグF1として変動吸収バッファ3bに出力する。変動吸収バッファ3bは、入力された符号化ストリームS2とスタートコード検出フラグF1を同時に遅延させ、符号化ストリームS3と符号化ストリームS3と同期したスタートコード検出フラグF2とを符号挿入部4bに出力する。後段の符号挿入部4bは、スタートコード検出フラグF2に従い、符号化ストリームS3に符号挿入を行い、符号化ストリームS0を出力する。これによって、タイミング調整も少なく、メモリの増加量も符号化ストリーム1バイト当たり1ビットで済ませることが可能である。そして、符号挿入時は、変動吸収バッファからの読み出しを一時停止させるだけで済み、符号挿入部で特殊な処理を行う必要はない。   In other words, in the second embodiment, in FIG. 1, the start code detection unit 2b, to which the encoded stream S1 and the mask signal M1 are input, determines whether or not a code is inserted in synchronization with the encoded stream S1. Is output to the fluctuation absorbing buffer 3b. The fluctuation absorbing buffer 3b delays the input encoded stream S2 and the start code detection flag F1 simultaneously, and outputs the encoded stream S3 and the start code detection flag F2 synchronized with the encoded stream S3 to the code insertion unit 4b. . The subsequent code insertion unit 4b inserts a code into the encoded stream S3 according to the start code detection flag F2, and outputs the encoded stream S0. As a result, the timing adjustment is small and the amount of memory increase can be reduced to 1 bit per byte of the encoded stream. At the time of code insertion, it is only necessary to temporarily stop reading from the fluctuation absorbing buffer, and there is no need to perform special processing at the code insertion unit.

図2は、本発明の符号挿入回路の第3の実施例の構成を示すブロック図である。図2は、図1の構成の符号挿入回路に対して、スタートコード(start code)検出部2aをスタートコード(start code)検出部2bに替え、変動吸収バッファ部3aを変動吸収バッファ部3bに替え、符号挿入部4aを符号挿入部4bに替え、更に、ビットストリーム変換部1からスタートコード検出部2bへの出力ではなく、ビットストリーム変換部1からを変動吸収バッファ部3bに符号化ストリームS1とマスク信号M1を出力するようにしたものである。   FIG. 2 is a block diagram showing the configuration of the third embodiment of the code insertion circuit of the present invention. 2, the start code detector 2a is replaced with a start code detector 2b, and the fluctuation absorbing buffer 3a is replaced with a fluctuation absorbing buffer 3b with respect to the code insertion circuit of FIG. In place of the code insertion unit 4b, the code insertion unit 4a is replaced with the code insertion unit 4b, and the encoded stream S1 is not transmitted from the bit stream conversion unit 1 to the start code detection unit 2b but from the bit stream conversion unit 1 to the fluctuation absorption buffer unit 3b. And a mask signal M1 are output.

図2の第3の実施例は、動画像圧縮を行う画像圧縮装置において、圧縮された符号化ストリーム中に制御コードと同じデータ系列が生成される時に、所定の符号挿入処理を行う符号挿入回路であって、ビットストリーム変換部から符号化ストリームと符号化ストリーム中の制御コードの位置を示し、符号化ストリームに同期したマスク信号とが入力され、制御コードを除く符号化ストリームの中から制御コードと同一のコードを検出して、挿入する符号量のみを計算し、計算した符号量を符号化制御部に出力するスタートコード検出部と、ビットストリーム変換部から符号化ストリームと符号化ストリーム中の制御コードの位置を示し、符号化ストリームに同期したマスク信号とが入力され、所定の時間または所定の符号量を蓄積して、蓄積した符号化ストリームと符号化ストリームに同期したマスク信号とを符号挿入部に出力する変動吸収バッファと、符号化ストリームと符号化ストリームに同期したマスク信号とを入力され、再度制御コードの検出と特定の符号挿入処理を行う符号挿入部を具備し、符号挿入の有無にかかわらず瞬時的な帯域を増大させることなく符号挿入処理を行うことが可能な符号挿入回路である。   The third embodiment of FIG. 2 is a code insertion circuit that performs a predetermined code insertion process when the same data sequence as a control code is generated in a compressed encoded stream in an image compression apparatus that performs moving image compression. The bit stream conversion unit indicates the encoded stream and the position of the control code in the encoded stream, the mask signal synchronized with the encoded stream is input, and the control code from the encoded stream excluding the control code is input. The start code detection unit that detects the same code and calculates only the amount of code to be inserted and outputs the calculated code amount to the encoding control unit, and the encoded stream and the encoded stream in the encoded stream from the bit stream conversion unit Indicates the position of the control code, receives a mask signal synchronized with the encoded stream, accumulates a predetermined time or a predetermined amount of code, and stores it The detection buffer and the detection of the control code are specified again. The fluctuation absorbing buffer that outputs the encoded stream and the mask signal synchronized with the encoded stream to the code insertion unit and the mask signal synchronized with the encoded stream are input. And a code insertion circuit that can perform the code insertion process without increasing the instantaneous band regardless of whether or not the code is inserted.

即ち、第3の実施例は、図2において、ビットストリーム変換部1は、生成した符号化ストリームS1と制御コードの位置を示すマスク信号M1とをスタートコード検出部2bと変動吸収バッファ部3bとに出力する。スタートコード検出部2bは、入力された符号化ストリームS1中から、制御コード以外の制御コードと同一の符号を検出し、かつ発生符号量を演算し、符号化制御部7へ出力する。
符号化ストリームS1とマスク信号M1を入力された変動吸収バッファ部3bは、所定の遅延時間あるいは所定の符号量だけ遅延して、遅延した符号化ストリームS4とマスク信号M2を符号挿入部4bに出力する。
符号化ストリームS4とマスク信号M2を入力された符号挿入部4bは、マスク信号M2に基づいて、符号化ストリームS4に符号を挿入し、ビットストリームS0′として出力する。
That is, in the third embodiment, in FIG. 2, the bit stream conversion unit 1 uses the generated encoded stream S1 and the mask signal M1 indicating the position of the control code to the start code detection unit 2b and the fluctuation absorption buffer unit 3b. Output to. The start code detector 2 b detects the same code as the control code other than the control code from the input encoded stream S 1, calculates the generated code amount, and outputs it to the encoding controller 7.
The fluctuation absorbing buffer unit 3b to which the encoded stream S1 and the mask signal M1 are input is delayed by a predetermined delay time or a predetermined code amount, and the delayed encoded stream S4 and the mask signal M2 are output to the code insertion unit 4b. To do.
The code insertion unit 4b to which the encoded stream S4 and the mask signal M2 are input inserts a code into the encoded stream S4 based on the mask signal M2, and outputs it as a bit stream S0 ′.

図2の第3の実施例においては、制御コードをマスクするマスク信号を変動吸収バッファで遅延させ、符号挿入部で再度制御コードの検出と挿入を行うことでも同様に処理が可能である。
なお、マスク信号は、変動吸収バッファで同時に遅延させる必要はなく、マスクが必要な符号化ストリームが記憶される変動吸収バッファの先頭アドレスとマスクが必要なデータ長のみを符号挿入部に出力し、変動吸収バッファからの読み出し時に先頭アドレスとマスクするデータ長より符号挿入処理を停止するようにすれば、変動吸収バッファを増加することなく符号挿入部の処理のみで可能である。
In the third embodiment shown in FIG. 2, the same processing can be performed by delaying the mask signal for masking the control code by the fluctuation absorbing buffer and detecting and inserting the control code again by the code insertion unit.
The mask signal does not need to be delayed at the same time by the fluctuation absorbing buffer, and only the start address of the fluctuation absorbing buffer storing the encoded stream that needs to be masked and the data length that requires the mask are output to the code insertion unit, If the code insertion process is stopped based on the head address and the data length to be masked when reading from the fluctuation absorbing buffer, only the processing of the code inserting section is possible without increasing the fluctuation absorbing buffer.

上記実施例では、動画像を圧縮する形式は、H.264符号化方式であった。しかし、MPEG4符号化方式等であっても良い。   In the above embodiment, the format for compressing moving images is H.264. H.264 encoding method. However, an MPEG4 encoding method or the like may be used.

本発明の符号挿入回路の一実施例の構成を示すブロック図。The block diagram which shows the structure of one Example of the code | symbol insertion circuit of this invention. 本発明の符号挿入回路の一実施例の構成を示すブロック図。The block diagram which shows the structure of one Example of the code | symbol insertion circuit of this invention. H.264符号化方式の画像圧縮装置の概略構成を示すブロック図。H. 1 is a block diagram showing a schematic configuration of an H.264 encoding image compression apparatus. 符号挿入回路の動作を説明するための図。The figure for demonstrating operation | movement of a code | symbol insertion circuit.

符号の説明Explanation of symbols

1:ビットストリーム変換部、 2a、2b:スタートコード検出部、 3a、3b:変動吸収バッファ部、 4a、4b:符号挿入部、 5:予測処理部、6:加算器、 7:符号化制御部、 8:DCT変換部、 9:量子化部、 10:逆量子化部、 11:逆DCT変換部、 12:エントロピー符号化部、 13:ビットストリーム変換部、 14:変動吸収バッファ部。   1: bit stream conversion unit, 2a, 2b: start code detection unit, 3a, 3b: fluctuation absorption buffer unit, 4a, 4b: code insertion unit, 5: prediction processing unit, 6: adder, 7: coding control unit 8: DCT conversion unit, 9: quantization unit, 10: inverse quantization unit, 11: inverse DCT conversion unit, 12: entropy encoding unit, 13: bit stream conversion unit, 14: fluctuation absorption buffer unit.

Claims (2)

動画像圧縮を行う画像圧縮装置において、
エントロピー符号化されたデータに制御コードを含むヘッダを付加して得られる符号化ストリームと、付加した該制御コードの位置を示すマスク信号とを出力するストリーム変換部と、
記マスク信号に基づいて、前記ストリーム変換部から入力された符号化ストリームの中から、前記付加した制御コード以外の該制御コードと同じデータ系列を検出し、該同じデータ系列の途中に挿入すべき所定符号の符号量を計算して出力するスタートコード検出部と、
記符号化ストリームを蓄積し、発生符号量を平坦にして出力する変動吸収バッファと、
前記変動吸収バッファから入力される符号化ストリームに対して、該符号化ストリームと同期した前記マスク信号もしくは前記スタートコード検出部の検出の結果に基づいて、前記同じデータ系列中に前記定符号の挿入処理を行い、ビットストリームとして出力する符号挿入部と、
前記エントロピー符号化されたデータの符号化時の符号発生量と、前記スタートコード検出部で計算された符号量との入力を受け、ビットストリームのデータ速度を一定とする制御を行う符号化制御部と、
を備えたことを特徴とする画像圧縮装置。
In an image compression apparatus that performs moving image compression,
A stream conversion unit that outputs an encoded stream obtained by adding a header including a control code to entropy-encoded data, and a mask signal indicating the position of the added control code;
Before SL based on the mask signal, from the input encoded stream from the stream conversion unit, to detect the same data sequence as the control code other than the control code the additional, in the middle of of identity Ji data series A start code detector that calculates and outputs a code amount of a predetermined code to be inserted;
A fluctuation absorbing buffer before accumulating Kifu Goka stream, and outputs the flat amount of generated code,
The coded stream inputted from said fluctuation absorbing buffer, based on the result of detection of said mask signal or the start code detection unit which is synchronized with the coded stream, the plant constant in the middle of a the same data series There line insertion process of sign-a sign insertion unit that outputs as a bit stream,
An encoding control unit that receives an input of a code generation amount at the time of encoding the entropy-encoded data and a code amount calculated by the start code detection unit, and performs control to make the data rate of the bitstream constant When,
An image compression apparatus comprising:
請求項1記載の画像圧縮装置において、該画像圧縮装置はH.264符号化方式により1フレームの時間の半分未満の遅延時間で符号化し前記ビットストリームを出力するものであり、前記制御コードは、000000h”から“000003h”までの3バイトのコードであり、前記符号挿入処理は、該制御コードの2バイト目と3バイト目の間に前記所定符号として“03h”を挿入することを特徴とする画像圧縮装置。 The image compression apparatus according to claim 1, wherein the image compression apparatus is an H.264 standard. 264 encoding scheme delay time of less than half of one frame time by at are those encoded outputs the bit stream, the control code is a 3-byte code to "000000h" from "000003h", In the image compression apparatus, the code insertion process inserts “03h” as the predetermined code between the second and third bytes of the control code.
JP2008186781A 2008-07-18 2008-07-18 Image compression device Active JP5139187B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008186781A JP5139187B2 (en) 2008-07-18 2008-07-18 Image compression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008186781A JP5139187B2 (en) 2008-07-18 2008-07-18 Image compression device

Publications (3)

Publication Number Publication Date
JP2010028409A JP2010028409A (en) 2010-02-04
JP2010028409A5 JP2010028409A5 (en) 2011-09-08
JP5139187B2 true JP5139187B2 (en) 2013-02-06

Family

ID=41733827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008186781A Active JP5139187B2 (en) 2008-07-18 2008-07-18 Image compression device

Country Status (1)

Country Link
JP (1) JP5139187B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3408617B2 (en) * 1994-03-16 2003-05-19 富士通株式会社 Synchronous word multiplexing method for image encoded data
JP2001157161A (en) * 1999-11-25 2001-06-08 Matsushita Electric Ind Co Ltd Device and method for editing image and program recording medium
JP2003061095A (en) * 2001-08-08 2003-02-28 Matsushita Electric Ind Co Ltd Image encoder and image-encoding method
JP3586235B2 (en) * 2001-11-09 2004-11-10 株式会社東芝 MPEG stream data recording apparatus, MPEG stream data recording method, and MPEG stream data editing method
JP4229149B2 (en) * 2006-07-13 2009-02-25 ソニー株式会社 Video signal processing device, video signal processing method, video signal encoding device, video signal encoding method, and program

Also Published As

Publication number Publication date
JP2010028409A (en) 2010-02-04

Similar Documents

Publication Publication Date Title
US8384830B2 (en) Pre-alarm video buffer
US20160029020A1 (en) Low latency video encoder
US8300959B2 (en) Transport stream structure of image data having additional information inserted, and method and apparatus for transmission and reception thereof
EP2224745B1 (en) Temporal scalability in case of scene changes
EP2039167B1 (en) Video coding apparatus and video coding method
JP2008252262A (en) Coder and change point detection method for moving images
KR20180101607A (en) An encoding apparatus including a video switching apparatus and an encoding method including a video switching detecting method
JP5139187B2 (en) Image compression device
JP2001268575A (en) Image change detector, image change detecting method, image encoder and information recording medium in which program for detecting image change is computer readably recorded
JP3299185B2 (en) Encoding device
JPH114260A (en) Device and method for encoding and encoding program recorded readable recording medium
KR101944231B1 (en) An encoding apparatus including a video switching apparatus and an encoding method including a video switching detecting method
JP2010239433A (en) Video coding apparatus, method and program
JP6182888B2 (en) Image encoding device
JP2010213187A (en) Video coding transmission apparatus
JP5189618B2 (en) Video encoding method, video encoding apparatus, and video encoding program
KR101732995B1 (en) System with minimized streaming latency and the method using thereof
JP2007336005A (en) Image coding apparatus and image coding method
JP4878051B2 (en) Encoded stream transmission method, encoded stream transmission apparatus, encoded stream transmission control program, and recording medium therefor
JP4373283B2 (en) Video / audio decoding method, video / audio decoding apparatus, video / audio decoding program, and computer-readable recording medium recording the program
JP2006033868A (en) Image processing apparatus and method
JP2005072842A (en) Device and method for controlling memory address in moving image encoding device, and the moving image encoding device
KR20060099805A (en) Apparatus for bit stream encoding / decoding
JPH1066075A (en) Decoding start controller and decoder
KR0128884B1 (en) Device for controlling the buffer in the motion picture processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110715

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110721

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120605

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120726

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121106

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121115

R150 Certificate of patent or registration of utility model

Ref document number: 5139187

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20151122

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250