JP2016052089A - Device, method, and program - Google Patents

Device, method, and program Download PDF

Info

Publication number
JP2016052089A
JP2016052089A JP2014177900A JP2014177900A JP2016052089A JP 2016052089 A JP2016052089 A JP 2016052089A JP 2014177900 A JP2014177900 A JP 2014177900A JP 2014177900 A JP2014177900 A JP 2014177900A JP 2016052089 A JP2016052089 A JP 2016052089A
Authority
JP
Japan
Prior art keywords
parameter
local memory
stored
management information
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014177900A
Other languages
Japanese (ja)
Inventor
敦史 進藤
Atsushi Shindo
敦史 進藤
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 JP2014177900A priority Critical patent/JP2016052089A/en
Publication of JP2016052089A publication Critical patent/JP2016052089A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a device, a method, and a program which reduces the scale of an image processing circuit by reducing the consumption of a memory by an image processing parameter.SOLUTION: A device includes: image drawing means for generating an image; and a main memory in which a parameter to be used for processing executed by the image drawing means is preserved. The image drawing means includes: a local memory in which the parameter is preserved; and a local memory control means for controlling the local memory. The local memory control means determines whether or not an idle area for preserving a parameter of a request target exists in the local memory, when the parameter of the request target does not exist in the local memory. When there is no idle area, the local memory control means deletes, among parameters already preserved in the local memory, a parameter having the lowest use frequency, and acquires the parameter of the request target from the main memory to preserve in the local memory.SELECTED DRAWING: Figure 1

Description

本発明は、種々の画像を処理する画像処理回路に関し、より詳細には、画像処理によるメモリ消費量を低減して画像処理回路の規模を縮小化する装置、方法およびプログラムに関する。   The present invention relates to an image processing circuit that processes various images, and more particularly, to an apparatus, a method, and a program for reducing the memory consumption by image processing and reducing the scale of the image processing circuit.

従来、写真画像等の印刷対象画像を画像処理装置で出力する場合、画像処理装置が出力可能な印字色のトナーやインクで印刷対象画像を印刷するために、カラーマッチング処理やハーフトーン処理などの種々の画像処理が実行される。これらの処理では、膨大な量の画像処理パラメータを使用するため、画像処理回路の内部メモリに画像処理パラメータ保存して処理を高速化する技術が利用されている。   Conventionally, when a print target image such as a photographic image is output by an image processing apparatus, in order to print the print target image with print color toner or ink that can be output by the image processing apparatus, color matching processing, halftone processing, etc. Various image processing is performed. In these processes, an enormous amount of image processing parameters are used, and therefore, a technique for speeding up the processing by storing the image processing parameters in the internal memory of the image processing circuit is used.

例えば、特許文献1は、多値画像データの画素毎に所定の閾値との比較によりハーフトーン画像を生成するハーフトーン生成装置を開示する。このハーフトーン生成装置では、画像処理回路を構成する画像処理パラメータ読み込み部が、メインメモリから種々の画像処理パラメータを読み込み、画像処理回路の内部メモリである格子点データ記憶部やガンマテーブル記憶部、ハーフトーンパラメータ記憶部等に各画像処理パラメータを保存して、種々の画像処理を実行する。   For example, Patent Document 1 discloses a halftone generation device that generates a halftone image for each pixel of multilevel image data by comparison with a predetermined threshold. In this halftone generation device, an image processing parameter reading unit constituting the image processing circuit reads various image processing parameters from the main memory, and a lattice point data storage unit and a gamma table storage unit which are internal memories of the image processing circuit, Each image processing parameter is stored in a halftone parameter storage unit or the like, and various image processing is executed.

しかしながら、特許文献1が開示するハーフトーン生成装置では、画像処理回路がメインメモリから多量の画像処理パラメータを読み込んで、各内部メモリに保存するため、画像処理パラメータによるメモリ消費量が多大になり、メモリ回路を縮小化することができず、画像処理回路全体の規模を縮小化できないという問題があった。   However, in the halftone generation device disclosed in Patent Document 1, since the image processing circuit reads a large amount of image processing parameters from the main memory and stores them in each internal memory, the amount of memory consumed by the image processing parameters increases. There is a problem that the memory circuit cannot be reduced, and the scale of the entire image processing circuit cannot be reduced.

本発明は、上述した従来技術の問題点に鑑みてなされたものであり、画像処理パラメータによるメモリの消費量を低減することにより、画像処理回路の規模を縮小化する装置、方法およびプログラムを提供することを目的とする。   The present invention has been made in view of the above-described problems of the prior art, and provides an apparatus, method, and program for reducing the scale of an image processing circuit by reducing the amount of memory consumed by image processing parameters. The purpose is to do.

本発明の装置は、画像を生成する描画手段と、描画手段が実行する処理に使用されるパラメータが保存されるメインメモリとを備える。描画手段は、パラメータが保存されるローカルメモリと、ローカルメモリを制御するローカルメモリ制御手段とを備る。ローカルメモリ制御手段は、要求対象のパラメータがローカルメモリに存在しない場合に、要求対象のパラメータを保存可能な空き領域がローカルメモリ内に有るか否か判断する。空き領域が無い場合、ローカルメモリ制御手段は、ローカルメモリに既に保存されているパラメータのうち、使用頻度が最も低いパラメータを削除し、要求対象のパラメータをメインメモリから取得してローカルメモリに保存する。   The apparatus of the present invention includes a drawing unit that generates an image, and a main memory that stores parameters used for processing executed by the drawing unit. The drawing means includes a local memory for storing parameters and a local memory control means for controlling the local memory. The local memory control means determines whether there is a free area in the local memory where the requested parameter can be stored when the requested parameter does not exist in the local memory. When there is no free space, the local memory control means deletes the least frequently used parameter from the parameters already stored in the local memory, acquires the requested parameter from the main memory, and stores it in the local memory. .

