JP4907488B2 - Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method - Google Patents

Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method Download PDF

Info

Publication number
JP4907488B2
JP4907488B2 JP2007276074A JP2007276074A JP4907488B2 JP 4907488 B2 JP4907488 B2 JP 4907488B2 JP 2007276074 A JP2007276074 A JP 2007276074A JP 2007276074 A JP2007276074 A JP 2007276074A JP 4907488 B2 JP4907488 B2 JP 4907488B2
Authority
JP
Japan
Prior art keywords
image
decoding
processing
code
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007276074A
Other languages
Japanese (ja)
Other versions
JP2009105701A (en
Inventor
児玉  卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007276074A priority Critical patent/JP4907488B2/en
Publication of JP2009105701A publication Critical patent/JP2009105701A/en
Application granted granted Critical
Publication of JP4907488B2 publication Critical patent/JP4907488B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は画像処理装置、画像処理方法及び該方法を実行させるためのプログラムを格納したコンピュータ読み取り可能な記録媒体に関し、詳細には画像データの圧縮伸張方法に関し、特に複数のスレッドのそれぞれに含まれる命令を並列に実行可能なプロセッサを用いて画像処理を実行する技術に関する。   The present invention relates to an image processing apparatus, an image processing method, and a computer-readable recording medium storing a program for executing the method, and more particularly to a method for compressing / decompressing image data, and is particularly included in each of a plurality of threads. The present invention relates to a technique for executing image processing using a processor capable of executing instructions in parallel.

近年、コンピュータ技術の進展に伴い、高速なプロセッサや大容量のメモリ等の様々なハードウェア資源が開発されている。その中の一つに、1つのプロセッサが論理的に複数のプロセッサとして働くことができるようなプロセッサがある。このプロセッサは、複数のスレッドのそれぞれに含まれる命令を並列に実行することが可能である。このようなプロセッサにより、画像処理を行うことにより、画像処理の高速化が期待されている。このような画像処理方法について従来よりいくつか提案がなされている。   In recent years, with the progress of computer technology, various hardware resources such as a high-speed processor and a large-capacity memory have been developed. One of them is a processor in which one processor can logically act as a plurality of processors. This processor can execute instructions included in each of a plurality of threads in parallel. By performing image processing with such a processor, speeding up of image processing is expected. Some proposals have been made on such image processing methods.

その一つとして特許文献1には、画像処理を実行するための複数のスレッドをそのスレッドの実行に用いる処理方法の違いによって、グループに分け、実行する画像処理方法および画像処理プログラムが提案されている。また、特許文献2には、ハーフトーニングに割り当てるプロセッサ数を変化させ、また割り当てるプロセッサを解像度で変化させる画像処理方法、印刷装置、画像処理システムおよび記録媒体が提案されている。
特開2005−259042号公報 特許第3,797,013号明細書
As one example, Patent Document 1 proposes an image processing method and an image processing program that divide and execute a plurality of threads for executing image processing into groups according to differences in processing methods used for executing the threads. Yes. Patent Document 2 proposes an image processing method, a printing apparatus, an image processing system, and a recording medium in which the number of processors assigned to halftoning is changed and the assigned processors are changed by resolution.
JP 2005-259042 A Patent No. 3,797,013

しかしながら、上記特許文献1、2の画像処理方法は、JPEG2000のように、並列実行可能な符号と、並列実行が不可能な部分が混在し、かつ処理対象となる符号によって変化するものである場合、適した分割ができず、高速化ができない。つまり、JPEG2000画像処理方法などに代表される領域ごとに独立に復号可能な符号からなる符号の復号処理は、並列処理可能な部分と、並列処理不可能な部分とが混在しており、処理が複雑であり、高速化は困難であった。   However, the image processing methods disclosed in Patent Documents 1 and 2 include a code that can be executed in parallel and a portion that cannot be executed in parallel, such as JPEG2000, and changes depending on the code to be processed. , Suitable division is not possible, and the speed cannot be increased. In other words, the decoding process of codes composed of codes that can be decoded independently for each region represented by the JPEG2000 image processing method, etc., includes a part that can be processed in parallel and a part that cannot be processed in parallel. It was complicated and speeding up was difficult.

本発明はこれらの問題点を解決するためのものであり、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行可能とする画像処理装置、画像処理方法及び該方法を実行させるプログラムを格納したコンピュータ読み取り可能な記録媒体を提供することを目的とする。   The present invention is intended to solve these problems, and an image processing apparatus, an image processing method, and the method capable of executing image processing capable of executing instructions included in a plurality of threads in parallel at high speed An object of the present invention is to provide a computer-readable recording medium storing a program for executing the above.

前記問題点を解決するために、画像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号データを復号する、本発明の画像処理装置は、符号データにおける画像情報を解読するヘッダ処理手段と、独立に復号可能な符号に分割する符号分割手段と、受け取った符号データを復号処理する復号処理手段と、分割した符号データを、復号処理手段に提供する起動手段と、復号処理手段の復号結果を受け取る画像データ獲得手段と、同時に実施可能なスレッド数を獲得するスレッド数獲得手段と、復号処理手段の実行スレッド数を獲得する実行スレッド数獲得手段とを有している。そして、本発明の画像処理装置によれば、起動手段は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて復号処理手段の起動を制御する。そして、実行可能なスレッド数と復号処理手段の実行スレッド数を元に符号データを分割し、復号処理手段を同時に複数実行して画像データを生成することに特徴がある。よって、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。 In order to solve the above problem, the image processing apparatus of the present invention that divides image data into regions and decodes code data that has been subjected to compression processing that can be independently decoded for each divided region. Header processing means for decoding information, code division means for dividing the code into independently decodable codes, decoding processing means for decoding received code data, and activation means for providing the divided code data to the decoding processing means Image data acquisition means for receiving the decoding result of the decoding processing means, thread number acquisition means for acquiring the number of threads that can be executed simultaneously, and execution thread number acquisition means for acquiring the number of execution threads of the decoding processing means ing. According to the image processing apparatus of the present invention , the starting unit controls the starting of the decoding processing unit based on the comparison result between the measurement result obtained by measuring the throughput of the instruction sequence executed by the CPU and the predetermined value. The code data is divided based on the number of executable threads and the number of execution threads of the decoding processing means, and a plurality of decoding processing means are simultaneously executed to generate image data. Therefore, it is possible to execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed.

また、起動手段は、復号処理の途中で起動する復号処理手段の数を変更することにより、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。   In addition, the activation unit can execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed by changing the number of decoding processing units activated during the decoding process.

また、画像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号化データを生成する、本発明の画像処理装置は、画像の符号化条件の設定及びヘッダ情報の生成を行うヘッダ生成手段と、独立に復号可能な符号化データごとに対象となる画像データを元画像より抽出する画像分割手段と、受け取った画像データを符号化処理する符号化処理手段と、分割した画像データを、符号化処理手段に提供する起動手段と、符号化処理手段の符号化結果を受け取る符号データ獲得手段と、同時に実施可能なスレッド数を獲得するスレッド数獲得手段と、符号化処理手段の実行スレッド数を獲得する実行スレッド数獲得手段と、獲得した複数の符号化データを結合し、符号データを構成する符号生成手段とを有している。そして、本発明の画像処理装置によれば、起動手段は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて復号処理手段の起動を制御する。そして、実行可能なスレッド数と符号化処理手段の実行スレッド数を元に画像データを分割し、符号化処理手段を同時に複数実行して符号を生成することに特徴がある。よって、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。 Further, the image processing apparatus of the present invention that divides the image data into regions and generates encoded data that has been subjected to compression processing that can be independently decoded for each of the divided regions. Header generating means for generating the above, image dividing means for extracting the target image data from the original image for each encoded data that can be independently decoded, encoding processing means for encoding the received image data, An activation unit that provides the divided image data to the encoding processing unit; a code data acquisition unit that receives an encoding result of the encoding processing unit; a thread number acquisition unit that acquires the number of threads that can be executed simultaneously; The processing means includes an execution thread number acquisition means for acquiring the number of execution threads, and a code generation means for combining the plurality of acquired encoded data to constitute the code data. According to the image processing apparatus of the present invention , the starting unit controls the starting of the decoding processing unit based on the comparison result between the measurement result obtained by measuring the throughput of the instruction sequence executed by the CPU and the predetermined value. A feature is that the image data is divided based on the number of executable threads and the number of execution threads of the encoding processing means, and a plurality of encoding processing means are simultaneously executed to generate codes. Therefore, it is possible to execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed.

更に、起動手段は、符号処理の途中で起動する符号化処理手段の数を変更することにより、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。   Furthermore, the activation means can execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed by changing the number of encoding processing means activated in the middle of the encoding process.

更に、圧縮符号がJPEG2000であることが好ましい。また、領域のサイズがタイルであることが好ましい。更に、領域のサイズがプレシンクトであることが好ましい。   Furthermore, the compression code is preferably JPEG2000. Moreover, it is preferable that the size of an area | region is a tile. Furthermore, the size of the region is preferably precinct.

また、別の発明としての画像処理方法によれば、画像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号データを復号する。そして、本発明の画像処理方法は、符号データにおける画像情報を解読するヘッダ処理工程と、独立に復号可能な符号に分割する符号分割工程と、受け取った符号データを復号処理する復号処理工程と、分割した符号データを復号処理工程に対して提供する起動工程と、復号処理工程による復号結果を受け取る画像データ獲得工程と、同時に実施可能なスレッド数を獲得するスレッド数獲得工程と、復号処理工程における実行スレッド数を獲得する実行スレッド数獲得工程とを有している。更には、本発明の画像処理方法によれば、起動工程は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて復号処理工程の起動を制御する。そして、実行可能なスレッド数と復号処理工程における実行スレッド数を元に符号データを分割し、復号処理工程を同時に複数実行して画像データを生成することに特徴がある。よって、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。 According to another image processing method of the present invention, image data is divided into regions, and code data subjected to compression processing that can be independently decoded for each divided region is decoded. The image processing method of the present invention includes a header processing step for decoding image information in code data, a code division step for dividing the code information into codes that can be decoded independently, a decoding processing step for decoding received code data, In the starting process for providing the divided code data to the decoding process, the image data acquiring process for receiving the decoding result by the decoding process, the thread acquiring process for acquiring the number of threads that can be executed simultaneously, and the decoding process An execution thread number acquiring step for acquiring the number of execution threads. Furthermore , according to the image processing method of the present invention , the starting step controls the starting of the decoding processing step based on the comparison result between the measurement result obtained by measuring the throughput of the instruction sequence executed by the CPU and a predetermined value. The code data is divided based on the number of executable threads and the number of execution threads in the decoding process, and a plurality of decoding processes are simultaneously executed to generate image data. Therefore, it is possible to execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed.

更に、別の発明としての画像処理方法によれば、画像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号化データを生成する。そして、本発明の画像処理方法は、画像の符号化条件の設定及びヘッダ情報の生成を行うヘッダ生成工程と、独立に復号可能な符号化データごとに対象となる画像データを元画像より抽出する画像分割工程と、受け取った画像データを符号化処理する符号化処理工程と、分割した画像データを符号化処理工程に対して提供する起動工程と、符号化処理工程による符号化結果を受け取る符号データ獲得工程と、同時に実施可能なスレッド数を獲得するスレッド数獲得工程と、符号化処理工程における実行スレッド数を獲得する実行スレッド数獲得工程と、獲得した複数の符号化データを結合し、符号データを構成する符号生成工程とを有している。更には、本発明の画像処理方法によれば、起動工程は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて復号処理工程の起動を制御する。そして、実行可能なスレッド数と符号化処理工程における実行スレッド数を元に画像データを分割し、符号化処理工程を同時に複数実行して符号を生成することに特徴がある。よって、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。 Furthermore, according to another image processing method as another invention, image data is divided into regions, and encoded data subjected to compression processing that can be independently decoded for each divided region is generated. The image processing method of the present invention extracts a target image data from the original image for each encoded data that can be decoded independently, and a header generation step for setting the encoding conditions of the image and generating header information. An image division process, an encoding process for encoding the received image data, an activation process for providing the divided image data to the encoding process, and code data for receiving an encoding result by the encoding process An acquisition process, a thread acquisition process that acquires the number of threads that can be executed simultaneously, an execution thread acquisition process that acquires the number of execution threads in the encoding process, and a plurality of acquired encoded data The code generation process which comprises. Furthermore , according to the image processing method of the present invention , the starting step controls the starting of the decoding processing step based on the comparison result between the measurement result obtained by measuring the throughput of the instruction sequence executed by the CPU and a predetermined value. Then, the image data is divided based on the number of executable threads and the number of execution threads in the encoding process, and a plurality of encoding processes are simultaneously executed to generate a code. Therefore, it is possible to execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed.

また、別の発明として、コンピュータにより、上記画像処理方法を実行させるためのプログラムを格納したコンピュータ読み取り可能な記録媒体に特徴がある。よって、既存のシステムを変えることなく、画像処理システムを汎用的に構築することができる。   As another invention, a computer-readable recording medium storing a program for causing the computer to execute the image processing method is characterized. Therefore, it is possible to construct an image processing system for general use without changing the existing system.

本発明の画像処理装置は、実行可能なスレッド数と復号処理手段の実行スレッド数を元に符号データを分割し、復号処理手段を同時に複数実行して画像データを生成する。また、実行可能なスレッド数と符号化処理工程における実行スレッド数を元に画像データを分割し、符号化処理工程を同時に複数実行して符号を生成する。よって、複数のスレッドにそれぞれに含まれる命令を並列に実行可能な画像処理を高速に実行できる。   The image processing apparatus of the present invention divides code data based on the number of executable threads and the number of execution threads of the decoding processing means, and generates image data by simultaneously executing a plurality of decoding processing means. Further, the image data is divided based on the number of executable threads and the number of execution threads in the encoding process, and a plurality of encoding processes are simultaneously executed to generate a code. Therefore, it is possible to execute image processing capable of executing instructions included in a plurality of threads in parallel at high speed.

図1はJPEG2000エンコーダの構成を示すブロック図である。同図において、入力画像はまずウェーブレット変換(以下DWTと略す)101によりサブバンド分解され、その後量子化部102により量子化される。分解レベルが2のとき(解像度レベル数3)のサブバンド分解の例を示す図2のように、level0からlevel2までの解像度レベルが存在する。このとき、小さい解像度レベルに属する係数ほど低い周波数の情報を含むことになる。量子化されたウェーブレット係数は、EBCOTアルゴリズムにより符号化される。そして、コードプロック分割部103において、各サブバンドはコードプロックと呼ばれる正方形のブロック(例えば64×64など)に分割される。これらのコードブロックは、それぞれ独立に符号化される。次に、係数モデリング部104では、各コードブロックのウェーブレット係数列に対し、ピットプレーンに基づく係数モデリングを行う。これにより、係数ビットが重要度順に並んだエンペデッド符号列を生成する。MSBからLSBまでのすべてのビットプレーンは、それぞれ文脈に応じて三つのサブビットプレーン(パス)分解される。各サブビットブレーンの境界は打切り点(Truncation point)と呼ばれ、後でデータを切り捨てる際の最小の分割単位となる。そして、算術符号化部105とレート制御部106では、係数モデリングにより生成されたエンベデッド符号列に対して、適応算術符号化を施す。その後、サブビットブレーンの境界である打切り点を単位として、算術符号列を適宜打ち切ることにより、目的のビットレートを得る。次に、レイヤ形成部107では、複数の画質で順次表示する必要がある場合、すなわちSNRスケーラブルが必要であるとき、次に符号のレイヤ形成を行う。各レイヤはそれぞれ、各コードブロックのエンベデノド符号の一部を含む。高いレイヤほど画像の再生にあたって重要な成分を含むことになる。そして、パケット生成部108は、各レイヤを複数のボディと呼ばれる単位に分解し、それぞれにヘッダ情報を付加してパケットを生成する。ここで各ボディは、それぞれ対応する解像度レベルの情報をもつ。したがって、生成されるパケットの総数は、レイヤ数と解像度レベル数の積となる。ヘッダ情報には、各コードブロックの算術符号列の長さ、サブビットブレーンの個数などの情報が含まれる。図3のように、全てのパケットをまとめ、グローバルヘッダ情報を付加したものが、最終的なJPEG2000の符号列となる。ただし、以上のような各種ヘッダ情報やデータ分割の最小単位であるサブビットプレーンは、1バイトの整数倍のサイズとすることをJPEG2000では規定している。   FIG. 1 is a block diagram showing the configuration of the JPEG2000 encoder. In the figure, an input image is first subjected to subband decomposition by wavelet transform (hereinafter abbreviated as DWT) 101, and then quantized by a quantization unit 102. As shown in FIG. 2 showing an example of subband decomposition when the decomposition level is 2 (the number of resolution levels is 3), there are resolution levels from level 0 to level 2. At this time, a coefficient belonging to a smaller resolution level includes lower frequency information. The quantized wavelet coefficients are encoded by the EBCOT algorithm. In the code block dividing unit 103, each subband is divided into square blocks (for example, 64 × 64) called code blocks. These code blocks are encoded independently. Next, the coefficient modeling unit 104 performs coefficient modeling based on the pit plane for the wavelet coefficient sequence of each code block. Thus, an embedded code string in which coefficient bits are arranged in order of importance is generated. All bit planes from the MSB to the LSB are decomposed into three sub-bit planes (paths) depending on the context. The boundary of each sub-bit brain is called a truncation point, and becomes the minimum division unit when data is discarded later. The arithmetic coding unit 105 and the rate control unit 106 perform adaptive arithmetic coding on the embedded code string generated by coefficient modeling. Thereafter, the arithmetic bit string is appropriately cut off at the cut-off point that is the boundary of the sub-bit brain to obtain the target bit rate. Next, the layer forming unit 107 performs code layer formation next when it is necessary to sequentially display images with a plurality of image quality, that is, when SNR scalable is required. Each layer includes a part of the embedded code of each code block. The higher the layer, the more important components are included in image reproduction. Then, the packet generation unit 108 decomposes each layer into units called a plurality of bodies, and adds header information to each to generate a packet. Here, each body has information of the corresponding resolution level. Therefore, the total number of packets generated is the product of the number of layers and the number of resolution levels. The header information includes information such as the length of the arithmetic code string of each code block and the number of sub-bit brains. As shown in FIG. 3, the final JPEG2000 code string is obtained by collecting all packets and adding global header information. However, JPEG2000 stipulates that the above-described various header information and sub-bit plane, which is the minimum unit of data division, have a size that is an integral multiple of 1 byte.

図4は本発明の一実施の形態に係る画像処理装置の構成を示すブロック図である。同図において、データバス201を介して、HDD202、RAM(PC内)203、CPU(PC内)204が接続されており、以下の流れで符号データが復号される。HDD202上に記録された符号データがCPU204からの命令によってRAM203上に読み込まれる。CPU204はRAM203上の符号を読み込み、復号処理を行う。CPU204は、復号後のデータをRAM203上の別の領域に書き込む。CPU204からの命令によって、復号後のデータがHDD202上に記録される。なお、CPU204は複数のスレッドを並列実行可能なCPUである。   FIG. 4 is a block diagram showing the configuration of the image processing apparatus according to the embodiment of the present invention. In the figure, an HDD 202, a RAM (in a PC) 203, and a CPU (in a PC) 204 are connected via a data bus 201, and code data is decoded in the following flow. Code data recorded on the HDD 202 is read onto the RAM 203 in accordance with a command from the CPU 204. The CPU 204 reads the code on the RAM 203 and performs a decoding process. The CPU 204 writes the decrypted data in another area on the RAM 203. The decrypted data is recorded on the HDD 202 in accordance with a command from the CPU 204. The CPU 204 is a CPU capable of executing a plurality of threads in parallel.

ここで、図5〜図8にCPU内での実行命令とスレッドの関係を示す。なお、実行する命令を命令0〜命令9とし、CPUにて並列実行可能なスレッドをTHREAD0〜THREAD4とする。   Here, FIGS. 5 to 8 show the relationship between execution instructions and threads in the CPU. Note that instructions to be executed are instruction 0 to instruction 9, and threads that can be executed in parallel by the CPU are THREAD0 to THREAD4.

図5はCPUが同時に1つのTHREADしか実行できない場合の例であるこのようなCPUをシングルスレッドCPUと称す。図6〜図8は並列に4つのTHREADを実行可能なCPUの例である。このようなCPUをマルチスレッドCPUと称す。図6の場合、CPUは並列に4つのTHREADを実行可能であるが、例えば命令1は命令0の結果を利用するなどの理由により、並列にスレッドを実行できず、復号処理はシングルスレッドCPUと同じになってしまう。図7にTHREADが部分的に、並列実行可能な場合(THREAD5〜8)を示す。マルチスレッド処理を一部実行でき、この場合、30%の処理時間の短縮が実現できている。図8に全てのTHREADが並列実行可能であった場合の処理の模式図を示す。3命令で全ての処理を終えており、70%の処理時間の短縮が実現できている。   FIG. 5 shows an example in which the CPU can execute only one THREAD at the same time. Such a CPU is referred to as a single thread CPU. 6 to 8 show examples of CPUs that can execute four THREADs in parallel. Such a CPU is referred to as a multi-thread CPU. In the case of FIG. 6, the CPU can execute four THREADs in parallel. However, for example, the instruction 1 uses the result of the instruction 0, and therefore the thread cannot be executed in parallel. It will be the same. FIG. 7 shows a case where THREAD can be partially executed in parallel (THREAD5 to 8). A part of multi-thread processing can be executed. In this case, the processing time can be reduced by 30%. FIG. 8 shows a schematic diagram of processing when all THREADs can be executed in parallel. All processing is completed with three instructions, and the processing time can be reduced by 70%.

図9は本発明の第1の実施の形態における画像処理動作の流れを示すフローチャートである。ここでは画像を圧縮した符号データを復号し、画像データを生成するものを示す。同図において、復号処理を実施するPCの並列実行可能なスレッド数Nを取得する(ステップS101)。そして、取得したスレッド数N>1であるかを判断する(ステップS102)。N>1のときはマルチスレッド処理を実行する(ステップS102;YES、ステップS103)。一方、N≦1のときはシングルスレッド処理を実行する(ステップS102;NO、ステップS104)。終了処理を行う(ステップS105)。なお、この終了処理は、プログラムの終了処理、生成された画像データの出力などである。必ずしも実行されるものではない。また、シングルスレッド処理は、一般的なアプリケーションプログラムと同様の動作であり、CPUに動作させる命令列を1ずつ生成し、CPUに実行させるものである。   FIG. 9 is a flowchart showing the flow of the image processing operation in the first embodiment of the present invention. Here, code data obtained by compressing an image is decoded to generate image data. In the figure, the number N of threads that can be executed in parallel by the PC that performs the decoding process is acquired (step S101). Then, it is determined whether or not the acquired number of threads N> 1 (step S102). When N> 1, multi-thread processing is executed (step S102; YES, step S103). On the other hand, when N ≦ 1, single thread processing is executed (step S102; NO, step S104). An end process is performed (step S105). Note that this termination processing includes program termination processing, output of generated image data, and the like. It is not necessarily executed. The single thread processing is the same operation as a general application program, and generates a sequence of instructions for operating the CPU one by one and causes the CPU to execute it.

次に、マルチスレッド処理の復号動作について当該動作フローを示す図10に従って説明する。
先ず、マルチスレッド処理の初期化を行う(ステップS201)。なお、初期設定として、実行中のスレッド数N1=0とする。また、復号処理を実行する符号データの、独立に復号可能なデータ単位(例えば、JPEG2000のタイル)の数NTを算出する。すでに処理した独立な処理単位数ND=0とする。次に、NT及びNDから、未処理の独立データ数NNを算出する(ステップS202)。
NN=NT−ND
Next, the decoding operation of multithread processing will be described with reference to FIG.
First, multithread processing is initialized (step S201). As an initial setting, the number of running threads N1 = 0. Further, the number NT of independently decodable data units (for example, JPEG2000 tiles) of the code data to be decoded is calculated. It is assumed that the number of independent processing units already processed ND = 0. Next, the number NN of unprocessed independent data is calculated from NT and ND (step S202).
NN = NT-ND

スレッド分割を以下のように実施する。実行中のスレッド数NDと、実行可能スレッド数Nから、未使用のスレッドNTを算出する。
NT=N−ND
Thread division is performed as follows. An unused thread NT is calculated from the number of executing threads ND and the number of executable threads N.
NT = N-ND

NT>0のとき、符号データのうち、独立して復号可能な符号データの一部を、復号処理装置に提供し、復号化処理を実行する(ステップS203)。提供する符号データの一部は、元になる符号データからのオフセットなど、符号データの位置を示してもよい。実際に元になる符号データから抽出してもよい。抽出する際には、完全な符号となるように、ヘッダ情報も結合し提供してもよい。   When NT> 0, a part of the code data that can be decoded independently is provided to the decoding processing apparatus, and the decoding process is executed (step S203). Part of the provided code data may indicate the position of the code data, such as an offset from the original code data. It may be extracted from the actual code data. When extracting, header information may be combined and provided so as to be a complete code.

ここで、全体画像の一部分であるという点を考慮せず、独立した画像データが複数あるとして、処理した場合、画像中のオフセット情報が欠如するため、正常に動作しないことがあるため、正しく復号可能な符号を生成する際は注意が必要である。例えば、JPEG2000符号においては、ウェーブレット変換のLow又はHighフィルタをかける際、元画像での位置により適用するフィルタが変化するため、オフセット情報を正確に反映し、符号を生成しなくてはならない。同様にコードブロックの分割、プレシンクトの分割なども、注意が必要である。   Here, without considering the fact that it is a part of the entire image, it is assumed that there are multiple independent image data. Care must be taken when generating possible codes. For example, in the JPEG2000 code, when applying a Low or High filter of wavelet transform, the applied filter changes depending on the position in the original image, so the offset information must be accurately reflected and a code must be generated. Similarly, it is necessary to pay attention to code block division and precinct division.

全てのタイルの処理が終了したら、処理を終了する(ステップS204)。(N1=1かつNN=0)   When all the tiles have been processed, the process ends (step S204). (N1 = 1 and NN = 0)

なお、本実施の形態は一例を示しただけであり、部分符号化処理の一例を示しただけである。CPUで実行する復号用のデータを生成する際に、通常の符号を提供する方法に加え、独立したデータごとに異なる部分符号に分割する方法と、独立した複数のデータを部分符号にする分割する方法などもある。また、それらの符号の生成の際には、CPUの種類、数、コアの数、PCのメモリのサイズ、圧縮符号の領域のサイズ、などの条件に応じて、効率よく、実行される部分符号を生成することにより、高速化を実現するものである。また、本実施の形態では、必ず部分符号を生成する方法で説明したが、処理速度を考慮した場合に、複数のスレッドが実行可能な復号処理装置においても、部分符号を生成しないで復号化処理を行った方が高速であると判断した場合には、通常のスレッド生成手段を利用する。また、異なる性能を有す復号処理装置を備えている構成をとることも可能である。その場合、各復号処理装置に実施させる部分符号の生成は非常に困難であるため、以前の処理結果などを利用し、適した部分符号の生成が有効である。   In addition, this Embodiment only showed an example and only showed an example of the partial encoding process. When generating data for decoding to be executed by the CPU, in addition to a method for providing a normal code, a method for dividing each independent data into different partial codes and a method for dividing a plurality of independent data into partial codes There are also methods. Also, when generating these codes, the partial codes that are efficiently executed according to the conditions such as the CPU type, number, number of cores, PC memory size, compression code area size, etc. By generating the above, speeding up is realized. In the present embodiment, the method of generating a partial code has been described. However, even when a processing speed is taken into consideration, even in a decoding processing apparatus that can execute a plurality of threads, a decoding process is performed without generating a partial code. If it is determined that the process is faster, normal thread generation means is used. It is also possible to adopt a configuration including a decoding processing device having different performance. In that case, since it is very difficult to generate a partial code to be executed by each decoding processing apparatus, it is effective to generate a suitable partial code using a previous processing result or the like.

次に、本実施の形態における画像処理動作の符号化処理について説明する。ここでは、画像を圧縮し、符号データを生成するものである。図9において、符号化処理を実施するPCの並列実行可能なスレッド数Nを取得する(ステップS101)。そして、取得したスレッド数N>1であるかを判断する(ステップS102)。N>1のときはマルチスレッド処理を実行する(ステップS102;YES、ステップS103)。一方、N≦1のときはシングルスレッド処理を実行する(ステップS102;NO、ステップS104)。終了処理を行う(ステップS105)。なお、この終了処理は、複数回実行した符号化装置の符号化結果を結合し、符号データを生成する処理である。しかしながら、各符号化装置に予めデータの記録位置を指示し、符号化処理を実行させている場合は、結合処理が必要ではない場合もある。また、シングルスレッド処理は、一般的なアプリケーションプログラムと同様の動作であり、CPUに動作させる命令列を1ずつ生成し、CPUに実行させるものである。   Next, the encoding process of the image processing operation in the present embodiment will be described. Here, the image is compressed to generate code data. In FIG. 9, the number N of threads that can be executed in parallel by the PC that performs the encoding process is acquired (step S101). Then, it is determined whether or not the acquired number of threads N> 1 (step S102). When N> 1, multi-thread processing is executed (step S102; YES, step S103). On the other hand, when N ≦ 1, single thread processing is executed (step S102; NO, step S104). An end process is performed (step S105). This end process is a process of generating code data by combining the encoding results of the encoding apparatuses executed a plurality of times. However, when the data recording position is instructed to each encoding device in advance and the encoding process is executed, the combination process may not be necessary. The single thread processing is the same operation as a general application program, and generates a sequence of instructions for operating the CPU one by one and causes the CPU to execute it.

次に、マルチスレッド処理の符号動作について図10に従って説明する。
先ず、マルチスレッド処理の初期化を行う(ステップS201)。なお、初期設定として、実行中のスレッド数N1=0とする。また、符号化処理を実行する画像データの、独立に復号可能なデータ単位(例えば、JPEG2000のタイル)の数NTを算出する。すでに処理した独立な処理単位数ND=0とする。次に、NT及びNDから、未処理の独立データ数NNを算出する(ステップS202)。
NN=NT−ND
Next, the sign operation of multithread processing will be described with reference to FIG.
First, multithread processing is initialized (step S201). As an initial setting, the number of running threads N1 = 0. Also, the number NT of data units (for example, JPEG2000 tiles) that can be decoded independently of the image data to be encoded is calculated. It is assumed that the number of independent processing units already processed ND = 0. Next, the number NN of unprocessed independent data is calculated from NT and ND (step S202).
NN = NT-ND

NT>0のとき、独立して復号可能な符号データを生成する符号化装置に、画像データの一部を提供し、符号化処理を実行する(ステップS203)。提供する画像データの一部は、元になる画像データからのオフセットなど、位置で示してもよい。実際に元になる画像データから抽出したものを生成してもよい。   When NT> 0, a part of the image data is provided to an encoding device that generates independently decodable code data, and the encoding process is executed (step S203). A part of the provided image data may be indicated by a position such as an offset from the original image data. What was actually extracted from the original image data may be generated.

ここで、全体画像の一部分であるという点を考慮せず、独立した画像データが複数あるとして、処理した場合、画像中のオフセット情報が欠如するため、正常に動作しないことがあるため、正しく復号可能な符号を生成する際は注意が必要である。例えば、JPEG2000符号においては、ウェーブレット変換のLow又はHighフィルタをかける際、元画像での位置により適用するフィルタが変化するため、オフセット情報を正確に反映し、符号を生成しなくてはならない。同様にコードブロックの分割、プレシンクトの分割なども、注意が必要である。   Here, without considering the fact that it is a part of the entire image, it is assumed that there are multiple independent image data. Care must be taken when generating possible codes. For example, in the JPEG2000 code, when applying a Low or High filter of wavelet transform, the applied filter changes depending on the position in the original image, so the offset information must be accurately reflected and a code must be generated. Similarly, it is necessary to pay attention to code block division and precinct division.

全てのタイルの処理が終了したら、処理を終了する(ステップS204)。(N1=1かつNN=0)   When all the tiles have been processed, the process ends (step S204). (N1 = 1 and NN = 0)

なお、本実施の形態は一例を示しただけであり、部分符号化処理の一例を示しただけである。CPUで実行する符号化用のデータを生成する際に、通常の符号を提供する方法に加え、独立したデータごとに異なる画像に提供する方法と、複数領域をまとめて符号化処理に提供する方法などもある。また、それらの画像の生成の際には、CPUの種類、数、コアの数、PCのメモリのサイズ、圧縮符号の領域のサイズ、などの条件に応じて、効率よく、実行される部分画像を生成することにより、高速化を実現するものである。また、本実施の形態では、必ず部分画像を生成する方法で説明したが、処理速度を考慮した場合に、複数のスレッドが実行可能な符号化処理装置においても、部分画像を生成しないで符号化処理を行った方が高速であると判断した場合には、通常のスレッド生成手段を利用する。また、異なる性能を有す符号化処理装置を備えている構成をとることも可能である。その場合、最適な符号化処理の分割方法の判断は非常に困難であるため、以前の処理結果などを利用し、適した符号化が有効である。   In addition, this Embodiment only showed an example and only showed an example of the partial encoding process. When generating data for encoding to be executed by the CPU, in addition to a method for providing a normal code, a method for providing different images for each independent data, and a method for providing a plurality of regions collectively for encoding processing There are also. Also, when generating these images, partial images that are executed efficiently according to conditions such as the type, number of CPUs, the number of cores, the size of the PC memory, the size of the compression code area, etc. By generating the above, speeding up is realized. In the present embodiment, the method of always generating a partial image has been described. However, even in an encoding processing apparatus that can execute a plurality of threads when processing speed is considered, encoding is performed without generating a partial image. If it is determined that the processing is faster, normal thread generation means is used. It is also possible to adopt a configuration including an encoding processing device having different performance. In this case, since it is very difficult to determine the optimal encoding process division method, suitable encoding is effective using the previous processing results and the like.

図11は本発明の第2の実施の形態における画像処理動作のマルチスレッド処理の流れを示すフローチャートである。
先ず、マルチスレッド処理の初期化を行う(ステップS301)。なお、初期設定として、実行中のスレッド数N1=0とする。また、復号処理を実行する符号データの、独立に復号可能なデータ単位(例えば、JPEG2000のタイル)の数NTを算出する。すでに処理した独立な処理単位数ND=0とする。起動装置は、記憶装置に記憶されている起動制御方法を取得する(ステップS302)。記憶装置には、U/Iを通じた設定、過去の実績からの設定、デフォルト値の設定、CPU種類に対する制御方法、CPU数に対する制御方法、CPUコア数に対する制御方法、タイルサイズごとの制御方法、プレシンクトサイズごとの制御方法、などに多々考えられる。次に、起動方法に従い実施する(ステップS303)。全てのタイルの処理が終了したら、処理を終了する(ステップS304)。
FIG. 11 is a flowchart showing the flow of multi-thread processing of the image processing operation in the second embodiment of the present invention.
First, multi-thread processing is initialized (step S301). As an initial setting, the number of running threads N1 = 0. Further, the number NT of independently decodable data units (for example, JPEG2000 tiles) of the code data to be decoded is calculated. It is assumed that the number of independent processing units already processed ND = 0. The activation device acquires the activation control method stored in the storage device (step S302). In the storage device, setting through U / I, setting from past results, setting of default value, control method for CPU type, control method for CPU number, control method for CPU core number, control method for each tile size, There are many possible ways to control each precinct size. Next, it implements according to the starting method (step S303). When all the tiles have been processed, the process ends (step S304).

次に、図12は本発明の画像処理方法の各実施例を実行させるプログラムを起動するための具体的な装置の構成を示すブロック図である。つまり、同図は上記実施の形態における画像処理方法によるソフトウェアを実行させるマイクロプロセッサ等から構築されるハードウェアを示すものである。同図において、画像処理システムはインターフェース(以下I/Fと略す)301、CPU302、ROM303、RAM304、表示装置305、ハードディスク306、キーボード307及びCD−ROMドライブ308を含んで構成されている。また、汎用の処理装置を用意し、CD−ROMなどの読取可能な記録媒体309には、本発明の画像処理方法を実行させるプログラムが記憶されている。更に、I/F301を介して外部装置から制御信号が入力され、キーボード307によって操作者による指令又は自動的に本発明のプログラムが起動される。そして、CPU302は当該プログラムに従って上述の画像処理方法に伴う画像処理を施し、その処理結果をRAM304やハードディスク306等の記憶装置に格納し、必要により表示装置305などに出力する。以上のように、本発明の画像処理方法を実行させるプログラムが記録した記録媒体を用いることにより、既存のシステムを変えることなく、画像処理システムを汎用的に構築することができる。   Next, FIG. 12 is a block diagram showing the configuration of a specific apparatus for starting a program for executing each embodiment of the image processing method of the present invention. That is, the figure shows hardware constructed from a microprocessor or the like that executes software according to the image processing method in the above embodiment. In the figure, the image processing system includes an interface (hereinafter abbreviated as I / F) 301, a CPU 302, a ROM 303, a RAM 304, a display device 305, a hard disk 306, a keyboard 307, and a CD-ROM drive 308. A general-purpose processing apparatus is prepared, and a readable recording medium 309 such as a CD-ROM stores a program for executing the image processing method of the present invention. Further, a control signal is input from an external device via the I / F 301, and an instruction by an operator or a program of the present invention is automatically activated by the keyboard 307. The CPU 302 performs image processing according to the above-described image processing method in accordance with the program, stores the processing result in a storage device such as the RAM 304 or the hard disk 306, and outputs it to the display device 305 or the like as necessary. As described above, by using the recording medium recorded with the program for executing the image processing method of the present invention, it is possible to construct an image processing system for general use without changing the existing system.

なお、本発明は上記実施の形態に限定されるものではなく、特許請求の範囲内の記載であれば多種の変形や置換可能であることは言うまでもない。   In addition, this invention is not limited to the said embodiment, It cannot be overemphasized that various deformation | transformation and substitution are possible if it is description in a claim.

JPEG2000エンコーダの構成を示すブロック図である。It is a block diagram which shows the structure of a JPEG2000 encoder. JPEG2000におけるDWTによるサブバンド分解の様子を示す図である。It is a figure which shows the mode of the subband decomposition | disassembly by DWT in JPEG2000. JPEG2000の符号列を示す図である。It is a figure which shows the code string of JPEG2000. 本発明の一実施の形態に係る画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. スレッドと命令の関係を示す図である。It is a figure which shows the relationship between a thread | sled and an instruction | indication. スレッドと命令の関係を示す図である。It is a figure which shows the relationship between a thread | sled and an instruction | indication. スレッドと命令の関係を示す図である。It is a figure which shows the relationship between a thread | sled and an instruction | indication. スレッドと命令の関係を示す図である。It is a figure which shows the relationship between a thread | sled and an instruction | indication. 本発明の第1の実施の形態における画像処理動作の流れを示すフローチャートである。It is a flowchart which shows the flow of the image processing operation | movement in the 1st Embodiment of this invention. マルチスレッド処理の復号動作を示すフローチャートである。It is a flowchart which shows the decoding operation | movement of multithread processing. 本発明の第2の実施の形態における画像処理動作のマルチスレッド処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the multithread process of the image processing operation | movement in the 2nd Embodiment of this invention. 本発明の画像処理方法の各実施例を実行させるプログラムを起動するための具体的な装置の構成を示すブロック図である。It is a block diagram which shows the structure of the specific apparatus for starting the program which performs each Example of the image processing method of this invention.

符号の説明Explanation of symbols

201;バス、202;HDD、203;RAM、204;CPU。   201; bus, 202; HDD, 203; RAM, 204; CPU.

Claims (8)

画像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号データを復号する画像処理装置であって、
符号データにおける画像情報を解読するヘッダ処理手段と、
独立に復号可能な符号に分割する符号分割手段と、
受け取った符号データを復号処理する復号処理手段と、
分割した符号データを、前記復号処理手段に提供する起動手段と、
前記復号処理手段の復号結果を受け取る画像データ獲得手段と、
同時に実施可能なスレッド数を獲得するスレッド数獲得手段と、
前記復号処理手段の実行スレッド数を獲得する実行スレッド数獲得手段と
を有し、
前記起動手段は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて前記復号処理手段の起動を制御し、
実行可能なスレッド数と前記復号処理手段の実行スレッド数を元に符号データを分割し、前記復号処理手段を同時に複数実行して画像データを生成することを特徴とする画像処理装置
An image processing device that divides image data into regions and decodes code data subjected to compression processing that can be independently decoded for each divided region,
Header processing means for decoding image information in code data;
Code dividing means for dividing the code into independently decodable codes;
Decoding processing means for decoding received code data;
Starting means for providing the divided code data to the decoding processing means;
Image data acquisition means for receiving a decoding result of the decoding processing means;
Thread acquisition means for acquiring the number of threads that can be executed simultaneously;
Execution thread number acquisition means for acquiring the number of execution threads of the decryption processing means,
The activation means controls the activation of the decoding processing means based on a comparison result between a measurement result obtained by measuring the throughput of an instruction sequence executed by the CPU and a predetermined value,
An image processing apparatus that divides code data based on the number of executable threads and the number of execution threads of the decoding processing unit, and generates image data by simultaneously executing a plurality of decoding processing units .
記起動手段は、復号処理の途中で起動する前記復号処理手段の数を変更することを特徴とする請求項1記載の画像処理装置 Before Symbol activation means, the image processing apparatus according to claim 1, wherein changing the number of the decoding processing unit to start in the middle of the decoding process. 像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号化データを生成する画像処理装置であって、
画像の符号化条件の設定及びヘッダ情報の生成を行うヘッダ生成手段と、
独立に復号可能な符号化データごとに対象となる画像データを元画像より抽出する画像分割手段と、
受け取った画像データを符号化処理する符号化処理手段と、
分割した画像データを、前記符号化処理手段に提供する起動手段と、
前記符号化処理手段の符号化結果を受け取る符号データ獲得手段と、
同時に実施可能なスレッド数を獲得するスレッド数獲得手段と、
前記符号化処理手段の実行スレッド数を獲得する実行スレッド数獲得手段と、
獲得した複数の符号化データを結合し、符号データを構成する符号生成手段と
を有し、
前記起動手段は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて前記復号処理手段の起動を制御し、
実行可能なスレッド数と前記符号化処理手段の実行スレッド数を元に画像データを分割し、前記符号化処理手段を同時に複数実行して符号を生成することを特徴とする画像処理装置。
Dividing the images data in the region, an image processing apparatus for generating an encoded data subjected to the decodable compression independently for each divided area,
Header generation means for setting the encoding condition of the image and generating header information;
Image segmentation means for extracting target image data from the original image for each encoded data that can be independently decoded;
Encoding processing means for encoding the received image data;
Starting means for providing the divided image data to the encoding processing means;
Code data acquisition means for receiving an encoding result of the encoding processing means;
Thread acquisition means for acquiring the number of threads that can be executed simultaneously;
Execution thread number acquisition means for acquiring the number of execution threads of the encoding processing means;
A code generating means for combining the plurality of acquired encoded data and configuring the encoded data;
The activation means controls the activation of the decoding processing means based on a comparison result between a measurement result obtained by measuring the throughput of an instruction sequence executed by the CPU and a predetermined value,
An image processing apparatus that divides image data based on the number of executable threads and the number of execution threads of the encoding processing means, and generates a code by simultaneously executing a plurality of the encoding processing means.
前記起動手段は、符号処理の途中で起動する前記符号化処理手段の数を変更することを特徴とする請求項3記載の画像処理装置。 The image processing apparatus according to claim 3 , wherein the activation unit changes the number of the encoding processing units activated in the middle of the encoding process. 圧縮符号がJPEG2000であることを特徴とする請求項1〜4のいずれか1項に記載の画像処理装置 The image processing apparatus according to any one of claims 1 to 4, the compression code is characterized in that it is a JPEG2000. 像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号データを復号する画像処理方法であって、
符号データにおける画像情報を解読するヘッダ処理工程と、
独立に復号可能な符号に分割する符号分割工程と、
受け取った符号データを復号処理する復号処理工程と、
分割した符号データを前記復号処理工程に対して提供する起動工程と、
前記復号処理工程による復号結果を受け取る画像データ獲得工程と、
同時に実施可能なスレッド数を獲得するスレッド数獲得工程と、
前記復号処理工程における実行スレッド数を獲得する実行スレッド数獲得工程と
を有し、
前記起動工程は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて前記復号処理工程の起動を制御し、
実行可能なスレッド数と前記復号処理工程における実行スレッド数を元に符号データを分割し、前記復号処理工程を同時に複数実行して画像データを生成することを特徴とする画像処理方法。
Dividing the images data in the region, an image processing method for decoding code data subjected decodable compression independently for each divided area,
A header processing step for decoding image information in the code data;
A code division step of dividing into independently decodable codes;
A decoding process for decoding the received code data;
A starting step of providing the divided code data to the decoding processing step;
An image data acquisition step for receiving a decoding result by the decoding processing step;
Thread number acquisition process for acquiring the number of threads that can be executed simultaneously,
An execution thread number acquiring step for acquiring the number of execution threads in the decryption processing step,
The starting step controls the starting of the decoding processing step based on a comparison result between a measurement result obtained by measuring the throughput of an instruction sequence executed by the CPU and a predetermined value,
An image processing method comprising: dividing code data based on the number of executable threads and the number of execution threads in the decoding process step; and generating image data by simultaneously executing a plurality of the decoding process steps.
画像データを領域に分割し、分割した領域ごとに独立に復号可能な圧縮処理を施した符号化データを生成する画像処理方法であって、
画像の符号化条件の設定及びヘッダ情報の生成を行うヘッダ生成工程と、
独立に復号可能な符号化データごとに対象となる画像データを元画像より抽出する画像分割工程と、
受け取った画像データを符号化処理する符号化処理工程と、
分割した画像データを前記符号化処理工程に対して提供する起動工程と、
前記符号化処理工程による符号化結果を受け取る符号データ獲得工程と、
同時に実施可能なスレッド数を獲得するスレッド数獲得工程と、
前記符号化処理工程における実行スレッド数を獲得する実行スレッド数獲得工程と、
獲得した複数の符号化データを結合し、符号データを構成する符号生成工程と
を有し、
前記起動工程は、CPUにて実行する命令列のスループットを測定した測定結果と所定値との比較結果に基づいて前記復号処理工程の起動を制御し、
実行可能なスレッド数と前記符号化処理工程における実行スレッド数を元に画像データを分割し、前記符号化処理工程を同時に複数実行して符号を生成することを特徴とする画像処理方法。
An image processing method that divides image data into regions and generates encoded data subjected to compression processing that can be independently decoded for each divided region,
A header generation step for setting image encoding conditions and generating header information;
An image dividing step of extracting image data of interest from the original image for each encoded data that can be independently decoded;
An encoding process for encoding the received image data;
A starting step of providing the divided image data to the encoding processing step;
A code data acquisition step for receiving an encoding result by the encoding processing step;
Thread number acquisition process for acquiring the number of threads that can be executed simultaneously,
An execution thread number acquisition step of acquiring the number of execution threads in the encoding processing step;
A code generation step of combining the plurality of acquired encoded data and configuring the encoded data,
The starting step controls the starting of the decoding processing step based on a comparison result between a measurement result obtained by measuring the throughput of an instruction sequence executed by the CPU and a predetermined value,
An image processing method, wherein image data is divided based on the number of executable threads and the number of execution threads in the encoding processing step, and a plurality of the encoding processing steps are simultaneously executed to generate a code.
コンピュータにより、請求項6又は7に記載の画像処理方法を実行させるためのプログラムを格納したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium storing a program for causing the computer to execute the image processing method according to claim 6 or 7 .
JP2007276074A 2007-10-24 2007-10-24 Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method Expired - Fee Related JP4907488B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007276074A JP4907488B2 (en) 2007-10-24 2007-10-24 Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007276074A JP4907488B2 (en) 2007-10-24 2007-10-24 Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method

Publications (2)

Publication Number Publication Date
JP2009105701A JP2009105701A (en) 2009-05-14
JP4907488B2 true JP4907488B2 (en) 2012-03-28

Family

ID=40706967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007276074A Expired - Fee Related JP4907488B2 (en) 2007-10-24 2007-10-24 Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method

Country Status (1)

Country Link
JP (1) JP4907488B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984417B (en) * 2020-08-26 2023-01-24 展讯通信(天津)有限公司 Image processing method and device for mobile terminal, storage medium and terminal
CN112488906B (en) * 2020-11-30 2023-10-31 中科院计算所西部高等技术研究院 Image processing method based on multithreading, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4065535B2 (en) * 2002-12-09 2008-03-26 キヤノン株式会社 Code data creation method and apparatus
JP4606142B2 (en) * 2004-12-01 2011-01-05 株式会社ソニー・コンピュータエンタテインメント Scheduling method, scheduling apparatus, and multiprocessor system
JP2007014002A (en) * 2006-08-03 2007-01-18 Ricoh Co Ltd Image processing apparatus, image processing program and recording medium

Also Published As

Publication number Publication date
JP2009105701A (en) 2009-05-14

Similar Documents

Publication Publication Date Title
JP4907487B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method
JP4768728B2 (en) Method and apparatus for encoding a block of values
JP5151919B2 (en) Image decoding apparatus, image decoding method, and computer program
JP2001320588A (en) Memory management method, device therefor and its storage medium
JP4443165B2 (en) Image compression apparatus and image compression method
JP4907488B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for executing the method
JP7233875B2 (en) Creation method, computer and program
JP2014212374A (en) Image encoding device, image encoding method, image encoding program, and recording medium
KR101539260B1 (en) Apparatus and method for lossless coding and decoding image selectively
JP5181816B2 (en) Image processing apparatus, image processing method, computer program, and information recording medium
JP5105191B2 (en) Image processing device
JP3938054B2 (en) Computer-readable storage medium on which data having an image data structure is recorded, image recording method, apparatus, and program
JP2010074386A (en) Image processing apparatus, image processing method, computer program, and information recording medium
TWI491261B (en) Image coding method for facilitating run length coding and image encoding device thereof
JP2010103748A (en) Encoding device, decoding device, image forming device, and program
JP2007129455A (en) Image encoding device, image encoding method and program, and computer-readable recording medium recording image encoding program
JP2009089179A (en) Entropy coding apparatus, entropy coding method, and computer program
JP5244479B2 (en) Image coding apparatus and image coding method
JP2004007251A (en) Image processor
JP2006196969A (en) Image processing apparatus, image processing method, program, and information recording medium
JP2007049485A (en) Discrete wavelet transform device and method therefor, as well as program and record medium
JP2005235029A (en) Image demagnification method and device, and program
JP2004320157A (en) Data encoder
JP2005223538A (en) Image processor circuit
JP4095454B2 (en) Data decoding apparatus and data decoding method

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20091207

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100115

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110701

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110830

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111216

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120111

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

Free format text: PAYMENT UNTIL: 20150120

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4907488

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees