JP2011004285A - Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus - Google Patents

Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus Download PDF

Info

Publication number
JP2011004285A
JP2011004285A JP2009147022A JP2009147022A JP2011004285A JP 2011004285 A JP2011004285 A JP 2011004285A JP 2009147022 A JP2009147022 A JP 2009147022A JP 2009147022 A JP2009147022 A JP 2009147022A JP 2011004285 A JP2011004285 A JP 2011004285A
Authority
JP
Japan
Prior art keywords
image data
processing unit
encoding
edge
unit
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
JP2009147022A
Other languages
Japanese (ja)
Inventor
Hiroshi Nakakita
宏 中北
Kazuyuki Mabuchi
和幸 眞渕
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2009147022A priority Critical patent/JP2011004285A/en
Publication of JP2011004285A publication Critical patent/JP2011004285A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image data encoding device for avoiding the fact that compression processing reducing a code amount of image encoding data concentrates in a specific block when an image data is encoded in each block, and for avoiding an overflow of an output buffer memory storing the image encoding data while suppressing a deterioration in image quality.SOLUTION: In an edge component detection processing section 110, an edge component in the horizontal direction of an input image and an edge component in the vertical direction of the input image are detected and then detection results by a horizontal edge addition buffer 111 and a vertical edge addition buffer 113 are integrated in each 8×8 pixel blocks of a JPEG processing unit. A future residual capacity of an output buffer memory is predicted from an addition result of edges and a residual capacity of a JPEG output buffer memory 60. In a quantization processing section 30a, a quantization table with a quantization coefficient changed based on a prediction result and the addition result of the edges is used.

Description

本発明は、画像データ符号化装置、画像データ符号化方法、画像データ符号量制御方法、および電子情報機器に関し、特に、画像データを符号化する画像データ符号化装置および画像データ符号化方法、画像データを符号化する際に画像符号化データの符号量を制御する画像データ符号量制御方法、並びに、この画像データ符号化装置からの符号化データを、記憶手段に記憶させるか、伝送処理するか、または表示部に表示処理する、デジタルカメラやカメラ付き携帯電話装置などの電子情報機器に関するものである。   The present invention relates to an image data encoding device, an image data encoding method, an image data code amount control method, and an electronic information device, and more particularly, to an image data encoding device and image data encoding method for encoding image data, and an image Image data code amount control method for controlling the code amount of image encoded data when data is encoded, and whether encoded data from this image data encoding device is stored in a storage means or is transmitted. The present invention also relates to an electronic information device such as a digital camera or a camera-equipped mobile phone device that performs display processing on a display unit.

例えば、CCD(Charge−Coupled Device)などの固体撮像装置によって撮像された画像データをメモリカード、磁気ディスク、磁気テープなどの可読記録媒体にデジタルデータとして記録させる場合、そのデータ量は膨大なものとなる。   For example, when image data captured by a solid-state imaging device such as a CCD (Charge-Coupled Device) is recorded as digital data on a readable recording medium such as a memory card, a magnetic disk, or a magnetic tape, the amount of data is enormous. Become.

また、デジタルスチルカメラなどにおいては、撮影された画像データを1枚のメモリカード、磁気ディスク、または1巻の磁気テープなどに保存するため、これらの可読記録媒体に規定枚数分の画像を記録させる必要がある。これと同様に、デジタルVTR、デジタル動画ファイルなどにおいて、動画像を記録させる場合に、1フレーム当たりの画像データ量によらず、1フレーム毎の画像データを記録する必要がある。1秒間に30駒の場合には1秒間に30枚分(30フレーム分)の画像データを記憶する。   In a digital still camera or the like, the captured image data is stored on a single memory card, magnetic disk, or one volume of magnetic tape, so that a prescribed number of images are recorded on these readable recording media. There is a need. Similarly, when recording a moving image in a digital VTR, a digital moving image file, etc., it is necessary to record image data for each frame regardless of the amount of image data per frame. In the case of 30 frames per second, 30 sheets of image data (30 frames) are stored per second.

したがって、静止画像および動画像によらず、画像データを圧縮してデータ量を規定容量(画像メモリ容量や画像通信容量など)内に収まるようにする必要がある。これは、データ伝送装置が所定の伝送能力を有する場合は、画像データのデータ量がそれ以上あればデータ伝送装置によるデータ伝送が間に合わなくなるし、画像メモリが所定のメモリ容量を有する場合は、該メモリ容量以上の画像データがあれば、該メモリ容量以上のデータをこの画像メモリに記憶できなくなるからである。   Therefore, it is necessary to compress the image data so that the amount of data falls within a specified capacity (image memory capacity, image communication capacity, etc.) regardless of still images and moving images. This is because if the data transmission device has a predetermined transmission capability, the data transmission by the data transmission device will not be in time if the data amount of the image data is larger, and if the image memory has a predetermined memory capacity, This is because if there is image data exceeding the memory capacity, data exceeding the memory capacity cannot be stored in the image memory.

このための画像データの圧縮方式として、従来から、直交画像符号化と可変長符号化とを組み合わせた画像データ符号化方式が用いられている。   Conventionally, an image data encoding method combining orthogonal image encoding and variable length encoding has been used as a compression method for image data.

この画像データ符号化方式では、まず、画像データ(各画素に対応する画素値)を所定の大きさのブロック、例えば8画素×8画素のブロックに対応するように分割して、分割されたブロック毎に直交変換として、画像データに対する2次元のDCT(Discrete Cosine Translation:離散コサイン変換)処理が行なわれる。これにより、画像データ(たとえば、輝度データ)は、時系列のデータから、周波数系列のデータ(周波数成分)である直流成分と交流成分に変換される。   In this image data encoding method, first, image data (pixel value corresponding to each pixel) is divided so as to correspond to a block of a predetermined size, for example, a block of 8 pixels × 8 pixels, and divided blocks. As each orthogonal transform, two-dimensional DCT (Discrete Cosine Translation) processing is performed on the image data. Thereby, image data (for example, luminance data) is converted from time-series data into a DC component and an AC component, which are frequency-sequence data (frequency components).

例えば、8画素×8画素のブロックに対応する画像データ(64個の画素値)は、8×8のマトリックスに対応する64個の周波数成分に変換される。このマトリックスでは、原点位置(0,0)には直流成分DCの値を示すデータが、位置(0,7)には横軸方向の交流成分ACの最大周波数値を示すデータが、位置(7,0)には縦軸方向の交流成分ACの最大周波数値を示すデータが、位置(7,7)には斜め方向の交流成分ACの最大周波数値を示すデータがそれぞれ生成される。また、上記マトリックスの上記4つの位置以外の中間位置では、それぞれの座標位置により関係付けられる方向における周波数成分が、原点側から順次高い周波数のものが出現するように生成される。   For example, image data (64 pixel values) corresponding to an 8 × 8 pixel block is converted into 64 frequency components corresponding to an 8 × 8 matrix. In this matrix, data indicating the value of the DC component DC is at the origin position (0, 0), and data indicating the maximum frequency value of the AC component AC in the horizontal axis direction is at position (7, 7). , 0) generates data indicating the maximum frequency value of the AC component AC in the vertical axis direction, and generates data indicating the maximum frequency value of the AC component AC in the oblique direction at position (7, 7). Further, at intermediate positions other than the four positions of the matrix, the frequency components in the direction related by the respective coordinate positions are generated so that the ones having higher frequencies sequentially appear from the origin side.

また、各座標位置のデータ(周波数成分)を各周波数成分毎の量子化幅で割ることにより、各周波数成分に応じた線形量子化が行われる。   Also, linear quantization corresponding to each frequency component is performed by dividing the data (frequency component) at each coordinate position by the quantization width for each frequency component.

その後、量子化された値に対して、可変長符号化としてハフマン符号化が行なわれる。このとき、直流成分DCに関しては、近傍のブロックの直流成分DCとの差分値がグループ番号(付加ビット数)と付加ビットで表されてハフマン符号化される。得られた符号語と付加ビットとを合わせることにより符号化データが生成される。   Thereafter, the quantized value is subjected to Huffman coding as variable length coding. At this time, with respect to the direct current component DC, a difference value from the direct current component DC of a neighboring block is represented by a group number (additional bit number) and additional bits and is Huffman encoded. Encoded data is generated by combining the obtained codeword and additional bits.

つまり、DC成分の値は、隣接するブロックのDC成分値と近い場合が多いため、直前ブロックのDC成分値との差分をハフマン符号化する。そのため、差分値は0に近い値の出現頻度が高くなることから、まず絶対値によるグループ分けを行い、絶対値が小さいものほど短いハフマン符号を割り当てる。次に、グループ内の値の区別を行うための付加ビットを追加する。   That is, since the DC component value is often close to the DC component value of the adjacent block, the difference from the DC component value of the immediately preceding block is Huffman encoded. For this reason, since the appearance frequency of the difference values close to 0 increases, grouping is first performed based on absolute values, and shorter Huffman codes are assigned to smaller absolute values. Next, an additional bit for distinguishing values in the group is added.

また、交流成分ACに関しては、ジグザグスキャンと呼ばれる低い周波数成分から高い周波数成分へのスキャンが行われ、無効(値が「0」)の成分が連続する個数と、それに続く有効な成分の値のグループ番号とから2次元ハフマン符号化が行われる。得られた符号語と付加ビットとを合わせることにより符号化データが生成される。   As for the AC component AC, a scan from a low frequency component to a high frequency component called a zigzag scan is performed, and the number of consecutive invalid components (value is “0”) and the value of the subsequent valid component are calculated. Two-dimensional Huffman coding is performed from the group number. Encoded data is generated by combining the obtained codeword and additional bits.

このハフマン符号化では、フレーム画像当たりの直流成分DCおよび交流成分ACの各々のデータ分布において、符号化対象となる画素値の複数のレベルのうちの発生頻度がピークであるレベルを中心として、この中心のレベルに近いレベルの画素値ほど、符号化したときのデータのビット数が少なくなり、上記中心のレベルから離れたレベルの画素値ほど、符号化したときのデータのビット数が多くなるように、ビット割り当てが行われてデータが符号化され、符号語が得られる。   In this Huffman coding, in the data distribution of each of the direct current component DC and the alternating current component AC per frame image, the generation frequency of the plurality of levels of pixel values to be coded is centered on this level. The pixel value at the level closer to the central level has a smaller number of data bits when encoded, and the pixel value at a level farther from the central level has a higher number of encoded data bits. In addition, bit allocation is performed and data is encoded to obtain a code word.

従来、このような画像データ符号化方式により画像データを符号化する場合に、データ記録媒体の容量や画像データを伝送する伝送路の能力に応じて、画像データの符号量を制御する必要があった。   Conventionally, when encoding image data using such an image data encoding method, it has been necessary to control the code amount of the image data according to the capacity of the data recording medium and the capacity of the transmission path for transmitting the image data. It was.

図2は、特許文献1に開示の従来の画像データ符号化装置の要部構成例を示すブロック図である。   FIG. 2 is a block diagram illustrating an exemplary configuration of a main part of a conventional image data encoding device disclosed in Patent Document 1. In FIG.

この画像データ符号化装置200は、画像データを圧縮符号化して画像符号化データを出力するものであり、入力される画像データを一時記憶する入力記憶部10と、該入力記憶部10から出力される画像データを圧縮符号化する圧縮符号化部200aと、該画像データの圧縮符号化により得られた画像符号化データを一時記憶する出力記憶部60とを有している。   The image data encoding device 200 compresses and encodes image data and outputs image encoded data. The image data encoding device 200 temporarily stores input image data, and is output from the input storage unit 10. A compression encoding unit 200a that compresses and encodes the image data, and an output storage unit 60 that temporarily stores the encoded image data obtained by the compression encoding of the image data.

ここで、入力記憶部10はJPEG入力バッファメモリにより構成され、出力記憶部60は、JPEG出力バッファメモリにより構成されている。   Here, the input storage unit 10 is configured by a JPEG input buffer memory, and the output storage unit 60 is configured by a JPEG output buffer memory.

また、圧縮符号化部200aは、該JPEG入力バッファメモリ10からの画像データを直交変換する直交変換回路であるDCT処理部20と、このDCT処理部20で変換されたDCTデータを量子化して量子化データを出力する量子化処理部30と、該量子化データを所定の値で割り算する割り算回処理部40と、割り算処理により得られた量子化データをハフマン符号などの可変長符号に変換して、可変長符号化データをJPEG出力バッファ60に出力する可変長符号化処理部50とを有している。   Further, the compression encoding unit 200a quantizes the DCT processing unit 20 that is an orthogonal transformation circuit that performs orthogonal transformation on the image data from the JPEG input buffer memory 10 and the DCT data converted by the DCT processing unit 20 to quantize the data. A quantization processing unit 30 that outputs quantized data; a division processing unit 40 that divides the quantized data by a predetermined value; and the quantized data obtained by the division processing is converted into a variable length code such as a Huffman code. A variable-length encoding processing unit 50 that outputs variable-length encoded data to the JPEG output buffer 60.

さらに、上記圧縮符号化部200aは、上記出力バッファメモリ60の残容量を検出し、その残容量に応じて割り算処理部40の動作を制御する割り算制御部(図示せず)を有している。   Further, the compression encoding unit 200a has a division control unit (not shown) that detects the remaining capacity of the output buffer memory 60 and controls the operation of the division processing unit 40 according to the remaining capacity. .

なお、この割り算制御部(図示せず)は、出力バッファメモリ60または割り算処理部40内に設けられていてもよく、これらの出力バッファメモリ60および割り算処理部40とは別に設けられていてもよい。   The division control unit (not shown) may be provided in the output buffer memory 60 or the division processing unit 40, or may be provided separately from the output buffer memory 60 and the division processing unit 40. Good.

この割り算制御部(図示せず)による出力バッファメモリ60の残容量の検出は、該出力バッファメモリ60に入力される画像符号化データのデータ量(入力画像データ量)と、該出力バッファメモリ60から出力される画像符号化データのデータ量(出力画像データ量)との差分データ量を検出することによって行うことができる。この入力画像データ量と出力画像データ量とは、出力バッファメモリ60の記憶制御部に管理させてその出入りの差分を求めればよい。   Detection of the remaining capacity of the output buffer memory 60 by this division control unit (not shown) is performed by detecting the amount of encoded image data (input image data amount) input to the output buffer memory 60 and the output buffer memory 60. Can be performed by detecting a difference data amount with respect to the data amount (output image data amount) of the encoded image data output from. The input image data amount and the output image data amount may be managed by the storage control unit of the output buffer memory 60 to obtain the difference between the input and output.

次に動作について説明する。   Next, the operation will be described.

まず、この画像データ符号化装置200に入力された画像データは、一旦JPEG入力バッファメモリ10に格納され、該画像データは、入力バッファメモリ10から一定の出力レートで圧縮符号化部200aに供給される。   First, the image data input to the image data encoding device 200 is temporarily stored in the JPEG input buffer memory 10, and the image data is supplied from the input buffer memory 10 to the compression encoding unit 200a at a constant output rate. The

該圧縮符号化部200aに供給された画像データは、DCT処理部20で直交変換処理(DCT処理)が施されてDCTデータに変換され、さらに、このDCTデータが量子化処理部30によって量子化される。量子化されたDCTデータ(量子化データ)は、割り算処理部40を経て可変長符号化処理部50に供給され、この可変長符号化処理部50にて可変長符号化処理が施されて、画像符号化データとして出力バッファメモリ60に供給される。   The image data supplied to the compression encoding unit 200a is subjected to orthogonal transform processing (DCT processing) in the DCT processing unit 20 and converted into DCT data. Further, the DCT data is quantized by the quantization processing unit 30. Is done. The quantized DCT data (quantized data) is supplied to the variable length coding processing unit 50 via the division processing unit 40, and the variable length coding processing unit 50 performs variable length coding processing. It is supplied to the output buffer memory 60 as encoded image data.

ここで、この出力バッファメモリ60の残容量が所定の残容量よりも多いときには、上記割り算制御部から割り算処理部40を動作させるための制御信号が出力されず、割り算処理は行われない。よって、可変長符号化処理部50には、量子化処理部30で量子化されたデータがそのまま供給され、可変長符号化処理部50から出力バッファメモリ60に供給される符号量は減らされない。   Here, when the remaining capacity of the output buffer memory 60 is larger than the predetermined remaining capacity, the control signal for operating the division processing unit 40 is not output from the division control unit, and the division process is not performed. Therefore, the data quantized by the quantization processing unit 30 is supplied to the variable length coding processing unit 50 as it is, and the amount of code supplied from the variable length coding processing unit 50 to the output buffer memory 60 is not reduced.

一方、出力バッファメモリ60の残容量が所定の残容量よりも少なくなったときには、上記割り算制御部から割り算処理部40を動作させるための制御信号が出力され、割り算処理が行われる。これにより、可変長符号化処理部50には、量子化処理部30で量子化されたデータ(量子化データ)を所定の値(例えば2または4など)で割り算したデータが供給され、可変長符号化処理部50から出力バッファメモリ60に供給される符号量が減らされる。例えば、量子化データが8ビットの場合、該量子化データを「2」で割ると、この量子化データは、最終ビットがなくなって7ビットになる。   On the other hand, when the remaining capacity of the output buffer memory 60 becomes smaller than the predetermined remaining capacity, a control signal for operating the division processing unit 40 is output from the division control unit, and division processing is performed. As a result, the variable length encoding processing unit 50 is supplied with data obtained by dividing the data quantized by the quantization processing unit 30 (quantized data) by a predetermined value (for example, 2 or 4). The amount of code supplied from the encoding processing unit 50 to the output buffer memory 60 is reduced. For example, when the quantized data is 8 bits, when the quantized data is divided by “2”, the quantized data becomes 7 bits with no final bit.

なお、上記所定の残容量は、割り算制御部に予め設定されている値であって、例えば出力バッファメモリ60の全容量の3/4などとすることができる。   The predetermined remaining capacity is a value preset in the division control unit, and can be, for example, 3/4 of the total capacity of the output buffer memory 60.

特開2007−36745号公報JP 2007-36745 A

以上説明したように、JPEG画像圧縮技術は可変長符号化を用いた圧縮技術であり、符号化データ(圧縮した画像データ)を一時記憶するメモリを使用することで、圧縮された画像データを一定レートで出力できるが、出力バッファメモリの残容量と出力データの伝送レートに対して、該出力バッファメモリに入力される画像符号化データの符号量が大きい場合、該出力バッファメモリでオーバーフローが発生するという問題がある。   As described above, the JPEG image compression technique is a compression technique using variable-length coding, and the compressed image data is kept constant by using a memory that temporarily stores encoded data (compressed image data). Although output can be performed at a rate, if the amount of encoded image data input to the output buffer memory is larger than the remaining capacity of the output buffer memory and the output data transmission rate, an overflow occurs in the output buffer memory. There is a problem.

そこで、特許文献1に開示の画像データ符号化装置では、この問題に対し、出力バッファメモリの残容量を監視し、可変長符号化の対象となる量子化データに対して出力バッファメモリの残容量に応じて除算を施すことで、画像符号化データの符号量の圧縮を行うようにしている。   Therefore, in the image data encoding device disclosed in Patent Document 1, the remaining capacity of the output buffer memory is monitored for this problem, and the remaining capacity of the output buffer memory for the quantized data to be subjected to variable length encoding. The code amount of the image encoded data is compressed by performing division according to the above.

しかし、この特許文献1に開示の技術では、量子化を行う時点の出力バッファメモリの残容量によって符号量の圧縮を行うため、可変長符号化処理部から出力される画像符号化データの符号量の増加に対して、該画像符号化データの符号量を圧縮するための、可変長符号化処理部に入力される量子化データの割り算処理が遅延し、符号量を圧縮すべきブロックより後に符号化されるブロックに符号量の圧縮処理が集中するという問題がある。   However, in the technique disclosed in Patent Document 1, since the code amount is compressed by the remaining capacity of the output buffer memory at the time of quantization, the code amount of the image encoded data output from the variable-length encoding processing unit In response to an increase in the code amount, the division processing of the quantized data input to the variable length coding processing unit for compressing the code amount of the encoded image data is delayed, and the code amount is encoded after the block to be compressed. There is a problem that code amount compression processing concentrates on the blocks to be converted.

この問題は、符号量の圧縮を行うか否かの基準となる出力バッファメモリの残容量の閾値に余裕を持たせることで、発生確率を抑えることが可能であるが、この場合、出力バッファメモリのオーバーフローに影響しないブロックに対しても符号量の圧縮が行われるため、画質が低下するという別の問題が生じることとなる。   This problem can be suppressed by giving a margin to the threshold of the remaining capacity of the output buffer memory, which is a criterion for whether or not to compress the code amount. In this case, the output buffer memory Since the code amount is also compressed for blocks that do not affect the overflow of the image, another problem that the image quality deteriorates arises.