本発明は、画像処理パラメータによるメモリの消費量を低減することができ、画像処理回路の規模を縮小化できる。   The present invention can reduce the amount of memory consumed by image processing parameters, and can reduce the scale of an image processing circuit.

本発明の画像処理装置のハードウェア構成を示す図。The figure which shows the hardware constitutions of the image processing apparatus of this invention. 描画部110が備えるローカルメモリコントローラ115の機能構成を示す図。2 is a diagram showing a functional configuration of a local memory controller 115 provided in the drawing unit 110. FIG. 描画部110の変換部114が実行する処理の一実施形態を示すフローチャート。5 is a flowchart illustrating an embodiment of processing executed by a conversion unit 114 of the drawing unit 110. ローカルメモリコントローラ115が実行する処理の一実施形態を示すフローチャート。5 is a flowchart illustrating an embodiment of processing executed by a local memory controller 115. 描画部110が備えるローカルメモリ116のメモリ領域のアロケーションの一実施形態を示す図。The figure which shows one Embodiment of the memory area allocation of the local memory 116 with which the drawing part 110 is provided.

図1は、本発明の画像処理装置のハードウェア構成を示す図である。画像処理装置10は、様々な画像を印刷可能な装置であり、コントローラボード100と、操作パネル121と、プリンタエンジン122とを備える。   FIG. 1 is a diagram showing a hardware configuration of an image processing apparatus according to the present invention. The image processing apparatus 10 is an apparatus capable of printing various images, and includes a controller board 100, an operation panel 121, and a printer engine 122.

コントローラボード100は、画像処理装置10を制御する制御装置であり、LSI等の半導体装置で構成される。コントローラボード100は、CPU101と、メインメモリ102と、描画装置103と、操作パネル制御部104と、エンジン制御部105とを備える。これらの装置は、通信バス106を介して通信可能に接続される。   The controller board 100 is a control device that controls the image processing apparatus 10 and is configured by a semiconductor device such as an LSI. The controller board 100 includes a CPU 101, a main memory 102, a drawing device 103, an operation panel control unit 104, and an engine control unit 105. These devices are communicably connected via a communication bus 106.

CPU101は、コントローラボード100が実行する処理を制御するプロセッサである。CPU101は、PC等の外部装置が提供するPDL(Page Description Language)を解釈して、印刷対象画像を構成する画素データ毎に、印刷対象画像の印刷を指示する描画コマンドと、描画装置103が実行する処理に必要なパラメータとを生成し、描画コマンドを描画装置103に提供すると共に、当該パラメータをメインメモリ102に保存する。また、CPU101は、描画装置103の指示に応じて、印刷対象画像の画素データや画素毎のパラメータを提供する。   The CPU 101 is a processor that controls processing executed by the controller board 100. The CPU 101 interprets PDL (Page Description Language) provided by an external device such as a PC, and executes a drawing command for instructing printing of the print target image for each pixel data constituting the print target image, and the drawing device 103 executes. Parameters necessary for the processing to be performed are generated, a drawing command is provided to the drawing apparatus 103, and the parameters are stored in the main memory 102. In addition, the CPU 101 provides pixel data of the image to be printed and parameters for each pixel in response to an instruction from the drawing apparatus 103.

メインメモリ102は、CPU101が実行するプログラムが展開される領域を提供する記憶装置であり、RAM等のメモリで構成される。本実施形態では、CPU101のみがメインメモリ102にアクセスできる。他の実施形態では、DMA(Direct Memory Access)機能を有するLSIを設け、CPU101を介さずにメインメモリ102にアクセスしてもよい。   The main memory 102 is a storage device that provides an area where a program executed by the CPU 101 is expanded, and is configured by a memory such as a RAM. In the present embodiment, only the CPU 101 can access the main memory 102. In another embodiment, an LSI having a DMA (Direct Memory Access) function may be provided to access the main memory 102 without using the CPU 101.

描画装置103は、種々の画像を生成する描画手段であり、ASIC等の半導体装置で構成される。描画装置103は、描画部110と、バスコントローラ117と、メモリアービタ118と、CPUインタフェース(I/F)119と、通信コントローラ120とを備える。   The drawing device 103 is a drawing unit that generates various images, and includes a semiconductor device such as an ASIC. The drawing apparatus 103 includes a drawing unit 110, a bus controller 117, a memory arbiter 118, a CPU interface (I / F) 119, and a communication controller 120.

描画部110は、描画画像を生成して種々の処理を施す手段である。描画部110は、コマンド描画部111と、回転部112と、合成部113と、変換部114と、ローカルメモリコントローラ115と、ローカルメモリ116とを備える。   The drawing unit 110 is a unit that generates a drawn image and performs various processes. The drawing unit 110 includes a command drawing unit 111, a rotation unit 112, a synthesis unit 113, a conversion unit 114, a local memory controller 115, and a local memory 116.

コマンド描画部111は、CPU101が提供する描画コマンドを用いて描画画像を生成する手段である。コマンド描画部111は、描画コマンドを用いて生成した描画画像を、CPU101を介してメインメモリ102に保存する。   The command drawing unit 111 is a unit that generates a drawing image using a drawing command provided by the CPU 101. The command drawing unit 111 stores a drawing image generated using a drawing command in the main memory 102 via the CPU 101.

