JP2005210566A - Image data coding method, and image processing device for coding image data - Google Patents

Image data coding method, and image processing device for coding image data Download PDF

Info

Publication number
JP2005210566A
JP2005210566A JP2004016692A JP2004016692A JP2005210566A JP 2005210566 A JP2005210566 A JP 2005210566A JP 2004016692 A JP2004016692 A JP 2004016692A JP 2004016692 A JP2004016692 A JP 2004016692A JP 2005210566 A JP2005210566 A JP 2005210566A
Authority
JP
Japan
Prior art keywords
encoding
image data
coefficients
image
pixel block
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.)
Abandoned
Application number
JP2004016692A
Other languages
Japanese (ja)
Inventor
Kenta Ono
健太 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2004016692A priority Critical patent/JP2005210566A/en
Publication of JP2005210566A publication Critical patent/JP2005210566A/en
Abandoned legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image data coding method for reducing a processing time of coding and preventing a deterioration of image data at decoding of the coded image data, and provide an image processing device for encoding the image data by using the coding method. <P>SOLUTION: In the image data coding method and the image processing device for coding the image data by using the coding method, two or more image frames are separated into a prescribed number of pixel blocks and the two or more AC coefficients obtained by quantizing after orthogonal conversion of image data in each pixel block are encoded sequentially from a low frequency side to a high frequency side. When encoding one image frame out of two or more image frames is carried out, a coding stopping condition for stopping the coding of each pixel block based on the consecutive number of invalid AC coefficients out of two or more AC coefficients generated from each pixel block is determined, and after that when coding for another image frame is carried out, the coding for each pixel block is stopped by using the coding stopping condition. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法及び同方法を用いて画像データの符号化を行う画像処理装置に関するものである。   The present invention divides a plurality of image frames into a predetermined number of pixel blocks, orthogonally transforms image data in each pixel block, and then quantizes a plurality of AC coefficients generated from a low frequency side to a high frequency side. The present invention relates to an image data encoding method that sequentially encodes images and an image processing apparatus that encodes image data using the same method.

従来より、複数の画像フレーム中の膨大な画像データを符号化することにより圧縮する方法としては、MPEG(Moving Pictures Experts Group)から提供されているベースラインプロセスが広く使用されている。   Conventionally, a baseline process provided by MPEG (Moving Pictures Experts Group) has been widely used as a compression method by encoding a large amount of image data in a plurality of image frames.

このベースラインプロセスでの画像データ符号化方法では、次のようにして画像データの符号化を行っていた。   In the image data encoding method in the baseline process, image data is encoded as follows.

まず、最初の画像フレームを8画素×8画素からなる画素ブロックに分割する。   First, the first image frame is divided into pixel blocks each consisting of 8 pixels × 8 pixels.

次に、1番目の画素ブロックの画像データに対して、代表的な直交変換である離散コサイン変換(DCT:Discrete Cosine Transform)を行うことによって64個の変換係数を生成する。   Next, 64 transform coefficients are generated by performing a discrete cosine transform (DCT), which is a typical orthogonal transform, on the image data of the first pixel block.

次に、各変換係数を予め設定した変換特性値で除算することによって量子化を行い、1個の直流係数と63個の交流係数とを生成する。   Next, quantization is performed by dividing each conversion coefficient by a preset conversion characteristic value to generate one DC coefficient and 63 AC coefficients.

次に、左上の1個の直流係数についてハフマン符号化を行い、その後、63個の交流係数について低周波側から高周波側に向けてジグザグスキャンを行ってハフマン符号化を行い、1番目の画素ブロックの画像データの符号化を終了する(図3参照)。   Next, Huffman coding is performed on the one DC coefficient at the upper left, and then Huffman coding is performed on the 63 AC coefficients by performing zigzag scanning from the low frequency side to the high frequency side. The encoding of the image data ends (see FIG. 3).

次に、2番目以降の全ての画素ブロックに対しても同様のハフマン符号化を行うことによって最初の画像フレームの画像データの符号化を行う。   Next, the image data of the first image frame is encoded by performing the same Huffman encoding for all the second and subsequent pixel blocks.

そして、上記した画素ブロック毎の画像データの符号化を他の全ての画像フレーム中の画像データに対して行うことによって複数の画像フレーム中の画像データの符号化を行っていた。   Then, the image data in each of the pixel blocks is encoded on the image data in all other image frames, thereby encoding the image data in a plurality of image frames.

このように、MPEGのベースラインプロセスによる画像データ符号化方法では、全ての交流係数について低周波側から高周波側に向けて順にハフマン符号化を行う必要があった。   As described above, in the image data encoding method based on the MPEG baseline process, it is necessary to perform Huffman encoding in order from the low frequency side to the high frequency side for all AC coefficients.

しかしながら、全ての交流係数が有効な係数(0でない係数)である場合は少なく、特に、高周波側の交流係数には無効な係数(0である係数)が多く連続して存在している。   However, there are few cases where all AC coefficients are effective coefficients (non-zero coefficients). In particular, there are many invalid coefficients (coefficients that are 0) continuously in the high-frequency AC coefficient.

そのため、全ての交流係数についてハフマン符号化を行うと、データの符号化に要する所要時間が長くなるおそれがあった。   Therefore, if Huffman encoding is performed for all AC coefficients, there is a possibility that the time required for data encoding becomes long.