本発明は、画像符号化データの符号量を削減する圧縮処理を、該圧縮処理が特定ブロックに集中するのを回避しつつ行うことができ、これにより画像符号化データを格納する出力バッファメモリのオーバーフローを、画質低下を抑えつつ回避することができる画像データ符号化装置および画像データ符号化方法、画像データ符号量制御方法、並びに該画像データ符号化装置を用いた電子情報機器を得ることを目的とする。   The present invention can perform a compression process for reducing the amount of encoded image data while avoiding the compression process from being concentrated on a specific block, and thereby an output buffer memory for storing encoded image data. An object of the present invention is to obtain an image data encoding device, an image data encoding method, an image data code amount control method, and an electronic information device using the image data encoding device capable of avoiding an overflow while suppressing deterioration in image quality. And

本発明に係る画像データ符号化装置は、画像データを圧縮符号化して画像符号化データを出力する画像データ符号化装置であって、該画像データを圧縮符号化する圧縮符号化部と、該画像データの圧縮符号化により得られた画像符号化データを一時記憶する一時記憶部と、該画像データに基づいて、該一時記憶部における記憶残容量を予測する記憶残容量予測部とを備え、該圧縮符号化部は、該予測された記憶残容量に基づいて、該画像データの圧縮符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう制御するものであり、そのことにより上記目的が達成される。   An image data encoding device according to the present invention is an image data encoding device that compresses and encodes image data and outputs image encoded data, and includes a compression encoding unit that compresses and encodes the image data, and the image A temporary storage unit that temporarily stores encoded image data obtained by compression encoding of data, and a storage remaining capacity prediction unit that predicts a storage remaining capacity in the temporary storage unit based on the image data, The compression encoding unit controls the compression encoding processing of the image data based on the predicted storage remaining capacity so that the encoded image data obtained by the compression encoding does not overflow in the temporary storage unit. Thus, the above object is achieved.

本発明は、上記画像データ符号化装置において、前記画像データからエッジ成分を検出するエッジ成分検出処理部と、該エッジ成分検出処理部で検出したエッジ成分を、前記画像データの符号化の処理単位で積算するエッジ成分積算部とを有し、前記記憶残容量予測部は、該エッジ成分積算部で積算されたエッジ成分の積算値に基づいて、前記一時記憶部における記憶残容量を予測することが好ましい。   The present invention provides the image data encoding apparatus, wherein an edge component detection processing unit that detects an edge component from the image data, and an edge component detected by the edge component detection processing unit is a processing unit for encoding the image data. The remaining storage capacity prediction unit predicts the remaining storage capacity in the temporary storage unit based on the integrated value of the edge components integrated by the edge component integration unit. Is preferred.

本発明は、上記画像データ符号化装置において、前記記憶残量予測部は、前記一時記憶部のメモリ残容量と、前記エッジ成分積算部でエッジ成分を積算して得られた積算値とから、該一時記憶部のメモリ残容量を予測することが好ましい。   In the image data encoding device according to the present invention, the remaining storage capacity prediction unit includes a remaining memory capacity of the temporary storage unit and an integrated value obtained by integrating the edge component by the edge component integrating unit. It is preferable to predict the remaining memory capacity of the temporary storage unit.

本発明は、上記画像データ符号化装置において、前記エッジ成分検出処理部は、前記画像データから水平方向のエッジ成分を検出する水平エッジ成分検出フィルタと、該画像データから垂直方向のエッジ成分を検出する垂直エッジ成分検出フィルタとを有することが好ましい。   According to the present invention, in the image data encoding device, the edge component detection processing unit detects a horizontal edge component detection filter that detects a horizontal edge component from the image data, and detects a vertical edge component from the image data. And a vertical edge component detection filter.

本発明は、上記画像データ符号化装置において、前記水平エッジ成分検出フィルタで検出した水平エッジ成分を、前記画像データの符号化の処理単位であるブロック毎に積算する水平エッジ積算バッファと、前記垂直エッジ成分検出フィルタで検出した垂直エッジ成分を、前記画像データの符号化の処理単位であるブロック毎に積算する垂直エッジ積算バッファとを有することが好ましい。   The present invention provides the image data encoding apparatus, wherein a horizontal edge integration buffer that integrates a horizontal edge component detected by the horizontal edge component detection filter for each block that is a processing unit of the image data encoding, and the vertical It is preferable to have a vertical edge integration buffer that integrates the vertical edge components detected by the edge component detection filter for each block that is a processing unit for encoding the image data.

本発明は、上記画像データ符号化装置において、前記記憶残量予測部は、前記水平エッジ積算バッファで得られた水平エッジ成分のブロック毎の積算値と、前記垂直エッジ積算バッファで得られた垂直エッジ成分のブロック毎の積算値と、前記一時記憶部のメモリ残容量とから、該一時記憶部のメモリ残容量を予測するバッファ残量予測処理部であることが好ましい。   According to the present invention, in the image data encoding device, the storage remaining amount prediction unit includes an integrated value of each horizontal edge component obtained by the horizontal edge integrating buffer and a vertical value obtained by the vertical edge integrating buffer. It is preferable that the buffer remaining amount prediction processing unit predicts the memory remaining capacity of the temporary storage unit from the integrated value of the edge component for each block and the memory remaining capacity of the temporary storage unit.

本発明は、上記画像データ符号化装置において、前記記憶残容量予測部は、ブロック毎のエッジ積算値のうち、予測に使用する個数によって、残容量予測対象となる将来の時点を制御することが好ましい。   According to the present invention, in the image data encoding device, the storage remaining capacity prediction unit may control a future time point to be a remaining capacity prediction target according to the number used for prediction among the edge integrated values for each block. preferable.

本発明は、上記画像データ符号化装置において、前記記憶残容量予測部は、前記一時記憶部の現在のメモリ残容量から、前記エッジ積算値から得られる将来の符号量の予測値を引き、該一時記憶部から出力される画像符号化データの伝送レートに依存するデータ伝送量を加えたものを将来のバッファ残容量予測結果として求めることが好ましい。   The present invention provides the image data encoding device, wherein the storage remaining capacity prediction unit subtracts a prediction value of a future code amount obtained from the edge integrated value from a current memory remaining capacity of the temporary storage unit, It is preferable to obtain a future buffer remaining capacity prediction result by adding a data transmission amount that depends on the transmission rate of the encoded image data output from the temporary storage unit.

本発明は、上記画像データ符号化装置において、前記記憶残容量予測部は、将来の1以上時点を対象にバッファ残容量予測を行い、1以上個の残容量予測結果からオーバーフローの予測結果を求めることが好ましい。   According to the present invention, in the image data encoding device, the storage remaining capacity prediction unit performs buffer remaining capacity prediction for one or more future time points, and obtains an overflow prediction result from one or more remaining capacity prediction results. It is preferable.

本発明は、上記画像データ符号化装置において、将来圧縮が行われるブロックの符号量の予測値は、水平エッジ積算バッファの出力である水平エッジ積算値と、垂直エッジ積算バッファの出力である垂直エッジ積算値とを用いた演算により得られるエッジ積算値から求められることが好ましい。   According to the present invention, in the image data encoding apparatus, the predicted value of the code amount of a block to be compressed in the future includes a horizontal edge integrated value that is an output of a horizontal edge integrating buffer and a vertical edge that is an output of a vertical edge integrating buffer. It is preferable to obtain from an edge integrated value obtained by calculation using the integrated value.

本発明は、上記画像データ符号化装置において、前記圧縮処理部は、前記画像データを所定サイズのブロック毎に周波数成分に変換する直交変換処理部と、各ブロックに対応する周波数成分を量子化する量子化処理部と、該量子化された周波数成分を可変長符号化して画像符号化データを出力する可変長符号化部とを有することが好ましい。   According to the present invention, in the image data encoding apparatus, the compression processing unit quantizes an orthogonal transform processing unit that converts the image data into frequency components for each block of a predetermined size, and a frequency component corresponding to each block. It is preferable to include a quantization processing unit and a variable length coding unit that performs variable length coding on the quantized frequency component and outputs encoded image data.

本発明は、上記画像データ符号化装置において、前記予測された記憶残容量から、前記量子化処理部で用いる量子化係数を求める量子化係数演算処理部を有することが好ましい。   The present invention preferably includes a quantization coefficient calculation processing unit that obtains a quantization coefficient used in the quantization processing unit from the predicted storage remaining capacity in the image data encoding device.

本発明は、上記画像データ符号化装置において、前記量子化係数演算処理部は、前記量子化処理部で用いる量子化係数を、前記ブロック毎の水平エッジ積算値と垂直エッジ積算値とから、横軸方向の交流成分の量子化係数と、縦軸方向の交流成分の量子化係数とに分けて求めるものであることが好ましい。   According to the present invention, in the image data encoding device, the quantization coefficient calculation processing unit calculates a quantization coefficient used in the quantization processing unit from a horizontal edge integrated value and a vertical edge integrated value for each block. It is preferable to calculate separately for the quantization coefficient of the AC component in the axial direction and the quantization coefficient of the AC component in the vertical axis direction.

本発明は、上記画像データ符号化装置において、前記直交変換処理部は、前記画像データに対して離散コサイン変換処理を前記ブロック毎に施して各ブロックに対応するDCT係数を求めるDCT処理部であることが好ましい。   The present invention is the above-described image data encoding device, wherein the orthogonal transform processing unit is a DCT processing unit that performs a discrete cosine transform process on the image data for each block to obtain a DCT coefficient corresponding to each block. It is preferable.

本発明は、上記画像データ符号化装置において、前記量子化処理部は、各ブロックに対応するDCT係数を、前記量子化係数演算処理部で求めた量子化係数を用いて量子化することが好ましい。   In the image data encoding device according to the present invention, it is preferable that the quantization processing unit quantizes the DCT coefficient corresponding to each block using the quantization coefficient obtained by the quantization coefficient calculation processing unit. .

本発明は、上記画像データ符号化装置において、前記可変長符号化部は、前記量子化データをハフマン符号化により前記画像符号化データに変換するものであることが好ましい。   In the image data encoding device according to the present invention, it is preferable that the variable length encoding unit converts the quantized data into the image encoded data by Huffman encoding.

本発明に係る画像データ符号化方法は、画像データを圧縮符号化して画像符号化データを出力する画像データ符号化方法であって、該画像データを圧縮符号化する圧縮符号化ステップと、該画像データの圧縮符号化により得られた画像符号化データを一時記憶部に一時記憶する一時記憶ステップと、該画像データに基づいて、該一時記憶部における記憶残容量を予測する記憶残容量予測ステップとを含み、該圧縮符号化ステップでは、該予測された記憶残容量に基づいて、該画像データの圧縮符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう制御するものであり、そのことにより上記目的が達成される。   An image data encoding method according to the present invention is an image data encoding method for compressing and encoding image data and outputting image encoded data, the compression encoding step for compressing and encoding the image data, and the image A temporary storage step of temporarily storing the encoded image data obtained by the compression encoding of the data in the temporary storage unit, and a storage remaining capacity prediction step of predicting a storage remaining capacity in the temporary storage unit based on the image data; In the compression encoding step, the image data obtained by the compression encoding does not overflow in the temporary storage unit based on the predicted remaining storage capacity. Thus, the above object is achieved.

本発明に係る画像データ符号量制御方法は、画像データの符号化処理を行う際に、一時記憶部に格納される画像符号化データの符号量を制御する画像データ符号量制御方法であって、該画像データのエッジ成分を符号化の単位であるブロック毎に積算するエッジ成分積算ステップと、該エッジ成分を積算して得られた積算値に基づいて、該一時記憶部における記憶残容量を予測する記憶残容量予測ステップとを含み、該予測された記憶残容量に基づいて、該画像データの符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう調整するものであり、そのことにより上記目的が達成される。   An image data code amount control method according to the present invention is an image data code amount control method for controlling the code amount of image encoded data stored in a temporary storage unit when image data is encoded. An edge component integration step for integrating the edge components of the image data for each block, which is a unit of encoding, and a remaining storage capacity in the temporary storage unit are predicted based on an integration value obtained by integrating the edge components A storage remaining capacity prediction step, and based on the predicted remaining storage capacity, the image data is encoded so that the encoded image data obtained by the compression encoding does not overflow in the temporary storage unit. The above-mentioned purpose is achieved.

本発明に係る電子情報機器は、上述した画像データ符号化装置からの画像符号化データを、記憶手段に記憶させる記憶処理、該画像符号化データを伝送する伝送処理、および、該画像符号化データに基づいて表示部に画像データを表示する表示処理の少なくとも1つを行うものであり、そのことにより上記目的が達成される。   An electronic information device according to the present invention includes a storage process for storing image encoded data from the above-described image data encoding apparatus in a storage unit, a transmission process for transmitting the image encoded data, and the image encoded data. Based on the above, at least one of display processes for displaying image data on the display unit is performed, and thereby the above-described object is achieved.

以下本発明の作用について説明する。   The operation of the present invention will be described below.

本発明においては、入力画像のエッジ成分と現在のバッファ残容量とから将来のバッファ残容量を予測し、オーバーフローが発生すると予測された場合のみ量子化テーブルの係数を変更することで符号量の圧縮を行うので、バッファ残容量の減少を引き起こすブロックに対して、将来オーバーフローの発生が予測される場合に限定して符号量の圧縮を行うことが可能であり、逆に、オーバーフローが発生しないと予測された場合は、不要な符号量の圧縮を避けられ、画質が損なわれるのを回避することができる。   In the present invention, the future buffer remaining capacity is predicted from the edge component of the input image and the current buffer remaining capacity, and the code amount is compressed by changing the coefficient of the quantization table only when an overflow is predicted to occur. Therefore, it is possible to compress the amount of code only when the future overflow is predicted for a block that causes a decrease in the remaining buffer capacity. Conversely, it is predicted that no overflow will occur. In this case, it is possible to avoid unnecessary compression of the code amount and to prevent the image quality from being lost.

本発明においては、ブロックに含まれるエッジ成分を垂直方向と水平方向に分けて検出することで、オーバーフローの発生予測に対する量子化テーブルの係数を、当該ブロックのエッジ方向の偏りに応じて垂直方向と水平方向に分けて変更するため、画質の低下を抑えた符号量の圧縮ができる。   In the present invention, the edge component included in the block is detected separately in the vertical direction and the horizontal direction, so that the coefficient of the quantization table for the prediction of the occurrence of overflow is determined as the vertical direction according to the deviation in the edge direction of the block. Since the change is made in the horizontal direction, the code amount can be compressed while suppressing the deterioration of the image quality.

以上のように、本発明によれば、画像データの圧縮符号化により得られた画像符号化データを一時記憶する一時記憶部における記憶残容量を、該画像データに基づいて予測し、該予測した記憶残容量に基づいて、該画像データの圧縮符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう調整するので、画像符号化データの符号量を削減する圧縮処理を、該圧縮処理が特定ブロックに集中するのを回避しつつ行うことができ、これにより画像符号化データを格納する出力バッファメモリのオーバーフローを、画質低下を抑えつつ回避することができる。   As described above, according to the present invention, the storage remaining capacity in the temporary storage unit that temporarily stores the encoded image data obtained by the compression encoding of the image data is predicted based on the image data, and the prediction is performed. Based on the remaining storage capacity, the compression encoding process of the image data is adjusted so that the encoded image data obtained by the compression encoding does not overflow in the temporary storage unit, so that the code amount of the encoded image data is reduced. The compression processing to be performed can be performed while avoiding the concentration of the compression processing on a specific block, and thereby overflow of the output buffer memory for storing the encoded image data can be avoided while suppressing deterioration in image quality. .

図1は、本発明の実施形態1による画像データ符号化装置を説明するブロック図である。FIG. 1 is a block diagram illustrating an image data encoding apparatus according to Embodiment 1 of the present invention. 図2は、従来のバッファオーバーフロー防止機能を備えた画像データ符号化装置を示すブロック図である。FIG. 2 is a block diagram showing a conventional image data encoding apparatus having a buffer overflow prevention function.

以下、本発明の実施形態について図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施形態1)
図1は、本発明の実施形態1による画像データ符号化装置を説明するブロック図である。
(Embodiment 1)
FIG. 1 is a block diagram illustrating an image data encoding apparatus according to Embodiment 1 of the present invention.

この実施形態1の画像データ符号化装置100は、従来の画像データ符号化装置とは異なる、出力バッファメモリのオーバーフローを防止する機能を備えている。   The image data encoding device 100 according to the first embodiment has a function for preventing overflow of the output buffer memory, which is different from the conventional image data encoding device.

すなわち、この実施形態1の画像データ符号化装置100は、画像データの圧縮符号化により得られた画像符号化データを一時記憶する一時記憶部の記憶残容量を、該画像データに基づいて予測し、該予測した記憶残容量に基づいて、該画像データの圧縮符号化を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう制御するものである。   That is, the image data encoding apparatus 100 according to the first embodiment predicts the remaining storage capacity of the temporary storage unit that temporarily stores the encoded image data obtained by the compression encoding of the image data based on the image data. Based on the predicted remaining storage capacity, the compression encoding of the image data is controlled so that the encoded image data obtained by the compression encoding does not overflow in the temporary storage unit.

以下、本実施形態1の画像データ符号化装置について詳しく説明する。   Hereinafter, the image data encoding apparatus according to the first embodiment will be described in detail.

この実施形態1の画像データ符号化装置100は、入力画像データに基づいて入力画像に対するエッジ検出を行うエッジ検出処理部110と、該エッジ検出処理部110を介して入力画像データを受け取る入力記憶部としてのJPEG入力バッファメモリ10と、該バッファメモリ10からの画像データに対する圧縮符号化を行う圧縮符号化部100aと、該圧縮符号化部100aからの画像符号化データを一時記憶する出力記憶部としてのJPEG出力バッファメモリ60とを有している。   The image data encoding apparatus 100 according to the first embodiment includes an edge detection processing unit 110 that performs edge detection on an input image based on the input image data, and an input storage unit that receives the input image data via the edge detection processing unit 110. As a JPEG input buffer memory 10, a compression encoding unit 100 a that performs compression encoding on the image data from the buffer memory 10, and an output storage unit that temporarily stores the encoded image data from the compression encoding unit 100 a JPEG output buffer memory 60.

ここで、圧縮符号化部100aは、JPEG入力バッファメモリ10からの画像データを直交変換する直交変換回路であるDCT処理部20と、このDCT処理部20で変換されたDCTデータを量子化して量子化データを出力する量子化処理部30aと、該量子化データをハフマン符号などの可変長符号に変換して画像符号化データをJPEG出力バッファ60に出力する可変長符号化処理部50とを有している。   Here, the compression encoding unit 100a quantizes the DCT processing unit 20 which is an orthogonal transformation circuit that performs orthogonal transformation on the image data from the JPEG input buffer memory 10 and the DCT data converted by the DCT processing unit 20 to quantize the data. A quantization processing unit 30a that outputs the encoded data, and a variable length encoding processing unit 50 that converts the quantized data into a variable length code such as a Huffman code and outputs the image encoded data to the JPEG output buffer 60. is doing.

なお、この実施形態1の画像データ符号化装置100におけるJPEG入力バッファメモリ10、DCT処理部20、可変長符号化処理部50、およびJPEG出力バッファメモリ60は、従来の画像データ符号化装置200におけるものと同一のものである。また、量子化処理部30aは、外部から与えられる量子化テーブルに基づいてDCT係数を量子化する点で、従来の画像データ符号化装置200におけるものと異なっている。   The JPEG input buffer memory 10, the DCT processing unit 20, the variable length encoding processing unit 50, and the JPEG output buffer memory 60 in the image data encoding device 100 of the first embodiment are the same as those in the conventional image data encoding device 200. Is the same as The quantization processing unit 30a is different from that in the conventional image data encoding apparatus 200 in that the DCT coefficient is quantized based on a quantization table given from the outside.

この実施形態1では、上記エッジ検出処理部110は、入力画像データに基づいて入力画像の水平方向のエッジ成分(水平エッジ成分)を抽出する水平エッジ検出フィルタ(図示せず)と、入力画像データに基づいて入力画像の垂直方向のエッジ成分(垂直エッジ成分)を抽出する垂直エッジ検出フィルタ(図示せず)とを有している。   In the first embodiment, the edge detection processing unit 110 includes a horizontal edge detection filter (not shown) that extracts a horizontal edge component (horizontal edge component) of the input image based on the input image data, and the input image data. And a vertical edge detection filter (not shown) for extracting an edge component (vertical edge component) in the vertical direction of the input image.

さらに、この実施形態1の画像データ符号化装置100は、上記エッジ検出処理部110からの水平エッジ成分をJPEG処理単位である8×8画素のブロックごとに積算する水平エッジ積算バッファ111と、エッジ検出処理部110からの垂直エッジ成分をJPEG処理単位である8×8画素のブロックごとに積算する垂直エッジ積算バッファ113とを有している。これらの水平エッジ積算バッファ111及び垂直エッジ積算バッファ113は、それぞれ横一列のブロック数分の容量を最低限必要とする。ここで、横一列のブロック数分の容量は、例えば、水平エッジ積算バッファについては、水平エッジ検出フィルタの、1つのブロックに対する最大出力値を、横一列に並ぶ8×8画素からなるブロックの数だけ積算した容量である。垂直エッジ積算バッファにおいて最低限必要とされる容量についても、上記水平エッジ積算バッファと同様である。   Further, the image data encoding apparatus 100 according to the first embodiment includes a horizontal edge integration buffer 111 that integrates the horizontal edge component from the edge detection processing unit 110 for each block of 8 × 8 pixels that is a JPEG processing unit, and an edge A vertical edge integration buffer 113 for integrating the vertical edge components from the detection processing unit 110 for each block of 8 × 8 pixels which is a JPEG processing unit. These horizontal edge integration buffer 111 and vertical edge integration buffer 113 each require a minimum capacity for the number of blocks in a horizontal row. Here, the capacity corresponding to the number of blocks in a horizontal row is, for example, for the horizontal edge integration buffer, the maximum output value for one block of the horizontal edge detection filter is the number of blocks composed of 8 × 8 pixels arranged in a horizontal row. Only the accumulated capacity. The minimum required capacity in the vertical edge accumulation buffer is the same as that in the horizontal edge accumulation buffer.

さらに、上記圧縮符号化部100aは、水平エッジ積算バッファ111で積算された水平エッジ成分の積算値と、垂直エッジ積算バッファ113で積算された垂直エッジ成分の積算値と、JPEG出力バッファの残容量とから、将来の出力バッファの残容量の予測を行うバッファ残量予測処理部112と、該バッファ残量予測処理部112での予測結果、並びに水平エッジ成分の積算値及び垂直エッジ成分の積算値に基づいて、量子化処理部30aで用いる量子化テーブルの係数を、出力バッファメモリでのオーバーフローが回避されるよう演算し、この演算により得られた量子化テーブルを上記量子化処理部30に供給する量子化係数演算処理部114とを有している。なお、この量子化係数演算処理部114では、前記量子化処理部30aで用いる量子化テーブルの係数(量子化係数)を、前記ブロック毎の水平エッジ積算値と、垂直エッジ積算値から、横軸方向の交流成分(AC)の量子化係数と、縦軸方向の交流成分(AC)の量子化係数に分けて求めるようにしてもよい。   Further, the compression encoding unit 100a includes the integrated value of the horizontal edge component integrated by the horizontal edge integrating buffer 111, the integrated value of the vertical edge component integrated by the vertical edge integrating buffer 113, and the remaining capacity of the JPEG output buffer. The remaining buffer capacity prediction processing unit 112 that predicts the remaining capacity of the output buffer in the future, the prediction result in the remaining buffer capacity prediction processing unit 112, the integrated value of the horizontal edge component, and the integrated value of the vertical edge component Based on the above, the coefficient of the quantization table used in the quantization processing unit 30a is calculated so as to avoid overflow in the output buffer memory, and the quantization table obtained by this calculation is supplied to the quantization processing unit 30 And a quantization coefficient calculation processing unit 114. In this quantization coefficient calculation processing unit 114, the coefficient (quantization coefficient) of the quantization table used in the quantization processing unit 30a is calculated from the horizontal edge integrated value and the vertical edge integrated value for each block on the horizontal axis. Alternatively, the quantization coefficient of the alternating current component (AC) in the direction and the quantization coefficient of the alternating current component (AC) in the vertical axis direction may be obtained separately.

次に動作について説明する。   Next, the operation will be described.

この実施形態1の画像データ符号化装置100に入力画像データが入力されると、エッジ成分検出処理部110は、入力画像データに対してエッジ検出フィルタを適用することで、入力画像のエッジ成分を生成する。次に、検出されたエッジ成分をJPEG処理単位である8×8画素のブロックごとに積算を行う。このとき、エッジ成分検出処理部110では、水平方向のエッジ成分と垂直方向のエッジ成分をそれぞれ検出可能なエッジ検出フィルタ、つまり水平エッジ検出フィルタと垂直エッジ検出フィルタとを用いる。   When input image data is input to the image data encoding apparatus 100 according to the first embodiment, the edge component detection processing unit 110 applies an edge detection filter to the input image data, thereby obtaining an edge component of the input image. Generate. Next, the detected edge components are integrated for each 8 × 8 pixel block which is a JPEG processing unit. At this time, the edge component detection processing unit 110 uses an edge detection filter that can detect a horizontal edge component and a vertical edge component, that is, a horizontal edge detection filter and a vertical edge detection filter.

具体的には、エッジ成分検出処理部110では、水平エッジ検出フィルタにより画像データの水平方向のエッジ成分を抽出し、垂直エッジ検出フィルタにより画像データの垂直方向のエッジ成分を抽出する。さらに、水平エッジ積算バッファ111および垂直エッジ積算バッファ113で、ブロックごとのエッジ成分の積算を水平方向と垂直方向に分けて行う。この水平エッジ成分の積算値および垂直エッジ成分の積算値は、各エッジ積算バッファ111及び113に格納される。なお、上記エッジ検出処理は、画像データそのものの情報を変化させるものではない。   Specifically, the edge component detection processing unit 110 extracts a horizontal edge component of the image data using a horizontal edge detection filter, and extracts a vertical edge component of the image data using a vertical edge detection filter. Further, the horizontal edge integration buffer 111 and the vertical edge integration buffer 113 perform edge component integration for each block separately in the horizontal direction and the vertical direction. The integrated value of the horizontal edge component and the integrated value of the vertical edge component are stored in the edge integration buffers 111 and 113, respectively. The edge detection process does not change the information of the image data itself.

一方、エッジ成分の検出処理が行われた画像データは、DCT処理以降の圧縮符号化処理を行うため、最低8ライン分の容量(つまり、表示画面における画素8ライン分の画像データの容量)を持つ入力バッファメモリ10に格納される。   On the other hand, the image data subjected to the edge component detection processing is subjected to compression coding processing after the DCT processing, and therefore has a capacity of at least 8 lines (that is, a capacity of image data of 8 pixels on the display screen). Stored in the input buffer memory 10.

さらに、入力バッファメモリ10に格納された画像データは、入力バッファメモリ10から一定の出力レートで圧縮符号化部100aに供給される。   Further, the image data stored in the input buffer memory 10 is supplied from the input buffer memory 10 to the compression encoding unit 100a at a constant output rate.

該圧縮符号化部100aに供給された画像データは、DCT処理部20で直交変換処理(DCT処理)が施されてDCTデータに変換され、さらに、このDCTデータが量子化処理部30aによって量子化される。量子化されたDCTデータ(量子化データ)は、可変長符号化処理部50に供給され、この可変長符号化処理部50にて可変長符号化処理が施されて、画像符号化データとして出力バッファメモリ60に供給される。   The image data supplied to the compression encoding unit 100a is subjected to orthogonal transform processing (DCT processing) by the DCT processing unit 20 and converted to DCT data. Further, the DCT data is quantized by the quantization processing unit 30a. Is done. The quantized DCT data (quantized data) is supplied to the variable-length encoding processing unit 50, subjected to variable-length encoding processing in this variable-length encoding processing unit 50, and output as image encoded data. It is supplied to the buffer memory 60.

ここで、上記量子化処理部30aでは、該バッファ残量予測処理部112での予測結果、ならびに、垂直エッジ成分の積算値及び水平エッジ成分の積算値に基づいて算出された量子化テーブルの係数を用いて、DCT処理部20からのDCTデータの量子化が行われる。   Here, in the quantization processing unit 30a, the coefficient of the quantization table calculated based on the prediction result in the buffer remaining amount prediction processing unit 112 and the integrated value of the vertical edge component and the integrated value of the horizontal edge component Is used to quantize the DCT data from the DCT processing unit 20.

次に、バッファ残容量の予測処理について詳しく説明する。   Next, the prediction process of the remaining buffer capacity will be described in detail.

バッファ残容量の予測処理には、現在の出力バッファメモリのバッファ残容量の情報と、将来符号化処理が行われる1以上ブロックのエッジ積算値を用いる。ここで、1以上のブロックのエッジ積算値としては、最大で、画面上の1行分のブロックの積算値を用いることができる。エッジ積算バッファに積算されたブロック毎の積算値のうち、バッファ残容量予測に用いる積算値の数によって、予測結果が反映されるブロックから数えて何ブロック後の符号化を行った時点における予測を行うかが制御される。例えば、あるブロックに対して量子化を行った直後のバッファ残容量を予測するには、当該ブロックのみのエッジ積算値を用いる。   In the prediction process of the remaining buffer capacity, information on the remaining buffer capacity of the current output buffer memory and the edge integrated value of one or more blocks on which future encoding processing is performed are used. Here, as the edge integrated value of one or more blocks, the integrated value of blocks for one line on the screen can be used at the maximum. Of the integrated values for each block integrated in the edge integration buffer, the number of integrated values used for buffer remaining capacity prediction is used to predict the number of blocks after the number of blocks counted from the block that reflects the prediction result. Whether to do is controlled. For example, in order to predict the buffer remaining capacity immediately after quantization for a certain block, the edge integrated value of only that block is used.

各ブロックに含まれるエッジ成分の量とJPEG圧縮後の符号量には、相関があるため、エッジ積算値の大小によって将来圧縮が行われるブロックの符号量の予測値がブロック毎に求められる。そのため、バッファ残量予測処理部112では、現在のバッファ残容量から将来の符号量の予測値を引き、出力バッファメモリからのデータ出力の伝送レートに依存するデータ伝送量を加えたものが将来のバッファ残容量予測結果となる。この予測結果は出力バッファメモリに対して設定された基準値と比較されて、オーバーフローの可能性が判定される。ここで、データ伝送量は、例えば、現時点から、現時点でエッジ検出の対象としたブロックに対応する画像符号化データが出力バッファメモリに入力されるまでの間に、出力バッファメモリから上記伝送レートで出力される画像符号化データの総符号量とすることができる。   Since there is a correlation between the amount of the edge component included in each block and the code amount after JPEG compression, the predicted value of the code amount of the block to be compressed in the future is determined for each block depending on the size of the edge integrated value. Therefore, the buffer remaining amount prediction processing unit 112 subtracts the predicted value of the future code amount from the current buffer remaining capacity and adds the data transmission amount depending on the transmission rate of the data output from the output buffer memory to the future. This is the buffer remaining capacity prediction result. This prediction result is compared with a reference value set for the output buffer memory to determine the possibility of overflow. Here, the amount of data transmission is, for example, from the output buffer memory to the above transmission rate from the current time until the encoded image data corresponding to the block subjected to edge detection at this time is input to the output buffer memory. The total code amount of the encoded image data to be output can be set.

より多くのブロックのエッジ積算値を予測に使うことで、出力バッファメモリ60のオーバーフローを早い段階で予測できる。結果として、符号量の圧縮が多くのブロックに分散するため、局所的な画質の劣化を抑えることができる。   By using the edge integration values of more blocks for prediction, overflow of the output buffer memory 60 can be predicted at an early stage. As a result, since the compression of the code amount is distributed over many blocks, local image quality degradation can be suppressed.