回転部112は、CPU101が提供する回転処理パラメータを用いて、描画画像を回転させる手段である。回転部112は、CPU101を介してメインメモリ102から描画画像の画素データを取得し、回転処理パラメータを用いて画素データを回転させる。回転部112は、回転させた描画画像の画素データを、CPU101を介してメインメモリ102に保存する。   The rotation unit 112 is a unit that rotates a drawing image using a rotation processing parameter provided by the CPU 101. The rotation unit 112 acquires pixel data of a drawing image from the main memory 102 via the CPU 101, and rotates the pixel data using a rotation processing parameter. The rotation unit 112 stores the pixel data of the rotated drawing image in the main memory 102 via the CPU 101.

合成部113は、CPU101が提供する合成処理パラメータを用いて、描画画像を合成する手段である。合成部113は、CPU101を介してメインメモリ102から描画画像の画素データを取得し、合成処理パラメータを用いて画素データを合成する。合成部113は、合成した描画画像の画素データを、CPU101を介してメインメモリ102に保存する。   The synthesizing unit 113 is a unit that synthesizes a drawn image using the synthesis processing parameters provided by the CPU 101. The synthesizing unit 113 acquires pixel data of the drawn image from the main memory 102 via the CPU 101, and synthesizes the pixel data using the synthesis processing parameter. The synthesizing unit 113 stores the pixel data of the synthesized drawing image in the main memory 102 via the CPU 101.

変換部114は、CPU101が提供する変換処理パラメータを使用して、種々の変換処理を描画画像に施す手段である。変換部114が実行する処理は、図3を参照して詳述する。   The conversion unit 114 is a unit that performs various conversion processes on the rendered image using the conversion process parameters provided by the CPU 101. The processing executed by the conversion unit 114 will be described in detail with reference to FIG.

図1に示す実施形態では、描画部110は、4種類の画像処理手段(コマンド描画部111、回転部112、合成部113および変換部114)を備えるが、描画部110は、その他の画像処理手段を備えることができる。   In the embodiment shown in FIG. 1, the drawing unit 110 includes four types of image processing means (command drawing unit 111, rotation unit 112, composition unit 113, and conversion unit 114), but the drawing unit 110 performs other image processing. Means may be provided.

ローカルメモリコントローラ115は、ローカルメモリ116を制御する手段である。ローカルメモリコントローラ115は、描画部110が備える画像処理手段(以下、「モジュール」とする。)の要求に応じて、これらのモジュールが使用するパラメータや当該パラメータの管理情報、描画画像の画素データをローカルメモリ116に保存する。   The local memory controller 115 is means for controlling the local memory 116. In response to a request from image processing means (hereinafter referred to as “module”) included in the drawing unit 110, the local memory controller 115 receives parameters used by these modules, management information of the parameters, and pixel data of the drawn image. Save to local memory 116.

ローカルメモリコントローラ115は、パラメータの保存時にローカルメモリ116の領域を動的に確保する。ローカルメモリコントローラ115は、パラメータを保存する際に動的にローカルメモリ116の領域を確保することができる。これにより、ローカルメモリ116を効率的に使用することができ、ローカルメモリ116の消費量を低減することができる。   The local memory controller 115 dynamically secures an area of the local memory 116 when storing parameters. The local memory controller 115 can dynamically secure an area of the local memory 116 when storing the parameters. As a result, the local memory 116 can be used efficiently, and the consumption of the local memory 116 can be reduced.

また、ローカルメモリコントローラ115は、描画部110が備える複数のモジュール毎にローカルメモリ116の領域を確保することができる。他のモジュールと比較して画像処理速度が速いことが好適なモジュールについては、他のモジュールよりも大きなメモリ領域を確保することにより、他のモジュールよりも優先することができる。なお、ローカルメモリコントローラ115の機能については、図2を参照して詳述する。   Further, the local memory controller 115 can secure an area of the local memory 116 for each of a plurality of modules provided in the drawing unit 110. A module that has a faster image processing speed than other modules can be prioritized over other modules by securing a larger memory area than the other modules. The function of the local memory controller 115 will be described in detail with reference to FIG.

ローカルメモリ116は、描画部110の他のモジュールが使用するパラメータや当該パラメータの管理情報、処理対象の画素データが保存される記憶装置である。ローカルメモリ116は、単一のメモリで構成され、描画部110の複数のモジュールが要求するパラメータがそれぞれ保存される。一般に、メインメモリ102よりも高速のメモリ(キャッシュメモリ等)が、ローカルメモリ116として使用される。   The local memory 116 is a storage device that stores parameters used by other modules of the drawing unit 110, management information of the parameters, and pixel data to be processed. The local memory 116 is composed of a single memory, and stores parameters required by a plurality of modules of the drawing unit 110, respectively. In general, a memory (cache memory or the like) that is faster than the main memory 102 is used as the local memory 116.

ローカルメモリ116は、図5に示すように、パラメータの管理情報が保存される管理情報格納領域と、パラメータが保存されるパラメータ格納領域と、処理対象の画素データが保存される領域(図示せず)とで構成される。   As shown in FIG. 5, the local memory 116 has a management information storage area for storing parameter management information, a parameter storage area for storing parameters, and an area for storing pixel data to be processed (not shown). ).