そこで、符号化処理に要する時間の短縮を図ることを目的として、全ての交流係数についてハフマン符号化を行うのではなく、無効な交流係数(0である係数)が予め設定した所定数だけ連続する場合には、それよりも高周波側の交流係数が全て無効な係数(0である係数)であるとみなして、その時点で交流係数のハフマン符号化を停止し、それよりも高周波側の交流係数については、符号化を行わない画像データ符号方法が提供されている(たとえば、特許文献1参照。)。
特開8-214168号公報
Therefore, in order to shorten the time required for the encoding process, Huffman encoding is not performed for all AC coefficients, but a predetermined number of invalid AC coefficients (coefficients that are 0) are consecutive. In this case, it is assumed that the AC coefficients on the higher frequency side are all invalid coefficients (coefficients that are 0), and the Huffman coding of the AC coefficient is stopped at that time, and the AC coefficient on the higher frequency side than that is stopped. Is provided with an image data encoding method that does not perform encoding (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 8-214168

ところが、無効な交流係数(0である係数)が予め決定した所定数だけ連続した時点で一律に交流係数の符号化を停止してしまうと、それよりも高周波側の交流係数に有効な係数(0でない係数)が含まれている場合には、有効な交流係数(0でない係数)が符号化されず、符号化した画像データを復元したときに、画像データの劣化が生じてしまうといった問題があった。   However, when the invalid AC coefficient (coefficient that is 0) is continuously stopped when a predetermined number of predetermined AC coefficients are continuously encoded, the coefficient (effective coefficient for the AC coefficient on the higher frequency side than that) ( If a non-zero coefficient is included, a valid AC coefficient (non-zero coefficient) is not encoded, and when the encoded image data is restored, the image data is degraded. there were.

すなわち、上記従来のデータ符号化方法は、符号化に要する処理時間を優先して、データの再現性を犠牲にしたものであった。   That is, the conventional data encoding method sacrifices data reproducibility by giving priority to the processing time required for encoding.

そこで、請求項1に係る本発明では、複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法において、複数の画像フレームのうちの1の画像フレームに対して符号化を行う際に、各画素ブロックから生成された複数の交流係数のうちの、無効な交流係数の連続個数に基づいて各画素ブロック毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロック毎の符号化を符号化停止条件で停止することにした。   Therefore, in the present invention according to claim 1, a plurality of AC coefficients generated by dividing each of a plurality of image frames into a predetermined number of pixel blocks, orthogonally transforming the image data in each pixel block, and then quantizing the image data. In the image data encoding method in which encoding is performed in order from the low frequency side to the high frequency side, when encoding is performed on one image frame of a plurality of image frames, a plurality of pixels generated from each pixel block The coding stop condition for stopping the coding for each pixel block is determined based on the continuous number of invalid AC coefficients among the AC coefficients, and then coding for other image frames is performed. When performing the above, the encoding for each pixel block is stopped under the encoding stop condition.

また、請求項2に係る本発明では、複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法において、複数の画像フレームのうちの1の画像フレームに対して符号化を行う際に、各画素ブロックから生成された複数の交流係数を複数の周波数帯域毎に分割するとともに、各周波数帯域内で発生した無効な交流係数の連続個数に基づいて各周波数帯域毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロックの交流係数を前記周波数帯域毎に符号化し、しかも、各画素ブロック毎の符号化を符号化停止条件で停止することにした。   Further, in the present invention according to claim 2, a plurality of AC coefficients generated by dividing each of a plurality of image frames into a predetermined number of pixel blocks, orthogonally transforming the image data in each pixel block, and then quantizing the image data. In the image data encoding method in which encoding is performed in order from the low frequency side to the high frequency side, when encoding is performed on one image frame of a plurality of image frames, a plurality of pixels generated from each pixel block The coding coefficient is divided into a plurality of frequency bands, and a coding stop condition for stopping the coding for each frequency band is determined based on the continuous number of invalid AC coefficients generated in each frequency band. After that, when encoding another image frame, the AC coefficient of each pixel block is encoded for each frequency band, and the code for each pixel block is encoded. The we decided to stop the encoding stop condition.

また、請求項3に係る本発明では、符号化停止条件は、連続して発生する無効な交流係数が、連続個数の平均値に達したことを条件とすることにした。   Further, in the present invention according to claim 3, the encoding stop condition is that the invalid AC coefficient that is continuously generated has reached the average value of the continuous number.

また、請求項4に係る本発明では、符号化停止条件は、連続して発生する無効な交流係数が、連続個数の最小値に達したことを条件とすることにした。   Further, in the present invention according to claim 4, the encoding stop condition is that the invalid AC coefficient generated continuously reaches the minimum value of the continuous number.

また、請求項5に係る本発明では、符号化停止条件は、連続して発生する無効な交流係数が、連続個数の最大値に達したことを条件とすることにした。   Further, in the present invention according to claim 5, the encoding stop condition is based on the condition that the continuously generated invalid AC coefficient has reached the maximum value of the continuous number.

また、請求項6に係る本発明では、複数の画像フレーム中の画像データを順次所定数の画素ブロック毎に直交変換することによって所定数の変換係数を生成する直交変換手段と、この所定数の変換係数に対して量子化を行うことによって所定数の直流係数と所定数の交流係数とを生成する量子化手段と、所定数の直流係数の符号化を行う直流符号化手段と、所定数の交流係数のうちの無効な交流係数の連続個数を記憶する記憶手段と、所定数の交流係数に対して、低周波側から高周波側に向けて順に符号化を行い、しかも、記憶手段が記憶した無効な交流係数の連続個数に基づいて決定した符号化停止条件で符号化を停止する交流符号化手段とを有する画像処理装置とすることにした。   Further, in the present invention according to claim 6, orthogonal transform means for generating a predetermined number of transform coefficients by sequentially performing orthogonal transform of image data in a plurality of image frames for each predetermined number of pixel blocks, and this predetermined number of Quantizing means for generating a predetermined number of direct current coefficients and a predetermined number of alternating current coefficients by performing quantization on the transform coefficient, direct current encoding means for encoding the predetermined number of direct current coefficients, and a predetermined number of The storage means for storing the continuous number of invalid AC coefficients among the AC coefficients, and the predetermined number of AC coefficients are sequentially encoded from the low frequency side to the high frequency side, and the storage means stores them. The image processing apparatus has AC encoding means for stopping encoding under the encoding stop condition determined based on the continuous number of invalid AC coefficients.

そして、本発明では、以下に記載するような効果を奏する。   And in this invention, there exists an effect as described below.

請求項1に係る本発明では、複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法において、複数の画像フレームのうちの1の画像フレームに対して符号化を行う際に、各画素ブロックから生成された複数の交流係数のうちの、無効な交流係数の連続個数に基づいて各画素ブロック毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロック毎の符号化を符号化停止条件で停止することにしたため、全ての交流係数を符号化する必要がないので、符号化に要する処理時間を短縮でき、さらに、1の画像フレームの交流係数に基づいて決定した符号化停止条件を用いて、他の画像フレームの符号化を行うことにしているため、符号化した画像データを復元した際に、各画像フレームの画像データの劣化を防止することができる。   In the present invention according to claim 1, a plurality of AC frames generated by dividing each of a plurality of image frames into a predetermined number of pixel blocks, orthogonally transforming the image data in each pixel block, and then quantizing the low-frequency images. In the image data encoding method in which encoding is performed in order from the high frequency side to the high frequency side, a plurality of alternating currents generated from each pixel block when encoding one image frame of the plurality of image frames. An encoding stop condition for stopping encoding for each pixel block is determined based on the continuous number of invalid AC coefficients among the coefficients, and then encoding is performed on other image frames. In this case, since the encoding for each pixel block is stopped under the encoding stop condition, it is not necessary to encode all AC coefficients, so that the processing time required for encoding can be shortened. Furthermore, since the encoding stop condition determined based on the AC coefficient of one image frame is used to encode other image frames, each image is restored when the encoded image data is restored. Deterioration of the image data of the frame can be prevented.

請求項2に係る本発明では、複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法において、複数の画像フレームのうちの1の画像フレームに対して符号化を行う際に、各画素ブロックから生成された複数の交流係数を複数の周波数帯域毎に分割するとともに、各周波数帯域内で発生した無効な交流係数の連続個数に基づいて各周波数帯域毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロックの交流係数を前記周波数帯域毎に符号化し、しかも、各画素ブロック毎の符号化を符号化停止条件で停止することにしたため、符号化に要する処理時間を短縮できるだけでなく、このように、各画素ブロックの各周波数帯域毎に個別に符号化停止条件を決定しておけば、高周波数帯域側に有効な交流係数が含まれている場合であっても適切な画像データの符号化を行うことができるため、その後、復元した画像データの劣化を防止することができる。   In the present invention according to claim 2, a plurality of AC coefficients generated by dividing a plurality of image frames into a predetermined number of pixel blocks, orthogonally transforming the image data in each pixel block, and then quantizing the low-frequency images. In the image data encoding method in which encoding is performed in order from the high frequency side to the high frequency side, a plurality of alternating currents generated from each pixel block when encoding one image frame of the plurality of image frames. The coefficient is divided into a plurality of frequency bands, and an encoding stop condition for stopping the encoding for each frequency band is determined based on the continuous number of invalid AC coefficients generated in each frequency band. Then, when encoding another image frame, the AC coefficient of each pixel block is encoded for each frequency band, and the encoding for each pixel block is performed. Since it was decided to stop under the encoding stop condition, not only can the processing time required for encoding be reduced, but in this way, if the encoding stop condition is determined individually for each frequency band of each pixel block, Even when an effective AC coefficient is included on the frequency band side, appropriate image data can be encoded, so that the restored image data can be prevented from being deteriorated thereafter.

また、請求項3に係る本発明では、符号化停止条件は、連続して発生する無効な交流係数が、連続個数の平均値に達したことを条件とすることにしたため、符号化に要する処理時間を短縮できると共に、符号化した画像データを復元した際の画像データの劣化を防止することができる。   Further, in the present invention according to claim 3, since the encoding stop condition is based on the condition that the continuously generated invalid AC coefficient has reached the average value of the continuous number, the processing required for encoding is performed. The time can be shortened, and deterioration of the image data when the encoded image data is restored can be prevented.

また、請求項4に係る本発明では、符号化停止条件は、連続して発生する無効な交流係数が、連続個数の最小値に達したことを条件とすることにしたため、符号化に要する処理時間をより一層短縮できると共に、符号化した画像データを復元した際の画像データの劣化を防止することができる。   Further, in the present invention according to claim 4, the encoding stop condition is based on the condition that the continuously generated invalid AC coefficient has reached the minimum value of the continuous number. The time can be further shortened, and deterioration of the image data when the encoded image data is restored can be prevented.

また、請求項5に係る本発明では、符号化停止条件は、連続して発生する無効な交流係数が、連続個数の最大値に達したことを条件とすることにしたため、符号化に要する処理時間を短縮できると共に、符号化した画像データを復元した際の画像データの劣化をより一層防止することができる。   Further, in the present invention according to claim 5, since the encoding stop condition is based on the condition that the continuously generated invalid AC coefficient has reached the maximum value of the continuous number, the processing required for encoding is performed. The time can be shortened, and deterioration of the image data when the encoded image data is restored can be further prevented.

また、請求項6に係る本発明では、複数の画像フレーム中の画像データを順次所定数の画素ブロック毎に直交変換することによって所定数の変換係数を生成する直交変換手段と、この所定数の変換係数に対して量子化を行うことによって所定数の直流係数と所定数の交流係数とを生成する量子化手段と、所定数の直流係数の符号化を行う直流符号化手段と、所定数の交流係数のうちの無効な交流係数の連続個数を記憶する記憶手段と、所定数の交流係数に対して、低周波側から高周波側に向けて順に符号化を行い、しかも、記憶手段が記憶した無効な交流係数の連続個数に基づいて決定した符号化停止条件で符号化を停止する交流符号化手段とを有する画像処理装置とすることにしたため、符号化に要する処理時間を短縮できると共に、符号化した画像データを復元した際の画像データの劣化を防止することができる画像処理装置とすることができる。   Further, in the present invention according to claim 6, orthogonal transform means for generating a predetermined number of transform coefficients by sequentially performing orthogonal transform of image data in a plurality of image frames for each predetermined number of pixel blocks, and this predetermined number of Quantizing means for generating a predetermined number of direct current coefficients and a predetermined number of alternating current coefficients by performing quantization on the transform coefficient, direct current encoding means for encoding the predetermined number of direct current coefficients, and a predetermined number of The storage means for storing the continuous number of invalid AC coefficients among the AC coefficients, and the predetermined number of AC coefficients are sequentially encoded from the low frequency side to the high frequency side, and the storage means stores them. Since the image processing apparatus has AC encoding means that stops encoding under the encoding stop condition determined based on the continuous number of invalid AC coefficients, the processing time required for encoding can be reduced, and Conversion Thus, it is possible to provide an image processing apparatus that can prevent the image data from being degraded when the restored image data is restored.

本発明に係る画像処理装置は、複数の画像フレーム中の画像データを順次所定数の画素ブロック毎に直交変換することによって所定数の変換係数を生成する直交変換手段と、この所定数の変換係数に対して量子化を行うことによって所定数の直流係数及び交流係数とを生成する量子化手段と、所定数の直流係数の符号化を行う直流符号化手段と、所定数の交流係数に対して低周波側から高周波側に向けて順に符号化を行う交流符号化手段と、この交流符号化手段が符号化を行う際に検出した無効な交流係数の連続個数を記憶する記憶手段とを有している。   An image processing apparatus according to the present invention includes orthogonal transform means for generating a predetermined number of transform coefficients by sequentially orthogonally transforming image data in a plurality of image frames for each predetermined number of pixel blocks, and the predetermined number of transform coefficients. Quantizing means for generating a predetermined number of DC coefficients and AC coefficients by performing quantization, DC encoding means for encoding a predetermined number of DC coefficients, and a predetermined number of AC coefficients AC encoding means for encoding in order from the low frequency side to the high frequency side, and storage means for storing the continuous number of invalid AC coefficients detected when the AC encoding means performs encoding ing.

特に、交流符号化手段は、1の画像フレーム中の交流係数を各画素ブロック毎に複数の周波数帯域に分割し、この分割した各周波数帯域毎に発生した無効な交流係数の連続個数を記憶手段に記憶させておき、この無効な交流係数の連続個数に基づいて他の画像フレームの交流係数に対する各画素ブロック毎の符号化停止条件を決定するようにしている。   In particular, the AC encoding means divides the AC coefficient in one image frame into a plurality of frequency bands for each pixel block, and stores the continuous number of invalid AC coefficients generated for each divided frequency band. The encoding stop condition for each pixel block for the AC coefficient of another image frame is determined based on the continuous number of invalid AC coefficients.

また、交流符号化手段は、他の画像フレーム中の複数の交流係数を符号化する際に、上記した符号化停止条件を満たす周波数帯域まで符号化を行い、それよりも高周波側の周波数帯域では符号化を行わないようにしている。   In addition, when encoding a plurality of AC coefficients in another image frame, the AC encoding means performs encoding up to a frequency band that satisfies the above-described encoding stop condition, and in a frequency band higher than that, Encoding is not performed.

そして、上記構成の画像処理装置は、複数の画像フレームをそれぞれ所定数の8画素×8画素からなる画素ブロックに分割し、各画素ブロック中の画像データを直交変換することにより複数の変換係数を生成した後、この複数の変換係数を量子化することによって所定数の直流係数と所定数の交流係数とを生成し、その後、所定数の直流係数を符号化するとともに、所定数の交流係数を低周波側から高周波側に向けて順に符号化していく。   The image processing apparatus having the above configuration divides a plurality of image frames into pixel blocks each including a predetermined number of 8 pixels × 8 pixels, and orthogonally transforms the image data in each pixel block to obtain a plurality of transform coefficients. After the generation, the plurality of transform coefficients are quantized to generate a predetermined number of DC coefficients and a predetermined number of AC coefficients. After that, the predetermined number of DC coefficients are encoded, and the predetermined number of AC coefficients are Encoding is performed in order from the low frequency side to the high frequency side.

特に、複数の画像フレームのうち1の画像フレームに対して符号化を行う際には、各画素ブロックから生成された複数の交流係数のうちで、無効な交流係数の連続個数に基づいて各画素ブロック毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロック毎の符号化を上記した符号化停止条件で停止するようにしている。   In particular, when encoding one image frame among a plurality of image frames, each pixel is based on a continuous number of invalid AC coefficients among a plurality of AC coefficients generated from each pixel block. When the encoding stop condition for stopping the encoding for each block is determined and then encoding is performed for another image frame, the encoding for each pixel block is stopped as described above. Stops on condition.

このように符号化停止条件を決定しているため、1の画像フレーム以外の画像フレームに関しては、全ての交流係数を符号化する必要がないので、画像データの符号化に要する処理時間を短縮することができる。   Since the encoding stop condition is determined in this way, it is not necessary to encode all AC coefficients for image frames other than one image frame, so the processing time required for encoding image data is shortened. be able to.

さらに、連続する複数の画像フレームのうちの1の画像フレーム中の画像データに基づいて符号化停止条件を決定しているため、復元した複数の画像に画素欠けなどの画質劣化が発生することを未然に防止することができる。   Furthermore, since the encoding stop condition is determined based on the image data in one image frame among a plurality of consecutive image frames, image quality degradation such as missing pixels occurs in the restored images. It can be prevented in advance.

また、符号化停止条件は、1の画像フレームの各画素ブロックから生成された複数の交流係数を複数の周波数帯域毎に分割し、この各周波数帯域内で発生した無効な交流係数の連続個数に達したことを条件にすることもできる。   Also, the encoding stop condition is to divide a plurality of AC coefficients generated from each pixel block of one image frame into a plurality of frequency bands and to obtain a continuous number of invalid AC coefficients generated in each frequency band. It can also be conditional on reaching.

このように、各画素ブロックの各周波数帯域毎に個別に符号化停止条件を決定しておけば、高周波数帯域側に有効な交流係数が含まれている場合であっても適切な画像データの符号化を行うことができるため、その後、復元した画像データの劣化を防止することができる。   Thus, if the encoding stop condition is determined individually for each frequency band of each pixel block, even if an effective AC coefficient is included on the high frequency band side, appropriate image data Since encoding can be performed, deterioration of the restored image data can be prevented thereafter.

また、符号化停止条件は、各周波数帯域毎の符号化を行う際に、連続して発生する無効な交流係数が、上記した連続個数の平均値に達したことを条件とすることもでき、こうすることによって、符号化に要する処理時間を短縮できると共に、符号化した画像データを復元した際の画像データの劣化を防止することができる。   In addition, the encoding stop condition can also be based on the condition that the invalid AC coefficient that is generated continuously when the encoding is performed for each frequency band has reached the above average value of the continuous number. By doing so, the processing time required for encoding can be shortened, and deterioration of the image data when the encoded image data is restored can be prevented.

また、符号化停止条件は、各周波数帯域毎の符号化を行う際に、連続して発生する無効な交流係数が、上記した連続個数の最小値に達したことを条件とすることもでき、こうすることによって、符号化に要する処理時間をより一層短縮できる。   In addition, the encoding stop condition can also be made on condition that the invalid AC coefficient that is continuously generated when encoding for each frequency band has reached the minimum value of the continuous number described above, By doing so, the processing time required for encoding can be further reduced.

また、符号化停止条件は、各周波数帯域毎に符号化を行う際に、連続して発生する無効な交流係数が、上記した連続個数の最大値に達したことを条件とすることもでき、こうすることによって、符号化した画像データを復元した際の画像データの劣化をより一層防止することができる。   In addition, the encoding stop condition can also be made on condition that the invalid AC coefficient that is continuously generated reaches the maximum value of the continuous number described above when encoding for each frequency band, By doing so, it is possible to further prevent the deterioration of the image data when the encoded image data is restored.

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

図1は、本発明に係るデータ符号化方法を実行する画像処理装置1を示しており、このような画像処理装置は、ディジタルカメラやディジタルビデオカメラ等の信号処理部に内蔵されており、撮影した画像データに対して画像処理装置で符号化した後に、所定の記憶媒体に記憶するようにしている。   FIG. 1 shows an image processing apparatus 1 that executes a data encoding method according to the present invention. Such an image processing apparatus is built in a signal processing unit such as a digital camera or a digital video camera, and After the encoded image data is encoded by the image processing apparatus, it is stored in a predetermined storage medium.

画像処理装置1は、図1に示すように、直交変換手段2と、量子化手段3と、記憶手段4と直流符号化手段5と、交流符号化手段6とで構成している。   As shown in FIG. 1, the image processing apparatus 1 includes an orthogonal transform unit 2, a quantization unit 3, a storage unit 4, a DC encoding unit 5, and an AC encoding unit 6.

直交変換手段2は、画像メモリ7に記憶されている画像データの中から1画像フレーム毎に画像データを順次読み込む。   The orthogonal transform means 2 sequentially reads image data for each image frame from the image data stored in the image memory 7.

そして、この1画像フレーム分の画像データを8画素×8画素からなる画素ブロック毎に離散コサイン変換することによって、1画素ブロック中に64個の変換係数を生成する。   The image data for one image frame is subjected to discrete cosine transform for each pixel block composed of 8 pixels × 8 pixels, thereby generating 64 transform coefficients in one pixel block.

量子化手段3は、直交変換手段2で生成した64個の各変換係数を低周波(直流)側から高周波側に向けて順に予め設定した変換特性値で除算することによって量子化を行い、図2に示すように、1個の直流係数DCと63個の交流係数AC1〜AC63を生成する。   The quantization means 3 performs quantization by dividing each of the 64 transformation coefficients generated by the orthogonal transformation means 2 by a preset transformation characteristic value in order from the low frequency (DC) side to the high frequency side. As shown in FIG. 2, one DC coefficient DC and 63 AC coefficients AC1 to AC63 are generated.

直流符号化手段5は、1個の直流係数DCについてハフマン符号化を行い、符号化した直流成分のデータを所定のメモリ8に書き込む。   The DC encoding means 5 performs Huffman encoding for one DC coefficient DC, and writes the encoded DC component data in a predetermined memory 8.

交流符号化手段6は、交流係数AC1〜AC63について低周波側の交流係数AC1から高周波側の交流係数AC63に向けてジグザグスキャンしてハフマン符号化を行い、符号化した交流成分のデータを所定のメモリ8に書き込む(図3参照)。   The AC encoding means 6 performs a Huffman encoding by zigzag scanning the AC coefficients AC1 to AC63 from the AC coefficient AC1 on the low frequency side to the AC coefficient AC63 on the high frequency side, and the encoded AC component data is predetermined Write to memory 8 (see Figure 3).

特に、この画像処理装置1が1番目に読み込む画像フレーム中の画像データを符号化する際に、交流符号化手段6は、各画素ブロック中の交流係数AC1〜AC63を低周波数帯域9(AC1〜AC9)と、中周波数帯域10(AC10〜AC35)と、高周波数帯域11(AC36〜AC63)との3つの周波数帯域に分割する(図4参照)。   In particular, when the image data in the image frame read first by the image processing apparatus 1 is encoded, the AC encoding means 6 converts the AC coefficients AC1 to AC63 in each pixel block into the low frequency band 9 (AC1 to AC1). It is divided into three frequency bands: AC9), medium frequency band 10 (AC10 to AC35), and high frequency band 11 (AC36 to AC63) (see FIG. 4).

そして、各周波数帯域9,10,11内で発生した無効な交流係数である0の連続発生個数(以下、「0ランレングス」という。)を各周波数帯域9,10,11毎に検出し、この0ランレングスを記憶手段4に記憶させ、これと同様の処理を1番目に読み込む画像フレームの全ての画素ブロックに対して行う。   Then, the number of consecutive occurrences of 0 which is an invalid AC coefficient generated in each frequency band 9, 10, 11 is detected for each frequency band 9, 10, 11 (hereinafter referred to as “0 run length”). This 0 run length is stored in the storage means 4, and the same processing is performed for all the pixel blocks of the image frame to be read first.

このとき同時に、交流符号化手段6は、記憶手段4に記憶させた複数の0ランレングスに基づいて2番目以降に読み込む画像フレーム中の画像データの符号化停止条件を決定する。   At the same time, the AC encoding means 6 determines the condition for stopping the encoding of the image data in the image frame read from the second time onward, based on the plurality of 0 run lengths stored in the storage means 4.

以下に、本発明に係る画像データ符号化方法について図5及び図6に示すフローチャートを参照しながら具体的に説明する。   The image data encoding method according to the present invention will be specifically described below with reference to the flowcharts shown in FIGS.

1番目の画像フレーム中の画像データを符号化する際は、図5のフローチャートに示すように、まず、直交変換手段2は、画像メモリ7から1番目の画像フレームに含まれる画像データを読み込む(ステップS1)。   When encoding the image data in the first image frame, first, as shown in the flowchart of FIG. 5, the orthogonal transformation means 2 reads the image data included in the first image frame from the image memory 7 ( Step S1).

次に、直交変換手段2は、画像メモリ7から読み込んだ画像データに対して8画素×8画素からなる画素ブロック毎に直交変換である離散コサイン変換を行うことによって複数の変換係数を生成する(ステップ2)。   Next, the orthogonal transform unit 2 generates a plurality of transform coefficients by performing discrete cosine transform, which is orthogonal transform, for each pixel block of 8 pixels × 8 pixels with respect to the image data read from the image memory 7 ( Step 2).

次に、量子化手段3は、直行変換手段2が生成した複数の変換係数に対して、予め設定した変換特性値で除算することによって量子化を行い、1個の直流係数DCと63個の交流係数(AC1〜AC63)とを生成する(ステップ3)。   Next, the quantizing means 3 quantizes the plurality of transform coefficients generated by the direct transform means 2 by dividing by a preset transform characteristic value, and one DC coefficient DC and 63 AC coefficients (AC1 to AC63) are generated (step 3).

次に、直流符号化手段5は、直流係数DCを符号化する(ステップS4)。   Next, the DC encoding means 5 encodes the DC coefficient DC (step S4).

次に、交流符号化手段6は、1画素ブロック中に含まれる交流係数AC1〜AC63を低周波数帯域9(AC1〜AC9)と、中周波数帯域10(AC10〜AC35)と、高周波数帯域11(AC36〜AC63)の3つの周波数帯域に分割する(ステップ5)。   Next, the AC encoding unit 6 converts the AC coefficients AC1 to AC63 included in one pixel block into a low frequency band 9 (AC1 to AC9), a medium frequency band 10 (AC10 to AC35), and a high frequency band 11 ( It is divided into three frequency bands (AC36 to AC63) (step 5).

次に、交流符号化手段6は、各周波数帯域9,10,11毎に交流係数を符号化する。   Next, the AC encoding means 6 encodes an AC coefficient for each frequency band 9, 10, and 11.

このとき同時に、低周波数帯域9で発生した0ランレングスと、中周波数帯域10で発生した0ランレングスと、高周波数帯域11で発生した0ランレングスとをそれぞれ検出し記憶手段4に記憶させる(ステップ6)。   At the same time, the 0 run length generated in the low frequency band 9, the 0 run length generated in the medium frequency band 10, and the 0 run length generated in the high frequency band 11 are respectively detected and stored in the storage means 4 ( Step 6).

次に、全ての画素ブロックの符号化が終了していなければ、ステップS4に戻り次の画素ブロックの符号化を行い、全ての画素ブロックの符号化が終了したらステップS8へ進む(ステップS7)。   Next, if all the pixel blocks have not been encoded, the process returns to step S4 to encode the next pixel block, and when all the pixel blocks have been encoded, the process proceeds to step S8 (step S7).

次に、交流符号化手段6は、記憶手段4に記憶させた0ランレングスに基づいて、2番目以降に読み込む画像フレーム中の画像データを各周波数帯域毎に符号化する際に、符号化を停止するための符号化停止条件を決定する(ステップS8)。   Next, the AC encoding unit 6 performs encoding when encoding the image data in the image frame read from the second onward based on the 0 run length stored in the storage unit 4 for each frequency band. An encoding stop condition for stopping is determined (step S8).

具体的には、記憶手段4に記憶させた複数の0ランレングスを用いて、各低周波数帯域9での0ランレングスの平均値a、各中周波数帯域10での0ランレングスの平均値b、各高周波数帯域での0ランレングスの平均値cを予め求めておく。   Specifically, using a plurality of 0 run lengths stored in the storage means 4, the average value a of 0 run lengths in each low frequency band 9 and the average value b of 0 run lengths in each medium frequency band 10 The average value c of 0 run lengths in each high frequency band is obtained in advance.

このようにして符号化停止条件を決定した時点で1番目の画像フレーム中の画像データの符号化を終了し、次の画像フレーム中の画像データの符号化を行う。   When the encoding stop condition is determined in this way, the encoding of the image data in the first image frame is finished, and the image data in the next image frame is encoded.

2番目以降の画像フレーム中の画像データの符号化を行う際は、図6のフローチャートに示すように、まず、直交変換手段2は、画像メモリ8から2番目以降の画像フレームに含まれる画像データを1画像フレームずつ順次読み込む(ステップS9)。   When encoding the image data in the second and subsequent image frames, as shown in the flowchart of FIG. 6, first, the orthogonal transform means 2 starts the image data included in the second and subsequent image frames from the image memory 8. Are sequentially read frame by frame (step S9).

次に、直交変換手段2は、画像メモリ7から読み込んだ画像データに対して8画素×8画素からなる画素ブロック毎に直交変換である離散コサイン変換を行うことによって複数の変換係数を生成する(ステップS10)。   Next, the orthogonal transform unit 2 generates a plurality of transform coefficients by performing discrete cosine transform, which is orthogonal transform, for each pixel block of 8 pixels × 8 pixels with respect to the image data read from the image memory 7 ( Step S10).

次に、量子化手段3は、直行変換手段2が生成した複数の変換係数に対して、予め設定した変換特性値で除算することによって量子化を行い、1個の直流係数DCと63個の交流係数(AC1〜AC63)とを生成する(ステップS11)。   Next, the quantizing means 3 quantizes the plurality of transform coefficients generated by the direct transform means 2 by dividing by a preset transform characteristic value, and one DC coefficient DC and 63 AC coefficients (AC1 to AC63) are generated (step S11).

次に、直流符号化手段5は、直流係数DCを符号化する(ステップS12)。   Next, the DC encoding means 5 encodes the DC coefficient DC (step S12).

次に、交流変換手段6は、低周波数帯域9の交流係数AC1〜AC9の符号化を行う(ステップS13)。   Next, the AC conversion means 6 encodes the AC coefficients AC1 to AC9 in the low frequency band 9 (step S13).

このとき、低周波数帯域9で検出する0ランレングスがステップS8で決定した低周波数帯域9での0ランレングスの平均値aに達した場合は、交流係数の符号化を停止してステップS20に進み、低周波数帯域9の中の最後の有効な交流係数の後ろに符号化終了を表すEOB(End Of Block)を挿入する。   At this time, if the 0 run length detected in the low frequency band 9 has reached the average value a of 0 run length in the low frequency band 9 determined in step S8, encoding of the AC coefficient is stopped and the process proceeds to step S20. Then, EOB (End Of Block) indicating the end of encoding is inserted after the last effective AC coefficient in the low frequency band 9.

一方、低周波数帯域9で検出する0ランレングスがステップS8で決定した低周波数帯域9での0ランレングスの平均値aに達しなかった場合は、ステップS15に進む(ステップS14)。   On the other hand, if the 0 run length detected in the low frequency band 9 does not reach the average value a of 0 run lengths in the low frequency band 9 determined in step S8, the process proceeds to step S15 (step S14).

次に、交流符号化手段6は、中周波数帯域10の交流係数AC10〜AC35の符号化を行う(ステップS15)。   Next, the AC encoding means 6 encodes the AC coefficients AC10 to AC35 in the medium frequency band 10 (step S15).

このとき、中周波数帯域10で検出する0ランレングスがステップS8で決定した中周波数帯域10での0ランレングスの平均値bに達した場合は、交流係数の符号化を停止してステップS20に進み、中周波数帯域10の中の最後の有効な交流係数の後ろに符号化終了を表すEOBを挿入する。   At this time, if the 0 run length detected in the middle frequency band 10 reaches the average value b of 0 run length in the middle frequency band 10 determined in step S8, the encoding of the AC coefficient is stopped and the process proceeds to step S20. Then, an EOB representing the end of encoding is inserted after the last effective AC coefficient in the medium frequency band 10.

一方、中周波数帯域10で検出する0ランレングスがステップS8で決定した中周波数帯域10での0ランレングスの平均値bに達しなかった場合は、ステップS17に進む(ステップS16)。   On the other hand, if the 0 run length detected in the intermediate frequency band 10 does not reach the average value b of the 0 run length in the intermediate frequency band 10 determined in step S8, the process proceeds to step S17 (step S16).

次に、交流符号化手段6は、高周波数帯域11の交流係数AC36〜AC63の符号化を行う(ステップS17)。   Next, the AC encoding means 6 encodes the AC coefficients AC36 to AC63 in the high frequency band 11 (step S17).

このとき、高周波数帯域11で検出する0ランレングスがステップS8で決定した高周波数帯域11での0ランレングスの平均値cに達した場合は、交流係数の符号化を停止してステップS20に進み、高周波数帯域11の中の最後の有効な交流係数の後ろに符号化終了を表すEOBを挿入する。   At this time, when the 0 run length detected in the high frequency band 11 reaches the average value c of the 0 run length in the high frequency band 11 determined in step S8, the encoding of the AC coefficient is stopped and the process proceeds to step S20. Then, an EOB representing the end of encoding is inserted after the last effective AC coefficient in the high frequency band 11.

一方、高周波数帯域11で検出する0ランレングスがステップS8で決定した高周波数帯域11での0ランレングスの平均値cに達しなかった場合は、ステップS19に進む(ステップS18)。   On the other hand, if the 0 run length detected in the high frequency band 11 does not reach the average value c of the 0 run length in the high frequency band 11 determined in step S8, the process proceeds to step S19 (step S18).

次に、交流符号化手段6は、高周波数帯域6の交流係数を最後まで符号化する(ステップS19)。   Next, the AC encoding means 6 encodes the AC coefficient of the high frequency band 6 to the end (step S19).

次に、高周波数帯域11の中の最後の有効な交流係数の後ろにEOBを挿入する(ステップS20)。   Next, EOB is inserted after the last effective AC coefficient in the high frequency band 11 (step S20).

次に、全ての画素ブロックの符号化が終了していなければ、ステップS12に戻り、次の画素ブロックの符号化を行い、全ての画素ブロックの符号化が終了したら、この画像フレームの符号化を終了して次の画像フレームの符号化を開始する。   Next, if encoding of all pixel blocks has not been completed, the process returns to step S12, encoding of the next pixel block is performed, and encoding of all pixel blocks is completed, encoding of this image frame is performed. End and start encoding the next image frame.

そして、全ての画像フレームに対して、上記と同様な符号化処理を行って画像データの符号化を終了する。   Then, the encoding process similar to the above is performed on all the image frames, and the encoding of the image data is completed.

このようにして、画像データの符号化を行うことによって、符号化に要する処理時間を短縮できると共に、符号化した画像データを復元した際の画像データの劣化を防止することができる。   By encoding image data in this way, the processing time required for encoding can be shortened, and deterioration of the image data when the encoded image data is restored can be prevented.

また、本実施の形態では符号化停止条件となる0ランレングスとして、1番目の画像フレームを構成する各画素ブロックの各周波数帯域に発生した0ランレングスの平均値を用いたが、各周波数帯域に発生した0ランレングスの最小値を用いると、符号化を行う交流係数の個数が少なくなるため、符号化に要する処理時間をより一層短縮できる。   In this embodiment, the average value of the 0 run lengths generated in each frequency band of each pixel block constituting the first image frame is used as the 0 run length which is the encoding stop condition. If the minimum value of the 0 run length generated in the above is used, the number of AC coefficients to be encoded is reduced, so that the processing time required for encoding can be further reduced.

また、各周波数帯域に発生した0ランレングスの最大値を用いると、符号化を行う交流係数の個数が多くなるため、符号化した画像データを復元した際の画像データの劣化をより一層防止することができる。   In addition, if the maximum value of the 0 run length generated in each frequency band is used, the number of AC coefficients to be encoded increases, so that deterioration of the image data when the encoded image data is restored is further prevented. be able to.

本発明に係る画像処理装置を示す説明図である。It is explanatory drawing which shows the image processing apparatus which concerns on this invention. 1画素ブロック中の直流係数及び交流係数を示す説明図である。It is explanatory drawing which shows the direct current coefficient and alternating current coefficient in 1 pixel block. ジグザグスキャンを示す説明図である。It is explanatory drawing which shows a zigzag scan. 各周波数帯域を示す説明図である。It is explanatory drawing which shows each frequency band. 1番目の画像フレームの画像データ符号化方法を示す説明図である。It is explanatory drawing which shows the image data encoding method of the 1st image frame. 2番目以降の画像フレームの画像データ符号化方法を示す説明図である。It is explanatory drawing which shows the image data encoding method of the 2nd image frame or later.

符号の説明Explanation of symbols

1 画像処理装置
2 直交変換手段
3 量子化手段
4 記憶手段
5 直流符号化手段
6 交流符号化手段
7 画像メモリ
8 メモリ
9 低周波数帯域
10 中周波数帯域
11 高周波数帯域
DC 直流係数
AC1〜AC63 交流係数
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 Orthogonal transformation means 3 Quantization means 4 Memory | storage means 5 DC encoding means 6 AC encoding means 7 Image memory 8 Memory 9 Low frequency band 10 Medium frequency band 11 High frequency band
DC DC coefficient
AC1 to AC63 AC coefficient

Claims (6)

複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法において、
前記複数の画像フレームのうちの1の画像フレームに対して符号化を行う際に、各画素ブロックから生成された複数の交流係数のうちの、無効な交流係数の連続個数に基づいて各画素ブロック毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロック毎の符号化を前記符号化停止条件で停止することを特徴とする画像データ符号化方法。
A plurality of AC frames generated by dividing a plurality of image frames into a predetermined number of pixel blocks and quantizing the image data in each pixel block after orthogonal transformation are sequentially encoded from the low frequency side to the high frequency side. In the image data encoding method
When encoding one image frame of the plurality of image frames, each pixel block is based on a continuous number of invalid AC coefficients among a plurality of AC coefficients generated from each pixel block. When the encoding stop condition for stopping the encoding for each image is determined and then encoding is performed on another image frame, the encoding for each pixel block is performed under the encoding stop condition. An image data encoding method characterized by stopping.
複数の画像フレームをそれぞれ所定数の画素ブロックに分割し、各画素ブロック中の画像データを直交変換した後に量子化することによって生成した複数の交流係数を低周波側から高周波側に向けて順に符号化していく画像データ符号化方法において、
前記複数の画像フレームのうちの1の画像フレームに対して符号化を行う際に、各画素ブロックから生成された複数の交流係数を複数の周波数帯域毎に分割するとともに、各周波数帯域内で発生した無効な交流係数の連続個数に基づいて各周波数帯域毎の符号化を停止するための符号化停止条件を決定しておき、その後、他の画像フレームに対して符号化を行う際には、各画素ブロックの交流係数を前記周波数帯域毎に符号化し、しかも、各画素ブロック毎の符号化を前記符号化停止条件で停止することを特徴とする画像データ符号化方法。
A plurality of AC frames generated by dividing a plurality of image frames into a predetermined number of pixel blocks and quantizing the image data in each pixel block after orthogonal transformation are sequentially encoded from the low frequency side to the high frequency side. In the image data encoding method
When encoding one image frame among the plurality of image frames, a plurality of AC coefficients generated from each pixel block are divided into a plurality of frequency bands and generated in each frequency band. Based on the consecutive number of invalid AC coefficients that have been determined, the encoding stop condition for stopping the encoding for each frequency band is determined, and then when performing encoding on other image frames, An image data encoding method, wherein an AC coefficient of each pixel block is encoded for each frequency band, and encoding for each pixel block is stopped under the encoding stop condition.
前記符号化停止条件は、連続して発生する無効な交流係数が、前記連続個数の平均値に達したことを条件とすることを特徴とする請求項1又は2に記載の画像データ符号化方法。   3. The image data encoding method according to claim 1, wherein the encoding stop condition is that the invalid AC coefficient generated continuously reaches an average value of the continuous number. . 前記符号化停止条件は、連続して発生する無効な交流係数が、前記連続個数の最小値に達したことを条件とすることを特徴とする請求項1又は2に記載の画像データ符号化方法。   3. The image data encoding method according to claim 1, wherein the encoding stop condition is that an invalid AC coefficient that is continuously generated reaches a minimum value of the continuous number. . 前記符号化停止条件は、連続して発生する無効な交流係数が、前記連続個数の最大値に達したことを条件とすることを特徴とする請求項1又は2に記載の画像データ符号化方法。   The image data encoding method according to claim 1 or 2, wherein the encoding stop condition is that an invalid AC coefficient that is continuously generated reaches a maximum value of the continuous number. . 複数の画像フレーム中の画像データを順次所定数の画素ブロック毎に直交変換することによって所定数の変換係数を生成する直交変換手段と、
この所定数の変換係数に対して量子化を行うことによって所定数の直流係数と所定数の交流係数とを生成する量子化手段と、
前記所定数の直流係数の符号化を行う直流符号化手段と、
前記所定数の交流係数のうちの無効な交流係数の連続個数を記憶する記憶手段と、
前記所定数の交流係数に対して、低周波側から高周波側に向けて順に符号化を行い、しかも、前記記憶手段が記憶した無効な交流係数の連続個数に基づいて決定した符号化停止条件で符号化を停止する交流符号化手段とを有することを特徴とする画像処理装置。
Orthogonal transform means for generating a predetermined number of transform coefficients by orthogonally transforming image data in a plurality of image frames sequentially for each predetermined number of pixel blocks;
Quantization means for generating a predetermined number of direct current coefficients and a predetermined number of alternating current coefficients by performing quantization on the predetermined number of transform coefficients;
DC encoding means for encoding the predetermined number of DC coefficients;
Storage means for storing a continuous number of invalid AC coefficients among the predetermined number of AC coefficients;
The predetermined number of AC coefficients are encoded in order from the low frequency side to the high frequency side, and the encoding stop condition is determined based on the continuous number of invalid AC coefficients stored by the storage means. An image processing apparatus comprising: AC encoding means for stopping encoding.
JP2004016692A 2004-01-26 2004-01-26 Image data coding method, and image processing device for coding image data Abandoned JP2005210566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004016692A JP2005210566A (en) 2004-01-26 2004-01-26 Image data coding method, and image processing device for coding image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004016692A JP2005210566A (en) 2004-01-26 2004-01-26 Image data coding method, and image processing device for coding image data

Publications (1)

Publication Number Publication Date
JP2005210566A true JP2005210566A (en) 2005-08-04

Family

ID=34901765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004016692A Abandoned JP2005210566A (en) 2004-01-26 2004-01-26 Image data coding method, and image processing device for coding image data

Country Status (1)

Country Link
JP (1) JP2005210566A (en)

Similar Documents

Publication Publication Date Title
US10911758B2 (en) Multi-level significance maps for encoding and decoding
JP4393875B2 (en) System and method for providing a single layer video encoded bitstream suitable for reduced complexity decoding
KR101538832B1 (en) Multi-level significance map scanning
KR101266577B1 (en) The method and apparatus of processing an image
EP1768415A1 (en) Adaptive scan order of DCT coefficients and its signaling
JP4365957B2 (en) Image processing method and apparatus and storage medium
KR102123605B1 (en) Method and apparatus for improved entropy encoding and decoding
US20040179610A1 (en) Apparatus and method employing a configurable reference and loop filter for efficient video coding
JP7025515B2 (en) Inverse conversion A method for decoding a moving image that performs dynamic range conversion reduced by shift memory.
US20110243220A1 (en) Method and apparatus for encoding and decoding image and method and apparatus for decoding image using adaptive coefficient scan order
MX2012011650A (en) Method and apparatus for encoding and decoding image and method and apparatus for decoding image using adaptive coefficient scan order.
JP5231243B2 (en) Encoding apparatus and encoding method
EP3499892B1 (en) Multi-level significance maps for encoding and decoding
JP2003198851A (en) Signaling adaptive-quantization matrices in jpeg using end-of-block codes
JP3395892B2 (en) Video encoding device
US7020342B1 (en) Scalable coding
JP2000115548A (en) Compressing method and decompressing method of digital image
US20060278725A1 (en) Image encoding and decoding method and apparatus, and computer-readable recording medium storing program for executing the method
JP2008271039A (en) Image encoder and image decoder
CN108605131B (en) Method and apparatus for encoding and decoding data, and corresponding recording medium
JP4919213B2 (en) Digital watermark insertion method and detection method
US11303896B2 (en) Data encoding and decoding
JP2005210566A (en) Image data coding method, and image processing device for coding image data
JP2007221387A (en) Data inserting device and method, and image compressing coding device and method
JPH0730889A (en) Picture data encoder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060705

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20080228