また、バッファ残容量を予測するにあたって、将来の異なる時点(例えば1以上の時点)における複数個の予測結果を求めることで、オーバーフローの予測精度が向上する。例えば、1ブロックの符号化後から、予測に用いる最大ブロック数経過後まで順にバッファ残容量予測を行い、それぞれ予測されたバッファ残容量のうち最小値を求めることで、より確実にオーバーフローの可能性を予測することができる。   Further, in predicting the remaining buffer capacity, the prediction accuracy of overflow is improved by obtaining a plurality of prediction results at different future times (for example, one or more times). For example, after the encoding of one block, the remaining buffer capacity is predicted in order from the elapse of the maximum number of blocks used for prediction, and the minimum value of the predicted remaining buffer capacity is obtained, so that there is more possibility of overflow. Can be predicted.

また、将来圧縮が行われるブロックの符号量の予測値は、具体的には、水平エッジ積算バッファの出力である水平エッジ積算値と、垂直エッジ積算バッファの出力である垂直エッジ積算値とを用いた所定の演算により得られるエッジ積算値から求められる。   In addition, the predicted value of the code amount of the block to be compressed in the future uses, specifically, the horizontal edge integrated value that is the output of the horizontal edge integrating buffer and the vertical edge integrated value that is the output of the vertical edge integrating buffer. It is obtained from the integrated edge value obtained by the predetermined calculation.

次に、バッファ残容量予測結果に基づく量子化テーブルの係数制御について説明する。   Next, coefficient control of the quantization table based on the buffer remaining capacity prediction result will be described.

バッファ残容量予測の結果、出力バッファメモリ60のオーバーフローが発生すると予測された場合、量子化処理部30aでは、量子化テーブルの係数を変更して符号量の圧縮を行うことでオーバーフローを回避する。   As a result of the prediction of the remaining buffer capacity, when it is predicted that an overflow of the output buffer memory 60 will occur, the quantization processing unit 30a avoids the overflow by changing the coefficient of the quantization table and compressing the code amount.

ここで、係数の変更は、DCTデータの量子化に用いる量子化テーブル上で量子化係数の変更を開始する位置(変更開始位置)と、該量子化テーブルにおけるそれ以降の量子化係数に適用される変化量(量子化係数の増加率)とによって定める。また、この変更開始位置と量子化係数の増加率とは、該バッファ残容量の予測値と基準値との差に応じて決定される。   Here, the change of the coefficient is applied to the position (change start position) where the change of the quantization coefficient is started on the quantization table used for the quantization of the DCT data and the subsequent quantization coefficients in the quantization table. Change amount (quantization coefficient increase rate). The change start position and the increase rate of the quantization coefficient are determined according to the difference between the predicted value of the remaining buffer capacity and the reference value.

また、変更開始位置と変化量は、たとえば、8×8のマトリクス状量子化テーブル上に水平方向、垂直方向に並ぶ量子化係数について独立に設定可能で、それぞれ水平方向のエッジ成分の積算値、および垂直方向のエッジ成分の積算値から求めることができる。   Further, the change start position and the change amount can be set independently for the quantization coefficients arranged in the horizontal direction and the vertical direction on the 8 × 8 matrix quantization table, for example, respectively, the integrated value of the edge component in the horizontal direction, It can also be obtained from the integrated value of the edge components in the vertical direction.

例えば、水平方向に並ぶ量子化係数に対する独立した量子化係数の設定は、量子化テーブル上で8行×8列のマトリクス状に配列された64個の量子化係数に対して、K列目(1、2、3・・・、8列のいずれかの列)以降の列の量子化係数を、所定の割合だけ減少させるというものであり、また、垂直方向に並ぶ量子化係数に対する独立した量子化係数の設定は、量子化テーブル上で8行×8列のマトリクス状に配列された64個の量子化係数に対して、L行目(1、2、3・・・、8行のいずれかの行)以降の行の量子化係数を、所定の割合だけ減少させるというものである。ここで、1行目と1列目の交点に位置する量子化係数は、直流成分を量子化するための係数であり、8行目と8列目の交点に位置する量子化係数は、水平方向および垂直方向ともに周波数最大である交流成分を量子化するための係数である。   For example, the independent quantization coefficient setting for the quantization coefficients arranged in the horizontal direction is performed for the 64th quantization coefficient arranged in a matrix of 8 rows × 8 columns on the quantization table in the Kth column ( (1 column, 1, 2, 3..., 8 columns) and subsequent columns) are reduced by a predetermined ratio, and independent quantizers for the quantized coefficients arranged in the vertical direction. The quantization coefficient is set to any one of the Lth rows (1, 2, 3,..., 8 rows) with respect to 64 quantization coefficients arranged in a matrix of 8 rows × 8 columns on the quantization table. That is, the quantization coefficient in the subsequent rows is decreased by a predetermined rate. Here, the quantization coefficient located at the intersection of the first row and the first column is a coefficient for quantizing the DC component, and the quantization coefficient located at the intersection of the eighth row and the eighth column is horizontal. It is a coefficient for quantizing the AC component having the maximum frequency in both the direction and the vertical direction.

このように本実施形態1による画像データ符号化装置100では、エッジ成分検出処理部110にて、入力画像の水平方向のエッジ成分、および入力画像の垂直方向のエッジ成分を検出した後、水平エッジ積算バッファ111及び垂直エッジ積算バッファ113にて検出結果の積算をJPEG処理単位の8×8画素ブロック毎に行い、エッジの積算結果とJPEG出力バッファメモリ60の残容量から将来の出力バッファメモリの残容量の予測を行い、量子化処理部30aでは、予測結果とエッジの積算結果とに基づいて量子化係数を変更した量子化テーブルを使用するようにしたので、画像符号化データの符号量を削減する圧縮処理を、該圧縮処理が特定ブロックに集中するのを回避しつつ行うことができ、これにより画像符号化データを格納する出力バッファメモリのオーバーフローを、画質低下を抑えつつ回避することができる。   As described above, in the image data encoding apparatus 100 according to the first embodiment, the edge component detection processing unit 110 detects the horizontal edge component of the input image and the vertical edge component of the input image, and then detects the horizontal edge. The integration of the detection results in the integration buffer 111 and the vertical edge integration buffer 113 is performed for each 8 × 8 pixel block of the JPEG processing unit, and the future output buffer memory remaining is determined from the edge integration result and the remaining capacity of the JPEG output buffer memory 60. The capacity is predicted, and the quantization processing unit 30a uses the quantization table in which the quantization coefficient is changed based on the prediction result and the edge integration result, thereby reducing the code amount of the encoded image data. Compression processing can be performed while avoiding the compression processing from being concentrated on a specific block. The overflow of the output buffer memory to pay can be avoided while suppressing image quality degradation.

つまり、従来の画像データ符号化装置200では、画像データをJPEG形式で可変長符号化したとき、画像データ符号化装置の出力側の伝送能力に対して、出力される画像符号化データの符号長が大きい場合には、出力バッファでオーバーフローが発生するという問題に対して、出力バッファメモリの残容量のみによって量子化係数を変更することで、出力される画像符号化データの符号長の圧縮を行っていたため、バッファ残容量を大きく減らす要因となるブロックに対して符号量の圧縮は行われず、それ以降のブロックに圧縮処理が集中して、局所的に画質が大きく劣化するという問題がある。   That is, in the conventional image data encoding device 200, when the image data is variable-length encoded in the JPEG format, the code length of the output image encoded data is compared with the transmission capability on the output side of the image data encoding device. Is large, the code length of the output encoded image data is compressed by changing the quantization coefficient only by the remaining capacity of the output buffer memory. Therefore, there is a problem that the code amount is not compressed with respect to a block that causes a significant decrease in the remaining buffer capacity, and the compression processing is concentrated on the subsequent blocks, and the image quality is greatly degraded locally.

これに対して、本発明の実施形態1の画像データ符号化装置100では、入力画像のエッジ成分と現在のバッファ残容量とから将来のバッファ残容量を予測し、該バッファ残容量の予測値と基準値との比較の結果、オーバーフローが発生すると予測された場合のみ、量子化テーブルの係数を、該バッファ残容量の予測値と基準値との差に応じて変更することで符号量の圧縮を行う。このため、バッファ残容量の減少を引き起こすブロックに対して、将来オーバーフローの発生が予測される場合に限定して符号量の圧縮を行うことが可能である。逆に、該バッファ残容量の予測値と基準値との比較の結果、オーバーフローが発生しないとないと予測された場合は、不要な符号量の圧縮を避けられ、画質が損なわれるのを回避することができる。   On the other hand, the image data encoding apparatus 100 according to the first embodiment of the present invention predicts the future buffer remaining capacity from the edge component of the input image and the current buffer remaining capacity, and calculates the predicted value of the buffer remaining capacity, Only when it is predicted that an overflow will occur as a result of comparison with the reference value, the code amount is compressed by changing the coefficient of the quantization table according to the difference between the predicted value of the remaining buffer capacity and the reference value. Do. For this reason, it is possible to compress the code amount only when a future overflow is predicted for a block that causes a decrease in the remaining buffer capacity. Conversely, if it is predicted that overflow will not occur as a result of comparison between the predicted value of the remaining buffer capacity and the reference value, unnecessary code amount compression can be avoided and image quality can be prevented from being impaired. be able to.

さらに、ブロックに含まれるエッジ成分を垂直方向と水平方向に分けて検出することで、オーバーフローの発生予測に対する量子化テーブルの係数を、当該ブロックのエッジ方向の偏りに応じて垂直方向と水平方向に分けて変更可能となり、画質の低下を抑えた符号量の圧縮ができるという効果もある。   Furthermore, by detecting the edge components included in a block separately in the vertical and horizontal directions, the quantization table coefficients for the prediction of overflow occurrence can be calculated in the vertical and horizontal directions according to the deviation of the edge direction of the block. The change can be made separately, and there is an effect that the code amount can be compressed while suppressing the deterioration of the image quality.

なお、上記実施形態1では、画像データ符号化装置として、エッジ成分の検出と積算を画像の垂直方向と水平方向とについて個別に行うものを示したが、エッジ成分の積算は、垂直方向のエッジ成分と水平方向のエッジ成分とを一括して積算するものであってもよい。   In the first embodiment, as the image data encoding device, the detection and integration of the edge components are separately performed in the vertical direction and the horizontal direction of the image. However, the integration of the edge components is performed in the vertical direction. The component and the edge component in the horizontal direction may be integrated together.