図5に示す実施形態では、パラメータの管理情報として、モジュールの識別情報であるモジュール番号と、当該モジュールが実行する処理の識別情報である処理番号と、パラメータの保存先の先頭アドレスを示す開始アドレスと、パラメータのデータサイズとが、管理情報格納領域に保存される。描画部110のモジュールが使用するパラメータは、パラメータの管理情報である開始アドレスが示すパラメータ格納領域に保存される。   In the embodiment shown in FIG. 5, as parameter management information, a module number that is module identification information, a process number that is identification information of processing executed by the module, and a start address that indicates the start address of the parameter storage destination And the parameter data size are stored in the management information storage area. The parameters used by the module of the drawing unit 110 are stored in the parameter storage area indicated by the start address which is parameter management information.

ローカルメモリ116には、使用頻度の高いパラメータが優先的に保存される。また、ローカルメモリ116には、ローカルメモリコントローラ115がパラメータの使用頻度を判断できるように、パラメータの管理情報が保存される。具体的には、本実施形態では、管理情報格納領域がLIFO形式のスタック構造となっており、最近使用された最新のパラメータの管理情報が、管理情報格納領域の先頭アドレスから始まる最上位のメモリ領域に保存される。   The local memory 116 preferentially stores parameters that are frequently used. The local memory 116 stores parameter management information so that the local memory controller 115 can determine the parameter usage frequency. Specifically, in the present embodiment, the management information storage area has a LIFO format stack structure, and the most recently used management information of the latest parameter is the highest-level memory starting from the top address of the management information storage area Saved in the area.

ローカルメモリ116の容量は、描画部110の使用するパラメータの数やそのデータサイズに応じて、設計者が決定することができる。ローカルメモリ116の容量は、描画部110が使用する全てのパラメータのデータサイズよりも少なくすることが好適である。   The capacity of the local memory 116 can be determined by the designer according to the number of parameters used by the drawing unit 110 and the data size thereof. The capacity of the local memory 116 is preferably smaller than the data size of all parameters used by the drawing unit 110.

バスコントローラ117は、通信バス106を介したデータ通信を制御する手段である。メモリアービタ118は、描画部110と、描画装置103の他のモジュールとの間のデータ通信を制御する手段である。CPUインタフェース119は、CPU101とのデータ通信を制御する手段である。通信コントローラ120は、画像処理装置10と外部装置とのデータ通信を制御する手段である。   The bus controller 117 is means for controlling data communication via the communication bus 106. The memory arbiter 118 is means for controlling data communication between the drawing unit 110 and other modules of the drawing apparatus 103. The CPU interface 119 is means for controlling data communication with the CPU 101. The communication controller 120 is means for controlling data communication between the image processing apparatus 10 and an external device.

操作パネル制御部104は、画像処理装置10に対するユーザ指示を受け付け可能な装置である操作パネル121を制御する手段である。エンジン制御部105は、印刷対象画像を印刷媒体に印刷するプリンタエンジン122を制御する手段である。   The operation panel control unit 104 is means for controlling the operation panel 121 that is a device that can accept a user instruction to the image processing apparatus 10. The engine control unit 105 is a unit that controls the printer engine 122 that prints an image to be printed on a print medium.

図2は、ローカルメモリコントローラ115の機能構成を示す図である。ローカルメモリコントローラ115は、パラメータ存否判断部200と、空き領域判断部201と、メモリ制御部202と、管理情報生成部203と、パラメータ取得部204と、パラメータ提供部205とを有する。   FIG. 2 is a diagram illustrating a functional configuration of the local memory controller 115. The local memory controller 115 includes a parameter presence / absence determination unit 200, a free space determination unit 201, a memory control unit 202, a management information generation unit 203, a parameter acquisition unit 204, and a parameter provision unit 205.

パラメータ存否判断部200は、要求対象のパラメータがローカルメモリ116に保存されているか否か判断する手段である。空き領域判断部201は、ローカルメモリ116に要求対象のパラメータを保存可能な空き領域が存在するか否か判断する手段である。メモリ制御部202は、ローカルメモリ116を制御してデータの保存や削除、入替を行う手段である。   The parameter presence / absence judgment unit 200 is a means for judging whether or not the requested parameter is stored in the local memory 116. The free space determination unit 201 is a means for determining whether or not there is a free space in the local memory 116 that can store the requested parameter. The memory control unit 202 is means for controlling the local memory 116 to store, delete, and replace data.

管理情報生成部203は、要求対象のパラメータの管理情報を生成する手段である。管理情報生成部203は、要求対象のパラメータの管理情報として、要求元が提供するモジュールの識別情報と、当該モジュールが実行する処理の識別情報と、ローカルメモリ116のパラメータ格納領域の空き領域の開始アドレスと、所定のデータサイズとを生成する。所定のデータサイズは、要求対象のパラメータのサイズであり、要求対象のパラメータを保存可能な既定のデータサイズとすることができる。また、所定のデータサイズは、要求元が指示するデータサイズを採用してもよい。   The management information generation unit 203 is a unit that generates management information of the parameter to be requested. The management information generation unit 203 uses the identification information of the module provided by the request source, the identification information of the process executed by the module, and the start of the free space in the parameter storage area of the local memory 116 as the management information of the request target parameter An address and a predetermined data size are generated. The predetermined data size is the size of the request target parameter, and can be a predetermined data size that can store the request target parameter. The predetermined data size may be the data size indicated by the request source.

パラメータ取得部204は、メインメモリ102に保存されている要求対象のパラメータを取得する手段である。パラメータ提供部205は、要求元のモジュールに要求対象のパラメータを提供する手段である。   The parameter acquisition unit 204 is a means for acquiring a request target parameter stored in the main memory 102. The parameter providing unit 205 is a means for providing the requested parameter to the requesting module.

図3は、描画部110の変換部114が実行する処理の一実施形態を示すフローチャートである。以下、図3を参照して、変換部114が描画画像に種々の変換処理(色空間変換処理、ガンマ変換処理および階調変換処理)を施す処理について説明する。   FIG. 3 is a flowchart illustrating an embodiment of processing executed by the conversion unit 114 of the drawing unit 110. Hereinafter, with reference to FIG. 3, a process in which the conversion unit 114 performs various conversion processes (color space conversion process, gamma conversion process, and gradation conversion process) on the drawn image will be described.

図3に示す処理はステップS300から開始し、ステップS301では、変換部114が、CPU101に対し、メインメモリ102からローカルメモリ116へ描画画像の画素データの転送を指示して、ローカルメモリ116に描画画像の画素データを保存する。   The processing shown in FIG. 3 starts from step S300. In step S301, the conversion unit 114 instructs the CPU 101 to transfer pixel data of a drawing image from the main memory 102 to the local memory 116, and draws the drawing on the local memory 116. Save the pixel data of the image.

ステップS302では、変換部114は、ローカルメモリコントローラ115に対し、描画画像の色空間変換処理に使用する色空間変換処理パラメータを要求する。ステップS303では、変換部114は、ローカルメモリコントローラ115が提供した色空間変換処理パラメータを用いて、描画画像の画素データに色空間変換処理を施す。   In step S302, the conversion unit 114 requests the local memory controller 115 for color space conversion processing parameters used for the color space conversion processing of the drawn image. In step S <b> 303, the conversion unit 114 performs color space conversion processing on the pixel data of the drawn image using the color space conversion processing parameters provided by the local memory controller 115.

ステップS304では、変換部114は、ローカルメモリコントローラ115に対し、描画画像のガンマ処理に使用するガンマ処理パラメータを要求する。ステップS305では、変換部114は、ローカルメモリコントローラ115が提供したガンマ処理パラメータを用いて、ステップS303で色変換処理を施した画素データにガンマ処理を施す。   In step S <b> 304, the conversion unit 114 requests the local memory controller 115 for a gamma processing parameter used for gamma processing of the drawn image. In step S305, the conversion unit 114 performs gamma processing on the pixel data subjected to the color conversion processing in step S303, using the gamma processing parameters provided by the local memory controller 115.

ステップS306では、変換部114は、ローカルメモリコントローラ115に対し、描画画像の階調変換処理に使用する階調変換処理パラメータを要求する。ステップS307では、変換部114は、ローカルメモリコントローラ115が提供する階調変換処理パラメータを用いて、ステップS305でガンマ処理を施した画素データに階調変換処理を施す。   In step S306, the conversion unit 114 requests the local memory controller 115 for gradation conversion processing parameters used for the gradation conversion processing of the drawn image. In step S307, the conversion unit 114 performs gradation conversion processing on the pixel data subjected to gamma processing in step S305, using the gradation conversion processing parameters provided by the local memory controller 115.

ステップS308では、変換部114は、ローカルメモリコントローラ115に対し、階調変換処理が施された描画画像の画素データを、メインメモリ102に転送するよう指示する。ステップS309では、変換部114は、処理対象の描画画像を構成する全ての画素について変換処理を実行したか否か判断する。全ての画素について変換処理が実行されていない場合は(no)、ステップS301に処理が戻り、次に処理すべき描画画像の画素データに対して、上述した処理を実行する。一方、全ての画素について変換処理が終了した場合は(yes)、ステップS310で処理が終了する。   In step S <b> 308, the conversion unit 114 instructs the local memory controller 115 to transfer the pixel data of the drawn image subjected to the gradation conversion process to the main memory 102. In step S309, the conversion unit 114 determines whether or not conversion processing has been executed for all the pixels constituting the drawing image to be processed. If the conversion process has not been executed for all the pixels (no), the process returns to step S301, and the above-described process is executed for the pixel data of the drawing image to be processed next. On the other hand, if the conversion process has been completed for all pixels (yes), the process ends in step S310.

図4は、ローカルメモリコントローラ115が実行する処理の一実施形態を示すフローチャートである。以下、図4を参照して、描画部110の他のモジュールからパラメータを要求された場合に、ローカルメモリコントローラ115が実行する処理について説明する。   FIG. 4 is a flowchart illustrating an embodiment of processing executed by the local memory controller 115. Hereinafter, with reference to FIG. 4, processing executed by the local memory controller 115 when a parameter is requested from another module of the drawing unit 110 will be described.

図4に示す処理は、ステップS400で描画部110のモジュールからパラメータを要求されることにより開始する。ステップS401では、ローカルメモリコントローラ115のパラメータ存否判断部200が、要求対象のパラメータがローカルメモリ116に有るか否か判断する。   The process shown in FIG. 4 starts when a parameter is requested from the module of the drawing unit 110 in step S400. In step S <b> 401, the parameter presence / absence determining unit 200 of the local memory controller 115 determines whether or not the request target parameter exists in the local memory 116.

本実施形態では、要求元のモジュールが、モジュールの識別情報と、当該モジュールが実行する処理の識別情報とをローカルメモリコントローラ115に送信する。パラメータ存否判断部200は、これらの識別情報がローカルメモリ116の管理情報格納領域に存在するか否か判断する。これらの識別情報がローカルメモリ116の管理情報格納領域に存在する場合、パラメータ存否判断部200は、要求対象のパラメータがローカルメモリ116に有ると判断する。   In this embodiment, the request source module transmits the module identification information and the identification information of the process executed by the module to the local memory controller 115. The parameter presence / absence determination unit 200 determines whether the identification information exists in the management information storage area of the local memory 116. If these pieces of identification information exist in the management information storage area of the local memory 116, the parameter presence / absence determination unit 200 determines that the requested parameter exists in the local memory 116.