この場合、量子化テーブルにおける各量子化係数の設定は、例えば、可変長符号化処理時に行われるジグザグスキャンの順番に沿って、量子化係数の変更開始位置を設定し、さらに、この位置以降で量子化係数を変化させる変化量を設定するというものが考えられる。   In this case, each quantization coefficient in the quantization table is set by, for example, setting the change start position of the quantization coefficient in the order of zigzag scanning performed at the time of variable length encoding processing, and further after this position. It is conceivable to set a change amount that changes the quantization coefficient.

また、本発明を実施する信号処理装置が、画像データの符号化処理部に加えて、エッジ検出を行う信号処理部(例えば、エッジ強調処理部)を別途有する場合は、該符号化処理部では、該エッジ強調処理部などの信号処理部で検出されたエッジ成分を用いて、画像のエッジ成分を積算するようにしてもよい。この場合、上記符号化処理部を構成する画像データ符号化装置にはエッジ成分検出処理部を設ける必要はない。   In addition, when the signal processing apparatus that implements the present invention has a signal processing unit (for example, an edge enhancement processing unit) that performs edge detection in addition to the image data encoding processing unit, the encoding processing unit The edge components of the image may be integrated using edge components detected by a signal processing unit such as the edge enhancement processing unit. In this case, it is not necessary to provide an edge component detection processing unit in the image data encoding device constituting the encoding processing unit.

さらに、上記実施形態1では、特に説明しなかったが、上記実施形態1の画像データ符号化装置は、デジタルカメラやカメラ付き携帯電話装置などの電子情報機器に良好に適用することができる。   Further, although not particularly described in the first embodiment, the image data encoding device of the first embodiment can be favorably applied to an electronic information device such as a digital camera or a camera-equipped mobile phone device.

(実施形態2)
以下、本発明の実施形態2として、このような電子情報機器について説明する。
(Embodiment 2)
Hereinafter, such an electronic information device will be described as Embodiment 2 of the present invention.

この実施形態2の電子情報機器は、実施形態1による画像データ符号化装置100から出力される画像符号化データを処理するデータ処理部を有する。   The electronic information device according to the second embodiment includes a data processing unit that processes encoded image data output from the image data encoding device 100 according to the first embodiment.

該データ処理部は、該画像符号化データを、記憶手段に記憶させる記憶処理、該画像符号化データを伝送する伝送処理、および、該画像符号化データに基づいて表示部に画像データを表示する表示処理の少なくとも1つを行うものである。   The data processing unit stores the image encoded data in a storage unit, a transmission process for transmitting the image encoded data, and displays the image data on the display unit based on the image encoded data. At least one of display processes is performed.

このような構成の電子情報機器では、画像データ符号化装置からの画像符号化データを、記憶手段に記憶させたり、良好に伝送処理したり、または、表示部の表示画面上に良好に表示処理することができる。   In the electronic information device having such a configuration, the encoded image data from the image data encoding device is stored in the storage unit, is transmitted properly, or is displayed on the display screen of the display unit. can do.

以上のように、本発明の好ましい実施形態を用いて本発明を例示してきたが、本発明は、この実施形態に限定して解釈されるべきものではない。本発明は、特許請求の範囲によってのみその範囲が解釈されるべきであることが理解される。当業者は、本発明の具体的な好ましい実施形態の記載から、本発明の記載および技術常識に基づいて等価な範囲を実施することができることが理解される。本明細書において引用した特許、特許出願および文献は、その内容自体が具体的に本明細書に記載されているのと同様にその内容が本明細書に対する参考として援用されるべきであることが理解される。   As mentioned above, although this invention has been illustrated using preferable embodiment of this invention, this invention should not be limited and limited to this embodiment. It is understood that the scope of the present invention should be construed only by the claims. It is understood that those skilled in the art can implement an equivalent range based on the description of the present invention and the common general technical knowledge from the description of specific preferred embodiments of the present invention. Patents, patent applications, and documents cited herein should be incorporated by reference in their entirety, as if the contents themselves were specifically described herein. Understood.

本発明は、画像データ符号化装置、画像データ符号化方法、画像データ符号量制御方法、および電子情報機器の分野において、画像符号化データの符号量を削減する圧縮処理を、該圧縮処理が特定ブロックに集中するのを回避しつつ行うことができ、これにより画像符号化データを格納する出力バッファメモリのオーバーフローを、画質低下を抑えつつ回避することができる画像データ符号化装置、画像データ符号化方法、画像データ符号量制御方法、および、この画像データ符号化装置からの符号化データを、記憶手段に記憶させるか、伝送処理するか、または表示部に表示処理する電子情報機器を提供することができる。   The present invention relates to an image data encoding device, an image data encoding method, an image data code amount control method, and an electronic information device, and the compression process specifies a compression process for reducing the code amount of image encoded data. Image data encoding apparatus and image data encoding that can be performed while avoiding concentrating on blocks, and thereby avoiding an overflow of an output buffer memory for storing image encoded data while suppressing deterioration in image quality To provide a method, an image data code amount control method, and an electronic information device that stores encoded data from the image data encoding device in a storage unit, performs transmission processing, or performs display processing on a display unit Can do.

10 JPEG入力バッファメモリ
20 DCT処理部
30a 量子化処理部
50 可変長符号化処理部
60 JPEG出力バッファメモリ
100 画像データ符号化装置
100a 圧縮符号化部
110 エッジ検出処理部
111 水平エッジ積算バッファメモリ
112 バッファ残量予測処理部
113 垂直エッジ積算バッファメモリ
114 量子化係数演算処理部
DESCRIPTION OF SYMBOLS 10 JPEG input buffer memory 20 DCT process part 30a Quantization process part 50 Variable length encoding process part 60 JPEG output buffer memory 100 Image data encoding apparatus 100a Compression encoding part 110 Edge detection process part 111 Horizontal edge accumulation | storage buffer memory 112 Buffer Remaining amount prediction processing unit 113 Vertical edge integration buffer memory 114 Quantization coefficient calculation processing unit

Claims (19)