本実施形態では、パラメータの管理情報は、当該パラメータの使用頻度順にパラメータ格納領域に保存されるため、パラメータ存否判断部200は、使用頻度の高いパラメータの管理情報から順に検索でき、要求対象のパラメータの存否を効率的に判断することができる。   In the present embodiment, the parameter management information is stored in the parameter storage area in the order of the frequency of use of the parameter, so the parameter presence / absence determination unit 200 can search in order from the management information of the parameter with the highest use frequency. Can be efficiently determined.

要求対象のパラメータがローカルメモリ116に有る場合は(yes)、ステップS402に処理が分岐する。ステップS402では、メモリ制御部202が、要求対象のパラメータの管理情報を、ローカルメモリ116の管理情報格納領域の先頭に移動する。   If the requested parameter is in the local memory 116 (yes), the process branches to step S402. In step S <b> 402, the memory control unit 202 moves the management information of the request target parameter to the head of the management information storage area of the local memory 116.

一方、ステップS401で要求対象のパラメータがローカルメモリ116に無いと判断した場合(no)、ステップS403に処理が分岐する。ステップS403では、空き領域判断部201が、ローカルメモリ116に要求対象のパラメータおよび当該パラメータの管理情報を保存可能な空き領域が有るか否か判断する。空き領域が有る場合は(yes)、ステップS406に処理が分岐する。一方、空き領域が無い場合は(no)、ステップS404に処理が分岐する。   On the other hand, if it is determined in step S401 that the requested parameter is not in the local memory 116 (no), the process branches to step S403. In step S403, the free space determination unit 201 determines whether there is a free space in the local memory 116 that can store the requested parameter and management information of the parameter. If there is an empty area (yes), the process branches to step S406. On the other hand, if there is no free space (no), the process branches to step S404.

ステップS404では、メモリ制御部202が、使用頻度が最も低いパラメータをローカルメモリ116から削除する。これにより、使用頻度の高いパラメータを優先的にローカルメモリ116に保持しておくことができるため、メインメモリ102から要求対象のパラメータを取得する回数を低減でき、要求対象のパラメータの取得に起因する処理速度の低下を抑制することができる。   In step S <b> 404, the memory control unit 202 deletes the parameter that is least frequently used from the local memory 116. As a result, frequently used parameters can be preferentially held in the local memory 116, so that the number of times that the request target parameter is acquired from the main memory 102 can be reduced, resulting from the acquisition of the request target parameter. A reduction in processing speed can be suppressed.

本実施形態では、パラメータの管理情報は、当該パラメータの使用頻度順にパラメータ格納領域に保存されるため、メモリ制御部202は、管理情報格納領域の最後尾に保存されている管理情報によって識別されるパラメータをパラメータ格納領域から削除する。他の実施形態では、パラメータの使用頻度を示す頻度情報を、当該パラメータの管理情報として保存しておき、メモリ制御部202は、当該頻度情報を用いて、使用頻度が最も低いパラメータを特定してもよい。   In the present embodiment, parameter management information is stored in the parameter storage area in the order in which the parameters are used. Therefore, the memory control unit 202 is identified by the management information stored at the end of the management information storage area. Delete the parameter from the parameter storage area. In another embodiment, frequency information indicating the usage frequency of a parameter is stored as management information of the parameter, and the memory control unit 202 specifies the parameter with the lowest usage frequency by using the frequency information. Also good.

ステップS405では、メモリ制御部202は、使用頻度が最も低いパラメータの管理情報をローカルメモリ116から削除する。本実施形態では、パラメータの管理情報は、管理情報格納領域の最後尾に保存されている管理情報を削除する。   In step S <b> 405, the memory control unit 202 deletes the management information of the parameter with the lowest usage frequency from the local memory 116. In this embodiment, the management information stored at the end of the management information storage area is deleted from the parameter management information.

ステップS406では、管理情報生成部203が、要求対象のパラメータの管理情報を作成し、メモリ制御部202が、当該管理情報をローカルメモリ116の管理情報格納領域の先頭に保存する。ステップS407では、パラメータ取得部204が、メインメモリ102に保存されている要求対象のパラメータをCPU101に要求し、メモリ制御部202は、CPU101が提供するパラメータを、当該パラメータの管理情報が示すローカルメモリ116のパラメータ格納領域に保存する。   In step S <b> 406, the management information generation unit 203 creates management information for the request target parameter, and the memory control unit 202 stores the management information at the head of the management information storage area of the local memory 116. In step S407, the parameter acquisition unit 204 requests the CPU 101 for the request target parameter stored in the main memory 102, and the memory control unit 202 displays the parameter provided by the CPU 101 in the local memory indicated by the management information of the parameter. 116 is stored in the parameter storage area 116.

本実施形態では、パラメータ取得部204は、要求対象のパラメータの識別情報として、要求元のモジュールが提供する当該モジュールの識別情報と、当該モジュールが実行する処理の識別情報とをCPU101に提供する。CPU101は、これらの識別情報を使用して、メインメモリ102に保存されているパラメータの中から要求対象のパラメータを特定する。   In the present embodiment, the parameter acquisition unit 204 provides the CPU 101 with the identification information of the module provided by the request source module and the identification information of the process executed by the module as the identification information of the request target parameter. The CPU 101 uses these identification information to specify a request target parameter from parameters stored in the main memory 102.

ステップS408では、パラメータ提供部205が、ローカルメモリ116から要求対象のパラメータを取得して、要求元のモジュールに提供し、ステップS409で処理が終了する。   In step S408, the parameter providing unit 205 acquires the requested parameter from the local memory 116 and provides it to the requesting module, and the process ends in step S409.

上述したように、ローカルメモリ116には、描画部110の複数のモジュールが要求する種々のパラメータが保存されると共に、複数のモジュール間でパラメータの使用頻度を比較して、使用頻度の低いパラメータを削除する。このため、モジュール毎にローカルメモリを設置し、ローカルメモリ毎で使用頻度の低いパラメータを削除する実施形態と比較して、使用頻度の低いパラメータを効果的に削減することができ、回路規模を縮小化することができる。   As described above, various parameters required by a plurality of modules of the drawing unit 110 are stored in the local memory 116, and the use frequency of the parameters is compared between the plurality of modules, and a parameter with a low use frequency is stored. delete. For this reason, compared to the embodiment in which a local memory is installed for each module and a low-use parameter is deleted for each local memory, a low-use parameter can be effectively reduced, and the circuit scale can be reduced. Can be

これまで本実施形態につき説明してきたが、本発明は、上述した実施形態に限定されるものではなく、本実施形態の構成要素を変更若しくは削除し、または本実施形態の構成要素に他の構成要素を追加するなど、当業者が想到することができる範囲内で変更することができる。いずれの態様においても本発明の作用効果を奏する限り、本発明の範囲に含まれるものである。   Although the present embodiment has been described so far, the present invention is not limited to the above-described embodiment, and the constituent elements of the present embodiment are changed or deleted, or other constituent elements are included in the constituent elements of the present embodiment. Changes can be made within the range that can be conceived by those skilled in the art, such as adding elements. Any aspect is included in the scope of the present invention as long as the effects of the present invention are exhibited.

10…画像処理装置、100…コントローラボード、101…CPU、102…メインメモリ、103…描画装置、104…操作パネル、105…エンジン制御部、106…通信バス、121…操作パネル、122…プリンタエンジン   DESCRIPTION OF SYMBOLS 10 ... Image processing apparatus, 100 ... Controller board, 101 ... CPU, 102 ... Main memory, 103 ... Drawing apparatus, 104 ... Operation panel, 105 ... Engine control part, 106 ... Communication bus, 121 ... Operation panel, 122 ... Printer engine

特許第5146216号Patent No. 5146216

Claims (10)