画像データを圧縮符号化して画像符号化データを出力する画像データ符号化装置であって、
該画像データを圧縮符号化する圧縮符号化部と、
該画像データの圧縮符号化により得られた画像符号化データを一時記憶する一時記憶部と、
該画像データに基づいて、該一時記憶部における記憶残容量を予測する記憶残容量予測部とを備え、
該圧縮符号化部は、該予測された記憶残容量に基づいて、該画像データの圧縮符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう制御する、画像データ符号化装置。
An image data encoding device that compresses and encodes image data and outputs image encoded data,
A compression encoding unit for compressing and encoding the image data;
A temporary storage unit that temporarily stores image encoded data obtained by compression encoding of the image data;
A remaining storage capacity prediction unit that predicts a remaining storage capacity in the temporary storage unit based on the image data;
The compression encoding unit controls the compression encoding process of the image data based on the predicted storage remaining capacity so that the image encoded data obtained by the compression encoding does not overflow in the temporary storage unit. Image data encoding device.
請求項1に記載の画像データ符号化装置において、
前記画像データからエッジ成分を検出するエッジ成分検出処理部と、
該エッジ成分検出処理部で検出したエッジ成分を、前記画像データの符号化の処理単位で積算するエッジ成分積算部とを有し、
前記記憶残容量予測部は、該エッジ成分積算部で積算されたエッジ成分の積算値に基づいて、前記一時記憶部における記憶残容量を予測する、画像データ符号化装置。
The image data encoding device according to claim 1,
An edge component detection processing unit for detecting an edge component from the image data;
An edge component integration unit that integrates the edge component detected by the edge component detection processing unit in a processing unit for encoding the image data;
The said memory remaining capacity prediction part is an image data encoding apparatus which estimates the memory remaining capacity in the said temporary memory part based on the integration value of the edge component integrated | accumulated by this edge component integration part.
請求項2に記載の画像データ符号化装置において、
前記記憶残量予測部は、前記一時記憶部のメモリ残容量と、前記エッジ成分積算部でエッジ成分を積算して得られた積算値とから、前記一時記憶部のメモリ残容量を予測する、画像データ符号化装置。
The image data encoding device according to claim 2,
The storage remaining capacity prediction unit predicts the memory remaining capacity of the temporary storage unit from the memory remaining capacity of the temporary storage unit and the integrated value obtained by integrating the edge components in the edge component integration unit. Image data encoding device.
請求項2に記載の画像データ符号化装置において、
前記エッジ成分検出処理部は、
前記画像データから水平方向のエッジ成分を検出する水平エッジ成分検出フィルタと、
該画像データから垂直方向のエッジ成分を検出する垂直エッジ成分検出フィルタとを有する、画像データ符号化装置。
The image data encoding device according to claim 2,
The edge component detection processing unit
A horizontal edge component detection filter for detecting a horizontal edge component from the image data;
An image data encoding device comprising: a vertical edge component detection filter that detects an edge component in a vertical direction from the image data.
請求項4に記載の画像データ符号化装置において、
前記水平エッジ成分検出フィルタで検出した水平エッジ成分を、前記画像データの符号化の処理単位であるブロック毎に積算する水平エッジ積算バッファと、
前記垂直エッジ成分検出フィルタで検出した垂直エッジ成分を、前記画像データの符号化の処理単位であるブロック毎に積算する垂直エッジ積算バッファとを有する、画像データ符号化装置。
The image data encoding device according to claim 4, wherein
A horizontal edge integration buffer that integrates horizontal edge components detected by the horizontal edge component detection filter for each block that is a processing unit of encoding the image data;
An image data encoding apparatus, comprising: a vertical edge integration buffer that integrates the vertical edge component detected by the vertical edge component detection filter for each block that is a processing unit for encoding the image data.
請求項5に記載の画像データ符号化装置において、
前記記憶残量予測部は、前記水平エッジ積算バッファで得られた水平エッジ成分のブロック毎の積算値と、前記垂直エッジ積算バッファで得られた垂直エッジ成分のブロック毎の積算値と、前記一時記憶部のメモリ残容量とから、該一時記憶部のメモリ残容量を予測するバッファ残量予測処理部である、画像データ符号化装置。
The image data encoding device according to claim 5, wherein
The storage remaining amount prediction unit includes an integrated value for each block of horizontal edge components obtained by the horizontal edge integrating buffer, an integrated value for each block of vertical edge components obtained by the vertical edge integrating buffer, and the temporary value An image data encoding device, which is a remaining buffer capacity prediction processing unit that predicts a remaining memory capacity of a temporary storage unit from a remaining memory capacity of a storage unit.
請求項6に記載の画像データ符号化装置において、
前記記憶残容量予測部は、ブロック毎のエッジ積算値のうち、予測に使用する個数によって、残容量予測対象となる将来の時点を制御する、画像データ符号化装置。
The image data encoding device according to claim 6, wherein
The storage remaining capacity prediction unit is an image data encoding device that controls a future time point to be a remaining capacity prediction target according to the number used for prediction among edge integration values for each block.
請求項7に記載の画像データ符号化装置において、
前記記憶残容量予測部は、前記一時記憶部の現在のメモリ残容量から、前記エッジ積算値から得られる将来の符号量の予測値を引き、該一時記憶部から出力される画像符号化データの伝送レートに依存するデータ伝送量を加えたものを、将来のバッファ残容量予測結果として求める、画像データ符号化装置。
The image data encoding device according to claim 7,
The storage remaining capacity prediction unit subtracts a predicted value of a future code amount obtained from the edge integrated value from the current memory remaining capacity of the temporary storage unit, and stores the encoded image data output from the temporary storage unit. An image data encoding apparatus that obtains a future buffer remaining capacity prediction result by adding a data transmission amount depending on a transmission rate.
請求項8に記載の画像データ符号化装置において、
前記記憶残容量予測部は、将来の1以上時点を対象にバッファ残容量予測を行い、1以上個の残容量予測結果からオーバーフローの予測結果を求める、画像データ符号化装置。
The image data encoding device according to claim 8,
The storage remaining capacity prediction unit is an image data encoding device that performs buffer remaining capacity prediction for one or more future time points, and obtains an overflow prediction result from one or more remaining capacity prediction results.
請求項9に記載の画像データ符号化装置において、
将来圧縮が行われるブロックの符号量の予測値は、水平エッジ積算バッファの出力である水平エッジ積算値と、垂直エッジ積算バッファの出力である垂直エッジ積算値とを用いた演算により得られるエッジ積算値から求められる、画像データ符号化装置。
The image data encoding device according to claim 9, wherein
The predicted value of the code amount of the block to be compressed in the future is the edge integration obtained by calculation using the horizontal edge integration value that is the output of the horizontal edge integration buffer and the vertical edge integration value that is the output of the vertical edge integration buffer. An image data encoding device obtained from a value.
請求項1に記載の画像データ符号化装置において、
前記圧縮処理部は、
前記画像データを所定サイズのブロック毎に周波数成分に変換する直交変換処理部と、
各ブロックに対応する周波数成分を量子化する量子化処理部と、
該量子化された周波数成分を可変長符号化して画像符号化データを出力する可変長符号化部とを有する、画像データ符号化装置。
The image data encoding device according to claim 1,
The compression processing unit
An orthogonal transform processing unit that transforms the image data into frequency components for each block of a predetermined size;
A quantization processing unit that quantizes the frequency component corresponding to each block;
An image data encoding apparatus comprising: a variable length encoding unit that performs variable length encoding on the quantized frequency component and outputs image encoded data.
請求項11に記載の画像データ符号化装置において、
前記予測された記憶残容量から、前記量子化処理部で用いる量子化係数を求める量子化係数演算処理部を有する、画像データ符号化装置。
The image data encoding device according to claim 11, wherein
An image data encoding apparatus comprising: a quantization coefficient calculation processing unit that obtains a quantization coefficient used in the quantization processing unit from the predicted storage remaining capacity.
請求項12に記載の画像データ符号化装置において、
前記量子化演算処理部は、前記量子化処理部で用いる量子化係数を、前記ブロック毎の水平エッジ積算値と垂直エッジ積算値とから、横軸方向の交流成分の量子化係数と、縦軸方向の交流成分の量子化係数とに分けて求めるものである、画像データ符号化装置。
The image data encoding device according to claim 12,
The quantization calculation processing unit uses a quantization coefficient used in the quantization processing unit from a horizontal edge integrated value and a vertical edge integrated value for each block, an AC component quantization coefficient in a horizontal axis direction, and a vertical axis An image data encoding device that is obtained separately for quantization coefficients of alternating current components in a direction.
請求項12に記載の画像データ符号化装置において、
前記直交変換処理部は、前記画像データに対して離散コサイン変換処理を前記ブロック毎に施して各ブロックに対応するDCT係数を求めるDCT処理部である、画像データ符号化装置。
The image data encoding device according to claim 12,
The orthogonal transform processing unit is a DCT processing unit that is a DCT processing unit that performs a discrete cosine transform process on the image data for each block to obtain a DCT coefficient corresponding to each block.
請求項14に記載の画像データ符号化装置において、
前記量子化処理部は、各ブロックに対応するDCT係数を、前記量子化係数演算処理部で求めた量子化係数を用いて量子化する、画像データ符号化装置。
The image data encoding device according to claim 14,
The said quantization process part is an image data encoding apparatus which quantizes the DCT coefficient corresponding to each block using the quantization coefficient calculated | required by the said quantization coefficient calculation process part.
請求項15に記載の画像データ符号化装置において、
前記可変長符号化部は、前記量子化データをハフマン符号化により前記画像符号化データに変換するものである、画像データ符号化装置。
The image data encoding device according to claim 15,
The variable length coding unit is an image data coding device that converts the quantized data into the image coded data by Huffman coding.
画像データを圧縮符号化して画像符号化データを出力する画像データ符号化方法であって、
該画像データを圧縮符号化する圧縮符号化ステップと、
該画像データの圧縮符号化により得られた画像符号化データを一時記憶部に一時記憶する一時記憶ステップと、
該画像データに基づいて、該一時記憶部における記憶残容量を予測する記憶残容量予測ステップとを含み、
該圧縮符号化ステップでは、該予測された記憶残容量に基づいて、該画像データの圧縮符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう制御する、画像データ符号化方法。
An image data encoding method for compressing and encoding image data and outputting the image encoded data,
A compression encoding step for compression encoding the image data;
A temporary storage step of temporarily storing image encoded data obtained by compression encoding of the image data in a temporary storage unit;
A storage remaining capacity prediction step of predicting a storage remaining capacity in the temporary storage unit based on the image data,
In the compression encoding step, the compression encoding process of the image data is controlled based on the predicted remaining storage capacity so that the encoded image data obtained by the compression encoding does not overflow in the temporary storage unit. Image data encoding method.
画像データの符号化処理を行う際に、一時記憶部に格納される画像符号化データの符号量を制御する画像データ符号量制御方法であって、
該画像データのエッジ成分を符号化の単位であるブロック毎に積算するエッジ成分積算ステップと、
該エッジ成分を積算して得られた積算値に基づいて、該一時記憶部における記憶残容量を予測する記憶残容量予測ステップとを含み、
該予測された記憶残容量に基づいて、該画像データの符号化処理を、該圧縮符号化により得られる画像符号化データが該一時記憶部でオーバーフローしないよう調整する、画像データ符号量制御方法。
An image data code amount control method for controlling the code amount of image encoded data stored in a temporary storage unit when performing image data encoding processing,
An edge component integration step of integrating edge components of the image data for each block which is a unit of encoding;
Based on an integrated value obtained by integrating the edge components, a storage remaining capacity prediction step for predicting a storage remaining capacity in the temporary storage unit, and
An image data code amount control method that adjusts the encoding process of the image data based on the predicted remaining storage capacity so that the encoded image data obtained by the compression encoding does not overflow in the temporary storage unit.
請求項1に記載の画像データ符号化装置からの画像符号化データを処理するデータ処理部を有する電子情報機器であって、
該データ処理部は、該画像符号化データを、記憶手段に記憶させる記憶処理、該画像符号化データを伝送する伝送処理、および、該画像符号化データに基づいて表示部に画像データを表示する表示処理の少なくとも1つを行う、電子情報機器。
An electronic information device having a data processing unit for processing image encoded data from the image data encoding device according to claim 1,
The data processing unit stores the image encoded data in a storage unit, a transmission process for transmitting the image encoded data, and displays the image data on the display unit based on the image encoded data. An electronic information device that performs at least one of display processing.
JP2009147022A 2009-06-19 2009-06-19 Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus Withdrawn JP2011004285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009147022A JP2011004285A (en) 2009-06-19 2009-06-19 Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009147022A JP2011004285A (en) 2009-06-19 2009-06-19 Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus

Publications (1)

Publication Number Publication Date
JP2011004285A true JP2011004285A (en) 2011-01-06

Family

ID=43561834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009147022A Withdrawn JP2011004285A (en) 2009-06-19 2009-06-19 Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus

Country Status (1)

Country Link
JP (1) JP2011004285A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130176431A1 (en) * 2010-09-03 2013-07-11 Panasonic Corporation Image encoding method, image decoding method, image encoding device and image decoding device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130176431A1 (en) * 2010-09-03 2013-07-11 Panasonic Corporation Image encoding method, image decoding method, image encoding device and image decoding device
US10223811B2 (en) * 2010-09-03 2019-03-05 Panasonic Intellectual Property Management Co., Ltd. Image encoding method, image decoding method, image encoding device and image decoding device

Similar Documents

Publication Publication Date Title
KR101223983B1 (en) Bitrate reduction techniques for image transcoding
US8233060B2 (en) Image data processing apparatus, image data processing method, and program
JP4901772B2 (en) Moving picture coding method and moving picture coding apparatus
US10939103B2 (en) Data encoding and decoding
US8170355B2 (en) Image encoding/decoding method and apparatus
JP2007159155A (en) Filtering method for eliminating blocking effect, and equipment therefor
US20160112722A1 (en) Apparatus and method for lossless compression of raw color sensor data from a color array filtered image sensor
US20070031049A1 (en) Image compression device and image compression method
WO2008020687A1 (en) Image encoding/decoding method and apparatus
JPWO2011080925A1 (en) Image coding apparatus and method
KR100846774B1 (en) Filtering method for removing block artifacts and/or ringing noise and apparatus therefor
JP5133290B2 (en) Video encoding apparatus and decoding apparatus
JP4532980B2 (en) Moving picture coding apparatus and method, computer program, and computer-readable storage medium
JPH10243399A (en) Code amount controller and moving image encoder provided with the same
JP2014075652A (en) Image encoder, and image encoding method
US8687910B2 (en) Image filtering method using pseudo-random number filter and apparatus thereof
JP2010258576A (en) Scene change detector, and video recorder
CN111684798A (en) Data encoding and decoding
JP2011004285A (en) Image data encoding device, image data encoding method, image data code amount control method, and electronic information apparatus
KR20150096353A (en) Image encoding system, image decoding system and providing method thereof
JP2009200871A (en) Encoding apparatus
WO2023275512A1 (en) Data encoding and decoding
JP2006197181A (en) Signal processing apparatus and signal processing method for solid-state imaging device and image processing apparatus
JPH08256337A (en) Moving image coder
JP6812214B2 (en) Image coding device, image coding method, and program

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: 20120904