画像を生成する描画手段と、前記描画手段が使用するパラメータが保存されるメインメモリとを備える装置であって、
前記描画手段は、
前記パラメータが保存されるローカルメモリと、
前記ローカルメモリを制御するローカルメモリ制御手段と
を備え、
前記ローカルメモリ制御手段は、
要求対象のパラメータが前記ローカルメモリに存在しない場合に、前記ローカルメモリ内に前記要求対象のパラメータを保存可能な空き領域が有るか否か判断する空き領域判断手段と、
前記ローカルメモリ内に前記空き領域が無い場合、前記ローカルメモリに既に保存されているパラメータのうち、使用頻度が最も低いパラメータを削除する削除手段と、
前記要求対象のパラメータを前記メインメモリから取得する取得手段と、
前記取得手段が取得した前記要求対象のパラメータを前記ローカルメモリに保存する保存手段と
を備える、装置。
An apparatus comprising drawing means for generating an image and a main memory in which parameters used by the drawing means are stored,
The drawing means includes
Local memory in which the parameters are stored;
A local memory control means for controlling the local memory,
The local memory control means includes
Free area determination means for determining whether or not there is a free area in the local memory where the requested parameter can be stored when the request target parameter does not exist in the local memory;
When there is no free space in the local memory, a deletion unit that deletes a parameter that is least frequently used among parameters already stored in the local memory;
Obtaining means for obtaining the requested parameter from the main memory;
A storage unit configured to store the request target parameter acquired by the acquisition unit in the local memory.
前記ローカルメモリ制御手段は、
前記パラメータが要求された場合に、前記パラメータが前記ローカルメモリに存在するか否か判断するパラメータ存否判断手段を備える、請求項1に記載の装置。
The local memory control means includes
The apparatus according to claim 1, further comprising a parameter presence / absence determining unit configured to determine whether or not the parameter exists in the local memory when the parameter is requested.
前記ローカルメモリは、前記パラメータが格納されるパラメータ領域と、前記パラメータの管理情報が格納される管理情報格納領域とを有し、
前記ローカルメモリ制御手段は、
前記パラメータの保存時に前記パラメータ領域および前記管理情報格納領域を動的に確保することを特徴とする、請求項1または2に記載の装置。
The local memory has a parameter area in which the parameters are stored, and a management information storage area in which management information of the parameters is stored.
The local memory control means includes
3. The apparatus according to claim 1, wherein the parameter area and the management information storage area are dynamically secured when the parameter is stored.
前記ローカルメモリ制御手段は、
前記描画手段が備える複数の画像処理手段毎に、前記パラメータ領域および前記管理情報格納領域を確保することを特徴とする、請求項3に記載の装置。
The local memory control means includes
4. The apparatus according to claim 3, wherein the parameter area and the management information storage area are secured for each of a plurality of image processing means provided in the drawing means.
前記削除手段は、前記ローカルメモリに保存されている、前記描画手段が備える複数の画像処理手段が使用するパラメータのうち、使用頻度が最も低いパラメータを削除することを特徴とする、請求項1〜4のいずれか1項に記載の装置。   The deletion unit deletes a parameter that is stored in the local memory and is least frequently used among parameters used by a plurality of image processing units included in the drawing unit. 5. The apparatus according to any one of 4 above. 画像を生成する描画装置が実行する方法であって、
前記描画装置は、前記描画装置が使用するパラメータが保存されるローカルメモリを備え、
前記方法は、前記描画装置が、
前記パラメータの要求を受信するステップと、
要求対象のパラメータが前記ローカルメモリに存在しない場合に、前記ローカルメモリ内に前記要求対象のパラメータを保存可能な空き領域が有るか否か判断するステップと、
前記ローカルメモリ内に前記空き領域が無い場合、前記ローカルメモリに既に保存されているパラメータのうち、使用頻度が最も低いパラメータを削除するステップと、
前記要求対象のパラメータを外部から取得するステップと、
前記取得した前記要求対象のパラメータを前記ローカルメモリに保存するステップと
を含む、方法。
A method executed by a drawing device that generates an image,
The drawing device includes a local memory in which parameters used by the drawing device are stored;
In the method, the drawing apparatus comprises:
Receiving a request for said parameter;
Determining whether or not there is a free area in the local memory where the requested parameter can be stored when the requested parameter does not exist in the local memory; and
If there is no free space in the local memory, deleting the least frequently used parameter among the parameters already stored in the local memory;
Obtaining the parameter to be requested from the outside;
Storing the obtained parameter to be requested in the local memory.
前記方法は、前記描画装置が、
前記描画装置の処理に使用されるパラメータが要求された場合に、要求対象のパラメータが前記ローカルメモリに存在するか否か判断するステップを含む、請求項6に記載の方法。
In the method, the drawing apparatus comprises:
The method according to claim 6, further comprising the step of determining whether a requested parameter exists in the local memory when a parameter used for processing of the drawing apparatus is requested.
前記方法は、前記描画装置が、
前記パラメータの保存時に、前記パラメータが格納されるパラメータ領域と、前記パラメータの管理情報が格納される管理情報格納領域とを動的に確保するステップをさらに含む、請求項6または7に記載の方法。
In the method, the drawing apparatus comprises:
The method according to claim 6, further comprising the step of dynamically securing a parameter area in which the parameter is stored and a management information storage area in which the management information of the parameter is stored when the parameter is saved. .
前記確保するステップは、
前記描画装置が備える複数の画像処理手段毎に、前記パラメータ領域および前記管理情報格納領域を確保するステップを含む、請求項8に記載の方法。
The securing step includes
The method according to claim 8, further comprising the step of securing the parameter area and the management information storage area for each of a plurality of image processing means provided in the drawing apparatus.
画像を処理する装置に対し、請求項6〜9のいずれか1項に記載の方法を実行させる装置可読なプログラム。   A device-readable program that causes a device that processes an image to execute the method according to claim 6.
JP2014177900A 2014-09-02 2014-09-02 Device, method, and program Pending JP2016052089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014177900A JP2016052089A (en) 2014-09-02 2014-09-02 Device, method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014177900A JP2016052089A (en) 2014-09-02 2014-09-02 Device, method, and program

Publications (1)

Publication Number Publication Date
JP2016052089A true JP2016052089A (en) 2016-04-11

Family

ID=55659289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014177900A Pending JP2016052089A (en) 2014-09-02 2014-09-02 Device, method, and program

Country Status (1)

Country Link
JP (1) JP2016052089A (en)

Similar Documents

Publication Publication Date Title
JP5679652B2 (en) Printing apparatus, information processing method, and program
US9507584B2 (en) Electronic device including a memory technology device
JP5051327B1 (en) Image processing apparatus and program
JP4337885B2 (en) Image forming apparatus and image forming method
US10402131B2 (en) Image processing apparatus and method to form image on sheet using page image data and object information
US9183473B2 (en) Image forming apparatus having function of avoiding overflow of buffer and image forming method
JP2016052089A (en) Device, method, and program
JP5929689B2 (en) Preview image generation apparatus, preview image generation method, and computer program
JP5936363B2 (en) Image processing apparatus and image processing method
US9165225B2 (en) Program and information processing apparatus
JP6597510B2 (en) Image processing apparatus and image processing method
US8533351B2 (en) Data reception processing apparatus, image forming apparatus, and data reception processing method
JP2010282152A (en) Image forming apparatus
JP2015106384A (en) Information processor and control method thereof, and program
JP5966805B2 (en) Control device for printing
US10853005B2 (en) Image processing apparatus and image processing method
JP2010218325A (en) Printing controller and printing system
US9179037B2 (en) Image forming apparatus, controlling device and non-transitory computer readable medium for providing an available storage space
JP6015478B2 (en) Control device, control method, and printer driver program
US10282318B2 (en) Image processing apparatus, method of controlling image processing apparatus, and recording medium
US20150271362A1 (en) Image processing apparatus, image processing method, and non-transitory recording medium storing image processing program
JP2006236006A (en) Printer, program and recording medium
US9674381B2 (en) Electronic device including a job information generating device and access managing device, information management method to enable the electronic device to function, and a non-transitory computer-readable storage medium to store a program for the information management method
JP2009147439A (en) Image forming device
JP5701234B2 (en) Image forming apparatus and character drawing program