JPWO2018154707A1 - Image composition display apparatus and method, program, and recording medium - Google Patents

Image composition display apparatus and method, program, and recording medium Download PDF

Info

Publication number
JPWO2018154707A1
JPWO2018154707A1 JP2018564862A JP2018564862A JPWO2018154707A1 JP WO2018154707 A1 JPWO2018154707 A1 JP WO2018154707A1 JP 2018564862 A JP2018564862 A JP 2018564862A JP 2018564862 A JP2018564862 A JP 2018564862A JP WO2018154707 A1 JPWO2018154707 A1 JP WO2018154707A1
Authority
JP
Japan
Prior art keywords
layer
image
buffer
layers
display
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.)
Granted
Application number
JP2018564862A
Other languages
Japanese (ja)
Other versions
JP6513313B2 (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of JPWO2018154707A1 publication Critical patent/JPWO2018154707A1/en
Application granted granted Critical
Publication of JP6513313B2 publication Critical patent/JP6513313B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/37Details of the operation on graphic patterns
    • G09G5/377Details of the operation on graphic patterns for mixing or overlaying two or more graphic patterns

Abstract

画像情報が更新されたシングルバッファ構成のレイヤよりも上位のダブルバッファ構成をカバーレイヤとして、該カバーレイヤの書き込み用バッファに、カバーレイヤ及びそれよりも下位のレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行う。そして、カバーレイヤのバッファを入れ替えることで、不透明の設定が行われたバッファに記憶されている画像が画像合成に用いられる状態に移行する。この状態で、画像情報が更新されたレイヤの画像を当該レイヤのバッファに描画する。描画が完了したら、カバーレイヤのバッファを入れ替える。これにより、カバーレイヤの新たな表示用バッファに記憶されている画像が画像合成に用いられる状態に移行する。  A double buffer configuration higher than the layer of the single buffer configuration in which the image information is updated is used as a cover layer, and an image to be displayed next in the cover layer and lower layers is displayed in the writing buffer of the cover layer. Draw in order from the lowest layer, and set the drawn area to be opaque. Then, by replacing the cover layer buffer, the image stored in the buffer in which the opaque setting has been made shifts to a state where it is used for image composition. In this state, the image of the layer whose image information is updated is drawn in the buffer of the layer. When the drawing is completed, the cover layer buffer is replaced. As a result, the image stored in the new display buffer of the cover layer shifts to a state where it is used for image composition.

Description

本発明は、画像合成表示装置及び方法に関する。本発明は特に、複数レイヤの画像を一旦フレームバッファに記憶させた後、重ね合わせることにより合成画像を生成して表示する画像合成表示装置及び方法に関する。本発明はまた、画像合成表示装置及び方法における処理をコンピュータに実行させるためのプログラム、及び該プログラムを記録したコンピュータ読み取り可能な記録媒体に関する。   The present invention relates to an image composition display apparatus and method. In particular, the present invention relates to an image composition display apparatus and method for generating and displaying a composite image by temporarily storing a plurality of layers of images in a frame buffer and then superimposing them. The present invention also relates to a program for causing a computer to execute processing in the image composition display apparatus and method, and a computer-readable recording medium on which the program is recorded.

複数レイヤの画像を重ね合わせることにより合成画像を生成して表示するシステムにおいては、画像の書き換えの際の画面のちらつきが問題となる。画像の書き換えの際の画面のちらつきを防ぐために、各レイヤの画像のために2つのバッファ(記憶領域)を設けることが知られている。このような構成の場合、各レイヤの2つのバッファのうち、一方が表示用に割り当てられ、他方が書き込み用に割り当てられる。表示用のバッファから読み出された画像が合成に用いられる。いずれかのレイヤに画像について書き換えが必要になると、当該レイヤの書き込み用バッファに新たな画像が書き込まれ、書き込みが完了したら、バッファの役割が切り替えられる。即ち、新たな画像が書き込まれたバッファが、新たな表示用バッファとして用いられ、それまで表示用だったバッファの役割が、書き込み用に変更される。
このような構成の場合、必要とされるバッファの数が多いという問題がある。
In a system that generates and displays a composite image by superimposing a plurality of layers of images, screen flicker during image rewriting becomes a problem. It is known to provide two buffers (storage areas) for images of each layer in order to prevent screen flicker during image rewriting. In such a configuration, one of the two buffers in each layer is assigned for display and the other is assigned for writing. An image read from the display buffer is used for composition. When an image needs to be rewritten in any layer, a new image is written in the writing buffer of the layer, and when the writing is completed, the role of the buffer is switched. That is, the buffer in which a new image is written is used as a new display buffer, and the role of the buffer that has been used for display is changed to writing.
In such a configuration, there is a problem that a large number of buffers are required.

バッファの数を減らすために、複数のレイヤに対して1個の予備バッファを用意し、書き換えが必要なレイヤの新たな画像を予備バッファに書き込み、書き込みが完了したら、予備バッファを当該レイヤの新たな表示用バッファとして用い、それまで当該レイヤの表示用として用いられていたバッファを予備用に割り当てることが提案されている(特許文献1)。   In order to reduce the number of buffers, one spare buffer is prepared for a plurality of layers, a new image of a layer that needs to be rewritten is written to the spare buffer. It has been proposed that a buffer used as a display buffer and used as a display buffer for the layer until then is allocated as a spare (Patent Document 1).

また、複数のレイヤの画像を透過合成するシステムにおいて、下位(背面側)レイヤの画像を再描画する際の画面のちらつきを防ぐため、再描画前の下位レイヤの画像の再描画領域を上位レイヤの画像にはめ込み、透過設定を解除することで、下位レイヤの画像の再描画領域が出力されないようにし、その状態で下位レイヤの画像を再描画し、再描画が完了したら上位レイヤの透過設定を行うことも提案されている(特許文献2)。   Also, in a system that transparently synthesizes images of multiple layers, in order to prevent flickering of the screen when redrawing the image of the lower layer (back side), the redrawing area of the lower layer image before redrawing is set as the upper layer. In this state, the transparency setting is canceled, so that the redrawing area of the lower layer image is not output, the lower layer image is redrawn in that state, and when the redrawing is completed, the upper layer transparency setting is set. It has also been proposed to do this (Patent Document 2).

特開平5−83630号公報JP-A-5-83630 特開2010−26297号公報JP 2010-26297 A

特許文献1の構成では、複数のレイヤの画像を一度に書き換えることができず、画像の書き換えを1レイヤずつ順に行う必要がある。従って複数のレイヤについて画像の書き換え要求が同時に発生した場合、すべてのレイヤのバッファで書き換えが終わるまでの期間、一部のバッファには書き換え前の画像が記憶されており、他のバッファには、書き換え後の画像が記憶されている状態になる。その結果、合成画像が不適切なものとなる場合がある。例えば、複数のレイヤのすべてで書き換え後の画像が用いられることで初めて意味のある合成画像が生成される場合に、一部のレイヤで書き換え前の画像が用いられるために、合成画像が意味のないものとなってしまう場合がある。   In the configuration of Patent Document 1, images of a plurality of layers cannot be rewritten at one time, and it is necessary to rewrite the images one layer at a time. Therefore, when image rewrite requests for multiple layers occur at the same time, the image before rewriting is stored in some buffers for the period until rewriting is completed in the buffers of all layers, The rewritten image is stored. As a result, the composite image may be inappropriate. For example, if a meaningful composite image is generated for the first time when the rewritten image is used in all of the multiple layers, the pre-rewritten image is used in some layers, so the composite image is meaningful. It may become something that is not.

特許文献2の構成では、上位レイヤに半透明オブジェクトが存在する場合、下位レイヤの画像を上位レイヤの画像にはめ込む処理のみでは対応することができない。
さらに、上位レイヤの画像を透過設定に戻す際に、画像の透過処理のタイミングとメモリ読出しのタイミングとが重なると、ちらつきが発生する可能性がある。
In the configuration of Patent Document 2, when a translucent object exists in the upper layer, it is not possible to cope with only the process of fitting the lower layer image into the upper layer image.
Further, when the upper layer image is returned to the transparency setting, flicker may occur if the timing of the image transparency processing and the timing of memory reading overlap.

本発明の第1の態様の画像合成表示装置は、
第1乃至第Nのレイヤ(Nは2以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示装置において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1〜第(N+1)の記憶領域と、描画処理部と、メモリ制御部と、読み出し部と、画像合成部とを有し、
前記第1及び第(N+1)の記憶領域は、前記第1のレイヤに割り当てられ、前記第1のレイヤを、2つの記憶領域が割り当てられたダブルバッファ構成のレイヤとし、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
前記第2乃至第Nの記憶領域は、それぞれ第2乃至第Nのレイヤに割り当てられ、前記第2乃至第Nのレイヤを、単一の記憶領域が割り当てられたシングルバッファ構成のレイヤとし、前記シングルバッファ構成のレイヤの各々においては、割り当てられた単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
前記描画処理部が、外部から供給される、各レイヤの画像情報に基づいて、前記第1のレイヤの書き込み用バッファ、及び前記第2乃至第Nのレイヤの表示及び書き込み兼用バッファに描画を行い、
前記読み出し部が、前記第1のレイヤの表示用バッファ、及び前記第2乃至第Nのレイヤの表示及び書き込み兼用バッファから画像を読み出し、
前記画像合成部が、読み出された画像を合成し、
前記第2乃至第Nのレイヤの少なくとも一つについて当該レイヤの画像情報が更新されたら、前記描画処理部が、前記第1のレイヤの、書き込み用バッファに、前記第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記メモリ制御部が、前記第1のレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、前記描画処理部が、
前記第2乃至第Nのレイヤのうちの、画像情報が更新された少なくとも一つのレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記第1のレイヤの次に表示すべき画像を、前記第1のレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記メモリ制御部が、前記第1のレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより前記第1のレイヤの、新たな表示用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする。
The image composition display device according to the first aspect of the present invention includes:
In an image composition display device for compositing by superimposing images of first to Nth layers (N is an integer of 2 or more) and displaying a composite image,
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
A first to (N + 1) th storage area, a drawing processing unit, a memory control unit, a reading unit, and an image composition unit;
The first and (N + 1) storage areas are allocated to the first layer, the first layer is a double buffer configuration layer to which two storage areas are allocated, and the double buffer configuration layer , One of the two storage areas is assigned to the display buffer, the other is assigned to the write buffer,
The second to Nth storage areas are assigned to second to Nth layers, respectively, and the second to Nth layers are single buffer configuration layers to which a single storage area is assigned, and In each of the layers of the single buffer configuration, the allocated single storage area is allocated to the display and writing combined buffer,
The drawing processing unit performs drawing on the first layer writing buffer and the second to Nth layer display and writing combined buffers based on image information of each layer supplied from the outside. ,
The reading unit reads an image from the display buffer for the first layer and the display and write buffer for the second to Nth layers;
The image composition unit composes the read image,
When the image information of at least one of the second to Nth layers is updated, the drawing processing unit stores the first to Nth layers in the writing buffer of the first layer. , Draw the next image to be displayed in order from the lowest layer, set the rendered area to opaque,
When the drawing and the opacity setting are completed, the memory control unit allocates a storage area that has been used as a writing buffer in the first layer to a new display buffer and uses the storage area as a display buffer until then. Allocate the storage area that was used to a new writing buffer, so that the image stored in the storage area where the opaque setting has been made transitions to the opaque composition state used for image composition,
In the opaque composition state, the drawing processing unit is
Drawing each image of at least one layer of the second to Nth layers, in which image information is updated, in a display / write buffer for the layer;
Drawing an image to be displayed next to the first layer in the writing buffer of the first layer;
When the drawing in the opaque composition state is completed, the memory control unit allocates a storage area that has been used as a writing buffer in the first layer to a new display buffer, and uses it as a display buffer until then. The storage area used is allocated to a new writing buffer, whereby the image stored in the new display buffer of the first layer is shifted to a transparent composition state used for image composition. And

本発明の第2の態様の画像合成表示装置は、
第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示装置において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1乃至第(N+M)の記憶領域(Mは1より大きくNより小さい整数)と、描画管理部と、描画処理部と、メモリ制御部と、読み出し部と、画像合成部とを有し、
前記第1乃至第Nの記憶領域は、それぞれ前記第1乃至第Nのレイヤに割り当てられ、
前記第(N+1)乃至第(N+M)の記録領域は、前記第1乃至第NのレイヤのうちのM個のレイヤに割り当てられて、前記M個のレイヤを2つの記憶領域が割り当てられたダブルバッファ構成のレイヤとし、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
前記第1乃至第Nのレイヤのうちの前記M個のレイヤ以外の、(N−M)個のレイヤは、単一の記憶領域が割り当てられたシングルバッファ構成のレイヤであり、前記シングルバッファ構成のレイヤにおいては、単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
前記M個のレイヤには、前記第1のレイヤが含まれ、
前記M個のダブルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの書き込み用バッファに描画を行い、
前記(N−M)個のシングルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの表示及び書き込み兼用バッファに描画を行い、
前記読み出し部が、前記M個のレイヤの表示用バッファ、及び前記(N−M)個のレイヤの表示及び書き込み兼用バッファから画像を読み出し、
前記画像合成部が、読み出された画像を合成し、
前記第1乃至第Nのレイヤのうちの、少なくとも一つのシングルバッファ構成のレイヤについて画像情報が更新されたら、
前記描画管理部が、前記画像情報が更新された前記少なくとも一つの、シングルバッファ構成のレイヤのいずれよりも上位の、ダブルバッファ構成のレイヤをカバーレイヤとして指定し、
前記描画処理部が、該カバーレイヤの、書き込み用バッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記メモリ制御部が、前記カバーレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、前記描画処理部が、
前記画像情報が更新された前記少なくとも一つのシングルバッファ構成のレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記カバーレイヤの次に表示すべき画像を、前記カバーレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記メモリ制御部が、前記カバーレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファに当てられていた記憶領域を新たな書き込み用バッファに割り当て、これにより前記カバーレイヤの、新たな表示用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする。
The image composition display device according to the second aspect of the present invention includes:
In an image composition display device that combines images by superimposing images of first to Nth layers (N is an integer of 3 or more) and displays a composite image.
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
First to (N + M) storage areas (M is an integer greater than 1 and less than N), a drawing management unit, a drawing processing unit, a memory control unit, a reading unit, and an image composition unit;
The first to Nth storage areas are allocated to the first to Nth layers, respectively.
The (N + 1) th to (N + M) recording areas are assigned to M layers of the first to Nth layers, and the M layers are assigned with two storage areas. As a buffer configuration layer, in the double buffer configuration layer, one of the two storage areas is allocated to the display buffer, the other is allocated to the write buffer,
Of the first to Nth layers, (N−M) layers other than the M layers are layers of a single buffer configuration to which a single storage area is allocated, and the single buffer configuration In this layer, a single storage area is allocated to the display / write buffer,
The M layers include the first layer,
For each of the M double buffer layers, the drawing processing unit performs drawing in the writing buffer of the layer based on image information of the layer supplied from the outside,
For each of the (N−M) single buffer configuration layers, the rendering processing unit performs rendering in the display / write buffer for the layer based on image information of the layer supplied from the outside. Done
The reading unit reads an image from the M layer display buffer and the (NM) layer display and write buffer,
The image composition unit composes the read image,
When image information is updated for at least one layer of the single buffer configuration among the first to Nth layers,
The drawing management unit designates, as a cover layer, a layer of a double buffer configuration that is higher than any of the at least one single buffer configuration layer in which the image information is updated,
The drawing processing unit draws and draws the image to be displayed next to the cover layer and the layer lower than the cover layer on the writing buffer of the cover layer in order from the lowest layer. Make the area opaque,
When the drawing and the opacity setting are completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display buffer and is used as a display buffer until then. The storage area that has been allocated is assigned to a new writing buffer, whereby the image stored in the storage area in which the opaque setting has been made shifts to an opaque composition state used for image composition,
In the opaque composition state, the drawing processing unit is
Drawing each image of the layer of the at least one single buffer configuration in which the image information has been updated, in the display and writing combined buffer of the layer;
Draw an image to be displayed next to the cover layer in the writing buffer of the cover layer,
When the drawing in the opaque composite state is completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display buffer, and is allocated to the display buffer until then. The stored storage area is assigned to a new writing buffer, whereby the image stored in the new display buffer of the cover layer is shifted to a transparent composition state used for image composition.

本発明の第3の態様の画像合成表示装置は、
第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示装置において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1乃至第(N+S)の記憶領域(Sは1以上でNよりも小さい整数)と、描画管理部と、描画処理部と、メモリ制御部と、読み出し部と、画像合成部とを有し、
前記第1乃至第(N+S個)の記憶領域のうちのN個の記憶領域は、通常は、それぞれ前記第1乃至第Nのレイヤのための表示及び書き込み兼用バッファに割り当てられ、
前記第1乃至第(N+S個)の記憶領域のうちのS個の記憶領域の各々は、通常は予備バッファとされ、必要に応じて、いずれかのレイヤの書き込み用バッファに割り当てられて、当該レイヤの、それまで表示及び書き込み兼用バッファとして用いられていた記憶領域を表示用バッファに割り当てることで、当該レイヤを2つの記憶領域が割り当てられたダブルバッファ構成のレイヤに切り替え、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
ダブルバッファ構成のレイヤ以外のレイヤは単一の記憶領域が割り当てられたシングルバッファ構成のレイヤであり、前記シングルバッファ構成のレイヤにおいては、単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
少なくとも一つのダブルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの書き込み用バッファに描画を行い、
少なくとも一つのシングルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの表示及び書き込み兼用バッファに描画を行い、
前記読み出し部が、前記シングルバッファ構成のレイヤの表示用バッファ、及び前記ダブルバッファ構成のレイヤの表示及び書き込み兼用バッファから画像を読み出し、
前記画像合成部が、読み出された画像を合成し、
前記第1乃至第NのレイヤのうちのSよりも大きい数のレイヤについて画像情報が更新されたら、
前記描画管理部が、画像情報が更新されたレイヤのうちの最も上位のレイヤをカバーレイヤとして指定し、
前記メモリ制御部が、それまで前記予備バッファとして用いられていた記憶領域のいずれかを、当該カバーレイヤの書き込み用バッファに割り当て、当該カバーレイヤの、それまで表示及び書き込み兼用バッファとして用いられていた記憶領域を、表示用バッファに割り当て、
前記描画処理部が、当該カバーレイヤの、書き込み用バッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記メモリ制御部が、前記カバーレイヤにおいてそれまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、前記描画処理部が、
前記カバーレイヤよりも下位の、前記画像情報が更新されたレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記カバーレイヤの次に表示すべき画像を、当該カバーレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記メモリ制御部が、前記カバーレイヤにおいてそれまで書き込み用バッファとして用いられていた記憶領域を当該カバーレイヤの新たな表示及び書き込み兼用バッファに割り当て、当該カバーレイヤにおいてそれまで表示用バッファとして用いられていた記憶領域を新たな予備バッファに割り当て、これにより前記カバーレイヤの、新たな表示及び書き込み兼用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする。
The image composition display device according to the third aspect of the present invention is:
In an image composition display device that combines images by superimposing images of first to Nth layers (N is an integer of 3 or more) and displays a composite image.
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
First to (N + S) storage areas (S is an integer greater than or equal to 1 and smaller than N), a drawing management unit, a drawing processing unit, a memory control unit, a reading unit, and an image composition unit ,
Of the first to (N + S) storage areas, N storage areas are normally allocated to the display and write combined buffers for the first to Nth layers, respectively.
Each of the S storage areas of the first to (N + S) storage areas is normally a spare buffer, and is allocated to a write buffer in any layer as necessary. By allocating a storage area of a layer that has been used as a display / write buffer to the display buffer, the layer is switched to a double buffer configuration layer to which two storage areas are allocated. In the layer, one of the two storage areas is assigned to the display buffer, the other is assigned to the write buffer,
Layers other than the double buffer configuration layer are single buffer configuration layers to which a single storage area is allocated, and in the single buffer configuration layer, a single storage area is allocated to the display and write combined buffer,
For each layer of at least one double buffer configuration, the drawing processing unit performs drawing in the writing buffer of the layer based on the image information of the layer supplied from the outside,
For each layer of at least one single buffer configuration, the rendering processing unit performs rendering in the display and writing combined buffer of the layer based on image information of the layer supplied from the outside,
The reading unit reads an image from the single buffer configuration layer display buffer and the double buffer configuration layer display and writing combined buffer,
The image composition unit composes the read image,
When the image information is updated for a number of layers larger than S among the first to Nth layers,
The drawing management unit designates the highest layer among the layers whose image information has been updated as a cover layer,
The memory control unit allocates one of the storage areas previously used as the reserve buffer to the writing buffer for the cover layer, and has been used as a display and writing combined buffer until then for the cover layer. Allocate storage area to display buffer,
The drawing processing unit draws and draws the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer in the writing buffer of the cover layer. Make the area opaque,
When the drawing and the opacity setting are completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display buffer and is used as a display buffer until then. The storage area is assigned to a new writing buffer, so that the image stored in the storage area where the opaque setting has been made shifts to the opaque composition state used for image composition,
In the opaque composition state, the drawing processing unit is
Drawing each image of the layer whose image information is updated lower than the cover layer in the display and writing combined buffer of the layer,
Draw the image to be displayed next to the cover layer in the writing buffer of the cover layer,
When the drawing in the opaque composite state is completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display / writing buffer of the cover layer, and the cover layer In this case, the storage area previously used as the display buffer is assigned to a new spare buffer so that the image stored in the new display / writing buffer of the cover layer is used for image composition. It is characterized by shifting to.

本発明によれば、より少ないメモリ容量で、画像の書き換えの際の画面のちらつきを抑制することができる。また、複数のレイヤで画像情報が更新された場合にも、複数のレイヤの画像の書き換えを速やかに行うことができる。さらに、画像に半透明オブジェクトが存在する場合にも対応できる。   According to the present invention, it is possible to suppress flickering of a screen when rewriting an image with a smaller memory capacity. In addition, even when image information is updated in a plurality of layers, it is possible to quickly rewrite images in a plurality of layers. Furthermore, it is possible to cope with a case where a semi-transparent object exists in the image.

本発明の実施の形態1に係る画像合成表示装置のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of the image composition display apparatus which concerns on Embodiment 1 of this invention. 実施の形態1の画像合成表示装置の機能ブロック図である。2 is a functional block diagram of the image composition display device in Embodiment 1. FIG. 実施の形態1の画像合成表示装置の動作の一例を示すフローチャートである。4 is a flowchart illustrating an example of the operation of the image composition display device in the first embodiment. 図3のステップS103の処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of step S103 of FIG. (a)〜(d)は、図4の処理のうち、下位レイヤの画像情報が更新された場合の描画及び画像合成の動作の例を示す図である。(A)-(d) is a figure which shows the example of operation | movement of drawing and image composition when the image information of a lower layer is updated among the processes of FIG. (a)〜(c)は、図4の処理のうち、下位レイヤの画像情報が更新された場合の描画及び画像合成の動作の例を示す図である。(A)-(c) is a figure which shows the example of operation | movement of drawing and image composition when the image information of a lower layer is updated among the processes of FIG. (a)〜(f)は、図5(a)〜図6(c)に示される処理の各段階で描画される画像及び合成画像の一例を示す図である。(A)-(f) is a figure which shows an example of the image drawn at each step of the process shown by Fig.5 (a)-FIG.6 (c), and a synthesized image. (a)〜(h)は、図5(a)〜図6(c)に示される処理の各段階で描画される画像及び合成画像の一例を示す図である。(A)-(h) is a figure which shows an example of the image drawn at each step of the process shown by Fig.5 (a)-FIG.6 (c), and a synthesized image. (a)〜(h)は、図5(a)〜図6(c)に示される処理の各段階で描画される画像及び合成画像の一例を示す図である。(A)-(h) is a figure which shows an example of the image drawn at each step of the process shown by Fig.5 (a)-FIG.6 (c), and a synthesized image. (a)〜(h)は、図9(e)〜(h)の状態の後更に画像情報が更新された場合に、描画される画像及び合成画像の一例を示す図である。(A)-(h) is a figure which shows an example of the image and synthetic | combination image drawn when image information is further updated after the state of FIG.9 (e)-(h). 図4のステップS104の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process of step S104 of FIG. 本発明の実施の形態2に係る画像合成表示装置の機能ブロック図である。It is a functional block diagram of the image composition display device concerning Embodiment 2 of the present invention. 実施の形態2の画像合成表示装置の動作の一例を示すフローチャートである。10 is a flowchart illustrating an example of an operation of the image composition display device according to the second embodiment. 図12のステップS203の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process of step S203 of FIG. 本発明の実施の形態3に係る画像合成表示装置の機能ブロック図である。It is a functional block diagram of the image composition display device concerning Embodiment 3 of the present invention. 実施の形態3の画像合成表示装置の動作の一例を示すフローチャートである。14 is a flowchart illustrating an example of an operation of the image composition display device according to the third embodiment. 図16のステップS303の処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of step S303 of FIG. (a)及び(b)は、ステップS303の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the change of the role of a storage area, and the operation | movement of drawing to a storage area in an example of step S303. (a)及び(b)は、ステップS303の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the change of the role of a storage area, and the operation | movement of drawing to a storage area in an example of step S303. 図17のステップS312の処理の代わりに行い得る処理を示すフローチャートである。It is a flowchart which shows the process which can be performed instead of the process of step S312 of FIG. (a)は、図20の処理を行う際の、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図であり、(b)は、図20の処理に続いて行い得る処理を行う際の、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) is a figure which shows the example of the change of the role of a storage area at the time of performing the process of FIG. 20, and the operation | movement of drawing to a storage area, (b) can be performed following the process of FIG. It is a figure which shows the example of the operation | movement of a change of the role of a storage area, and the drawing to a storage area at the time of processing. 本発明の実施の形態4に係る画像合成表示装置の機能ブロック図である。It is a functional block diagram of the image composition display device concerning Embodiment 4 of the present invention. 実施の形態4の画像合成表示装置1dの動作の一例を示すフローチャートである。15 is a flowchart illustrating an example of the operation of the image composition display device 1d according to the fourth embodiment. 図23のステップS403の処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of step S403 of FIG. 図23のステップS403の処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of step S403 of FIG. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. 図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。FIG. 26 is a diagram illustrating an example of a change in the role of a storage area and a drawing operation in the storage area in the example of the processing of FIGS. 24 and 25. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. (a)及び(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.24 and FIG.25. 図23のステップS404の処理の一例を示すフローチャートである。It is a flowchart which shows an example of a process of step S404 of FIG. (a)及び(b)は、図34の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG. (a)及び(b)は、図34の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す図である。(A) And (b) is a figure which shows the example of the operation | movement of the change of the role of a storage area, and the drawing operation | movement to a storage area in an example of the process of FIG.

実施の形態1.
図1は本発明の実施の形態1に係る画像合成表示装置のハードウェア構成の一例を示すブロック図である。
図示の画像合成表示装置1は、CPU11、GPU12、不揮発性メモリ13、RAM14、入力装置15、及び出力装置16を有し、これらはシステムバス17を介して互いに接続されている。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an example of a hardware configuration of an image composition display device according to Embodiment 1 of the present invention.
The illustrated image composition display device 1 includes a CPU 11, a GPU 12, a nonvolatile memory 13, a RAM 14, an input device 15, and an output device 16, which are connected to each other via a system bus 17.

画像合成表示装置1は、入力装置15から供給される情報に基づいて上位レイヤL1の画像G1と下位レイヤL2の画像G2とを描画し、描画した画像を重ね合わせることにより合成し、合成画像Gcを出力装置16で表示する。
入力装置15から供給される情報には、各レイヤの、次に描画すべき画像を表す画像情報と、画像情報が更新されたか否かを示す情報が含まれる。
The image composition display device 1 draws the image G1 of the upper layer L1 and the image G2 of the lower layer L2 based on the information supplied from the input device 15, and synthesizes them by superimposing the drawn images. Is displayed on the output device 16.
The information supplied from the input device 15 includes image information representing an image to be drawn next for each layer and information indicating whether the image information has been updated.

上位レイヤの画像とは、合成のための重ね合わせにおいて前面側に配置される画像であり、下位レイヤの画像とは、合成のための重ね合わせにおいて背面側に配置される画像である。
例えば、画像情報の更新の頻度がより高いレイヤが上位レイヤに割り当てられる。
The upper layer image is an image arranged on the front side in the superposition for synthesis, and the lower layer image is an image arranged on the back side in the superposition for synthesis.
For example, a layer having a higher frequency of image information update is assigned to a higher layer.

入力装置15は、例えばキーボード、マウス、タッチパネル、通信モジュール(通信回路など)で構成される。
出力装置16は、例えばLCD(Liquid Crystal Display)で構成される表示装置である。
不揮発性メモリ13は、プログラムを格納している。CPU11及びGPU12は、不揮発性メモリ13に格納されているプログラムに従って動作する。
RAM14は、入力装置15により入力された情報、CPU11及びGPU12により処理の過程で生成されるデータなどを記憶する。
The input device 15 includes, for example, a keyboard, a mouse, a touch panel, and a communication module (such as a communication circuit).
The output device 16 is a display device configured by, for example, an LCD (Liquid Crystal Display).
The nonvolatile memory 13 stores a program. The CPU 11 and the GPU 12 operate according to a program stored in the nonvolatile memory 13.
The RAM 14 stores information input by the input device 15 and data generated in the course of processing by the CPU 11 and the GPU 12.

図2は画像合成表示装置1の機能ブロック図である。図2に示すように、画像合成表示装置は、画像生成部210、記憶領域Ma、Mb、Mc、メモリ制御部222、読み出し部224、及び画像合成部230を有する。画像生成部210は描画管理部212及び描画処理部214を有する。
描画管理部212、メモリ制御部222、及び読み出し部224の機能はCPU11が、不揮発性メモリ13に格納されたプログラムを実行することで実現される。
描画処理部214の機能及び画像合成部230の機能はGPU12が、不揮発性メモリ13に格納されたプログラムを実行することで実現される。
FIG. 2 is a functional block diagram of the image composition display device 1. As illustrated in FIG. 2, the image composition display apparatus includes an image generation unit 210, storage areas Ma, Mb, Mc, a memory control unit 222, a reading unit 224, and an image composition unit 230. The image generation unit 210 includes a drawing management unit 212 and a drawing processing unit 214.
The functions of the drawing management unit 212, the memory control unit 222, and the reading unit 224 are realized by the CPU 11 executing a program stored in the nonvolatile memory 13.
The function of the drawing processing unit 214 and the function of the image composition unit 230 are realized by the GPU 12 executing a program stored in the nonvolatile memory 13.

記憶領域Ma、Mb、Mcは、図1のRAM14内に形成される。記憶領域Ma、Mb、Mcの各々は、1画面分の画像データを記憶するものであり、プレーンメモリとも呼ばれる。
記憶領域Ma及びMbは上位レイヤL1の画像G1のための、ダブルバッファ構成の記憶部を構成する。ダブルバッファ構成の記憶部は2つの記憶領域(例えばMa、Mb)を有し、2つの記憶領域の一方(例えばMa)が表示用フレームバッファB1rに割り当てられて、表示用フレームバッファB1rとして用いられ、他方(Mb)が書き込み用フレームバッファB1wに割り当てられて、書き込み用フレームバッファB1wとして用いられる。記憶領域の役割は変更可能であり、書き込み用フレームバッファB1wとして用いられている記憶領域への書き込みが終わると、当該記憶領域がそれ以降表示用に割り当てられ、それまで表示用フレームバッファB1rとして用いられていた記憶領域がそれ以降書き込み用に割り当てられる。
The storage areas Ma, Mb, Mc are formed in the RAM 14 of FIG. Each of the storage areas Ma, Mb, and Mc stores image data for one screen and is also called a plane memory.
The storage areas Ma and Mb constitute a double buffer storage unit for the image G1 of the upper layer L1. The storage unit of the double buffer configuration has two storage areas (for example, Ma and Mb), and one of the two storage areas (for example, Ma) is allocated to the display frame buffer B1r and used as the display frame buffer B1r. The other (Mb) is assigned to the write frame buffer B1w and used as the write frame buffer B1w. The role of the storage area can be changed. When writing to the storage area used as the writing frame buffer B1w is completed, the storage area is allocated for display thereafter and used as the display frame buffer B1r until then. The allocated storage area is thereafter allocated for writing.

記憶領域Mcは、下位レイヤL2のシングルバッファ構成の記憶部を構成し、下位レイヤL2のフレームバッファB2として用いられる。シングルバッファ構成では、同じ記憶領域が表示用フレームバッファとして用いられるとともに、書き込み用フレームバッファとしても用いられる。即ち、同じ記憶領域が、表示及び書き込み兼用フレームバッファとして用いられる。   The storage area Mc constitutes a single buffer configuration storage unit of the lower layer L2, and is used as the frame buffer B2 of the lower layer L2. In the single buffer configuration, the same storage area is used as a display frame buffer and also as a write frame buffer. That is, the same storage area is used as a frame buffer for both display and writing.

以下では、表記を短くするため、表示用フレームバッファを「Rバッファ」と言い、書き込み用バッファを「Wバッファ」と言い、表示及び書き込み兼用フレームバッファを単に「兼用バッファ」と言うことがある。さらに、これらを単に「バッファ」ということもある。
また、ダブルバッファ構成を「DB構成」と言い、ダブルバッファ構成のレイヤを「DBレイヤ」と言い、シングルバッファ構成を「SB構成」と言い、シングルバッファ構成のレイヤを「SBレイヤ」と言うことがある。
Hereinafter, in order to shorten the notation, the display frame buffer may be referred to as “R buffer”, the write buffer may be referred to as “W buffer”, and the display / write frame buffer may be simply referred to as “shared buffer”. Furthermore, these are sometimes simply referred to as “buffers”.
Also, the double buffer configuration is referred to as “DB configuration”, the double buffer configuration layer is referred to as “DB layer”, the single buffer configuration is referred to as “SB configuration”, and the single buffer configuration layer is referred to as “SB layer”. There is.

記憶領域Ma、Mb、Mcの役割の決定及び役割の変更のための制御はメモリ制御部222により行われる。   Control for determining the roles of the storage areas Ma, Mb, and Mc and changing the roles is performed by the memory control unit 222.

バッファB1r、B2に記憶されている画像は読み出されて画像合成部230における画像合成に用いられる。
画像合成は、例えばバッファB1r及びB2の一方又は双方に画像データとともに記憶されているアルファ値(不透明度)等を利用した透過合成により行われる。
The images stored in the buffers B1r and B2 are read and used for image composition in the image composition unit 230.
The image composition is performed by, for example, transmission composition using an alpha value (opacity) stored together with image data in one or both of the buffers B1r and B2.

バッファB1w、B2(として用いられている記憶領域)への画像の描画は、描画処理部214によって行われる。
描画処理部214は、入力装置15から供給される各レイヤの画像情報に基づいて描画を行う。画像の描画はオブジェクト毎に行われる。
描画管理部212は、入力装置15から供給される、画像情報が更新されたか否かを示す情報に基づいて、画像の書き換えが必要か否か、必要であれば、そのレイヤの画像の書き換えが必要かを判断し、判断結果に基づいて、描画処理部214及びメモリ制御部222を制御する。
The drawing processing unit 214 draws an image in the buffers B1w and B2 (storage areas used as the buffers).
The drawing processing unit 214 performs drawing based on the image information of each layer supplied from the input device 15. Image drawing is performed for each object.
The drawing management unit 212 determines whether or not the image needs to be rewritten based on the information supplied from the input device 15 and indicating whether or not the image information has been updated. It is determined whether it is necessary, and the drawing processing unit 214 and the memory control unit 222 are controlled based on the determination result.

図3は、実施の形態1の画像合成表示装置1の動作の一例を示すフローチャートである。
図3の処理は、例えば画像合成表示装置1の動作開始とともに、開始される。
FIG. 3 is a flowchart illustrating an example of the operation of the image composition display device 1 according to the first embodiment.
The process of FIG. 3 is started when the operation of the image composition display device 1 starts, for example.

以下では、図3の処理の開始時に、記憶領域Maが、RバッファB1rとして用いられ、記憶領域Mbが、WバッファB1wとして用いられているものと仮定する。   In the following, it is assumed that the storage area Ma is used as the R buffer B1r and the storage area Mb is used as the W buffer B1w at the start of the processing of FIG.

描画管理部212は、入力装置15から供給される情報に基づいて次に出力装置16で表示する画像を決定し、当該画像の生成のため、メモリ制御部222に記憶領域Ma〜Mcの役割の制御を行わせ、描画処理部214に描画を行わせる。   The drawing management unit 212 determines the next image to be displayed on the output device 16 based on the information supplied from the input device 15, and plays the role of the storage areas Ma to Mc in the memory control unit 222 to generate the image. Control is performed and the drawing processing unit 214 performs drawing.

描画管理部212は、出力装置16で表示する画像を決定するにあたり、入力装置15から供給される情報に基づいて、複数のレイヤL1、L2の少なくとも一つについて画像情報が更新されたか(書き換えが必要か)否かを判定する(S101)。画像情報が更新されていなければ(S101でNO)、同じ判定を繰り返すことで、画像情報の更新を待つ。   In determining the image to be displayed on the output device 16, the drawing management unit 212 has updated the image information on at least one of the plurality of layers L 1 and L 2 based on the information supplied from the input device 15 (rewriting is performed). It is determined whether or not it is necessary (S101). If the image information has not been updated (NO in S101), the same determination is repeated to wait for the update of the image information.

画像情報が更新された場合(S101でYES)、次に、上位レイヤL1について画像情報が更新されたか否かを判定する(S102)。
上位レイヤL1について画像情報が更新された場合(S102でYES)には、書き換えのステップS103の処理を行う。上位レイヤL1について画像情報が更新されていない場合(S102でNO)には、書き換えのステップS104の処理を行う。
If the image information has been updated (YES in S101), it is next determined whether or not the image information has been updated for the upper layer L1 (S102).
If the image information has been updated for the upper layer L1 (YES in S102), the rewrite step S103 is performed. If the image information has not been updated for the upper layer L1 (NO in S102), the rewrite step S104 is performed.

ステップS103又はS104の処理が終わると、ステップS105の判定を行う。
ステップS105では、描画管理部212が、システム終了条件を満たしているかを判断し、満たしている場合は動作を終了する。満たしていない場合はステップS101に戻り動作を繰り返す。
例えば、画像合成表示装置の電源がオフとなっていれば、「システム終了条件が満たされているものと判断される。
When the process of step S103 or S104 ends, the determination of step S105 is performed.
In step S105, the drawing management unit 212 determines whether or not the system termination condition is satisfied. If not, the process returns to step S101 and repeats the operation.
For example, if the power of the image composition display device is off, “it is determined that the system termination condition is satisfied.

以下ステップS103における処理を、図4を参照して説明する。
図4は、図3のステップS103の処理の一例を示すフローチャートである。
Hereinafter, the process in step S103 will be described with reference to FIG.
FIG. 4 is a flowchart showing an example of the process of step S103 of FIG.

ステップS103では最初に描画管理部212が下位レイヤL2についても画像情報が更新されたか否かの判定を行う(S111)。
下位レイヤL2についても画像情報が更新された場合(S111でYES)には、ステップS112に進み、下位レイヤL2については画像情報が更新されていない場合には、ステップS117に進む。
In step S103, the drawing management unit 212 first determines whether the image information has been updated for the lower layer L2 (S111).
If the image information is also updated for the lower layer L2 (YES in S111), the process proceeds to step S112. If the image information is not updated for the lower layer L2, the process proceeds to step S117.

最初にステップS111からステップS112に進んだ場合について説明する。
図5(a)〜図6(c)は、図4でステップS111からステップS112に進んだ場合の描画及び画像合成の動作の例を示す図である。図5(a)では、画像情報に更新があったことを△で示している。図7(a)〜図9(h)は、図5(a)〜図6(c)に示される処理の各段階で描画される画像及び合成画像の一例を示す。
図5(a)〜図6(c)で、レイヤLi(iは1又は2)の画像をGiで示す。また、図5(a)〜図6(c)及び図7(a)〜図9(h)では、画像情報の更新による画像の内容が変化を、Giに続く()内のjとして異なる文字(p、q、r、sなど)を割り当てることで示す。
以下に現れる他の同様の図でも同様である。
First, the case where the process proceeds from step S111 to step S112 will be described.
FIG. 5A to FIG. 6C are diagrams illustrating examples of drawing and image composition operations when the process proceeds from step S111 to step S112 in FIG. In FIG. 5A, Δ indicates that the image information has been updated. Fig.7 (a)-FIG.9 (h) show an example of the image drawn at each step of the process shown by Fig.5 (a)-FIG.6 (c), and a synthesized image.
In FIGS. 5A to 6C, an image of the layer Li (i is 1 or 2) is denoted by Gi. Also, in FIGS. 5A to 6C and FIGS. 7A to 9H, the change in the image content due to the update of the image information is different from the character j as (j) following Gi. (P, q, r, s, etc.) are assigned.
The same applies to other similar figures appearing below.

例えば、ステップS112の処理の開始前には、図5(a)に示すようにレイヤL1のバッファB1rには画像G1(p)が記憶されており、レイヤL2のバッファB2には画像G2(p)が記憶されているものとする。
この場合、画像G1(p)と画像G2(p)を合成した画像(G2(p)+G1(p))が、合成画像Gcとして出力されている。
For example, before the process of step S112 is started, the image G1 (p) is stored in the buffer B1r of the layer L1 and the image G2 (p) is stored in the buffer B2 of the layer L2 as shown in FIG. ) Is stored.
In this case, an image (G2 (p) + G1 (p)) obtained by combining the image G1 (p) and the image G2 (p) is output as the combined image Gc.

バッファB1rに記憶されている画像G1(p)の一例が図7(d)に示され、バッファB2に記憶されている画像G2(p)の一例が図7(c)に示され、その場合の合成画像Gcが図7(f)に示されている。   An example of the image G1 (p) stored in the buffer B1r is shown in FIG. 7D, and an example of the image G2 (p) stored in the buffer B2 is shown in FIG. The composite image Gc is shown in FIG.

ステップS112においては、描画処理部214が、下位レイヤL2の次に表示すべき画像G2(q)を上位レイヤL1のバッファB1wに描画する(図5(b))。
「次に表示すべき画像」としては、更新後の画像情報により表される画像が描画される。ステップS111からステップS112に進むのは、下位レイヤL2について画像情報が更新された場合だからである。描画される画像G2(q)の一例が図7(a)に示されている。
In step S112, the drawing processing unit 214 draws the image G2 (q) to be displayed next to the lower layer L2 in the buffer B1w of the upper layer L1 (FIG. 5B).
As the “next image to be displayed”, an image represented by the updated image information is drawn. The process proceeds from step S111 to step S112 because the image information is updated for the lower layer L2. An example of the drawn image G2 (q) is shown in FIG.

次にステップS113において、描画処理部214が、ステップS112で書き込みが行われたバッファB1wに、上位レイヤL1の次に表示すべき画像G1(q)を重ねて描画する(図5(c))。「次に表示すべき画像」としては、更新後の画像情報により表される画像が描画される。図4の処理が行われるのはステップS102で上位レイヤL1について画像情報が更新されたと判断された場合だからである。描画される画像G1(q)の一例が図7(b)に示されている。   Next, in step S113, the drawing processing unit 214 draws the image G1 (q) to be displayed next to the upper layer L1 on the buffer B1w written in step S112 (FIG. 5C). . As the “next image to be displayed”, an image represented by the updated image information is drawn. The process in FIG. 4 is performed because it is determined in step S102 that the image information has been updated for the upper layer L1. An example of the drawn image G1 (q) is shown in FIG.

ステップS112及びS113の描画の結果、バッファB1wには、図7(e)に示される画像が記憶されることになる。この画像は、画像G2(q)、G1(1)の重ね書きの結果得られるものであり、図5(c)及び図7(e)には、「G2(q)+G1(q)」で示されている。また、画像G2(q)に画像G1(q)を重ね書きすることで、画像G2(q)+G1(q)を生じさせるプロセスが、図5(c)には、
「G2(q)=>G2(q)+G1(q)」
で表されている。
As a result of drawing in steps S112 and S113, the image shown in FIG. 7E is stored in the buffer B1w. This image is obtained as a result of overwriting the images G2 (q) and G1 (1). In FIGS. 5C and 7E, “G2 (q) + G1 (q)” is obtained. It is shown. Further, FIG. 5C shows a process for generating an image G2 (q) + G1 (q) by overwriting the image G1 (q) on the image G2 (q).
“G2 (q) => G2 (q) + G1 (q)”
It is represented by

ステップS112及びS113の描画において、画像が互いに重なる領域においては、描画処理部214は、図7(e)に示す例のように、後から描画される画像でそれ以前の画像が上書きされる。即ち、後から描画される画像のみが残り、それ以前に描画された画像は消去される。しかし、アルファ値が設定されている領域においては、それぞれの画像の画素値にアルファ値に応じた係数を乗じて、算出された画素値を有する画像を描画する。
例えば、レイヤL1の画像G1のアルファ値をαとする場合、ステップS112の処理の際には、レイヤL2の画像G2に係数(1−α)を掛けた画像を描画し、ステップS113の処理の際には、レイヤL1の画像G1にアルファ値(に等しい係数)αを掛けた画像を描画する。その際には、すでに書き込まれている画像(G2×(1−α))を読み出して、レイヤL1の画像(G1×α)を加算した画像を書き込む。
In the drawing in steps S112 and S113, in the region where the images overlap each other, the drawing processing unit 214 overwrites the previous image with an image drawn later, as in the example shown in FIG. That is, only the image drawn later remains, and the image drawn before that is deleted. However, in an area where an alpha value is set, an image having a calculated pixel value is drawn by multiplying the pixel value of each image by a coefficient corresponding to the alpha value.
For example, if the alpha value of the image G1 of the layer L1 and alpha 1, during the processing of the step S112, and draws an image obtained by multiplying the coefficient (1-α 1) in the image G2 of the layer L2, the step S113 during processing, it draws an image obtained by multiplying the alpha 1 alpha value (factor equal to) the image G1 of the layer L1. At that time, the already written image (G2 × (1-α 1 )) is read, and the image obtained by adding the layer L1 image (G1 × α 1 ) is written.

代わりに、ステップS112においてレイヤL2の画像G2をそのまま描画し、ステップS113の処理の際に、バッファB1wから画像G2を読み出して、係数(1−α)を掛け、これにレイヤL1の画像G1にアルファ値αを掛けた画像を加算して、加算により得られた合成画像を、バッファB1wに書き込むこととしても良い。Instead, the image G2 of the layer L2 is drawn as it is in step S112, and the image G2 is read from the buffer B1w and multiplied by the coefficient (1-α 1 ) in the process of step S113, and this is multiplied by the image G1 of the layer L1. by adding the image obtained by multiplying the alpha value alpha 1 in the synthesized image obtained by the addition, it is also possible to write to the buffer B1w.

このような処理をすることで、レイヤL1の画像G1と、レイヤL2の画像G2とがα:(1−α)の割合でブレンドされた画像がバッファB1wに書き込まれた状態となる。By performing such processing, an image in which the image G1 of the layer L1 and the image G2 of the layer L2 are blended at a ratio of α 1 : (1-α 1 ) is written in the buffer B1w.

ステップS113の描画の後、バッファB1wの画像に、不透明の設定をする(S114)。これは、後に説明する下位レイヤL2のバッファB2に記憶されている画像との合成の際、下位レイヤL2のバッファB2の画像が完全に隠れるようにするためである。   After the drawing in step S113, the image in the buffer B1w is set to be opaque (S114). This is to completely hide the image in the buffer B2 in the lower layer L2 when combining with the image stored in the buffer B2 in the lower layer L2 described later.

次にステップS115において、メモリ制御部222が、上位レイヤのRバッファB1rとWバッファB1wを入れ替える(図5(d))。即ち、RバッファB1r及びWバッファB1wとして用いられている記憶領域Ma、Mbの役割を交替させる。具体的には、それまでRバッファB1rとして用いられていた(RバッファB1rに割り当てられていた)記憶領域Maを新たなWバッファB1wに割り当て、それまでWバッファB1wとして用いられていた(WバッファB1wに割り当てられていた)記憶領域Mbを新たなRバッファB1rに割り当てる。   Next, in step S115, the memory control unit 222 swaps the R buffer B1r and the W buffer B1w of the upper layer (FIG. 5D). That is, the roles of the storage areas Ma and Mb used as the R buffer B1r and the W buffer B1w are changed. Specifically, the storage area Ma previously used as the R buffer B1r (assigned to the R buffer B1r) is assigned to the new W buffer B1w and used as the W buffer B1w until then (the W buffer The storage area Mb (allocated to B1w) is allocated to a new R buffer B1r.

入れ替え(記憶領域の役割の交替)の結果、新たなRバッファB1rとして用いられる記憶領域Mbに記憶されている画像(図8(c))と、バッファB2に記憶されている画像(図8(a))とに基づいて合成画像(図8(d))が形成される状態となる。   As a result of the replacement (change of the role of the storage area), the image stored in the storage area Mb used as the new R buffer B1r (FIG. 8C) and the image stored in the buffer B2 (FIG. Based on a)), a composite image (FIG. 8D) is formed.

バッファB1rに記憶されている画像について、不透明の設定がされているため、バッファB2に記憶されている画像(図8(a)のG2(p))は完全に隠され、合成画像(図8(d))は、バッファB1rの画像(図8(c)のG2(q)+G1(q))と、見かけ上同じものとなる。
バッファB2に記憶されている画像G2(p)が完全に隠されることを、図5(d)、図8(d)などでは、括弧[]を用いて、[G2(p)+]で表す。
このように不透明の設定がされているバッファに記憶されている画像が合成に用いられ、当該バッファよりも下位のレイヤのバッファに記憶される画像が隠される状態を、「不透明合成状態」という。
Since the image stored in the buffer B1r is set to be opaque, the image stored in the buffer B2 (G2 (p) in FIG. 8A) is completely hidden, and the composite image (FIG. 8). (D)) is apparently the same as the image in the buffer B1r (G2 (q) + G1 (q) in FIG. 8C).
The fact that the image G2 (p) stored in the buffer B2 is completely hidden is represented by [G2 (p) +] using parentheses [] in FIG. 5D, FIG. 8D, and the like. .
A state in which an image stored in a buffer set to be opaque in this manner is used for composition, and an image stored in a buffer in a layer lower than the buffer is hidden is referred to as an “opaque composition state”.

次にステップS116において、描画処理部214が、下位レイヤL2のバッファB2に下位レイヤL2の次に表示すべき画像G2(q)を描画する(図6(a))。描画される画像G2(q)の一例が図8(e)に示されている。
この「次に表示すべき画像」としては、直前のステップS112で上位レイヤL1のバッファB1wに描画した画像(更新後の画像情報により表される画像)G2(q)と同じ画像、又は下位レイヤL2の画像情報が更に更新された場合はその更なる更新後の画像情報により表される画像を描画する。図8(e)には、ステップS112でバッファB1wに描画した画像G2(q)と同じ画像がバッファB2に描画される場合を示す。
In step S116, the drawing processing unit 214 draws the image G2 (q) to be displayed next to the lower layer L2 in the buffer B2 of the lower layer L2 (FIG. 6A). An example of the rendered image G2 (q) is shown in FIG.
This “image to be displayed next” is the same image as the image (image represented by the updated image information) G2 (q) drawn in the buffer B1w of the upper layer L1 in the previous step S112, or the lower layer When the image information of L2 is further updated, an image represented by the further updated image information is drawn. FIG. 8E shows a case where the same image as the image G2 (q) drawn in the buffer B1w in step S112 is drawn in the buffer B2.

ステップS116におけるバッファB2に対する描画による画像の書き換えが行われる間、バッファB2から読み出される画像は、上位レイヤL1のバッファB1rから読み出される画像によって隠される(不透過とされる)。そのため合成画像においては、書き換え中の画像は表に現れない。図6(a)では、書き換え中であることを
G2(p)=>G2(q)
で示し、合成画像Gcには、書き換え中の画像が表に現れないことを、
[G2(p)=>G2(q)+]
で示す。
書き換え中の画像が表に現れないので、合成画像におけるちらつきを防ぐことができる。
While the image is rewritten by drawing in the buffer B2 in step S116, the image read from the buffer B2 is hidden (made opaque) by the image read from the buffer B1r of the upper layer L1. Therefore, in the composite image, the image being rewritten does not appear in the table. In FIG. 6 (a), G2 (p) => G2 (q)
In the composite image Gc, the image being rewritten does not appear in the table.
[G2 (p) => G2 (q) +]
It shows with.
Since the image being rewritten does not appear in the table, flickering in the composite image can be prevented.

ステップS116の次にステップS117の処理を行う。
ステップS117では、描画処理部214が、上位レイヤL1のバッファB1w(記憶領域Ma)に上位レイヤL1の次に表示すべき画像を描画する(図6(b))。
この「次に表示すべき画像」としては、直前のステップS113でバッファB1wに描画した画像(更新後の画像情報により表される画像)G1(q)と同じ画像、又は上位レイヤL1の画像情報が更に更新された場合はその更なる更新後の画像情報により表される画像G1(r)を描画する。
図6(b)及び図9(b)には、「更なる更新後の画像情報により表される画像」G1(r)が描画される場合が示されている。図6(b)には、更なる更新があったことが▲で示されている。
Following step S116, the process of step S117 is performed.
In step S117, the drawing processing unit 214 draws an image to be displayed next to the upper layer L1 in the buffer B1w (storage area Ma) of the upper layer L1 (FIG. 6B).
This “image to be displayed next” is the same image as the image (image represented by the updated image information) G1 (q) drawn in the buffer B1w in the previous step S113, or the image information of the upper layer L1. When is further updated, the image G1 (r) represented by the further updated image information is drawn.
FIG. 6B and FIG. 9B show a case where “an image represented by further updated image information” G1 (r) is drawn. In FIG. 6B, the fact that there has been a further update is indicated by ▲.

次にステップS118において、メモリ制御部222が、上位レイヤL1のRバッファB1rとWバッファB1wを入れ替える(図6(c))。即ち、RバッファB1rとして用いられていた記憶領域Mbを新たなWバッファB1wに割り当て、WバッファB1wとして用いられていた記憶領域Maを新たなRバッファB1rに割り当てる(図9(e))。   Next, in step S118, the memory control unit 222 replaces the R buffer B1r and the W buffer B1w of the upper layer L1 (FIG. 6C). That is, the storage area Mb used as the R buffer B1r is assigned to the new W buffer B1w, and the storage area Ma used as the W buffer B1w is assigned to the new R buffer B1r (FIG. 9E).

入れ替えの結果、新たなRバッファB1r(記憶領域Ma)に記憶されている画像(図9(f)のG1(r))と、下位レイヤL2のバッファB2に記憶されている画像(図9(e)のG2(q))とに基づいて合成画像(図9(h))が形成される状態となる。この状態を、上記の「不透明合成状態」との対比で、「透明合成状態」と言う。新たなバッファB1r(記憶領域Ma)に記憶されている画像について不透明の設定がされていないためである。
ステップS118でステップS103の処理が終わり、次にステップS105に進む。
As a result of the replacement, the image (G1 (r) in FIG. 9 (f)) stored in the new R buffer B1r (storage area Ma) and the image stored in the buffer B2 of the lower layer L2 (FIG. 9 ( Based on G2 (q)) of e), a composite image (FIG. 9 (h)) is formed. This state is referred to as a “transparent composite state” in contrast to the “opaque composite state” described above. This is because the image stored in the new buffer B1r (storage area Ma) is not set to be opaque.
In step S118, the process of step S103 ends, and then the process proceeds to step S105.

上記のようにステップS111で、下位レイヤL2については画像情報が更新されていない場合(従って上位レイヤL1についてのみ画像情報が更新された場合)、ステップS111の次のステップはステップS117となる。
ステップS117では、描画処理部214が、上位レイヤL1のWバッファB1wに書き込みを行い、ステップS118では、メモリ制御部222が、上位レイヤL1のバッファを入れ替える。
これらの処理は、図6(b)、(c)、図9(b)、(f)、(g)を参照して説明したのと同様に行い得る。
As described above, in step S111, when the image information is not updated for the lower layer L2 (thus, when the image information is updated only for the upper layer L1), the step after step S111 is step S117.
In step S117, the rendering processing unit 214 writes to the W buffer B1w of the upper layer L1, and in step S118, the memory control unit 222 replaces the buffer of the upper layer L1.
These processes can be performed in the same manner as described with reference to FIGS. 6B, 6C, 9B, 9F, and 9G.

以降、上位レイヤL1についてのみ画像情報が更新される状態が続く限り、ステップS111の判定結果がNOとなり、ステップS117、S118の処理が繰り返される。
図10(a)〜(h)には、図9(e)〜(h)に示される状態の後、下位レイヤL2の画像情報が更新されず、上位レイヤL1の画像情報が更新される場合の、描画される画像及び合成画像の例が示されている。
Thereafter, as long as the state in which the image information is updated only for the upper layer L1 continues, the determination result of step S111 is NO, and the processes of steps S117 and S118 are repeated.
In FIGS. 10A to 10H, after the states shown in FIGS. 9E to 9H, the image information of the lower layer L1 is not updated and the image information of the upper layer L1 is updated. Examples of an image to be drawn and a composite image are shown.

上記のように、ステップS102でNOの場合、即ち、下位レイヤL2についてのみ画像情報が更新された場合にはステップS104の処理を行う。ステップS104は、以下の2つの方法のいずれかで行われる。
第1の方法(S104a)では、上記のステップS103と同じ手順で行う。
第2の方法(S104b)では、上位レイヤL1のWバッファB1wを、一時的に下位レイヤL2のWバッファB2wとして用いて、下位レイヤL2をDB構成にし、上位レイヤL1についてのみに画像情報が更新された場合(S111からS117に進んだ場合)と同様の方法で下位レイヤL2の画像を書き換える。
As described above, if NO in step S102, that is, if the image information is updated only for the lower layer L2, the process of step S104 is performed. Step S104 is performed by one of the following two methods.
In the first method (S104a), the same procedure as in step S103 is performed.
In the second method (S104b), the W buffer B1w of the upper layer L1 is temporarily used as the W buffer B2w of the lower layer L2, the lower layer L2 has a DB configuration, and the image information is updated only for the upper layer L1. Then, the image of the lower layer L2 is rewritten by the same method as in the case where the process proceeds (from S111 to S117).

第1の方法(S104a)の場合のステップS104の処理は、ステップS103に関し、図4を参照して説明したのと同様である。但し、ステップS113では、「次に表示すべき画像」として、それまでRバッファB1rに記憶されていたのと同じ画像が表示され、ステップS117では、「次に表示すべき画像」としては、それまでRバッファB1rに記憶されていたのと同じ画像、又はステップS101〜S116の処理の間に上位レイヤL1の画像情報が更新された場合はその更新後の画像情報により表される画像G1を描画する。   The process of step S104 in the case of the first method (S104a) is the same as that described with reference to FIG. However, in step S113, the same image that has been stored in the R buffer B1r until then is displayed as “next image to be displayed”. In step S117, “next image to be displayed” The same image as that stored in the R buffer B1r, or when the image information of the upper layer L1 is updated during the processing of steps S101 to S116, the image G1 represented by the updated image information is drawn. To do.

第2の方法(S104b)の処理を行う場合の手順を図11に示す。
まず、ステップS121で、上位レイヤL1のWバッファB1wとして用いられていた記憶領域(例えばMb)の役割を変更し、下位レイヤL2のWバッファB2wに割り当てる。これとともに、下位レイヤL2の兼用バッファB2として用いられていた記憶領域Mcの役割を、下位レイヤL2のRバッファに変更する。これにより、下位レイヤL2がDBレイヤとなり、上位レイヤL1がSBレイヤとなる。
FIG. 11 shows a procedure for performing the process of the second method (S104b).
First, in step S121, the role of the storage area (for example, Mb) used as the W buffer B1w of the upper layer L1 is changed and assigned to the W buffer B2w of the lower layer L2. At the same time, the role of the storage area Mc used as the shared buffer B2 of the lower layer L2 is changed to the R buffer of the lower layer L2. Thereby, the lower layer L2 becomes a DB layer, and the upper layer L1 becomes an SB layer.

ステップS122で、下位レイヤL2のWバッファB2w(記憶領域Mb)に下位レイヤL2の次に表示すべき画像を描画する。   In step S122, an image to be displayed next to the lower layer L2 is drawn in the W buffer B2w (storage area Mb) of the lower layer L2.

ステップS123で、メモリ制御部222が、下位レイヤL2のWバッファB2wとして用いられていた記憶領域Mbを、下位レイヤL2の兼用バッファB2に割り当て、それまでRバッファB2rとして用いられていた記憶領域Mcを、上位レイヤL1の新たなWバッファB1wに割り当てる。   In step S123, the memory control unit 222 allocates the storage area Mb used as the W buffer B2w of the lower layer L2 to the shared buffer B2 of the lower layer L2, and the storage area Mc that has been used as the R buffer B2r until then. Are assigned to a new W buffer B1w of the upper layer L1.

ステップS122で、下位レイヤL2の次に表示すべき画像が下位レイヤL2のWバッファB2wに書き込まれている間、合成は下位レイヤL2のRバッファB2rに記憶されている画像と、上位レイヤL1の兼用バッファB1に記憶されている画像とを用いて行われるので、WバッファB2wの書き換えによって、合成画像にちらつきを発生することを防ぐことができる。   In step S122, while the image to be displayed next to the lower layer L2 is written in the W buffer B2w of the lower layer L2, the composition is performed on the image stored in the R buffer B2r of the lower layer L2 and the upper layer L1. Since it is performed using the image stored in the shared buffer B1, it is possible to prevent the composite image from flickering by rewriting the W buffer B2w.

[変形例1−1]
図4を参照して説明した例では、ステップS112で下位レイヤL2の画像を描画したのち、ステップS113で上位レイヤL1の画像を描画する。しかし、ステップS112で描画しようとしている下位レイヤL2の画像に含まれるオブジェクトが、次のステップS113で描画される上位レイヤL1の画像に含まれるオブジェクトによって隠されるか否かを判定し、隠される場合はステップS112におけるオブジェクトの描画をスキップすることとしても良い。そうすることで処理をより高速にすることができる。
[Modification 1-1]
In the example described with reference to FIG. 4, after the image of the lower layer L2 is drawn in step S112, the image of the upper layer L1 is drawn in step S113. However, if the object included in the lower layer L2 image to be rendered in step S112 is hidden by the object included in the upper layer L1 image rendered in the next step S113, and is hidden. May skip the drawing of the object in step S112. By doing so, processing can be made faster.

[変形例1−2a]
図4を参照して説明した例では、ステップS112で、下位レイヤL2の画像を全面書き換えることを想定している。
下位レイヤL2の画像情報により画像の一部の領域のみの変更が必要とされる場合には、ステップS112でその変更領域のみを上位レイヤL1のバッファB1wに描画し、ステップS116で当該変更領域のみを下位レイヤL2のバッファに描画することとしても良い。
そうすることで、描画量を削減し、処理を一層高速にすることが可能である。
変更領域のみの描画は、マスク、シザー等の機能を用いることで行い得る。
[Modification 1-2a]
In the example described with reference to FIG. 4, it is assumed that the entire lower layer L2 image is rewritten in step S112.
When only a partial area of the image is required to be changed according to the image information of the lower layer L2, only the changed area is drawn in the buffer B1w of the upper layer L1 in step S112, and only the changed area is displayed in step S116. May be drawn in the buffer of the lower layer L2.
By doing so, it is possible to reduce the amount of drawing and speed up the processing.
Drawing only the change area can be performed by using a function such as a mask or a scissor.

[変形例1−2b]
また、図4のステップS112の処理において、描画オブジェクト毎に該オブジェクトが変更領域内に存在するか否かの判定を行い、存在しない場合は描画をスキップすることとしても良い。そうすることで処理をさらに高速にすることが可能である。
[Modification 1-2b]
Further, in the process of step S112 in FIG. 4, it is determined for each drawing object whether or not the object exists in the change area, and if it does not exist, the drawing may be skipped. By doing so, it is possible to further speed up the processing.

[変形例1−2c]
さらに、ステップS112、S116で、変更領域のみ描画する場合で、ステップS112からステップS116までの間に下位レイヤL2の画像情報が更に更新され、当該更なる更新後の画像情報によって必要とされる変更領域がステップS112で描画した変更領域内に収まらない場合は、ステップS112で描画したのと同じ画像をステップS116で描画する。この場合、次に、ステップS101、S102、S111における判定の結果に基づいて行われるステップS112〜S118の処理で上記の更なる更新後の画像情報により表される画像を描画することになる。
[Modification 1-2c]
Further, in the case where only the changed area is drawn in steps S112 and S116, the image information of the lower layer L2 is further updated between step S112 and step S116, and the change required by the further updated image information. If the area does not fit within the change area drawn in step S112, the same image as that drawn in step S112 is drawn in step S116. In this case, an image represented by the further updated image information is drawn in the processing of steps S112 to S118 performed based on the determination results in steps S101, S102, and S111.

[実施の形態1による効果]
上記の構成の本実施の形態によれば、以下の効果が得られる。
(a) 全てのレイヤの記憶部をダブルバッファ構成にする場合に比べ、必要とされるメモリ容量を削減することができ、しかも画面のちらつきを抑制することができる。
(b) 上位レイヤと下位レイヤの双方について、画像情報が更新された場合に、両レイヤの画像の書き換えを速やかに行うことができる。
(c) 上位レイヤの画像に半透明オブジェクトが存在する場合にも対応できる。これは、ステップS112、S113でレイヤL1の画像のアルファ値(α)に応じた割合α:(1−α)でブレンドした画像を上位レイヤのWバッファに書き込むこととしたためである。
[Effects of Embodiment 1]
According to the present embodiment configured as described above, the following effects can be obtained.
(A) Compared with the case where the storage units of all layers have a double buffer configuration, the required memory capacity can be reduced, and the flickering of the screen can be suppressed.
(B) When the image information is updated for both the upper layer and the lower layer, the images of both layers can be rewritten quickly.
(C) It is possible to cope with a case where a semi-transparent object exists in the upper layer image. This is because the image blended at the ratio α 1 : (1−α 1 ) corresponding to the alpha value (α 1 ) of the image of the layer L1 is written in the W buffer of the upper layer in steps S112 and S113.

実施の形態2.
実施の形態1ではレイヤの数が2である。次に、レイヤの数が3以上である構成の一例を実施の形態2として説明する。以下では、レイヤの数が4である場合について説明する。
ハードウェア構成は、実施の形態1に関し、図1を参照して説明したのと同じである。
Embodiment 2. FIG.
In the first embodiment, the number of layers is two. Next, an example of a configuration in which the number of layers is three or more will be described as a second embodiment. Hereinafter, a case where the number of layers is four will be described.
The hardware configuration is the same as that described with reference to FIG.

図12は実施の形態2に係る画像合成表示装置1bの機能ブロック図である。図12の画像合成表示装置1bは、図2の画像合成表示装置1と概して同じである。但し、RAM14内の5つの記憶領域Ma〜Meが用いられる。記憶領域Ma〜Meの各々は1画面分のデータを記憶する。   FIG. 12 is a functional block diagram of the image composition display device 1b according to the second embodiment. The image composition display device 1b in FIG. 12 is generally the same as the image composition display device 1 in FIG. However, five storage areas Ma to Me in the RAM 14 are used. Each of the storage areas Ma to Me stores data for one screen.

レイヤL1、L2、L3、L4は、記載した順に、より上位のものである。即ち、レイヤL1が最上位のレイヤであり、レイヤL2がそれに次ぐ順位のレイヤであり、レイヤL3がそれに次ぐ順位のものであり、レイヤL4が最下位のレイヤである。言い換えると、レイヤLi(iは1、2、3又は4)は、iが小さいほどより順位が高い。重ね合わせによる合成のための重ね合わせにおいて、順位の高いレイヤほどより画像が前面側に配置される。一般には、画像情報の更新の頻度が高いレイヤほどより高い順位に割り当てられる。
以下の説明では、「最上位レイヤ以外のレイヤ」をまとめて「下位レイヤ」と言うことがある。
Layers L1, L2, L3, and L4 are higher in the order described. That is, the layer L1 is the highest layer, the layer L2 is the next layer, the layer L3 is the next layer, and the layer L4 is the lowest layer. In other words, the layer Li (i is 1, 2, 3, or 4) has a higher rank as i is smaller. In superposition for composition by superposition, the higher the order of layers, the more images are arranged on the front side. In general, a layer having a higher frequency of image information update is assigned a higher rank.
In the following description, “layers other than the highest layer” may be collectively referred to as “lower layers”.

記憶領域Ma及びMbはレイヤL1の画像G1のための、DB構成の記憶部を構成する。即ち、記憶領域Ma及びMbの一方(例えばMa)がRバッファB1rとして用いられ、他方(Mb)がWバッファB1wとして用いられる。記憶領域の役割は変更可能である。   The storage areas Ma and Mb constitute a DB storage unit for the image G1 of the layer L1. That is, one of the storage areas Ma and Mb (for example, Ma) is used as the R buffer B1r, and the other (Mb) is used as the W buffer B1w. The role of the storage area can be changed.

記憶領域Mc〜Meは、それぞれレイヤL2、L3、L4の画像G2、G3、G4のための、SB構成の記憶部を構成し、それぞれレイヤL2、L3、L4の兼用バッファB2、B3、B4として用いられる。   The storage areas Mc to Me constitute an SB configuration storage unit for the images G2, G3, and G4 of the layers L2, L3, and L4, respectively, and the dual-purpose buffers B2, B3, and B4 of the layers L2, L3, and L4, respectively. Used.

記憶領域Ma〜Meの役割の決定及び役割の変更のための制御はメモリ制御部222により行われる。
バッファB1r、B2、B3、B4に記憶されている画像は読み出されて画像合成部230における画像合成に用いられる。
画像合成は、例えばバッファB1r、B2、B3、B4に画像データとともに記憶されているアルファ値等を利用した透過合成により行われる。
Control for determining the roles of the storage areas Ma to Me and changing the roles is performed by the memory control unit 222.
The images stored in the buffers B1r, B2, B3, and B4 are read and used for image composition in the image composition unit 230.
The image composition is performed by, for example, transmission composition using an alpha value or the like stored together with image data in the buffers B1r, B2, B3, and B4.

図13は、実施の形態2の画像合成表示装置1bの動作の一例を示すフローチャートである。図13の処理は、例えば画像合成表示装置1bの動作開始とともに、開始される。   FIG. 13 is a flowchart illustrating an example of the operation of the image composition display device 1b according to the second embodiment. The processing in FIG. 13 is started together with the operation of the image composition display device 1b, for example.

以下では、図13の処理の開始時に、記憶領域MaがRバッファB1rとして用いられ、記憶領域MbがWバッファB1wとして用いられているものと仮定する。   In the following, it is assumed that the storage area Ma is used as the R buffer B1r and the storage area Mb is used as the W buffer B1w at the start of the processing of FIG.

描画管理部212は、入力装置15から供給される情報に基づいて次に出力装置16で表示する画像を決定し、当該画像の生成のため、メモリ制御部222に記憶領域Ma〜Meの役割の制御を行わせ、描画処理部214に描画を行わせる。   The drawing management unit 212 determines the next image to be displayed on the output device 16 based on the information supplied from the input device 15, and plays the role of the storage areas Ma to Me in the memory control unit 222 to generate the image. Control is performed and the drawing processing unit 214 performs drawing.

描画管理部212は、出力装置16で表示する画像を決定するにあたり、入力装置15から供給される情報に基づいて、複数のレイヤL1〜L4の少なくとも一つについて画像情報が更新されたか否かを判定する(S201)。画像情報が更新されていなければ(S201でNO)、同じ判定を繰り返すことで、画像情報の更新を待つ。   In determining the image to be displayed on the output device 16, the drawing management unit 212 determines whether the image information has been updated for at least one of the plurality of layers L <b> 1 to L <b> 4 based on the information supplied from the input device 15. Determine (S201). If the image information has not been updated (NO in S201), the same determination is repeated to wait for the update of the image information.

画像情報が更新された場合(S201でYES)、最上位レイヤL1について画像情報が更新されたか否かを判定する(S202)。
最上位レイヤL1について画像情報が更新された場合(S202でYES)には、書き換えのステップS203の処理を行う。最上位レイヤL1について画像情報が更新されていない場合(S202でNO)には、書き換えのステップS204の処理を行う。
If the image information has been updated (YES in S201), it is determined whether the image information has been updated for the highest layer L1 (S202).
If the image information has been updated for the uppermost layer L1 (YES in S202), the rewrite step S203 is performed. If the image information has not been updated for the highest layer L1 (NO in S202), the rewrite step S204 is performed.

ステップS203又はS204の処理が終わると、ステップS205の処理を行う。ステップS205の処理は、実施の形態1におけるステップS105と同様である。
ステップS205で、システム終了条件を満たしていると判断されたときは、動作を終了する。システム終了条件を満たしていない場合はステップS201に戻り動作を繰り返す。
When the process of step S203 or S204 ends, the process of step S205 is performed. The process in step S205 is the same as step S105 in the first embodiment.
If it is determined in step S205 that the system termination condition is satisfied, the operation is terminated. If the system termination condition is not satisfied, the process returns to step S201 to repeat the operation.

以下ステップS203における処理を、図14を参照して説明する。
図14は、ステップS203の処理の一例を示すフローチャートである。
Hereinafter, the process in step S203 will be described with reference to FIG.
FIG. 14 is a flowchart illustrating an example of the process of step S203.

ステップS203で、描画管理部212が下位レイヤL2〜L4の少なくとも一つについて画像情報が更新されたか否かの判定を行う(S211)。
レイヤL2〜L4の少なくとも一つについて画像情報が更新された場合にはステップS212に進み、レイヤL2〜L4のいずれについても画像情報が更新されていない場合には、ステップS217に進む。
In step S203, the drawing management unit 212 determines whether image information has been updated for at least one of the lower layers L2 to L4 (S211).
If the image information has been updated for at least one of the layers L2 to L4, the process proceeds to step S212. If the image information has not been updated for any of the layers L2 to L4, the process proceeds to step S217.

ステップS212で、描画処理部214が、レイヤL2〜L4の次に表示すべき画像G2、G3、G4を最上位レイヤL1のWバッファB1wに、最下位のレイヤL4から順に(G4、G3、G2の順に)描画する。
「次に表示すべき画像」としては、画像情報が更新されたレイヤでは更新後の画像情報により表される画像が描画され、画像情報が更新されていないレイヤではそれまで画像合成に用いられていた画像(即ち、当該レイヤのバッファ(B2、B3、B4)に記憶されている画像)と同じ画像が描画される。
In step S212, the drawing processing unit 214 stores the images G2, G3, and G4 to be displayed next to the layers L2 to L4 in the W buffer B1w of the uppermost layer L1 in order from the lowermost layer L4 (G4, G3, and G2). (In order).
As the “image to be displayed next”, an image represented by the updated image information is drawn in the layer in which the image information is updated, and has been used for image synthesis in the layer in which the image information is not updated. The same image as the image (that is, the image stored in the buffer (B2, B3, B4) of the layer) is drawn.

続くステップS213、S214及びS215の処理は実施の形態1について図4を参照して説明したステップS113、S114及びS115と同様である。但し、「上位」を「最上位」と読み替え、またレイヤL2をレイヤL2〜L4と読み替える必要がある。   The subsequent steps S213, S214 and S215 are the same as steps S113, S114 and S115 described in the first embodiment with reference to FIG. However, it is necessary to replace “upper” with “top” and replace layer L2 with layers L2 to L4.

即ち、ステップS213においては、描画処理部214が、ステップS212で書き込みがおこなわれたバッファB1wに、最上位レイヤL1の次に表示すべき画像G1を重ねて描画する。
ステップS213において、「次に表示すべき画像」としては、更新後の画像情報により表される画像が描画される。図14の処理が行われるのはステップS202で最上位レイヤL1について画像情報が更新されたと判断された場合だからである。
That is, in step S213, the drawing processing unit 214 draws the image G1 to be displayed next to the uppermost layer L1 on the buffer B1w written in step S212.
In step S213, an image represented by the updated image information is drawn as “the image to be displayed next”. The process in FIG. 14 is performed because it is determined in step S202 that the image information has been updated for the uppermost layer L1.

ステップS212及びS213の描画において、画像が互いに重なる領域においては、後から描画される画像でそれ以前の画像が上書きされる。即ち、後から描画される画像のみが残り、それ以前に描画された画像は消去される。しかし、アルファ値が設定されている領域においては、それぞれの画像の画素値にアルファ値に応じた係数を乗じて、合成し、算出された画素値を有する画像を描画する。
例えば、レイヤL1、L2、L3の画像G1、G2、G3のアルファ値がそれぞれα、α、αであれば、
Gc
=[{G4×(1−α)+G3×α}×(1−α)+G2×α]×(1−α)+G1×α
で算出される画像が、バッファB1wに書き込まれるようにする。
そのためには、例えば、実施の形態1に関し、ステップS112、S113に関して述べたのと同様の処理を繰り返すこととしても良い。
In the drawing in steps S212 and S213, in the area where the images overlap each other, the previous image is overwritten with the image drawn later. That is, only the image drawn later remains, and the image drawn before that is deleted. However, in the region where the alpha value is set, the pixel value of each image is multiplied by a coefficient corresponding to the alpha value and combined to draw an image having the calculated pixel value.
For example, if the alpha values of the images G1, G2, and G3 of the layers L1, L2, and L3 are α 1 , α 2 , and α 3 , respectively,
Gc
= [{G4 × (1-α 3 ) + G3 × α 3 } × (1-α 2 ) + G2 × α 2 ] × (1-α 1 ) + G1 × α 1
The image calculated in is written in the buffer B1w.
For that purpose, for example, regarding the first embodiment, the same processing as that described with respect to steps S112 and S113 may be repeated.

ステップS213の描画の後、描画処理部214が、バッファB1wの画像に、不透明の設定をする(S214)。これは後に説明する下位レイヤL2、L3、L4のバッファB2、B3、B4に記憶されている画像との合成の際、下位レイヤL2、L3、L4のバッファB2、B3、B4の画像が完全に隠れるようにするためである。   After the drawing in step S213, the drawing processing unit 214 sets the image in the buffer B1w to be opaque (S214). This is because the images of the buffers B2, B3, and B4 of the lower layers L2, L3, and L4 are completely combined with the images stored in the buffers B2, B3, and B4 of the lower layers L2, L3, and L4, which will be described later. This is to hide it.

次にステップS215において、メモリ制御部222が、最上位レイヤL1のRバッファB1rとWバッファB1wを入れ替える。即ち、RバッファB1rとして用いられていた記憶領域Maを新たなWバッファB1wに割り当て、WバッファB1wとして用いられていた記憶領域Mbを新たなRバッファB1rに割り当てる。   Next, in step S215, the memory control unit 222 switches the R buffer B1r and the W buffer B1w of the highest layer L1. That is, the storage area Ma used as the R buffer B1r is assigned to the new W buffer B1w, and the storage area Mb used as the W buffer B1w is assigned to the new R buffer B1r.

入れ替えにより、不透明の設定がされ、新たにRバッファB1rに割り当てられた記憶領域Mbに記憶されている画像と、バッファB2、B3、B4に記憶されている画像とに基づいて合成画像が形成される状態(不透明合成状態)に移行する。   By the replacement, an opaque setting is made, and a composite image is formed based on the image stored in the storage area Mb newly assigned to the R buffer B1r and the image stored in the buffers B2, B3, and B4. Shift to a state (opaque composite state).

この不透明合成状態においては、RバッファB1rに記憶されている画像について、不透明の設定がされているため、バッファB2、B3、B4に記憶されている画像は完全に隠され、合成画像は、バッファB1rの画像と、見かけ上同じものとなる。   In this opaque composition state, since the image stored in the R buffer B1r is set to be opaque, the images stored in the buffers B2, B3, and B4 are completely hidden, and the composite image is stored in the buffer. It looks the same as the B1r image.

次にステップS216において、描画処理部214が、画像情報が更新された少なくとも1つの下位レイヤ(最上位レイヤ以外のレイヤ)の各々の、次に表示すべき画像(更新後の画像情報により表される画像)を、当該レイヤのバッファに描画する。
この「次に表示すべき画像」としては、直前のステップS212で最上位レイヤL1のWバッファB1wに描画した画像(更新後の画像情報により表される画像)と同じ画像、又は当該下位レイヤの画像情報が更に更新された場合はその更なる更新後の画像情報により表される画像を描画する。
In step S216, the drawing processing unit 214 then displays an image to be displayed next (represented by the updated image information) in each of at least one lower layer (a layer other than the highest layer) whose image information has been updated. Image) is drawn in the buffer of the layer.
As the “image to be displayed next”, the same image as the image drawn in the W buffer B1w of the uppermost layer L1 in the previous step S212 (the image represented by the updated image information), or the lower layer When the image information is further updated, an image represented by the further updated image information is drawn.

なお、ステップS216で、複数のレイヤの画像を描画する場合、複数のレイヤについての描画の順序については制約がなく、複数のレイヤについて描画を同時に(平行して)行っても良い。   Note that when drawing images of a plurality of layers in step S216, the drawing order for the plurality of layers is not limited, and the drawing for the plurality of layers may be performed simultaneously (in parallel).

ステップS216でバッファ(B2、B3、B4のうちの1以上のもの)に対する描画による画像の書き換えが行われる間、これらのバッファから読み出される画像は、合成画像には現れない。バッファB1rから読み出される画像に不透明の設定がされているためである。書き換え中の画像が表に現れないので、合成画像におけるちらつきを防ぐことができる。   While the image is rewritten by drawing in the buffer (one or more of B2, B3, and B4) in step S216, the image read from these buffers does not appear in the composite image. This is because the image read from the buffer B1r is set to be opaque. Since the image being rewritten does not appear in the table, flickering in the composite image can be prevented.

ステップS216の次にステップS217〜S218の処理を行う。これらの処理は、実施の形態1におけるステップS117〜S118と同様である。
但し、実施の形態1における「上位」を「最上位」と読み替え、「レイヤL2」を「レイヤL2、L3、L4」と読み替える必要がある。
Following step S216, the processes of steps S217 to S218 are performed. These processes are the same as steps S117 to S118 in the first embodiment.
However, “upper” in the first embodiment needs to be read as “top”, and “layer L2” needs to be read as “layers L2, L3, L4”.

即ち、ステップS217では、描画処理部214が、最上位レイヤL1のWバッファB1w(記憶領域Ma)に最上位レイヤL1の次に表示すべき画像G1を描画する。
この「次に表示すべき画像」としては、直前のステップS213でバッファB1wに描画した画像(更新後の画像情報により表される画像)G1と同じ画像、又は最上位レイヤL1の画像情報が更に更新された場合はその更なる更新後の画像情報により表される画像G1を描画する。
That is, in step S217, the drawing processing unit 214 draws the image G1 to be displayed next to the uppermost layer L1 in the W buffer B1w (storage area Ma) of the uppermost layer L1.
As this “image to be displayed next”, the same image as the image (image represented by the updated image information) G1 drawn in the buffer B1w in the previous step S213, or the image information of the highest layer L1 is further included. If updated, the image G1 represented by the further updated image information is drawn.

次にステップS218において、メモリ制御部222が、最上位レイヤL1のRバッファB1rとWバッファB1wを入れ替える。
入れ替えにより、不透明の設定がされていない、新たなRバッファB1r(記憶領域Ma)に記憶されている画像と、下位レイヤのバッファB2、B3、B4に記憶されている画像とに基づいて合成画像が形成される状態(透明合成状態)に移行する。
ステップS218でステップS203の処理が終わる。
Next, in step S218, the memory control unit 222 swaps the R buffer B1r and the W buffer B1w of the highest layer L1.
A composite image based on the image stored in the new R buffer B1r (storage area Ma) and the images stored in the lower layer buffers B2, B3, and B4, which are not set to be opaque due to the replacement. The state shifts to a state (transparent synthetic state).
In step S218, the process of step S203 ends.

ステップS204の処理は、ステップS203の処理と同様に行い得る。
ただし、ステップS213では、「次に表示すべき画像」として、それまでRバッファB1rに記憶されていたのと同じ画像が表示される。また、ステップS217では、「次に表示すべき画像」として、それまでRバッファB1rに記憶されていたのと同じ画像、又は、ステップS201〜S216の処理の間に最上位レイヤL1の画像情報が更に更新された場合はその更新後の画像情報により表される画像G1を描画する。
The process of step S204 can be performed similarly to the process of step S203.
However, in step S213, the same image as that stored in the R buffer B1r until then is displayed as “the image to be displayed next”. In step S217, as the “image to be displayed next”, the same image as that stored in the R buffer B1r until now, or the image information of the uppermost layer L1 is displayed during the processing in steps S201 to S216. If further updated, the image G1 represented by the updated image information is drawn.

[変形例2−1]
実施の形態2でも実施の形態1と同様、図14を参照して説明した例では、ステップS212で下位レイヤの画像を描画したのち、ステップS213で最上位レイヤの画像を描画する。しかし、ステップS212で描画しようとしている下位レイヤの各々の画像に含まれるオブジェクトが、そのあとで描画される、より上位のレイヤのいずれかの画像に含まれるオブジェクトによって隠されるか否かを判定し、隠される場合は当該レイヤ(あとで描画されるより上位のレイヤのいずれかで隠されるレイヤ)のオブジェクトの描画(S212における描画)をスキップすることとしても良い。そうすることで処理をより高速にすることができる。
ここで言う、「そのあとで描画されるより上位のレイヤのいずれかの画像」には、ステップS213で描画される最上位のレイヤの画像のほか、同じステップS212内で、より後で描画されるレイヤ(下位レイヤのうちのより上位のレイヤ)の画像が含まれる。
[Modification 2-1]
In the second embodiment, similarly to the first embodiment, in the example described with reference to FIG. 14, the lower layer image is drawn in step S212, and then the uppermost layer image is drawn in step S213. However, it is determined whether or not the object included in each image of the lower layer to be rendered in step S212 is hidden by the object included in any of the images of the higher layer that is subsequently rendered. When the object is hidden, the object drawing (drawing in S212) of the layer (the layer hidden by any of the higher layers drawn later) may be skipped. By doing so, processing can be made faster.
In this case, “any image of a higher layer rendered after that” is rendered later in the same step S212 in addition to the image of the uppermost layer rendered in step S213. Images of higher layers (higher layers of lower layers) are included.

[変形例2−2a]
図14を参照して説明した例では、ステップS212で、下位レイヤの各々の画像を全面書き換えることを想定している。
下位レイヤのいずれかについての画像情報により当該レイヤの画像の一部の領域のみの変更が必要とされる場合には、ステップS212でその変更領域のみを最上位レイヤのバッファB1wに描画し、ステップS216で当該変更領域のみを、対応する下位レイヤのバッファに描画することとしても良い。
そうすることで描画量を削減し、処理を一層高速にすることが可能である。
[Modification 2-2a]
In the example described with reference to FIG. 14, it is assumed that the entire image of each lower layer is rewritten in step S212.
If it is necessary to change only a partial area of the image of the layer according to the image information of any of the lower layers, only the changed area is drawn in the buffer B1w of the highest layer in step S212, In S216, only the change area may be drawn in the corresponding lower layer buffer.
By doing so, it is possible to reduce the amount of drawing and further speed up the processing.

[変形例2−2b]
また、図14のステップS212の処理において、描画オブジェクト毎に該オブジェクトが変更領域内に存在するか否かを判定し、存在しない場合は描画をスキップすることとしても良い。そうすることで処理をさらに高速にすることが可能である。
[Modification 2-2b]
Further, in the process of step S212 in FIG. 14, it is determined for each drawing object whether or not the object exists in the change area, and if it does not exist, the drawing may be skipped. By doing so, it is possible to further speed up the processing.

[変形例2−2c]
さらに、ステップS212、S216で、画像情報が更新されたレイヤの画像の変更領域のみ描画する場合で、ステップS212からステップS216までの間に当該レイヤの画像情報が更に更新され、当該更なる更新後の画像情報により必要とされる変更領域がステップS212で描画した変更領域内に収まらない場合は、ステップS212で描画したのと同じ画像をステップS216で描画する。この場合、次に、ステップS201、S202、S211における判定の結果に基づいて行われるステップS212〜S218の処理で上記の更なる更新後の画像情報により表される画像を描画することになる。
[Modification 2-2c]
Further, in the case where only the change area of the image of the layer whose image information is updated in steps S212 and S216, the image information of the layer is further updated between step S212 and step S216, and after the further update If the change area required by the image information does not fit within the change area drawn in step S212, the same image as that drawn in step S212 is drawn in step S216. In this case, next, the image represented by the further updated image information is drawn in the processing of steps S212 to S218 performed based on the determination results in steps S201, S202, and S211.

[変形例2−3]
また、ステップS212で、画像情報が更新されていない下位レイヤ(最上位レイヤ以外のレイヤ)の各々については、そのレイヤのバッファに記憶されている画像と同じ画像をWバッファB1wに描画することになる。そこで、このようなWバッファB1wへの描画を行う代わりに、下位レイヤのバッファに記憶されている画像を最上位レイヤのWバッファB1wに転送し、これにより最上位レイヤL1のWバッファB1wへの書き込みを行うこととしても良い。上記の転送は、例えば、ビットブロック転送(Bitblt)で行うことができる。
[Modification 2-3]
Further, in step S212, for each of the lower layers for which the image information has not been updated (layers other than the highest layer), the same image as that stored in the buffer of that layer is rendered in the W buffer B1w. Become. Therefore, instead of performing such drawing in the W buffer B1w, the image stored in the buffer of the lower layer is transferred to the W buffer B1w of the uppermost layer, so that the image is transferred to the W buffer B1w of the uppermost layer L1. Writing may be performed. The above transfer can be performed by, for example, bit block transfer (Bitblt).

以上実施の形態1でレイヤの数が2である場合について説明し、実施の形態2でレイヤの数が4である場合について説明したが、レイヤの数が2、4以外であっても本発明を適用することができる。   Although the case where the number of layers is 2 in the first embodiment has been described and the case where the number of layers is 4 in the second embodiment, the present invention is applicable even when the number of layers is other than 2, 4. Can be applied.

一般的に言って、レイヤの数がN(Nは2以上の整数)である場合、即ち、画像合成表示装置(1,1b)が、第1乃至第Nのレイヤの画像を重ね合わせることにより合成し、合成画像を表示するものである場合の構成の特徴を要約すれば以下の如くとなる。なお、以下の記載で、括弧内の参照符号は、上記の図面を参照して説明した構成中の対応する構成要素、又は処理ステップを示す。   Generally speaking, when the number of layers is N (N is an integer equal to or greater than 2), that is, the image composition display device (1, 1b) superimposes the images of the first to Nth layers. The features of the configuration in the case of combining and displaying a combined image are summarized as follows. In the following description, reference numerals in parentheses indicate corresponding components or processing steps in the configuration described with reference to the above drawings.

(2a) 第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置される。
(2b) RAM14内の第1〜第(N+1)の記憶領域が用いられる。
(2a) The image of the nth layer (where n is any one of 1 to (N-1)) is an upper layer than the image of the (n + 1) th layer, and the image of the higher layer is In the superposition for the synthesis, they are arranged on the front side.
(2b) The first to (N + 1) th storage areas in the RAM 14 are used.

(2c1) 第1及び第(N+1)の記憶領域は、第1のレイヤに割り当てられ、第1のレイヤを、2つの記憶領域が割り当てられたDBレイヤとする。
(2c2) 第2乃至第Nの記憶領域はそれぞれ第2乃至第Nのレイヤに割り当てられ、第2乃至第Nのレイヤを、単一の記憶領域が割り当てられたSBレイヤとする。
(2c1) The first and (N + 1) th storage areas are assigned to the first layer, and the first layer is a DB layer to which two storage areas are assigned.
(2c2) The second to Nth storage areas are assigned to the second to Nth layers, respectively, and the second to Nth layers are SB layers to which a single storage area is assigned.

(2d1) 描画処理部(214)が、外部から供給される、各レイヤの画像情報に基づいて、第1のレイヤのWバッファ、及び第2乃至第Nのレイヤの兼用バッファに描画を行う。
(2d2) 読み出し部(220)が、第1のレイヤのRバッファ、及び第2乃至第Nのレイヤの兼用バッファから画像を読み出し、
(2d3) 画像合成部(230)が、読み出された画像を合成する。
(2d1) The drawing processing unit (214) performs drawing in the W buffer of the first layer and the shared buffers of the second to Nth layers based on the image information of each layer supplied from the outside.
(2d2) The reading unit (220) reads an image from the R buffer of the first layer and the shared buffers of the second to Nth layers,
(2d3) The image composition unit (230) composes the read image.

(2e) 第2乃至第Nのレイヤの少なくとも一つについて画像情報が更新されたら(S201)、描画処理部(214)が、第1のレイヤの、Wバッファ(B1w)に、第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画し(S212,S213)、描画した領域に不透明の設定を行う(S214)。 (2e) When the image information is updated for at least one of the second to Nth layers (S201), the rendering processing unit (214) stores the first to the first buffer in the W buffer (B1w) of the first layer. The next image to be displayed of the N layer is drawn by overlapping in order from the lowest layer (S212, S213), and the drawn region is set to be opaque (S214).

(2f) 上記の描画及び不透明の設定が完了したら、メモリ制御部(222)が、第1のレイヤにおいて、それまでWバッファ(B1w)として用いられていた(Wバッファに割り当てられていた)記憶領域を新たなRバッファ(B1r)に割り当て、それまでRバッファ(B1r)として用いられていた(Rバッファに割り当てられていた)記憶領域を新たなWバッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行する(S215)。 (2f) When the above-described drawing and opacity settings are completed, the memory control unit (222) has been used as the W buffer (B1w) in the first layer until now (assigned to the W buffer). An area is allocated to a new R buffer (B1r), and a storage area previously used as an R buffer (B1r) (allocated to the R buffer) is allocated to a new W buffer. The image stored in the storage area that has been performed shifts to the opaque composition state used for image composition (S215).

(2g) そして、上記の不透明合成状態で、描画処理部(214)が、第2乃至第Nのレイヤのうちの、画像情報が更新された少なくとも一つのレイヤの各々の画像を、当該レイヤの兼用バッファに描画し(S216)、前記第1のレイヤの次に表示すべき画像を、第1のレイヤのWバッファに描画する(S217)。
(2h) そして、上記の不透明合成状態における描画が完了したら、メモリ制御部(222)が、第1のレイヤにおいて、それまでWバッファとして用いられていた記憶領域を新たなRバッファに割り当て、それまでRバッファとして用いられていた記憶領域を新たなWバッファに割り当て、これにより第1のレイヤの、新たなRバッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する(S218)。
(2g) Then, in the above-described opaque composition state, the drawing processing unit (214) converts each image of at least one of the second to Nth layers in which the image information is updated, Drawing is performed in the shared buffer (S216), and the image to be displayed next to the first layer is drawn in the W buffer of the first layer (S217).
(2h) Then, when the drawing in the opaque composition state is completed, the memory control unit (222) allocates the storage area that has been used as the W buffer so far to the new R buffer in the first layer, and The storage area that has been used as the R buffer until this time is allocated to the new W buffer, whereby the image stored in the new R buffer of the first layer shifts to the transparent composition state used for image composition (S218). ).

上記の第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理(S212,S213)において、描画処理部(214)は、第1のレイヤの画像情報が更新されている場合には、該更新後の画像情報により表される画像を、次に表示すべき画像として描画し、第1のレイヤの画像情報が更新されていない場合には、第1のレイヤのRバッファに記憶されている画像と同じ画像を、次に表示すべき画像として描画し、前記第2乃至第Nのレイヤのうちの画像情報が更新されたレイヤの各々については、該更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、第2乃至第Nのレイヤのうちの画像情報が更新されていないレイヤの各々については、当該レイヤの兼用バッファに記憶されている画像と同じ画像を、次に表示すべき画像として描画することとしても良い。   In the processing (S212, S213) in which the images to be displayed next of the first to Nth layers are drawn in order from the lowest layer (S212, S213), the drawing processing unit (214) When the information is updated, the image represented by the updated image information is rendered as an image to be displayed next. When the image information of the first layer is not updated, the first The same image as the image stored in the R buffer of one layer is rendered as an image to be displayed next, and for each of the layers in which the image information of the second to Nth layers is updated, The image represented by the updated image information is rendered as the next image to be displayed, and for each of the second to Nth layers for which the image information has not been updated, Store in dual-purpose buffer The same image that has been, then it is also possible to draw an image to be displayed.

上記の第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理(2f2)において、描画処理部(214)は、第2乃至第Nのレイヤの各々の、次に表示すべき画像のうち、それより後で描画されるより上位の画像により隠れることになる画像部分については描画を省略することとしても良い。   In the process (2f2) of drawing the images to be displayed next on the first to Nth layers in order from the lowest layer, the drawing processing unit (214) includes the second to Nth layers. Of each image to be displayed next, drawing may be omitted for an image portion that will be hidden by a higher-order image drawn after that.

上記の構成においてNが2であれば、図2の構成に該当し、Nが4であれば、図12の構成に該当する。   In the above configuration, if N is 2, it corresponds to the configuration of FIG. 2, and if N is 4, it corresponds to the configuration of FIG.

なお、最上位のレイヤは、それらの書き込み用バッファが、当該レイヤ及び下位のレイヤの画像を重ね書きするのに用いられるので、最上位のレイヤを便宜上「重ね書きレイヤ」或いは「カバーレイヤ」と呼ぶことがある。実施の形態1の上位のレイヤについても同様である。   The uppermost layer is used for overwriting the image of the layer and the lower layer, so that the uppermost layer is referred to as “overwrite layer” or “cover layer” for convenience. Sometimes called. The same applies to the upper layers of the first embodiment.

[実施の形態2による効果]
本実施の形態によれば、レイヤの数が3以上であっても実施の形態1と同様の効果が得られる。
[Effects of Embodiment 2]
According to the present embodiment, the same effect as in the first embodiment can be obtained even if the number of layers is three or more.

実施の形態3.
実施の形態2では、DBレイヤが1個のみ存在する。次に、DBレイヤが複数個存在する構成を実施の形態3として説明する。
以下では、レイヤの数が8であり、8つのレイヤL1〜L8のうち、レイヤL1、L3、L5、L8の記憶部がDB構成のものであり、他のレイヤL2、L4、L6、L7の記憶部がSB構成のものである場合について説明する。
ハードウェア構成は、実施の形態1に関し、図1を参照して説明したのと同じである。
Embodiment 3 FIG.
In the second embodiment, there is only one DB layer. Next, a configuration having a plurality of DB layers will be described as a third embodiment.
In the following, the number of layers is 8, and among the eight layers L1 to L8, the storage units of the layers L1, L3, L5, and L8 are of the DB configuration, and the other layers L2, L4, L6, and L7 A case where the storage unit has an SB configuration will be described.
The hardware configuration is the same as that described with reference to FIG.

図15は実施の形態3に係る画像合成表示装置1cの機能ブロック図である。図15の画像合成表示装置1cは、図12の画像合成表示装置1bと概して同じである。但し、図12の5つの記憶領域Ma〜Meの代わりに12個の記憶領域Ma〜Mlが用いられる。記憶領域Ma〜Mlの各々は1画面分のデータを記憶する。   FIG. 15 is a functional block diagram of the image composition display device 1c according to the third embodiment. The image composition display device 1c in FIG. 15 is generally the same as the image composition display device 1b in FIG. However, twelve storage areas Ma to Ml are used instead of the five storage areas Ma to Me of FIG. Each of the storage areas Ma to Ml stores data for one screen.

レイヤLi(iは1から8のいずれか)は、iが小さいほどより順位が高い。即ち、レイヤL1が最上位のレイヤであり、レイヤL8が最下位のレイヤである。重ね合わせによる合成の際、順位の高いレイヤほどより画像が前面側に配置される。   The layer Li (i is any one of 1 to 8) has a higher rank as i is smaller. That is, the layer L1 is the highest layer and the layer L8 is the lowest layer. At the time of composition by superposition, the higher the order of layers, the more images are arranged on the front side.

例えば記憶領域Ma及びMbはレイヤL1の画像G1のための、DB構成の記憶部を構成する。
記憶領域Md及びMeはレイヤL3の画像G3のための、DB構成の記憶部を構成する。
記憶領域Mg及びMhはレイヤL5の画像G5のための、DB構成の記憶部を構成する。
記憶領域Mk及びMlはレイヤL8の画像G8のための、DB構成の記憶部を構成する。
記憶領域Mc、Mf、Mi、Mjは、それぞれレイヤL2、L4、L6、L7の画像G2、G4、G6、G7のための、SB構成の記憶部を構成し、それぞれレイヤL2、L4、L6、L7の画像G2、G4、G6、G7の兼用バッファB2、B4、B6、B7として用いられる。
レイヤのうち画像情報がより頻繁に更新されるレイヤをDBレイヤとするのが望ましい。
For example, the storage areas Ma and Mb constitute a DB storage unit for the image G1 of the layer L1.
The storage areas Md and Me constitute a storage unit having a DB configuration for the image G3 of the layer L3.
The storage areas Mg and Mh constitute a DB configuration storage unit for the image G5 of the layer L5.
The storage areas Mk and Ml constitute a DB configuration storage unit for the image G8 of the layer L8.
The storage areas Mc, Mf, Mi, and Mj constitute SB configuration storage units for the images G2, G4, G6, and G7 of the layers L2, L4, L6, and L7, respectively, and the layers L2, L4, L6, Used as dual-purpose buffers B2, B4, B6, B7 for L7 images G2, G4, G6, G7.
It is desirable that a layer in which image information is updated more frequently among the layers is a DB layer.

記憶領域Ma〜Mlの役割の決定及び役割の変更のための制御はメモリ制御部222により行われる。
バッファB1r、B2、B3r、B4、B5r、B6、B7、B8rに記憶されている画像は読み出されて画像合成部230における画像合成に用いられる。
画像合成は、例えばバッファB1r、B2、B3r、B4、B5r、B6、B7、B8rに画像データとともに記憶されているアルファ値等を利用した透過合成により行われる。
Control for determining roles and changing roles of the storage areas Ma to Ml is performed by the memory control unit 222.
The images stored in the buffers B1r, B2, B3r, B4, B5r, B6, B7, and B8r are read out and used for image composition in the image composition unit 230.
The image composition is performed by, for example, transmission composition using an alpha value or the like stored together with image data in the buffers B1r, B2, B3r, B4, B5r, B6, B7, and B8r.

図16は、実施の形態3の画像合成表示装置1cの動作の一例を示すフローチャートである。図16の処理は、例えば画像合成表示装置1cの動作開始とともに、開始される。   FIG. 16 is a flowchart illustrating an example of the operation of the image composition display device 1c according to the third embodiment. The process of FIG. 16 is started together with the start of the operation of the image composition display device 1c, for example.

描画管理部212は、入力装置15から供給される情報に基づいて次に出力装置16で表示する画像を決定し、当該画像の生成のため、メモリ制御部222に記憶領域Ma〜Mlの役割の制御を行わせ、描画処理部214に描画を行わせる。   The drawing management unit 212 determines the next image to be displayed on the output device 16 based on the information supplied from the input device 15, and the memory control unit 222 plays the roles of the storage areas Ma to Ml to generate the image. Control is performed and the drawing processing unit 214 performs drawing.

描画管理部212は、出力装置16で表示する画像を決定するにあたり、入力装置15から供給される情報に基づいて、複数のレイヤL1〜L8の少なくとも一つについて画像情報が更新されたか否かを判定する(S301)。画像情報が更新されていなければ(S301でNO)、同じ判定を繰り返すことで、画像情報の更新を待つ。   In determining the image to be displayed on the output device 16, the drawing management unit 212 determines whether the image information has been updated for at least one of the plurality of layers L <b> 1 to L <b> 8 based on the information supplied from the input device 15. Determine (S301). If the image information has not been updated (NO in S301), the same determination is repeated to wait for the update of the image information.

画像情報が更新された場合(S301でYES)には、少なくとも一つのSBレイヤについて画像情報が更新されたか否かを判定する(S302)。
少なくとも一つのSBレイヤについて画像情報が更新された場合(S302でYES)には、書き換えのステップS303の処理を行う。そうでない場合(即ち、DBレイヤについてのみ画像情報が更新された場合)には、書き換えのステップS304の処理を行う。
If the image information has been updated (YES in S301), it is determined whether the image information has been updated for at least one SB layer (S302).
If the image information has been updated for at least one SB layer (YES in S302), the rewrite step S303 is performed. If not (that is, if the image information is updated only for the DB layer), the rewriting step S304 is performed.

ステップS303又はS304の処理が終わると、ステップS305の処理を行う。ステップS305の処理は、実施の形態1におけるステップS105の処理と同様である。
ステップS305で、システム終了条件を満たしていると判断されたときは、動作を終了する。システム終了条件を満たしていない場合はステップS301に戻り動作を繰り返す。
When the process of step S303 or S304 ends, the process of step S305 is performed. The process of step S305 is the same as the process of step S105 in the first embodiment.
If it is determined in step S305 that the system termination condition is satisfied, the operation is terminated. If the system termination condition is not satisfied, the process returns to step S301 to repeat the operation.

図17はステップS303の処理の一例を示すフローチャートである。図18(a)〜図19(b)は、ステップS303の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す。図18(a)〜図19(b)では、レイヤL1〜L8の画像をそれぞれG1〜G8で示し、レイヤを示す符号を省略する。以下の他の同様の図でも同様である。   FIG. 17 is a flowchart illustrating an example of the process in step S303. FIG. 18A to FIG. 19B show examples of changes in the role of the storage area and drawing operations in the storage area in an example of step S303. In Fig.18 (a)-FIG.19 (b), the image of layers L1-L8 is each shown by G1-G8, and the code | symbol which shows a layer is abbreviate | omitted. The same applies to other similar figures below.

以下では、図16の処理の開始時に、図18(a)に示されるように、記憶領域Maが、バッファB1rとして用いられ、記憶領域Mbが、バッファB1wとして用いられ、記憶領域Mdが、バッファB3rとして用いられ、記憶領域Meが、バッファB3wとして用いられ、記憶領域Mgが、バッファB5rとして用いられ、記憶領域Mhが、バッファB5wとして用いられ、記憶領域Mkが、バッファB8rとして用いられ、記憶領域Mlが、バッファB8wとして用いられ、記憶領域Mc、Mf、Mi、Mjが、それぞれバッファB2、B4、B6、B8として用いられているものと仮定する。   In the following, at the start of the process of FIG. 16, as shown in FIG. 18A, the storage area Ma is used as the buffer B1r, the storage area Mb is used as the buffer B1w, and the storage area Md is used as the buffer. Used as B3r, storage area Me used as buffer B3w, storage area Mg used as buffer B5r, storage area Mh used as buffer B5w, storage area Mk used as buffer B8r, storage Assume that the area Ml is used as the buffer B8w, and the storage areas Mc, Mf, Mi, and Mj are used as the buffers B2, B4, B6, and B8, respectively.

ステップS303では、最初に、ステップS311において、描画管理部212が、画像情報が更新された少なくとも一つのSBレイヤのいずれよりも上位の1又は2以上のDBレイヤのうちの、最も下位のDBレイヤを、カバーレイヤとして指定する。カバーレイヤは後述のように当該レイヤのバッファに、当該レイヤ及びそれよりも下位のレイヤの画像が重ね書きされるレイヤであり、「重ね書きレイヤ」とも呼ばれる。   In step S303, first, in step S311, the drawing management unit 212 determines that the lowest DB layer of one or more higher DB layers than any one of at least one SB layer whose image information has been updated. Is designated as the cover layer. As described later, the cover layer is a layer in which images of the layer and lower layers are overwritten in the buffer of the layer, and is also referred to as an “overwrite layer”.

例えば、図18(a)に△で示すようにレイヤL1、L6、L7について画像情報が更新されたものとする。画像情報が更新されたレイヤのうち、レイヤL6、L7がSBレイヤであり、レイヤL1がDBレイヤである。また、レイヤL6、L7よりも上位のDBレイヤはレイヤL1、L3、L5であり、その中で最も下位のレイヤは、レイヤL5である。この場合、レイヤL5がカバーレイヤとして指定される。   For example, it is assumed that the image information is updated for the layers L1, L6, and L7 as indicated by Δ in FIG. Of the layers whose image information has been updated, layers L6 and L7 are SB layers, and layer L1 is a DB layer. Further, the DB layers higher than the layers L6 and L7 are the layers L1, L3, and L5, and the lowest layer among them is the layer L5. In this case, the layer L5 is designated as the cover layer.

次にステップS312において、描画処理部214が、ステップS311で指定されたカバーレイヤL5のWバッファB5w(記憶領域Mh)に、それよりも下位のレイヤL6〜L8の次に表示すべき画像G6〜G8を最下位のレイヤから順に(G8、G7、G6の順に)描画する(図18(a))。
「次に表示すべき画像」としては、画像情報が更新されたレイヤでは更新後の画像情報により表される画像が描画され、画像情報が更新されていないレイヤではそれまで画像合成に用いられていた画像(それぞれのレイヤのバッファに記憶されている画像)と同じ画像が描画される。
In step S312, the drawing processing unit 214 displays the image G6 to be displayed next to the lower layers L6 to L8 in the W buffer B5w (storage area Mh) of the cover layer L5 specified in step S311. G8 is drawn in order from the lowest layer (in the order of G8, G7, and G6) (FIG. 18A).
As the “image to be displayed next”, an image represented by the updated image information is drawn in the layer in which the image information is updated, and has been used for image synthesis in the layer in which the image information is not updated. The same image as that (the image stored in the buffer of each layer) is drawn.

次にステップS313において、描画処理部214が、ステップS311で指定されたカバーレイヤL5のWバッファB5w(記憶領域Mh)に当該レイヤL5の次に表示すべき画像G5を重ねて描画する。
ステップS313において、「次に表示すべき画像」として、カバーレイヤL5についても画像情報が更新された場合には、更新後の画像情報により表される画像が描画され、カバーレイヤL5について画像情報が更新されていない場合には、それまで画像合成に用いられていたのと同じ画像が描画される。図18(a)の例では、カバーレイヤについては画像情報が更新されていないので、それまで画像合成に用いられていたのと同じ画像が描画される。
In step S313, the drawing processing unit 214 draws the image G5 to be displayed next to the layer L5 on the W buffer B5w (storage area Mh) of the cover layer L5 specified in step S311.
In step S313, when the image information is updated for the cover layer L5 as the “image to be displayed next”, the image represented by the updated image information is drawn, and the image information for the cover layer L5 is displayed. If it has not been updated, the same image that has been used for image synthesis until then is drawn. In the example of FIG. 18A, since the image information is not updated for the cover layer, the same image that has been used for image synthesis until then is drawn.

ステップS312及びS313の描画において、画像が互いに重なる領域においては、後から描画される画像でそれ以前の画像が上書きされる。即ち、後から描画される画像のみが残り、それ以前に描画された画像は消去される。但し、アルファ値が設定されている領域においては、それぞれの画像の画素値にアルファ値に応じた係数を乗じて、合成し、算出された画素値を有する画像を描画する。この処理は、実施の形態2で述べたのと同様に行い得る。   In the drawing in steps S312 and S313, in the area where the images overlap each other, the previous image is overwritten with the image drawn later. That is, only the image drawn later remains, and the image drawn before that is deleted. However, in the region where the alpha value is set, the pixel value of each image is multiplied by a coefficient corresponding to the alpha value and combined to draw an image having the calculated pixel value. This process can be performed in the same manner as described in the second embodiment.

ステップS313の描画の後、描画処理部214が、カバーレイヤL5のWバッファB5wの画像に、不透明の設定をする(S314)。これは、後に説明する、より下位のレイヤL6〜L8のバッファB6〜B8に記憶されている画像との合成の際、より下位のレイヤL6〜L8のバッファB6〜B8の画像が完全に隠れるようにするためである。   After the drawing in step S313, the drawing processing unit 214 sets the image of the W buffer B5w of the cover layer L5 to be opaque (S314). This is because the images of the buffers B6 to B8 of the lower layers L6 to L8 are completely hidden when they are combined with the images stored in the buffers B6 to B8 of the lower layers L6 to L8, which will be described later. It is to make it.

次にステップS315において、描画管理部212が、ステップS311で指定されたカバーレイヤ(例えばL5)よりも上位に、画像情報が更新されたDBレイヤが存在するか否かを判定する。
「存在する」場合(S315でYES)、ステップS316の処理を行う。そうでない場合(S315でNO)、ステップS318に進む。
図18(a)の例では、カバーレイヤL5よりも上位の、DBレイヤL1について画像情報が更新されているので、ステップS316に進む。
Next, in step S315, the drawing management unit 212 determines whether or not there is a DB layer whose image information is updated above the cover layer (for example, L5) specified in step S311.
If “exists” (YES in S315), the process of step S316 is performed. If not (NO in S315), the process proceeds to step S318.
In the example of FIG. 18A, since the image information is updated for the DB layer L1 higher than the cover layer L5, the process proceeds to step S316.

ステップS316で、描画処理部214が、ステップS311で指定されたカバーレイヤL5よりも上位の、画像情報が更新されたDBレイヤL1のWバッファB1w(記憶領域Mb)に当該レイヤL1の次に表示すべき画像G1を描画する。   In step S316, the drawing processing unit 214 displays the layer L1 next to the layer L1 in the W buffer B1w (storage area Mb) of the DB layer L1 higher than the cover layer L5 specified in step S311 and whose image information has been updated. An image G1 to be drawn is drawn.

図18(a)では、カバーレイヤL5よりも上位の、画像情報が更新されたDBレイヤの数が1であるが、そのようなDBレイヤが複数ある場合には、そのような複数のDBレイヤのWバッファに、それぞれ同じレイヤの次に表示すべき画像を描画する。   In FIG. 18A, the number of DB layers whose image information has been updated, which is higher than the cover layer L5, is 1, but when there are a plurality of such DB layers, such a plurality of DB layers In the W buffer, an image to be displayed next to the same layer is drawn.

次にステップS317において、メモリ制御部222が、ステップS311で指定されたカバーレイヤL5とステップS316で描画したレイヤL1でRバッファB5r、B1rとWバッファB5w、B1wを入れ替える。即ち、RバッファB1r、B5rとして用いられていた記憶領域Ma、Mgを新たなWバッファB1w、B5wに割り当て、WバッファB1w、B5wとして用いられていた記憶領域Mb、Mhを新たなRバッファB1r、B5rに割り当てる(図18(b))。   In step S317, the memory control unit 222 replaces the R buffer B5r, B1r and the W buffer B5w, B1w with the cover layer L5 specified in step S311 and the layer L1 drawn in step S316. That is, the storage areas Ma and Mg used as the R buffers B1r and B5r are allocated to the new W buffers B1w and B5w, and the storage areas Mb and Mh used as the W buffers B1w and B5w are assigned to the new R buffers B1r, Assigned to B5r (FIG. 18B).

ステップS318では、メモリ制御部222が、ステップS311で指定されたカバーレイヤ(例えばL5)のRバッファとWバッファを入れ替える。即ち、RバッファB5rとして用いられていた記憶領域Mgを新たなWバッファB5wに割り当て、WバッファB5wとして用いられていた記憶領域Mhを新たなRバッファB5rに割り当てる。   In step S318, the memory control unit 222 replaces the R buffer and the W buffer of the cover layer (for example, L5) designated in step S311. That is, the storage area Mg used as the R buffer B5r is allocated to the new W buffer B5w, and the storage area Mh used as the W buffer B5w is allocated to the new R buffer B5r.

ステップS317又はS318の入れ替えにより、不透明の設定がされているバッファB5rを含む、バッファB1r、B2、B3r、B4、B5r、B6、B7、B8rに記憶されている画像に基づいて合成画像が形成される状態(不透明合成状態)に移行する。   By replacing step S317 or S318, a composite image is formed based on the images stored in the buffers B1r, B2, B3r, B4, B5r, B6, B7, and B8r, including the buffer B5r set to be opaque. Shift to a state (opaque composite state).

この不透明合成状態においては、RバッファB5rに記憶されている画像について、不透明の設定がされているため、それより下位のレイヤL6〜L8のバッファB6、B7、B8rに記憶されている画像は完全に隠され、合成画像は、見かけ上、バッファB1r、B2、B3r、B4、B5rに記憶されている画像を合成したものと同じになる。
ステップS317又はS318の次にステップS319の処理が行われる。
In this opaque composition state, since the image stored in the R buffer B5r is set to be opaque, the images stored in the buffers B6, B7, and B8r of the lower layers L6 to L8 are complete. The composite image is apparently the same as the composite of the images stored in the buffers B1r, B2, B3r, B4, and B5r.
Following step S317 or S318, the process of step S319 is performed.

ステップS319では、図19(a)に示すように、描画処理部214が、画像情報が更新された少なくとも一つのSBレイヤL6、L7の、次に表示すべき画像を、同じレイヤL6、L7の兼用バッファB6、B7に描画する。
この「次に表示すべき画像」としては、直前のステップS312の処理で、カバーレイヤのバッファB5wに描画した画像(レイヤL6、L7の、更新後の画像情報により表される画像)と同じ画像、又はこれらのレイヤL6、L7の画像情報が更に更新された場合はその更なる更新後の画像情報により表される画像を描画する。
In step S319, as shown in FIG. 19A, the drawing processing unit 214 displays the next image to be displayed in at least one SB layer L6, L7 whose image information has been updated, in the same layer L6, L7. Draw in the shared buffers B6 and B7.
This “image to be displayed next” is the same image as the image (the image represented by the updated image information of the layers L6 and L7) drawn in the buffer B5w of the cover layer in the process of immediately preceding step S312. Alternatively, when the image information of these layers L6 and L7 is further updated, an image represented by the further updated image information is drawn.

ステップS319で、バッファB6、B7に対する描画による画像の書き換えが行われる間、これらのバッファから読み出される画像は、合成画像には現れない。カバーレイヤのバッファB5r(記憶領域Mh)から読み出される画像に不透明の設定がされているためである。書き換え中の画像が表に現れないので、合成画像におけるちらつきを防ぐことができる。   In step S319, while image rewriting is performed by drawing on the buffers B6 and B7, images read from these buffers do not appear in the composite image. This is because the image read from the cover layer buffer B5r (storage area Mh) is set to be opaque. Since the image being rewritten does not appear in the table, flickering in the composite image can be prevented.

次にステップS320において、図19(a)に示すように、描画処理部214が、カバーレイヤL5のWバッファB5w(記憶領域Mg)に、同じレイヤL5の次に表示すべき画像G5を描画し、カバーレイヤより上位の画像情報が更新されたDBレイヤL1のWバッファB1w(記憶領域Ma)に、同じレイヤL1の次に表示すべき画像G1を描画する。   Next, in step S320, as shown in FIG. 19A, the drawing processing unit 214 draws the image G5 to be displayed next to the same layer L5 in the W buffer B5w (storage area Mg) of the cover layer L5. The image G1 to be displayed next to the same layer L1 is drawn in the W buffer B1w (storage area Ma) of the DB layer L1 in which the image information higher than the cover layer is updated.

なお、ステップS319、S320の順序は、入れ替えても良く、これらの処理を同時に(平行して)行っても良い。また、ステップS319で、図19(a)の例のように、複数のレイヤの画像を描画する場合、複数のレイヤについての描画の順序については制約がなく、複数のレイヤについて描画を同時に(平行して)行っても良い。   Note that the order of steps S319 and S320 may be changed, and these processes may be performed simultaneously (in parallel). In step S319, as in the example of FIG. 19A, when images of a plurality of layers are drawn, there is no restriction on the drawing order of the layers, and drawing of the layers is performed simultaneously (parallel). And you can go there.

次にステップS321において、メモリ制御部222が、ステップS320で描画が行われたDBレイヤのRバッファとWバッファを入れ替える(図19(b))。即ち、それまでRバッファB1r、B5rとして用いられていた記憶領域Mb、Mhを、新たなWバッファB1w、B5wに割り当て、それまでWバッファB1w、B5wとして用いられていた記憶領域Ma、Mgを新たなRバッファB1r、B5rに割り当てる(図19(b))。
入れ替えにより、新たなRバッファB1r、B5r(記憶領域Ma、Mg)、RバッファB3r、B8r(記憶領域Md、Mk)、並びに兼用バッファB2、B4、B6、B7(記憶領域Mc、Mf、Mi、Mj)に記憶されている画像に基づいて合成画像が形成される状態、即ち、不透明の設定がされていない、新たにRバッファB5rに割り当てられた記憶領域Mgに記憶されている画像が合成に用いられる透明合成状態に移行する。
ステップS321でステップS303の処理が終わる。
Next, in step S321, the memory control unit 222 replaces the R buffer and the W buffer of the DB layer on which the drawing is performed in step S320 (FIG. 19B). In other words, the storage areas Mb and Mh that have been used as the R buffers B1r and B5r are assigned to the new W buffers B1w and B5w, and the storage areas Ma and Mg that have been used as the W buffers B1w and B5w are replaced with the new storage areas Ma and Mg. Are allocated to the R buffers B1r and B5r (FIG. 19B).
By replacement, new R buffers B1r, B5r (storage areas Ma, Mg), R buffers B3r, B8r (storage areas Md, Mk), and shared buffers B2, B4, B6, B7 (storage areas Mc, Mf, Mi, A state in which a composite image is formed on the basis of the image stored in Mj), that is, an image stored in the storage area Mg newly allocated to the R buffer B5r that is not set to be opaque is used for composition. Transition to the transparent composite state used.
In step S321, the process of step S303 ends.

ステップS304の処理は、DBレイヤにおける書き換えであり、従来公知の方法で行い得る。例えば、描画処理部214が、画像情報が更新されたDBレイヤのWバッファBiw(iは、1、3、5又は8)に、同じレイヤの次に表示すべき画像を描画し、メモリ制御部222が、描画が行われたDBレイヤのRバッファとWバッファを入れ替える。即ち、それまでRバッファとして用いられていた記憶領域を、新たなWバッファに割り当て、それまでWバッファとして用いられていた記憶領域を新たなRバッファに割り当てる。
これらの処理は、ステップS320、S321と同様である。但し、ステップS320、S321ではカバーレイヤでも描画及び入れ替えが行われるが、ステップS304ではカバーレイヤが存在せず、カバーレイヤにおける描画及び入れ替えが行われない。
The processing in step S304 is rewriting in the DB layer and can be performed by a conventionally known method. For example, the drawing processing unit 214 draws an image to be displayed next to the same layer in the W buffer Biw (i is 1, 3, 5, or 8) of the DB layer in which the image information is updated, and the memory control unit 222 replaces the R buffer and the W buffer of the DB layer on which the drawing has been performed. In other words, the storage area that has been used as the R buffer is assigned to a new W buffer, and the storage area that has been used as the W buffer is assigned to a new R buffer.
These processes are the same as steps S320 and S321. However, in steps S320 and S321, drawing and replacement are performed even in the cover layer, but in step S304, there is no cover layer and drawing and replacement in the cover layer are not performed.

[変形例3−1]
図17を参照して説明した例では、ステップS312でカバーレイヤよりも下位のレイヤの画像を描画したのち、ステップS313でカバーレイヤの画像を描画する。しかし、実施の形態2で述べたのと同様に、ステップS312で描画しようとしているレイヤの各々の画像に含まれるオブジェクトが、そのあとで描画される、より上位のレイヤのいずれかの画像に含まれるオブジェクトによって隠されるか否かを判定し、隠される場合はそのオブジェクトの描画(S312における描画)をスキップすることとしても良い。そうすることで処理をより高速にすることができる。
ここで言う、「そのあとで描画される、より上位のレイヤのいずれかの画像」には、ステップS313で描画されるカバーレイヤの画像のほか、同じステップS312内で、より後で描画されるレイヤ(カバーレイヤよりも下位のレイヤのうちのより上位のレイヤ)の画像が含まれる。
[Modification 3-1]
In the example described with reference to FIG. 17, an image of a layer lower than the cover layer is drawn in step S312, and then an image of the cover layer is drawn in step S313. However, as described in the second embodiment, the object included in each image of the layer to be rendered in step S312 is included in any image of the higher layer that is subsequently rendered. It is possible to determine whether or not the object is hidden, and in the case of being hidden, the drawing of the object (drawing in S312) may be skipped. By doing so, processing can be made faster.
In this case, “an image of a higher layer drawn after that” is drawn later in the same step S312 in addition to the image of the cover layer drawn in step S313. An image of a layer (a higher layer among lower layers than the cover layer) is included.

[変形例3−2a]
図17を参照して説明した例では、ステップS312で、カバーレイヤよりも下位のレイヤの画像を全面書き換えることを想定している。
カバーレイヤよりも下位のレイヤのいずれかについての画像情報により当該レイヤの画像の一部の領域のみの変更が必要とされる場合には、ステップS312でその変更領域のみをカバーレイヤのバッファ(例えばB5w)に描画し、ステップS319で変更領域のみをそれぞれのレイヤ(L6、L7)のバッファ(B6、B7)に描画することとしても良い。そうすることで、描画量を削減し、処理を一層高速にすることが可能である。
[Modification 3-2a]
In the example described with reference to FIG. 17, it is assumed that the image of the layer lower than the cover layer is completely rewritten in step S312.
If the image information for any of the layers below the cover layer requires that only a partial area of the image of the layer be changed, in step S312, only the changed area is stored in the cover layer buffer (for example, B5w), and only the changed area may be drawn in the buffer (B6, B7) of each layer (L6, L7) in step S319. By doing so, it is possible to reduce the amount of drawing and speed up the processing.

[変形例3−2b]
また、図17のステップS312の処理において、描画オブジェクト毎に該オブジェクトが変更領域内に存在するか否かを判定し、存在しない場合は描画をスキップすることとしても良い。そうすることで処理をさらに高速にすることが可能である。
[Modification 3-2b]
Further, in the processing of step S312 in FIG. 17, it is determined for each drawing object whether or not the object exists in the change area, and if it does not exist, the drawing may be skipped. By doing so, it is possible to further speed up the processing.

[変形例3−2c]
さらに、ステップS312、S319で、カバーレイヤよりも下位の、画像情報更新されたレイヤの画像の変更領域のみ描画する場合で、ステップS312からステップS319までの間に当該レイヤの画像情報が更に更新され、当該更なる更新後の画像情報により必要とされる変更領域がステップS312で描画した変更領域内に収まらない場合は、ステップS312で描画したのと同じ画像をステップS319で描画する。この場合、次に、ステップS301、S302における判定の結果に基づいて行われるステップS312〜S321の処理で上記の更なる更新後の画像情報により表される画像を描画することになる。
[Modification 3-2c]
Furthermore, in steps S312 and S319, only the change area of the image of the layer whose image information has been updated that is lower than the cover layer is drawn, and the image information of the layer is further updated between step S312 and step S319. If the change area required by the further updated image information does not fit within the change area drawn in step S312, the same image as that drawn in step S312 is drawn in step S319. In this case, the image represented by the further updated image information is drawn in the processing of steps S312 to S321 performed based on the determination results in steps S301 and S302.

[変形例3−3]
また、ステップS312で、画像情報が更新されていない、カバーレイヤよりも下位のレイヤ(例えばL8)の各々については、そのレイヤのバッファ(B8r)に記憶されている画像と同じ画像をカバーレイヤL5のバッファB5wに描画することになる。そこで、このような、カバーレイヤのWバッファB5wへの描画を行う代わりに、画像情報が更新されていないレイヤ(L8)のバッファ(B8r)に記憶されている画像をカバーレイヤL5のWバッファB5wに転送して、カバーレイヤL5のWバッファB5wに書き込むこととしても良い。上記の転送は、例えば、ビットブロック転送(Bitblt)で行うことができる。
当該カバーレイヤL5のバッファB5wに複数のレイヤの画像が書き込まれる場合には、この書き込みは、複数のレイヤの画像が下位側から順に行われ、かつ互いに重ね合わされるように行われる。このような順次書き込みにより、複数のレイヤの画像が合成される。
[Modification 3-3]
In step S312, for each layer lower than the cover layer (for example, L8) for which image information has not been updated, the same image as the image stored in the buffer (B8r) of the layer is displayed as the cover layer L5. Is drawn in the buffer B5w. Therefore, instead of performing drawing in the W buffer B5w of the cover layer, the image stored in the buffer (B8r) of the layer (L8) where the image information is not updated is used as the W buffer B5w of the cover layer L5. And may be written to the W buffer B5w of the cover layer L5. The above transfer can be performed by, for example, bit block transfer (Bitblt).
When images of a plurality of layers are written in the buffer B5w of the cover layer L5, the writing is performed so that the images of the plurality of layers are sequentially performed from the lower side and overlap each other. By sequentially writing in this way, images of a plurality of layers are synthesized.

[変形例3−4]
またステップS311で指定されたカバーレイヤ(L5)よりも下位に、1又は2以上のDBレイヤが存在する場合、図17のステップS312の処理の代わりに図20に示すステップS312a〜S312cの処理を行うこととしても良い。
この場合のバッファの役割の変化、バッファに対する動作を図21(a)に示す。
[Modification 3-4]
If one or more DB layers exist below the cover layer (L5) specified in step S311, the processing in steps S312a to S312c shown in FIG. 20 is performed instead of the processing in step S312 in FIG. It is good to do.
FIG. 21A shows the change in the role of the buffer and the operation on the buffer in this case.

まず、ステップS312aにおいて、カバーレイヤよりも下位の1又は2以上のDBレイヤのWバッファの各々を、画像情報が更新されたSBレイヤに割り当て、当該画像情報が更新されたSBレイヤの、次に表示すべき画像を、割り当てられたDBレイヤのWバッファに描画する。
例えば、図18(a)〜図19(b)の例のように、カバーレイヤ(例えばL5)よりも下位のDBレイヤが1つ(レイヤL8のみ)である場合、当該レイヤL8を、画像情報が更新されたSBレイヤL6、L7のいずれかに割り当て、割り当てられたレイヤの次に表示すべき画像を当該DBレイヤのWバッファに描画する。例えば、レイヤL7が割り当てられた場合、レイヤL7の画像G7をWバッファB8wに描画する(図21(a))。
First, in step S312a, each of the one or more DB layer W buffers lower than the cover layer is assigned to the SB layer in which the image information is updated, and next to the SB layer in which the image information is updated. The image to be displayed is drawn in the W buffer of the assigned DB layer.
For example, when the number of DB layers lower than the cover layer (for example, L5) is one (only the layer L8) as in the examples of FIGS. 18 (a) to 19 (b), the layer L8 is represented as image information. Is assigned to one of the updated SB layers L6 and L7, and an image to be displayed next to the assigned layer is drawn in the W buffer of the DB layer. For example, when the layer L7 is assigned, the image G7 of the layer L7 is drawn in the W buffer B8w (FIG. 21A).

次に、ステップS312bにおいて、ステップS312aで描画されたバッファB8wに書き込まれた画像を、ビットブロック転送(Bitblt)などで、カバーレイヤL5のWバッファB5wに転送して書き込む(図21(a))。   Next, in step S312b, the image written in the buffer B8w drawn in step S312a is transferred and written to the W buffer B5w of the cover layer L5 by bit block transfer (Bitblt) or the like (FIG. 21A). .

次にステップS312cにおいて、画像情報が更新されたSBレイヤ(L6、L7)のうち、ステップS312aで、カバーレイヤよりも下位のDBレイヤのいずれにも割り当てられなかったレイヤ(L6)の画像を、カバーレイヤのWバッファ(B5w)に描画する(図21(a))。この描画は、ステップS312bで書き込まれた画像に重なるように行われる。   Next, in step S312c, among the SB layers (L6, L7) whose image information has been updated, the image of the layer (L6) that has not been assigned to any of the DB layers lower than the cover layer in step S312a, Drawing is performed on the W buffer (B5w) of the cover layer (FIG. 21A). This drawing is performed so as to overlap the image written in step S312b.

以上のように、ステップS311で指定されたカバーレイヤ(L5)よりも下位のDBレイヤ(L8)の数(上記の例では1)が、画像情報が更新されたSBレイヤ(L6、L7)の数(上記の例では2)よりも少ない場合、カバーレイヤよりも下位のDBレイヤ(L8)が割り当てられなかったSBレイヤ(例えばL6)については、図17のステップS312の処理と同じくステップS311で指定されたカバーレイヤ(L5)のWバッファ(B5w)に直接描画する。この場合、より下位のレイヤの画像(他のDBレイヤのWバッファ(B8w)からの転送で書き込まれた画像)、又は先に描画された、より下位のレイヤの画像に重なるように書き込む。   As described above, the number of DB layers (L8) lower than the cover layer (L5) designated in step S311 is 1 in the SB layers (L6, L7) in which the image information is updated. When the number is smaller than the number (2 in the above example), the SB layer (for example, L6) to which the DB layer (L8) lower than the cover layer is not assigned is the same as the process of step S312 of FIG. Drawing directly on the W buffer (B5w) of the designated cover layer (L5). In this case, the lower layer image (image written by transfer from the W buffer (B8w) of another DB layer) or the lower layer image drawn earlier is written so as to overlap.

このようにする場合、その後のステップS319の「描画」の代わりに、図21(b)に示すように、DBレイヤ(L8)のWバッファ(B8w)に描画したレイヤ(L7)の兼用バッファB7と、該レイヤ(L7)の画像が描画されたWバッファ(B8w)を入れ替えることとしても良い。即ち、ステップS319でそれまでレイヤL8のWバッファB8wとして用いられていた記憶領域MlをレイヤL7の新たな兼用バッファB7に割り当て、それまで兼用バッファB7として用いられていた記憶領域MjをレイヤL7の新たなWバッファB8wに割り当てても良い。
こうすることでレイヤL7の画像については2回目の描画(図17のステップS319)を行うことなく、画像情報の更新の結果を合成画像に反映することが可能となる。
In this case, instead of “drawing” in the subsequent step S319, as shown in FIG. 21B, the combined buffer B7 of the layer (L7) drawn in the W buffer (B8w) of the DB layer (L8). The W buffer (B8w) on which the image of the layer (L7) is drawn may be replaced. That is, in step S319, the storage area Ml that has been used as the W buffer B8w of the layer L8 so far is allocated to the new shared buffer B7 of the layer L7, and the storage area Mj that has been used as the shared buffer B7 until then is assigned to the layer L7. It may be assigned to a new W buffer B8w.
In this way, the image information update result can be reflected in the composite image without performing the second drawing (step S319 in FIG. 17) for the image of the layer L7.

[変形例3−5a]
上記の例とは異なり、ステップS311で指定されたカバーレイヤ(L5)よりも下位のDBレイヤの数が、画像情報が更新されたSBレイヤの数以上である場合には、画像情報が更新されたSBレイヤのすべてを、カバーレイヤより下位のDBレイヤに割り当てることができる。この場合、画像情報が更新された1又は2以上のSBレイヤの画像を、それぞれ割り当てられたDBレイヤのWバッファに描画し、しかる後、DBレイヤのWバッファに描画された画像を、カバーレイヤのWバッファに、ビットブロック転送などで転送することができる。この場合にも最下位のレイヤから順に(より下位のレイヤの画像を先に)転送し、順次重ね書きする。
[Modification 3-5a]
Unlike the above example, when the number of DB layers lower than the cover layer (L5) specified in step S311 is equal to or greater than the number of SB layers whose image information has been updated, the image information is updated. All the SB layers can be assigned to the DB layer lower than the cover layer. In this case, one or more SB layer images with updated image information are drawn in the assigned DB layer W buffer, and then the image drawn in the DB layer W buffer is changed to the cover layer. Can be transferred to the W buffer by bit block transfer or the like. Also in this case, the images are transferred sequentially from the lowest layer (lower layer images first) and sequentially overwritten.

[変形例3−5b]
上記の変形例3−5bの方法を用いる場合であって、さらにステップS312の代わりに、ステップS312a〜S312cの処理を行う場合には、ステップS312aで、カバーレイヤよりも下位のDBレイヤのWバッファ(例えばB8w(Ml))が割り当てられたレイヤ(L7)の兼用バッファ(B7)と、該レイヤに割り当てられたWバッファ(B8)とを入れ替えても良い。そうすることで、図17のステップS319の描画を省略することができる。
[Modification 3-5b]
In the case of using the method of the above modified example 3-5b and further performing the processing of steps S312a to S312c instead of step S312, in step S312a, the W buffer of the DB layer lower than the cover layer is used. The shared buffer (B7) of the layer (L7) to which (for example, B8w (Ml)) is assigned may be interchanged with the W buffer (B8) assigned to the layer. By doing so, the drawing of step S319 in FIG. 17 can be omitted.

[変形例3−6]
また、図16のステップS316、S317において、ステップS311で指定されたカバーレイヤ(L5)よりも上位のDBレイヤ(L1、L3)のうち、画像情報が更新されたレイヤについてのみ、当該レイヤの画像のバッファへの描画(S316)及びバッファの入れ替え(S317)を行っている。しかし、画像情報が更新されていない、カバーレイヤよりも上位のDBレイヤについても、当該レイヤの画像のバッファへの描画(S316)及びバッファの入れ替え(S317)を行うこととしても良い。
同様に、ステップS320、S321において、DBレイヤ(L1、L3、L5、L8))のうちの画像情報が更新されたレイヤについてのみ、バッファへの描画(S320)及びバッファの入れ替え(S321)を行っているが、画像情報が更新されていないDBレイヤについても、当該レイヤの画像のバッファへの描画(S320)及びバッファの入れ替え(S321)を行うこととしても良い。
[Modification 3-6]
Also, in steps S316 and S317 of FIG. 16, only the layer whose image information has been updated among the upper DB layers (L1 and L3) than the cover layer (L5) specified in step S311 is the image of that layer. Are drawn in the buffer (S316) and the buffer is replaced (S317). However, for the DB layer higher than the cover layer in which the image information has not been updated, the image of the layer in the buffer (S316) and the buffer replacement (S317) may be performed.
Similarly, in steps S320 and S321, only the layer in which the image information of the DB layers (L1, L3, L5, and L8) is updated is drawn in the buffer (S320) and the buffer is replaced (S321). However, for a DB layer whose image information has not been updated, drawing of the image of the layer in the buffer (S320) and replacement of the buffer (S321) may be performed.

以上実施の形態3では、レイヤの数が8であり、DB構成のレイヤの数が4である場合について説明したが、レイヤの数が8以外であっても、またDB構成のレイヤの数が4以外であっても、本発明を適用することができる。   In the third embodiment, the number of layers is 8 and the number of DB configuration layers is 4. However, even if the number of layers is other than 8, the number of DB configuration layers is also different. Even if it is other than 4, the present invention can be applied.

一般的に言って、レイヤの数がN(Nは2以上の整数)であり、DB構成のレイヤの数がMである場合、即ち、画像合成表示装置(1c)が、第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示するものである場合の構成の特徴を要約すれば以下の如くとなる。なお、以下の記載で、括弧内の参照符号は、上記の図面を参照して説明した構成中の対応する構成要素、又は処理ステップを示す。   Generally speaking, when the number of layers is N (N is an integer greater than or equal to 2) and the number of layers in the DB configuration is M, that is, the image composition display device (1c) has the first to Nth. The features of the configuration in the case where the images of the layers (N is an integer of 3 or more) are combined to display the combined image are summarized as follows. In the following description, reference numerals in parentheses indicate corresponding components or processing steps in the configuration described with reference to the above drawings.

(3a) 第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置される。
(3b) RAM14内の第1乃至第(N+M)の記憶領域(Mは1より大きくNより小さい整数)が用いられる。
(3a) The image of the nth layer (where n is any one of 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the image of the higher layer is In the superposition for the synthesis, they are arranged on the front side.
(3b) First to (N + M) storage areas (M is an integer larger than 1 and smaller than N) in the RAM 14 are used.

(3c1) 第1乃至第Nの記憶領域は、それぞれ第1乃至第Nのレイヤに割り当てられる。
(3c2) 第(N+1)乃至第(N+M)の記録領域は、第1乃至第NのレイヤのうちのM個のレイヤに割り当てられて、M個のレイヤを2つの記憶領域が割り当てられたDBレイヤとする。
(3c3) 第1乃至第NのレイヤのうちのM個のレイヤ以外の、(N−M)個のレイヤは、単一の記憶領域が割り当てられたSBレイヤである。
(3c4) M個のレイヤには、前記第1のレイヤが含まれる。
(3c1) The first to Nth storage areas are allocated to the first to Nth layers, respectively.
(3c2) The (N + 1) to (N + M) recording areas are allocated to M layers of the first to Nth layers, and the M layers are allocated with two storage areas. A layer.
(3c3) Of the first to Nth layers, (N−M) layers other than M layers are SB layers to which a single storage area is allocated.
(3c4) The M layers include the first layer.

(3d1) M個のDBレイヤの各々については、描画処理部(214)が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤのWバッファに描画を行い、(N−M)個のSBレイヤの各々については、描画処理部(214)が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの兼用バッファに描画を行う。
(3d2) 読み出し部(224)が、M個のレイヤのRバッファ、及び(N−M)個のレイヤの兼用バッファから画像を読み出し、
(3d3) 画像合成部(230)が、読み出された画像を合成する。
(3d1) For each of the M DB layers, the rendering processing unit (214) performs rendering in the W buffer of the layer based on the image information of the layer supplied from the outside, and (N−M For each of the SB layers, the drawing processing unit (214) performs drawing in the shared buffer of the layer based on the image information of the layer supplied from the outside.
(3d2) The reading unit (224) reads an image from the R buffer of M layers and the shared buffer of (N−M) layers,
(3d3) The image composition unit (230) synthesizes the read images.

(3e) 第1乃至第Nのレイヤのうちの、少なくとも一つSBレイヤについて画像情報が更新されたら(S301,S302)、
(3e1) 描画管理部(212)が、画像情報が更新された上記の少なくとも一つの、SBレイヤのいずれよりも上位の、DDBレイヤをカバーレイヤとして指定し(S311)、
(3e2) 描画処理部(214)が、該カバーレイヤのWバッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し(S312,S313)、描画した領域に不透明の設定を行う(S314)。
(3e) When the image information is updated for at least one of the first to Nth layers (S301, S302),
(3e1) The drawing management unit (212) designates a DDB layer higher than any of the above-described at least one SB layer whose image information has been updated as a cover layer (S311),
(3e2) The drawing processing unit (214) draws the cover layer and the image to be displayed next to the lower layer of the cover layer in the W buffer of the cover layer in order from the lowest layer. (S312 and S313), the rendered area is set to be opaque (S314).

(3f) 上記の描画及び不透明の設定が完了したら、メモリ制御部(222)が、カバーレイヤにおいて、それまでWバッファとして用いられていた(Wバッファに割り当てられていた)記憶領域を新たなRバッファに割り当て、それまでRバッファとして用いられていた(Rバッファに割り当てられていた)記憶領域を新たなWバッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行する(S317,S318)。 (3f) When the above-described drawing and opacity settings are completed, the memory control unit (222) uses the storage area previously used as the W buffer (assigned to the W buffer) in the cover layer as a new R An image stored in the storage area in which the opaque area is set by allocating the storage area that has been assigned to the buffer and used as the R buffer until then (assigned to the R buffer) to the new W buffer. Shift to an opaque composition state used for image composition (S317, S318).

(3g) そして、上記の不透明合成状態で、描画処理部(214)が、画像情報が更新された少なくとも一つのSBレイヤの各々の画像を、当該レイヤの兼用バッファに描画し(S319)、前記カバーレイヤの次に表示すべき画像を、カバーレイヤのWバッファに描画する(S320)。
(3h) そして、上記の不透明合成状態における描画が完了したら、メモリ制御部(222)が、カバーレイヤにおいて、それまでWバッファとして用いられていた記憶領域を新たなRバッファに割り当て、それまでRバッファとして用いられていた記憶領域を新たなWバッファに割り当て、これによりカバーレイヤの、新たなRバッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する(S321)。
(3g) Then, in the above-described opaque composition state, the drawing processing unit (214) draws each image of at least one SB layer in which the image information is updated in the shared buffer of the layer (S319), The image to be displayed next to the cover layer is drawn in the W buffer of the cover layer (S320).
(3h) When the drawing in the above-described opaque composition state is completed, the memory control unit (222) allocates the storage area that has been used as the W buffer so far to the new R buffer in the cover layer, and until then R The storage area used as a buffer is allocated to a new W buffer, and the image stored in the new R buffer of the cover layer is shifted to a transparent composition state used for image composition (S321).

上記のカバーレイヤ、及びカバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理(S312,S313)において、描画処理部(214)は、カバーレイヤの画像情報が更新されている場合には、カバーレイヤの更新後の画像情報により表される画像を、次に表示すべき画像として描画し、カバーレイヤの画像情報が更新されていない場合には、カバーレイヤのRバッファに記憶されている画像と同じ画像を、次に表示すべき画像として描画し、カバーレイヤよりも下位のレイヤのうちの画像情報が更新されたレイヤの各々については、該更新後の画像情報により表される画像を、次に表示すべき画像として描画し、カバーレイヤよりも下位のレイヤのうちの画像情報が更新されていないレイヤの各々については、当該レイヤのRバッファ(図18のB8r)又は兼用バッファ(図18のB6,B7)に記憶されている画像と同じ画像を、次に表示すべき画像として描画することとしても良い。   In the processing (S312 and S313) for rendering the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer (S312 and S313), the rendering processing unit (214) If the image information has been updated, the image represented by the updated image information of the cover layer is rendered as the image to be displayed next. If the image information of the cover layer has not been updated, The same image as the image stored in the R buffer of the cover layer is rendered as an image to be displayed next. For each of the layers in which the image information of the layers below the cover layer is updated, the update is performed. The image represented by the later image information is rendered as an image to be displayed next, and the image information in the layer lower than the cover layer is not updated. For each of the above, the same image as the image stored in the R buffer (B8r in FIG. 18) or the shared buffer (B6, B7 in FIG. 18) of the layer may be drawn as the next image to be displayed. good.

上記のカバーレイヤ、及びカバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理(3f2)において、描画処理部(214)は、
カバーレイヤよりも下位のレイヤの各々の、次に表示すべき画像のうち、それより後で描画される、より上位の画像により隠れることになる画像部分については描画を省略することとしても良い。
In the process (3f2) of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer, the drawing processing unit (214)
Of the images to be displayed next in each of the layers below the cover layer, drawing may be omitted for an image portion that is drawn after that and is hidden by a higher image.

[実施の形態3による効果]
本実施の形態によれば、DBレイヤが複数個存在する構成においても、実施の形態1で述べたのと同様の効果が得られる。
[Effects of Embodiment 3]
According to the present embodiment, the same effect as described in the first embodiment can be obtained even in a configuration in which a plurality of DB layers exist.

実施の形態4.
実施の形態2及び実施の形態3では、DBレイヤが固定されている。次に、DBレイヤが動的に変更される構成を実施の形態4として説明する。
Embodiment 4 FIG.
In the second embodiment and the third embodiment, the DB layer is fixed. Next, a configuration in which the DB layer is dynamically changed will be described as a fourth embodiment.

DBレイヤの動的変更を可能にするため、レイヤの数(N)よりも多い記憶領域が用いられる。例えば、レイヤの数よりもS(S<N)だけ多い記憶領域が用いられ、該S個の記憶領域は予備バッファとして用いられる。残りの記憶領域は、それぞれのレイヤの兼用バッファとして用いられている。そして、画像情報が更新されたレイヤでは、予備バッファをWバッファに割り当てることで一時的にDB構成とし、Wバッファへの描画が終わると、バッファを入れ替え、さらにDB構成をSB構成に戻し、余ったバッファを予備バッファに戻す。   In order to enable dynamic change of the DB layer, a storage area larger than the number (N) of layers is used. For example, a storage area having S (S <N) more than the number of layers is used, and the S storage areas are used as spare buffers. The remaining storage area is used as a shared buffer for each layer. Then, in the layer in which the image information is updated, the spare buffer is assigned to the W buffer to temporarily make the DB configuration. When drawing to the W buffer is finished, the buffer is replaced, and the DB configuration is returned to the SB configuration, and the remainder is left. Return the buffer to the spare buffer.

以下では、レイヤの数Nが8であり、Sが2であり、10(=N+S)個の、各々1画面分の画像データを記憶可能な記憶領域が用意されている構成について説明する。
ハードウェア構成は、実施の形態1に関し、図1を参照して説明したのと同様である。
Hereinafter, a configuration in which the number N of layers is 8, S is 2, and 10 (= N + S) storage areas in which image data for one screen can be stored is prepared.
The hardware configuration is the same as that described with reference to FIG.

図22は実施の形態4に係る画像合成表示装置1dの機能ブロック図である。図22の画像合成表示装置1dは、図15の画像合成表示装置1cと概して同じである。但し、図15の12個の記憶領域Ma〜Mlの代わりに、10個の記憶領域Ma〜Mjが設けられている。   FIG. 22 is a functional block diagram of the image composition display device 1d according to the fourth embodiment. The image composition display device 1d in FIG. 22 is generally the same as the image composition display device 1c in FIG. However, 10 storage areas Ma to Mj are provided instead of the 12 storage areas Ma to Ml in FIG.

RAM14内の10個の記憶領域Ma〜Mjのうち、8個の記憶領域が、それぞれレイヤL1〜L8の兼用バッファとして用いられ、残りの2個の記憶領域が予備バッファとして用いられる。兼用バッファはSB構成の記憶部を構成する。   Of the 10 storage areas Ma to Mj in the RAM 14, 8 storage areas are used as shared buffers for the layers L1 to L8, respectively, and the remaining 2 storage areas are used as spare buffers. The shared buffer constitutes an SB configuration storage unit.

実施の形態3と同様に、レイヤLi(iは1から8のいずれか)は、iが小さいほどより順位が高い。即ち、レイヤL1が最上位のレイヤであり、レイヤL8が最下位のレイヤである。重ね合わせによる合成の際、順位の高いレイヤほどより画像が前面側に配置される。   Similar to the third embodiment, the layer Li (i is any one of 1 to 8) has a higher rank as i is smaller. That is, the layer L1 is the highest layer and the layer L8 is the lowest layer. At the time of composition by superposition, the higher the order of layers, the more images are arranged on the front side.

記憶領域Ma〜Mjの役割の決定及び役割の変更のための制御はメモリ制御部222により行われる。
8つのレイヤの兼用バッファ(或いはRバッファ)に記憶されている画像は読み出されて画像合成部230における画像合成に用いられる。
画像合成は、例えば8つのレイヤの兼用バッファ(或いはRバッファ)に画像データとともに記憶されているアルファ値等を利用した透過合成により行われる。
Control for determining roles and changing roles of the storage areas Ma to Mj is performed by the memory control unit 222.
The images stored in the eight-layer shared buffer (or R buffer) are read out and used for image composition in the image composition unit 230.
The image composition is performed by, for example, transmission composition using an alpha value or the like stored together with image data in a shared buffer (or R buffer) of eight layers.

図23は、実施の形態4の画像合成表示装置1dの動作の一例を示すフローチャートである。図23の処理は、例えば画像合成表示装置1dの動作開始とともに、開始される。   FIG. 23 is a flowchart illustrating an example of the operation of the image composition display device 1d according to the fourth embodiment. The process of FIG. 23 is started together with the start of the operation of the image composition display device 1d, for example.

図24及び図25は、図23のステップS403の処理の一例を示すフローチャートである。図26(a)〜図29、及び図30(a)〜図33(b)は、図24及び図25の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す。
図34は、図23のステップS404の処理の一例を示すフローチャートである。図35(a)〜図36(b)は、図34の処理の一例における、記憶領域の役割の変化及び記憶領域への描画の動作の例を示す。
24 and 25 are flowcharts showing an example of the process in step S403 of FIG. FIGS. 26A to 29 and FIGS. 30A to 33B are examples of changes in the role of the storage area and drawing operations in the storage area in the example of the processing of FIGS. 24 and 25. Indicates.
FIG. 34 is a flowchart illustrating an example of the process of step S404 of FIG. FIG. 35A to FIG. 36B show an example of a change in the role of the storage area and an operation of drawing in the storage area in the example of the process of FIG.

以下では、図22の処理の開始時には、例えば図26(a)、図35(a)に示すように、記憶領域Ma〜MhがレイヤL1〜L8の兼用バッファB1〜B8として用いられ、記憶領域Mi、Mjが予備バッファRa、Rbとして用いられるものとする。   Hereinafter, at the start of the processing of FIG. 22, for example, as shown in FIGS. 26 (a) and 35 (a), the storage areas Ma to Mh are used as the shared buffers B1 to B8 of the layers L1 to L8. Assume that Mi and Mj are used as spare buffers Ra and Rb.

描画管理部212は、入力装置15から供給される情報に基づいて次に出力装置16で表示する画像を決定し、当該画像を生成するため、メモリ制御部222に記憶領域Ma〜Mlの役割の制御を行わせ、描画処理部214による描画の制御を行う。   The drawing management unit 212 determines the next image to be displayed on the output device 16 based on the information supplied from the input device 15 and generates the image, so that the memory control unit 222 has the roles of the storage areas Ma to Ml. The control is performed, and the drawing processing unit 214 controls the drawing.

描画管理部212は、出力装置16で表示する画像を決定するにあたり、入力装置15から供給される情報に基づいて、複数のレイヤL1〜L8の少なくとも一つについて画像情報が更新されたか否かを判定する(S401)。画像情報が更新されていなければ(S401でNO)、同じ判定を繰り返すことで、画像情報の更新を待つ。   In determining the image to be displayed on the output device 16, the drawing management unit 212 determines whether the image information has been updated for at least one of the plurality of layers L <b> 1 to L <b> 8 based on the information supplied from the input device 15. Determination is made (S401). If the image information has not been updated (NO in S401), the same determination is repeated to wait for the update of the image information.

画像情報が更新された場合(S401でYES)には、予備バッファRa、Rbの数S(=2)を上回る数のレイヤについて画像情報が更新されたか否かを判定する(S402)。
予備バッファRa、Rbの数S(=2)を上回る数のレイヤについて画像情報が更新された場合(S402でYES)には、書き換えのステップS403の処理を行う。そうでなければ、書き換えのステップS404の処理を行う。
If the image information has been updated (YES in S401), it is determined whether or not the image information has been updated for a number of layers exceeding the number S (= 2) of the spare buffers Ra and Rb (S402).
When the image information has been updated for the number of layers exceeding the number S (= 2) of the spare buffers Ra and Rb (YES in S402), the rewrite step S403 is performed. Otherwise, the rewrite step S404 is performed.

例えば、図26(a)で◇で示すように、L5、L6、L7について画像情報が更新された場合、ステップS402の判定の結果、ステップS403の処理を行う。
一方、図35(a)で△で示すように、L6、L7についてのみ画像情報が更新された場合、図23のステップS402の判定の結果、ステップS404の処理を行う。
For example, as indicated by ◇ in FIG. 26A, when the image information is updated for L5, L6, and L7, the process of step S403 is performed as a result of the determination of step S402.
On the other hand, as indicated by Δ in FIG. 35A, when the image information is updated only for L6 and L7, the process of step S404 is performed as a result of the determination of step S402 of FIG.

ステップS403又はS404の処理が終わると、ステップS405の判定を行う。ステップS405の処理は、実施の形態1におけるステップS105と同様である。
ステップS405で、システム終了条件を満たしていると判断されたときは、動作を終了する。システム終了条件を満たしていない場合はステップS401に戻り動作を繰り返す。
When the process of step S403 or S404 ends, the determination of step S405 is performed. The process in step S405 is the same as step S105 in the first embodiment.
If it is determined in step S405 that the system termination condition is satisfied, the operation is terminated. If the system termination condition is not satisfied, the process returns to step S401 to repeat the operation.

以下ステップS403における処理を図24〜図25及び図26(a)〜図29及び図30(a)〜図33(b)を参照して説明する。
図24のステップS411で、描画管理部212が、画像情報が更新されたレイヤL5、L6、L7の内最も上位のレイヤL5をカバーレイヤとして指定し、メモリ制御部222が、カバーレイヤをDB構成にする(図26(b))。DB構成にするには、例えば予備バッファRaであった記憶領域Miを用いる。即ち、予備バッファRaであった記憶領域Miを、カバーレイヤL5のWバッファB5wに割り当て、それまで兼用バッファB5として用いられていた記憶領域Meの役割をRバッファB5rに変更する。
Hereinafter, the process in step S403 will be described with reference to FIGS. 24 to 25 and FIGS. 26 (a) to 29 and FIGS. 30 (a) to 33 (b).
In step S411 in FIG. 24, the drawing management unit 212 designates the uppermost layer L5 of the layers L5, L6, and L7 whose image information has been updated as the cover layer, and the memory control unit 222 configures the cover layer as a DB configuration. (FIG. 26B). For the DB configuration, for example, the storage area Mi that was the spare buffer Ra is used. That is, the storage area Mi that was the spare buffer Ra is allocated to the W buffer B5w of the cover layer L5, and the role of the storage area Me that has been used as the shared buffer B5 is changed to the R buffer B5r.

次にステップS412において、描画処理部214が、カバーレイヤL5のWバッファB5w(記憶領域Mi)に、カバーレイヤよりも下位のレイヤL6〜L8の次に表示すべき画像G6〜G8を最下位のレイヤから順に(G8、G7、G6の順に)描画する(図26(b))。
「次に表示すべき画像」としては、画像情報が更新されたレイヤでは更新後の画像情報により表される画像が描画され、画像情報が更新されていないレイヤではそれまで画像合成に用いられていた画像(即ち、それぞれ同じレイヤのバッファに記憶されている画像)と同じ画像が描画される。
In step S412, the drawing processing unit 214 displays the images G6 to G8 to be displayed next to the lower layers L6 to L8 lower than the cover layer in the W buffer B5w (storage area Mi) of the cover layer L5. Drawing is performed in order from the layer (in the order of G8, G7, and G6) (FIG. 26B).
As the “image to be displayed next”, an image represented by the updated image information is drawn in the layer in which the image information is updated, and has been used for image synthesis in the layer in which the image information is not updated. The same image as that (that is, the image stored in the buffer of the same layer) is drawn.

次にステップS413において、描画処理部214が、カバーレイヤL5のWバッファB5w(記憶領域Mi)に、当該レイヤL5の次に表示すべき画像を重ねて描画する(図26(b))。
「次に表示すべき画像」として、更新後の画像情報により表される画像が描画される。
In step S413, the drawing processing unit 214 draws the image to be displayed next to the layer L5 on the W buffer B5w (storage area Mi) of the cover layer L5 (FIG. 26B).
As the “image to be displayed next”, an image represented by the updated image information is drawn.

ステップS412及びS413の描画において、画像が互いに重なる領域においては、後から描画される画像でそれ以前の画像が上書きされる。即ち、後から描画される画像のみが残り、それ以前に描画された画像は消去される。但し、アルファ値が設定されている領域においては、それぞれの画像の画素値にアルファ値に応じた係数を乗じて、合成し、算出された画素値を有する画像を描画する。この処理は、実施の形態2で述べたのと同様に行い得る。   In the drawing in steps S412 and S413, in the area where the images overlap each other, the previous image is overwritten with the image drawn later. That is, only the image drawn later remains, and the image drawn before that is deleted. However, in the region where the alpha value is set, the pixel value of each image is multiplied by a coefficient corresponding to the alpha value and combined to draw an image having the calculated pixel value. This process can be performed in the same manner as described in the second embodiment.

ステップS413の描画の後、描画処理部214が、カバーレイヤL5のWバッファB5w(記憶領域Mi)の画像に、不透明の設定をする(S414)。これは、後に説明する、より下位のレイヤL6〜L8のバッファB6〜B8に記憶されている画像との合成の際、より下位のレイヤL6〜L8のバッファB6〜B8の画像が完全に隠れるようにするためである。   After drawing in step S413, the drawing processing unit 214 sets the image of the W buffer B5w (storage area Mi) of the cover layer L5 to be opaque (S414). This is because the images of the buffers B6 to B8 of the lower layers L6 to L8 are completely hidden when they are combined with the images stored in the buffers B6 to B8 of the lower layers L6 to L8, which will be described later. It is to make it.

次にステップS415において、メモリ制御部222が、カバーレイヤL5のRバッファB5rとWバッファB5wを入れ替える。即ち、それまでWバッファB5wとして用いられていた記憶領域Miを新たなRバッファB5rに割り当て、それまでRバッファB5rとして用いられていた記憶領域Meを新たなWバッファB5wに割り当てる(図27(a))。
入れ替えにより、不透明の設定がされ、新たなRバッファB5rに割り当てられた記憶領域Miに記憶されている画像が合成に用いられる、不透明合成状態に移行する。
Next, in step S415, the memory control unit 222 switches the R buffer B5r and the W buffer B5w of the cover layer L5. That is, the storage area Mi that has been used as the W buffer B5w is assigned to the new R buffer B5r, and the storage area Me that has been used as the R buffer B5r is assigned to the new W buffer B5w (FIG. 27A )).
By the replacement, the opaque setting is made, and the state shifts to the opaque combining state in which the image stored in the storage area Mi allocated to the new R buffer B5r is used for combining.

次に、ステップS416において、描画管理部212が、カバーレイヤL5よりも上位のレイヤの少なくとも一つで、直前のステップS411〜S415の処理を行っている間に画像情報が更に更新されたか否かを判定する。
画像情報が更に更新された場合(S416でYES)には、ステップS417に進む。そうでなければ(S416でNO)、ステップS423(図25)に進む。
Next, in step S416, whether or not the image information is further updated while the drawing management unit 212 is performing at least one of the layers higher than the cover layer L5 and performing the processes of the previous steps S411 to S415. Determine.
If the image information is further updated (YES in S416), the process proceeds to step S417. Otherwise (NO in S416), the process proceeds to step S423 (FIG. 25).

ステップS417においては、描画管理部212が、カバーレイヤ(L5)よりも上位のレイヤであって、直前のステップS411〜S415の処理の間に画像情報が更新されたレイヤの数が、その時点で残っている予備バッファの数(当初の予備バッファの数−1、即ち上記の例では(2−1=1))よりも多いか否かを判定する。
多い場合(S417でYES)には、ステップS418に進む。そうでない場合(S417でNO)には、ステップS421(図25)に進む。
In step S417, the drawing management unit 212 determines that the number of layers that are higher than the cover layer (L5) and whose image information has been updated during the processing of the immediately preceding steps S411 to S415 is determined at that time. It is determined whether or not the number is larger than the number of remaining spare buffers (the number of original spare buffers minus 1, that is, (2-1 = 1) in the above example).
If so (YES in S417), the process proceeds to step S418. If not (NO in S417), the process proceeds to step S421 (FIG. 25).

例えば、図27(b)に◆で示すように、直前のステップS411〜S415の処理の間に、レイヤL2、L6、L8について画像情報が更新された場合には、カバーレイヤL5よりも上位のレイヤのうちの画像情報が更新されたレイヤがレイヤL2のみ(1個)になるので、ステップS417でNOとなり、ステップS421に進む。
一方、例えば図30(a)に◆で示すように、直前のステップS411〜S415の処理の間に、レイヤL2、L4、L6、L8について画像情報が更新された場合には、カバーレイヤL5よりも上位のレイヤのうちの画像情報が更新されたレイヤがレイヤL2、L4(2個)になるので、ステップS417でYESとなり、ステップS418に進む。
For example, as shown by ♦ in FIG. 27 (b), when the image information is updated for the layers L2, L6, and L8 during the processing of the previous steps S411 to S415, it is higher than the cover layer L5. Since the layer in which the image information of the layer is updated is only the layer L2 (one), NO is determined in step S417, and the process proceeds to step S421.
On the other hand, for example, as indicated by ♦ in FIG. 30A, when the image information is updated for the layers L2, L4, L6, and L8 during the processing of the immediately preceding steps S411 to S415, the cover layer L5 Since the layers in which the image information of the upper layer is updated are the layers L2 and L4 (two), YES is determined in the step S417, and the process proceeds to the step S418.

ステップS421で、メモリ制御部222が、カバーレイヤL5よりも上位のレイヤであって、直前のステップS411〜S415の処理の間に画像情報が更新されたレイヤL2を、空いている予備バッファRb(記憶領域Mj)を用いてDB構成にする。即ち、予備バッファRb(記憶領域Mj)を当該レイヤのWバッファB2wにし、兼用バッファB2(記憶領域Mb)をRバッファB2rにする(図28(a))。   In step S421, the memory control unit 222 uses a spare buffer Rb () that is a layer higher than the cover layer L5 and in which the image information is updated during the processing of the immediately preceding steps S411 to S415. The storage area Mj) is used to create a DB configuration. That is, the spare buffer Rb (storage area Mj) is set as the W buffer B2w of the layer, and the shared buffer B2 (storage area Mb) is set as the R buffer B2r (FIG. 28A).

次に、ステップS422で、描画処理部214が、ステップS421でDB構成にしたレイヤのWバッファB2wに、当該レイヤの次に表示すべき画像を描画する(図28(a))。   Next, in step S422, the drawing processing unit 214 draws an image to be displayed next to the layer in the W buffer B2w of the layer having the DB configuration in step S421 (FIG. 28A).

次に、ステップS423で、描画処理部214が、カバーレイヤL5よりも下位の、画像情報が更新されたレイヤL6、L7、L8の、次に表示すべき画像G6、G7、G8を、当該レイヤの兼用バッファB6、B7、B8に描画する(図28(a))。   Next, in step S423, the drawing processing unit 214 displays the images G6, G7, and G8 to be displayed next to the layers L6, L7, and L8 that are lower than the cover layer L5 and whose image information has been updated. Are drawn in the shared buffers B6, B7 and B8 (FIG. 28A).

次に、ステップS424で、描画処理部214が、カバーレイヤL5の、次に表示すべき画像G5を、当該レイヤのWバッファB5wに描画する(図28(a))。   Next, in step S424, the drawing processing unit 214 draws the image G5 to be displayed next of the cover layer L5 in the W buffer B5w of the layer (FIG. 28A).

なお、ステップS422、S423、S424の順序は、入れ替えても良く、これらの処理を同時に(平行して)行っても良い。
また、ステップS423で、図28(a)の例のように、複数のレイヤの画像を描画する場合、複数のレイヤについての描画の順序については制約がなく、複数のレイヤについて描画を同時に(平行して)行っても良い。ステップS421でDB構成にしたレイヤが複数ある場合ステップS422における描画の順序についても同様である。
Note that the order of steps S422, S423, and S424 may be changed, and these processes may be performed simultaneously (in parallel).
In step S423, as in the example of FIG. 28A, when images of a plurality of layers are drawn, there is no restriction on the drawing order for the plurality of layers, and drawing for a plurality of layers is performed simultaneously (parallel). And you can go there. When there are a plurality of layers having the DB configuration in step S421, the same applies to the drawing order in step S422.

次にステップS425において、メモリ制御部222が、カバーレイヤL5のRバッファB5rとWバッファB5wを入れ替える。即ち、それまでWバッファB5wとして用いられていた記憶領域Meを新たなRバッファB5rに割り当て、それまでRバッファB5rとして用いられていた記憶領域Miを新たなWバッファB5wに割り当てる(図28(b))。
入れ替えにより、不透明の設定がされていない、新たにRバッファB5rに割り当てられた記憶領域Meに記憶されている画像が合成に用いられる透明合成状態に移行する。
Next, in step S425, the memory control unit 222 replaces the R buffer B5r and the W buffer B5w of the cover layer L5. That is, the storage area Me previously used as the W buffer B5w is allocated to the new R buffer B5r, and the storage area Mi previously used as the R buffer B5r is allocated to the new W buffer B5w (FIG. 28B). )).
By the replacement, an image stored in the storage area Me newly assigned to the R buffer B5r, which is not set to be opaque, shifts to a transparent composition state used for composition.

また、ステップS421でDB構成にしたレイヤが存在する場合には、それらのレイヤのRバッファとWバッファをも入れ替える。
図28(a)で想定している例では、ステップS421でレイヤL2をDB構成にしている。そのため、ステップS425では、それまでWバッファB2wとして用いられていた記憶領域Mjが新たなRバッファB2rに変更され、それまでRバッファB2rとして用いられていた記憶領域Mbが新たなWバッファB2wに変更される(図28(b))。
Further, if there are layers having the DB configuration in step S421, the R buffer and W buffer of those layers are also switched.
In the example assumed in FIG. 28A, the layer L2 has a DB configuration in step S421. Therefore, in step S425, the storage area Mj that has been used as the W buffer B2w is changed to the new R buffer B2r, and the storage area Mb that has been used as the R buffer B2r is changed to the new W buffer B2w. (FIG. 28B).

次に、ステップS426において、ステップS425でバッファが入れ替えられたレイヤをDB構成からSB構成に戻す(図29)。即ちWバッファB2w(Mb)、B5w(Mi)を予備バッファRa、Rbに変更し、RバッファB2r(Mj)、B5r(Me)を、兼用バッファB2、B5に変更する。   Next, in step S426, the layer whose buffer has been replaced in step S425 is returned from the DB configuration to the SB configuration (FIG. 29). That is, the W buffers B2w (Mb) and B5w (Mi) are changed to spare buffers Ra and Rb, and the R buffers B2r (Mj) and B5r (Me) are changed to shared buffers B2 and B5.

なお、上記の例では、ステップS425及びS426で、バッファの役割の変更を2段階で行っているが、1段階で行ってもよい。即ち、カバーレイヤL5のWバッファB5wとして用いられていた記憶領域Meを新たな兼用バッファB5に割り当て、カバーレイヤL5のRバッファB5rとして用いられていた記憶領域Miを新たな予備バッファRbにすることとしても良い。同様に、ステップS421でレイヤL2をDB構成にしたレイヤL2のWバッファB2wとして用いられていた記憶領域Mjを新たな兼用バッファB2に割り当て、レイヤL2のRバッファB2rとして用いられていた記憶領域Mbを新たな予備バッファRaにすることとしても良い。
このような1段階での役割の変更は、ステップS425、S426の2段階での役割の変更と等価である。
In the above example, the role of the buffer is changed in two steps in steps S425 and S426, but may be performed in one step. That is, the storage area Me used as the W buffer B5w of the cover layer L5 is allocated to the new dual-purpose buffer B5, and the storage area Mi used as the R buffer B5r of the cover layer L5 is used as the new spare buffer Rb. It is also good. Similarly, in step S421, the storage area Mj used as the W buffer B2w of the layer L2 in which the layer L2 has the DB configuration is allocated to the new dual-purpose buffer B2, and the storage area Mb used as the R buffer B2r of the layer L2 May be used as a new spare buffer Ra.
Such a role change in one stage is equivalent to a role change in two stages of steps S425 and S426.

上記のように、ステップS417における判定の結果が「YES」の場合にはステップS418に進む。以下、一例として、図30(a)に◆で示すように、レイヤL2、L4、L6、L8について画像情報が更新され、カバーレイヤL5よりも上位のレイヤのうちの画像情報が更新されたレイヤがレイヤL2、L4(2個)にである場合を想定する。   As described above, when the result of the determination in step S417 is “YES”, the process proceeds to step S418. In the following, as an example, as indicated by ♦ in FIG. 30A, the image information is updated for the layers L2, L4, L6, and L8, and the image information of the layers higher than the cover layer L5 is updated. Is assumed to be in layers L2 and L4 (two).

ステップS418では、カバーレイヤをSB構成に戻す(図30(b))。即ち、それまでWバッファB5wとして用いられていた記憶領域Meを新たな兼用バッファB5に割り当て、それまでRバッファB5rとして用いられていた記憶領域Miを新たな予備バッファRaにする。   In step S418, the cover layer is returned to the SB configuration (FIG. 30B). That is, the storage area Me that has been used as the W buffer B5w is allocated to the new dual-purpose buffer B5, and the storage area Mi that has been used as the R buffer B5r is used as the new spare buffer Ra.

ステップS418の次にステップS411に戻る。
ステップS411で、描画管理部212が、画像情報が更新されたレイヤL2、L4、L6、L7の内の最も上位のレイヤL2を新たなカバーレイヤとし、メモリ制御部222が、カバーレイヤを、例えば、予備バッファRaであった記憶領域Miを用いて、DB構成にする(図31(a))。
即ち、それまで兼用バッファB2として用いられていた記憶領域Mbを新たなRバッファB2rに割り当て、それまで予備バッファRaであった記憶領域Miを新たなWバッファB2wに割り当てる。
After step S418, the process returns to step S411.
In step S411, the drawing management unit 212 sets the highest layer L2 among the layers L2, L4, L6, and L7 whose image information has been updated as a new cover layer, and the memory control unit 222 sets the cover layer as, for example, Then, the DB configuration is made by using the storage area Mi that was the spare buffer Ra (FIG. 31A).
That is, the storage area Mb that has been used as the shared buffer B2 is assigned to the new R buffer B2r, and the storage area Mi that has been the spare buffer Ra is assigned to the new W buffer B2w.

次にステップS412において、描画処理部214が、カバーレイヤL2のWバッファB2w(記憶領域Mi)に、カバーレイヤよりも下位のレイヤL3〜L8の次に表示すべき画像G3〜G8を最下位のレイヤから順に(G8、G7、G6、G5、G4、G3の順に)描画する(図31(a))。   In step S412, the drawing processing unit 214 displays the images G3 to G8 to be displayed next to the lower layers L3 to L8 lower than the cover layer in the W buffer B2w (storage area Mi) of the cover layer L2. Drawing is performed in order from the layer (in the order of G8, G7, G6, G5, G4, and G3) (FIG. 31A).

次にステップS413において、描画処理部214が、カバーレイヤL2のWバッファB2w(記憶領域Mi)に当該レイヤL2の次に表示すべき画像を重ねて描画する(図31(a))。   Next, in step S413, the drawing processing unit 214 draws an image to be displayed next to the layer L2 on the W buffer B2w (storage area Mi) of the cover layer L2 (FIG. 31A).

ステップS413の描画の後、描画処理部214が、新たなカバーレイヤL2のWバッファB2w(記憶領域Mi)の画像に、不透明の設定をする(S414)。   After the drawing in step S413, the drawing processing unit 214 sets the image of the W buffer B2w (storage area Mi) of the new cover layer L2 to be opaque (S414).

次にステップS415において、メモリ制御部222が、カバーレイヤL2のRバッファB2rとWバッファB2wを入れ替える。即ち、それまでWバッファB2wとして用いられていた記憶領域Miを新たなRバッファB2rに割り当て、それまでRバッファB2rとして用いられていた記憶領域Mbを新たなWバッファB2wに割り当てる(図31(b))。   In step S415, the memory control unit 222 replaces the R buffer B2r and the W buffer B2w of the cover layer L2. That is, the storage area Mi that has been used as the W buffer B2w is allocated to the new R buffer B2r, and the storage area Mb that has been used as the R buffer B2r is allocated to the new W buffer B2w (FIG. 31B). )).

次に、ステップS416において、描画管理部212が、カバーレイヤL2よりも上位のレイヤの少なくとも一つで、直前のステップS411〜S415の処理の間に画像情報が更に更新されたか否かを判定する。
画像情報が更に更新された場合(S416でYES)には、ステップS417に進み、そうでなければ(S416でNO)、ステップS423(図25)に進む。
Next, in step S416, the drawing management unit 212 determines whether or not the image information is further updated during the processes of the immediately preceding steps S411 to S415 in at least one of the layers higher than the cover layer L2. .
If the image information is further updated (YES in S416), the process proceeds to step S417. If not (NO in S416), the process proceeds to step S423 (FIG. 25).

以下では、図31(a)、図31(b)のように2回目のステップS411〜S415の処理を経たのち、ステップS416でYES、ステップS417でNOとなる場合を想定する。
例えば、図32(a)に☆で示すように、直前のステップS411〜S415の処理の間に、レイヤL1、L4、L5、L6について画像情報が更新された場合を想定する。この場合、カバーレイヤL2よりも上位のレイヤのうち画像情報が更新されたのはレイヤL1のみであるので
(画像情報が更新された、より上位のレイヤの数=1)
≦(残っている予備バッファの数=1)
となり、ステップS416でYES、ステップS417でNOとなり、その結果ステップS421に進む。
In the following, it is assumed that after the second processing of Steps S411 to S415 as shown in FIGS. 31A and 31B, YES in Step S416 and NO in Step S417.
For example, as shown by ☆ in FIG. 32A, it is assumed that the image information is updated for the layers L1, L4, L5, and L6 during the processing of the previous steps S411 to S415. In this case, since only the layer L1 is updated in the image information among the layers higher than the cover layer L2 (the number of higher layers in which the image information is updated = 1)
≦ (Number of remaining spare buffers = 1)
Thus, YES is determined in the step S416, NO is determined in the step S417, and as a result, the process proceeds to the step S421.

ステップS421で、メモリ制御部222が、カバーレイヤL2よりも上位のレイヤであって、直前のステップS411〜S415の処理の間に画像情報が更新されたレイヤL1を、空いている予備バッファRb(記憶領域Mj)を用いてDB構成にする。即ち、予備バッファRb(記憶領域Mj)を当該レイヤL1のWバッファB1wにし、兼用バッファB1(記憶領域Ma)をRバッファB1rにする(図32(b))。   In step S421, the memory control unit 222 determines that the layer L1 that is an upper layer than the cover layer L2 and in which the image information has been updated during the processing of the immediately preceding steps S411 to S415 is used as a spare buffer Rb ( The storage area Mj) is used to create a DB configuration. That is, the spare buffer Rb (storage area Mj) is set as the W buffer B1w of the layer L1, and the shared buffer B1 (storage area Ma) is set as the R buffer B1r (FIG. 32 (b)).

次に、ステップS422で、描画処理部214が、ステップS421でDB構成にしたレイヤL1のWバッファB1wに、当該レイヤの次に表示すべき画像を描画する(図32(b))。   Next, in step S422, the drawing processing unit 214 draws an image to be displayed next to the layer in the W buffer B1w of the layer L1 having the DB configuration in step S421 (FIG. 32B).

次に、ステップS423で、描画処理部214が、カバーレイヤL2よりも下位の、画像情報が更新されたレイヤL4、L5、L6、L7、L8の、次に表示すべき画像G4、G5、G6、G7、G8を、当該レイヤの兼用バッファB4、B5、B6、B7、B8に描画する(図32(b))。   In step S423, the drawing processing unit 214 then displays the images G4, G5, and G6 to be displayed next to the layers L4, L5, L6, L7, and L8 that have lower image information than the cover layer L2. , G7, G8 are drawn in the shared buffers B4, B5, B6, B7, B8 of the layer (FIG. 32B).

次に、ステップS424で、描画処理部214が、カバーレイヤL2の、次に表示すべき画像G2を、当該レイヤのWバッファB2wに描画する(図32(b))。   Next, in step S424, the drawing processing unit 214 draws the image G2 to be displayed next of the cover layer L2 in the W buffer B2w of the layer (FIG. 32B).

次にステップS425において、メモリ制御部222が、カバーレイヤL2のRバッファB2rとWバッファB2wを入れ替える。即ち、それまでWバッファB2wとして用いられていた記憶領域Mbを新たなRバッファB2rに割り当て、それまでRバッファB2rとして用いられていた記憶領域Miを新たなWバッファB2wに割り当てる(図33(a))。入れ替えにより、不透明の設定がされていない、新たにRバッファB2rに割り当てられた記憶領域Mbに記憶されている画像が合成に用いられる透明合成状態に移行する。   Next, in step S425, the memory control unit 222 switches the R buffer B2r and the W buffer B2w of the cover layer L2. That is, the storage area Mb previously used as the W buffer B2w is allocated to the new R buffer B2r, and the storage area Mi previously used as the R buffer B2r is allocated to the new W buffer B2w (FIG. 33 (a )). By the replacement, an image stored in the storage area Mb newly assigned to the R buffer B2r, which is not set to be opaque, shifts to a transparent composition state used for composition.

また、ステップS421でDB構成にしたレイヤが存在する場合には、それらのレイヤのRバッファとWバッファをも入れ替える。
図32(b)で想定している例では、ステップS421でレイヤL1をDB構成にしている。そのため、ステップS425では、それまでWバッファB1wとして用いられていた記憶領域Mjが新たなRバッファB1rに割り当てられ、それまでRバッファB1rとして用いられていた記憶領域Maが新たなWバッファB1wに割り当てられる(図33(a))。
Further, if there are layers having the DB configuration in step S421, the R buffer and W buffer of those layers are also switched.
In the example assumed in FIG. 32B, the layer L1 has a DB configuration in step S421. Therefore, in step S425, the storage area Mj that has been used as the W buffer B1w is allocated to the new R buffer B1r, and the storage area Ma that has been used as the R buffer B1r is allocated to the new W buffer B1w. (FIG. 33A).

次に、ステップS426において、ステップS425でバッファが入れ替えられたレイヤをDB構成からSB構成に戻す(図33(b))。即ちWバッファB1w(Ma)、B2w(Mi)を予備バッファRa、Rbに変更し、RバッファB1r(Mj)、B2r(Mb)を、兼用バッファB1、B2に変更する。
ステップS426によりステップS403の処理が終わる。
Next, in step S426, the layer whose buffer has been replaced in step S425 is returned from the DB configuration to the SB configuration (FIG. 33B). That is, the W buffers B1w (Ma) and B2w (Mi) are changed to spare buffers Ra and Rb, and the R buffers B1r (Mj) and B2r (Mb) are changed to shared buffers B1 and B2.
The process of step S403 ends at step S426.

上記のように、画像情報が更新されたレイヤの数が予備バッファの数以下であれば(S402でNOであれば)、ステップS404の処理を行う。
例えば、図35(a)に△で示すように、レイヤL6、L7についてのみ画像情報が更新された場合には、ステップS402でNOとなる。
As described above, if the number of layers whose image information has been updated is equal to or less than the number of spare buffers (NO in S402), the process of step S404 is performed.
For example, as indicated by Δ in FIG. 35A, when the image information is updated only for the layers L6 and L7, NO is obtained in step S402.

以下ステップS404における処理を図34及び図35(a)〜図36(b))を参照して説明する。
ステップS431で、メモリ制御部222が、画像情報が更新されたレイヤL6、L7を全てDB構成にする(図35(b))。例えば、予備バッファRa、Rb(記憶領域Mi、Mj)をそれ以降WバッファB6w、B7wに割り当て、それまでの兼用バッファB6、B7をそれ以降RバッファB6r、B7rに割り当てる。
Hereinafter, the process in step S404 will be described with reference to FIGS. 34 and 35 (a) to 36 (b).
In step S431, the memory control unit 222 sets all the layers L6 and L7 whose image information has been updated to the DB configuration (FIG. 35B). For example, the spare buffers Ra and Rb (storage areas Mi and Mj) are allocated to the W buffers B6w and B7w thereafter, and the shared buffers B6 and B7 are allocated to the R buffers B6r and B7r thereafter.

次にステップS432で、描画処理部214が、レイヤL6、L7の次に表示すべき画像G6、G7を当該レイヤのWバッファB6w、B7wに描画する(図35(b))。   In step S432, the drawing processing unit 214 draws the images G6 and G7 to be displayed next to the layers L6 and L7 in the W buffers B6w and B7w of the layer (FIG. 35B).

次にステップS433において、メモリ制御部222が、ステップS432で描画が行われたレイヤL6、L7のRバッファB6r、B7rとWバッファB6w、B7wを入れ替える(図36(a))。
即ち、それまでのRバッファB6r(Mf)、B7r(Mg)をそれ以降WバッファB6w、B7wに割り当て、それまでのWバッファB6w(Mi)、B7w(Mj)を、それ以降RバッファB6r、B7rに割り当てる。
Next, in step S433, the memory control unit 222 replaces the R buffers B6r and B7r and the W buffers B6w and B7w of the layers L6 and L7 on which the drawing has been performed in step S432 (FIG. 36A).
That is, the previous R buffers B6r (Mf) and B7r (Mg) are assigned to the W buffers B6w and B7w thereafter, and the previous W buffers B6w (Mi) and B7w (Mj) are assigned to the R buffers B6r and B7r thereafter. Assign to.

次に、ステップS434で、メモリ制御部222が、ステップS433でバッファの入れ替えが行われたレイヤをSB構成に戻す(図36(b))。即ち、それまでのRバッファB6r(Mi)、B7r(Mj)をそれ以降兼用バッファB6、B7に割り当て、それまでのWバッファB6w(Mf)、B7w(Mg)をそれ以降予備バッファRa、Rbに割り当てる。   Next, in step S434, the memory control unit 222 returns the layer in which the buffer is replaced in step S433 to the SB configuration (FIG. 36B). That is, the previous R buffers B6r (Mi) and B7r (Mj) are allocated to the subsequent buffers B6 and B7, and the previous W buffers B6w (Mf) and B7w (Mg) are subsequently allocated to the spare buffers Ra and Rb. assign.

なお、上記の例では、ステップS433及びS434で、バッファの役割の変更を2段階で行っているが、1段階で行ってもよい。これは、図25のステップS425及びS426について述べたのと同様である。
ステップS434の処理で、ステップS404の処理が終わる。
In the above example, the role of the buffer is changed in two steps in steps S433 and S434, but may be performed in one step. This is the same as described for steps S425 and S426 in FIG.
The process of step S404 ends with the process of step S434.

[変形例4−1]
図24を参照して説明した例では、ステップS412でカバーレイヤよりも下位のレイヤの画像を描画したのち、ステップS413でカバーレイヤの画像を描画する。しかし、実施の形態2、3で述べたのと同様に、ステップS412で描画しようとしているレイヤの各々の画像に含まれるオブジェクトが、そのあとで描画される、より上位のレイヤのいずれかの画像に含まれるオブジェクトによって隠されるか否かを判定し、隠される場合はそのオブジェクトの描画(S412における描画)をスキップすることとしても良い。そうすることで処理をより高速にすることができる。
ここで言う、「そのあとで描画されるより上位のレイヤのいずれかの画像」には、ステップS413で描画されるカバーレイヤの画像のほか、同じステップS412内で、より後で描画されるレイヤ(カバーレイヤよりも下位のレイヤのうちのより上位のレイヤ)の画像が含まれる。
[Modification 4-1]
In the example described with reference to FIG. 24, after drawing an image of a layer lower than the cover layer in step S412, the image of the cover layer is drawn in step S413. However, as described in the second and third embodiments, an object included in each image of the layer to be rendered in step S412 is an image of any higher layer that is subsequently rendered. It is possible to determine whether or not the object is hidden by the object included in the object, and in the case of being hidden, the drawing of the object (drawing in S412) may be skipped. By doing so, processing can be made faster.
In this case, “any image of a higher layer drawn after that” includes an image of a cover layer drawn in step S413 and a layer drawn later in the same step S412. An image of (a higher layer of lower layers than the cover layer) is included.

[変形例4−2a]
図24を参照して説明した例では、ステップS412で、カバーレイヤよりも下位のレイヤの画像を全面書き換えることを想定している。
カバーレイヤよりも下位のレイヤのいずれかについて、画像情報により当該レイヤの画像の一部の領域のみの変更が必要とされる場合には、ステップS412でその変更領域のみをカバーレイヤのバッファ(例えばB5w)に描画し、ステップS423で変更領域のみを当該レイヤ(L6、L7)のバッファ(B6、B7)に描画することとしても良い。そうすることで、描画量を削減し、処理を一層高速にすることが可能である。
[Modification 4-2a]
In the example described with reference to FIG. 24, it is assumed that the image of the layer lower than the cover layer is completely rewritten in step S412.
If only a partial area of the image of the layer is required to be changed for any one of the layers below the cover layer according to the image information, only the changed area is stored in the cover layer buffer (for example, in step S412). B5w) and only the changed area may be drawn in the buffer (B6, B7) of the layer (L6, L7) in step S423. By doing so, it is possible to reduce the amount of drawing and speed up the processing.

[変形例4−2b]
また、図24のステップS412の処理において、描画オブジェクト毎に該オブジェクトが変更領域内に存在するか否かを判定し、存在しない場合は描画をスキップすることとしても良い。そうすることで処理をさらに高速にすることが可能である。
[Modification 4-2b]
Further, in the process of step S412 in FIG. 24, it is determined for each drawing object whether or not the object exists in the change area, and if it does not exist, the drawing may be skipped. By doing so, it is possible to further speed up the processing.

[変形例4−2c]
さらに、ステップS412、S423で、カバーレイヤよりも下位の、画像情報更新されたレイヤの画像の変更領域のみ描画する場合で、ステップS412からステップS423までの間に当該レイヤの画像情報が更に更新され、当該更なる更新後の画像情報により必要とされる変更領域がステップS412で描画した変更領域内に収まらない場合は、ステップS412で描画したのと同じ画像をステップS423で描画する。この場合、次に、ステップS401、S402における判定の結果に基づいて行われるステップS412〜S426の処理で上記の更なる更新後の画像情報により表される画像を描画することになる。
[Modification 4-2c]
Furthermore, in steps S412, S423, when only the image change area of the layer updated with the image information lower than the cover layer is drawn, the image information of the layer is further updated between step S412 and step S423. If the change area required by the further updated image information does not fit within the change area drawn in step S412, the same image drawn in step S412 is drawn in step S423. In this case, next, the image represented by the further updated image information is drawn in the processes of steps S412 to S426 performed based on the determination results in steps S401 and S402.

[変形例4−3]
また、ステップS412で、画像情報が更新されていない、カバーレイヤよりも下位のレイヤ(例えばL8)については、そのレイヤのバッファ(B8)に記憶されている画像と同じ画像をカバーレイヤL5のWバッファB5wに描画することになる。そこで、このようなカバーレイヤのWバッファB5wへの描画を行う代わりに、画像情報が更新されていないレイヤ(L8)のバッファ(B8)に記憶されている画像をカバーレイヤL5のバッファB5wに転送して、カバーレイヤL5のWバッファB5wに書き込むこととしても良い。上記の転送は、例えば、ビットブロック転送(Bitblt)で行うことができる。
当該カバーレイヤL5のバッファB5wに複数のレイヤの画像が書き込まれる場合には、この書き込みは、複数のレイヤの画像が下位側から順に行われ、かつ互いに重ね合わされるように行われる。このような順次書き込みにより、複数のレイヤの画像が合成される。
[Modification 4-3]
In step S412, for the layer lower than the cover layer (for example, L8) for which the image information has not been updated, the same image as the image stored in the buffer (B8) of the layer is used as the W of the cover layer L5. Drawing is performed in the buffer B5w. Therefore, instead of drawing the cover layer in the W buffer B5w, the image stored in the buffer (B8) of the layer (L8) whose image information is not updated is transferred to the buffer B5w of the cover layer L5. And it is good also as writing in W buffer B5w of cover layer L5. The above transfer can be performed by, for example, bit block transfer (Bitblt).
When images of a plurality of layers are written in the buffer B5w of the cover layer L5, the writing is performed so that the images of the plurality of layers are sequentially performed from the lower side and overlap each other. By sequentially writing in this way, images of a plurality of layers are synthesized.

[変形例4−4]
また、予備バッファが複数個存在する場合、ステップS412及びS418の処理の代わりに、以下のような処理を行うことで処理をさらに高速にすることが可能である。
まず、ステップS412の処理の代わりに、残っている予備バッファ(ステップS411における、カバーレイヤのWバッファへの割り当ての後に残っている予備バッファ)を、それぞれカバーレイヤより下位の、画像情報が更新されたレイヤのWバッファに割り当て、それとともにそれらのレイヤの兼用バッファをRバッファに変更する。
そして、Wバッファが割り当てられたレイヤの更新後の画像情報により表される画像をそれぞれ当該レイヤのWバッファに描画する。
そして、描画された画像を、ビットブロック転送等で、カバーレイヤのWバッファに転送する。
さらに予備バッファが割り当てられなかった、カバーレイヤより下位のレイヤがある場合には(S412dでYES)、それらのレイヤの次に表示すべき画像を、カバーレイヤのWバッファに直接描画する。
上記の転送又は直接描画により書き込まれる複数のレイヤの画像は下位側から順に書き込まれ、かつ互いに重ね合うように合成される。この場合にもより下位のレイヤの画像がより先に書き込まれる。
[Modification 4-4]
In addition, when there are a plurality of spare buffers, the processing can be further speeded up by performing the following processing instead of the processing in steps S412 and S418.
First, instead of the processing in step S412, the remaining spare buffer (the spare buffer remaining after allocation of the cover layer to the W buffer in step S411) is updated with the image information below the cover layer. Are assigned to the W buffers of the other layers, and at the same time, the shared buffers of those layers are changed to R buffers.
Then, each image represented by the updated image information of the layer to which the W buffer is assigned is rendered in the W buffer of the layer.
The rendered image is transferred to the W buffer of the cover layer by bit block transfer or the like.
If there is a lower layer than the cover layer to which no spare buffer has been assigned (YES in S412d), the image to be displayed next to those layers is directly drawn in the W buffer of the cover layer.
Images of a plurality of layers written by the above transfer or direct drawing are sequentially written from the lower side and are combined so as to overlap each other. In this case, the lower layer image is written earlier.

その後ステップS423の処理の代わりに以下のような処理を行う。即ち、ステップS412で予備バッファがWバッファに割り当てられたレイヤについて、RバッファとWバッファを入れ替える。
さらに入れ替え後にSB構成に戻す。即ち、入れ替え後のRバッファを兼用バッファに変更し、入れ替え後のWバッファを予備バッファにする。
こうすることで、ステップS412で予備バッファがWバッファに割り当てられたレイヤについては、更新後の画像情報で表される画像の描画の回数を1回に抑えることができる。
なお、予備バッファが割り当てられなかった、カバーレイヤより下位の、画像情報が更新されたレイヤがある場合には、それらのレイヤの次に表示すべき画像(更新後の画像情報で表される画像)を、当該レイヤの兼用バッファに描画する。
Thereafter, the following process is performed instead of the process of step S423. That is, the R buffer and the W buffer are switched for the layer in which the spare buffer is allocated to the W buffer in step S412.
Further, after replacement, the SB configuration is restored. That is, the replaced R buffer is changed to a shared buffer, and the replaced W buffer is set as a spare buffer.
By doing so, for the layer in which the spare buffer is assigned to the W buffer in step S412, the number of times of drawing the image represented by the updated image information can be reduced to one.
In addition, when there is a layer whose image information has been updated, which is lower than the cover layer, to which no spare buffer has been allocated, an image to be displayed next to those layers (an image represented by the updated image information ) Is drawn in the shared buffer of the layer.

以上実施の形態4では、レイヤの数が8であり、予備バッファの数が2である場合について説明したが、レイヤの数が8以外であっても、また予備バッファの数が2以外であっても、本発明を適用することができる。   In the fourth embodiment, the case where the number of layers is 8 and the number of spare buffers is 2 has been described. However, even if the number of layers is other than 8, the number of spare buffers is other than 2. However, the present invention can be applied.

一般的に言って、レイヤの数がN(Nは2以上の整数)であり、予備バッファの数がSである場合、即ち、画像合成表示装置(1d)が、第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示するものである場合の構成の特徴を要約すれば以下の如くとなる。なお、以下の記載で、括弧内の参照符号は、上記の図面を参照して説明した構成中の対応する構成要素、又は処理ステップを示す。   Generally speaking, when the number of layers is N (N is an integer equal to or larger than 2) and the number of spare buffers is S, that is, the image composition display device (1d) has the first to Nth layers. The following summarizes the characteristics of the configuration in which images are synthesized by superimposing (N is an integer of 3 or more) and a synthesized image is displayed. In the following description, reference numerals in parentheses indicate corresponding components or processing steps in the configuration described with reference to the above drawings.

(4a) 第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置される。
(4b) RAM14内の第1乃至第(N+S)の記憶領域(Sは1以上でNよりも小さい整数)が用いられる。
(4a) The image of the n-th layer (n is any one of 1 to (N-1)) is a higher layer than the image of the (n + 1) layer, and the image of the higher layer is In the superposition for the synthesis, they are arranged on the front side.
(4b) The first to (N + S) storage areas in the RAM 14 (S is an integer greater than or equal to 1 and smaller than N) are used.

(4c1) 第1乃至第(N+S個)の記憶領域のうちのN個の記憶領域は、通常は、それぞれ第1乃至第Nのレイヤのための兼用バッファに割り当てられ、
(4c2) 第1乃至第(N+S個)の記憶領域のうちのS個の記憶領域の各々は、通常は予備バッファとされ、必要に応じて、いずれかのレイヤのWバッファに割り当てられて、当該レイヤの、それまで兼用バッファとして用いられていた(兼用バッファに割り当てられていた)記憶領域をRバッファに割り当てることで、当該レイヤを2つの記憶領域が割り当てられたDBレイヤに切り替える。
(4c3) DBレイヤ以外のレイヤは単一の記憶領域が割り当てられたSBレイヤである。
(4c1) Of the first to (N + S) storage areas, N storage areas are normally allocated to the shared buffers for the first to Nth layers, respectively.
(4c2) Each of the S storage areas among the first to (N + S) storage areas is normally a spare buffer, and is allocated to a W buffer of any layer as necessary. By allocating the storage area of the layer that has been used as a shared buffer so far (allocated to the shared buffer) to the R buffer, the layer is switched to the DB layer to which the two storage areas are allocated.
(4c3) The layers other than the DB layer are SB layers to which a single storage area is allocated.

(4d1) 少なくとも一つのDBレイヤの各々については、描画処理部(214)が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤのWバッファに描画を行い、少なくとも一つのSBレイヤの各々については、描画処理部(214)が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの兼用バッファに描画を行う。
(4d2) 読み出し部(224)が、SBレイヤのRバッファ、及びDBレイヤの兼用バッファから画像を読み出し、
(4d3) 画像合成部(230)が、読み出された画像を合成する。
(4d1) For each of at least one DB layer, the rendering processing unit (214) performs rendering in the W buffer of the layer based on the image information of the layer supplied from the outside, and at least one SB For each of the layers, the drawing processing unit (214) performs drawing in the shared buffer of the layer based on the image information of the layer supplied from the outside.
(4d2) The reading unit (224) reads an image from the R buffer of the SB layer and the shared buffer of the DB layer,
(4d3) The image composition unit (230) synthesizes the read images.

(4e) 第1乃至第NのレイヤのうちのSよりも大きい数のレイヤについて画像情報が更新されたら(S402)、
(4e1) 描画管理部(212)が、画像情報が更新されたレイヤのうちの最も上位のレイヤをカバーレイヤとして指定し(S411)、
(4e2) メモリ制御部(222)が、予備バッファとして用いられていた(予備バッファに割り当てられていた)記憶領域のいずれか(Ma)を、当該カバーレイヤのWバッファに割り当て、当該カバーレイヤの、それまで兼用バッファとして用いられていた記憶領域をRバッファに割り当て(S411)、
(4e3) 描画処理部(214)が、当該カバーレイヤの、Wバッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し(S412,S413)、描画した領域に不透明の設定を行う(S414)。
(4e) When the image information is updated for a larger number of layers than S among the first to Nth layers (S402),
(4e1) The drawing management unit (212) designates the highest layer among the layers whose image information has been updated as a cover layer (S411),
(4e2) The memory control unit (222) allocates one of the storage areas (Ma) used as a spare buffer (assigned to the spare buffer) to the W buffer of the cover layer, The storage area previously used as a shared buffer is allocated to the R buffer (S411),
(4e3) The drawing processing unit (214) draws the image to be displayed next to the cover layer and the layer lower than the cover layer in the W buffer of the cover layer in order from the lowest layer. Then (S412 and S413), the rendered area is set to be opaque (S414).

(4f) 上記の描画及び不透明の設定が完了したら、メモリ制御部(222)が、カバーレイヤにおいてそれまでWバッファとして用いられていた(Wバッファに割り当てられていた)記憶領域を新たなRバッファに割り当て、それまでRバッファとして用いられていた(Rバッファに割り当てられていた)記憶領域を新たなWバッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行する(S415)。 (4f) When the above drawing and opacity settings are completed, the memory control unit (222) uses the storage area previously used as the W buffer in the cover layer (assigned to the W buffer) as a new R buffer. The storage area that was previously used as the R buffer (assigned to the R buffer) is assigned to a new W buffer, so that the image stored in the storage area where the opaque setting has been made The process proceeds to the opaque composition state used for image composition (S415).

(4g) そして、上記の不透明合成状態で、描画処理部(214)が、カバーレイヤよりも下位の、画像情報が更新されたレイヤの各々の画像を、当該レイヤの兼用バッファに描画し(S423)、カバーレイヤの次に表示すべき画像を、当該カバーレイヤのWバッファに描画する(S424)。
(4h) そして、上記の不透明合成状態における描画が完了したら、メモリ制御部(222)が、カバーレイヤにおいてそれまでWバッファとして用いられていた記憶領域を当該カバーレイヤの新たな兼用バッファに割り当て、当該カバーレイヤにおいてそれまでRバッファとして用いられていた記憶領域を新たな予備バッファ(Ra)に割り当て、これによりカバーレイヤの、新たな兼用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する(S425)。
(4g) Then, in the above-described opaque composition state, the drawing processing unit (214) draws each image of the layer whose image information is updated, which is lower than the cover layer, in the shared buffer of the layer (S423). ) The image to be displayed next to the cover layer is drawn in the W buffer of the cover layer (S424).
(4h) When the drawing in the opaque composite state is completed, the memory control unit (222) allocates the storage area that has been used as a W buffer in the cover layer to the new combined buffer of the cover layer, The storage area previously used as the R buffer in the cover layer is allocated to a new spare buffer (Ra), whereby the image stored in the new shared buffer of the cover layer is used for image composition. The state is shifted to (S425).

上記のカバーレイヤ、及びカバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理(S412)において、描画処理部(214)は、カバーレイヤについては、更新後の画像情報により表される画像を、次に表示すべき画像として描画し、カバーレイヤよりも下位のレイヤのうちの画像情報が更新されたレイヤの各々については、該更新後の画像情報により表される画像を、次に表示すべき画像として描画し、カバーレイヤよりも下位のレイヤのうちの画像情報が更新されていないレイヤの各々については、当該レイヤの兼用バッファに記憶されている画像と同じ画像を、次に表示すべき画像として描画することとしても良い。   In the process (S412) of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer (S412), the drawing processing unit (214) The image represented by the updated image information is rendered as an image to be displayed next, and for each of the layers in which the image information of the layers lower than the cover layer is updated, the updated image information Is drawn as an image to be displayed next, and each of the layers whose image information is not updated among layers below the cover layer is stored in the shared buffer of the layer. The same image as the image may be drawn as an image to be displayed next.

上記のカバーレイヤ、及びカバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理(S412)において、描画処理部(214)は、カバーレイヤよりも下位のレイヤの各々の、次に表示すべき画像のうち、それより後で描画されるより上位の画像により隠れることになる画像部分については描画を省略することとしても良い。   In the process (S412) of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer (S412), the drawing processing unit (214) is lower than the cover layer. Of the images to be displayed next in each of the layers, drawing may be omitted for an image portion that will be hidden by a higher-order image drawn later.

画像情報が更新されたレイヤの数がS以下であるときは、画像情報が更新されたレイヤのすべてに対して、予備バッファを割り当てることで、当該レイヤをすべてダブルバッファ構成として、画像の書き換えを行うこととしても良い。   When the number of layers for which image information has been updated is S or less, by assigning spare buffers to all the layers for which image information has been updated, all the layers are configured as a double buffer so that the image can be rewritten. It is good to do.

[実施の形態4による効果]
本実施の形態によれば、DBレイヤが動的に変更される構成においても、実施の形態1で述べたのと同様の効果が得られる。
[Effects of Embodiment 4]
According to the present embodiment, the same effect as described in the first embodiment can be obtained even in a configuration in which the DB layer is dynamically changed.

なお、上記の各実施の形態において、描画管理部212、メモリ制御部222及び読み出し部224が、CPU11がプログラムを実行することで実現され、描画処理部214及び画像合成部230が、GPU12がプログラムを実行することで実現されること、即ち描画管理部212、描画処理部214、メモリ制御部222、読み出し部224及び画像合成部230がソフトウェアで構成されることを説明した。しかしながら、これらは、ハードウェアで構成されていても良く、ハードウェアとソフトウェアの組み合わせで構成されていても良い。   In each of the above embodiments, the drawing management unit 212, the memory control unit 222, and the reading unit 224 are realized by the CPU 11 executing a program, and the drawing processing unit 214 and the image composition unit 230 are programmed by the GPU 12. In other words, it has been described that the rendering management unit 212, the rendering processing unit 214, the memory control unit 222, the reading unit 224, and the image composition unit 230 are configured by software. However, these may be configured by hardware or may be configured by a combination of hardware and software.

以上本発明を画像合成表示装置として説明したが、上記の画像合成表示装置で実施される画像合成表示方法もまた本発明の一部をなす。本発明の画像合成表示方法もソフトウェアで、即ちプログラムされたコンピュータで実現することができる。従って、コンピュータに本発明の画像合成表示装置又は画像合成表示方法の各処理を実行させるプログラム、及びそのようなプログラムを記録した、コンピュータ読み取り可能な記録媒体もまた本発明の一部をなす。   Although the present invention has been described above as an image composition display device, the image composition display method implemented by the image composition display device also forms part of the present invention. The image composition display method of the present invention can also be realized by software, that is, by a programmed computer. Therefore, a program for causing a computer to execute each process of the image composition display apparatus or image composition display method of the present invention, and a computer-readable recording medium on which such a program is recorded also form a part of the present invention.

11 CPU11、 12 GPU、 13 不揮発性メモリ、 14 RAM、 15 入力装置、 16 出力装置、 17 システムバス、 210 画像生成部、 212 描画管理部、 214 描画処理部、 222 メモリ制御部、 224 読み出し部、 230 画像合成部、 Ma〜Ml 記憶領域。   11 CPU 11, 12 GPU, 13 Non-volatile memory, 14 RAM, 15 Input device, 16 Output device, 17 System bus, 210 Image generation unit, 212 Drawing management unit, 214 Drawing processing unit, 222 Memory control unit, 224 Reading unit, 230 Image composition unit, Ma to Ml storage area.

ステップS103又はS104の処理が終わると、ステップS105の判定を行う。
ステップS105では、描画管理部212が、システム終了条件を満たしているかを判断し、満たしている場合は動作を終了する。満たしていない場合はステップS101に戻り動作を繰り返す。
例えば、画像合成表示装置の電源がオフとなっていれば、「システム終了条件が満たされているものと判断される。
When the process of step S103 or S104 ends, the determination of step S105 is performed.
In step S105, the drawing management unit 212 determines whether or not the system termination condition is satisfied. If not, the process returns to step S101 and repeats the operation.
For example, if the power of the image composition display device is off, it is determined that “the system termination condition is satisfied .

[変形例3−6]
また、図16のステップS316、S317において、ステップS311で指定されたカバーレイヤ(L5)よりも上位のDBレイヤ(L1、L3)のうち、画像情報が更新されたレイヤについてのみ、当該レイヤの画像のバッファへの描画(S316)及びバッファの入れ替え(S317)を行っている。しかし、画像情報が更新されていない、カバーレイヤよりも上位のDBレイヤについても、当該レイヤの画像のバッファへの描画(S316)及びバッファの入れ替え(S317)を行うこととしても良い。
同様に、ステップS320、S321において、DBレイヤ(L1、L3、L5、L8)のうちの画像情報が更新されたレイヤについてのみ、バッファへの描画(S320)及びバッファの入れ替え(S321)を行っているが、画像情報が更新されていないDBレイヤについても、当該レイヤの画像のバッファへの描画(S320)及びバッファの入れ替え(S321)を行うこととしても良い。
[Modification 3-6]
Also, in steps S316 and S317 of FIG. 16, only the layer whose image information has been updated among the upper DB layers (L1 and L3) than the cover layer (L5) specified in step S311 is the image of that layer. Are drawn in the buffer (S316) and the buffer is replaced (S317). However, for the DB layer higher than the cover layer in which the image information has not been updated, the image of the layer in the buffer (S316) and the buffer replacement (S317) may be performed.
Similarly, in steps S320 and S321, drawing (S320) in the buffer and buffer replacement (S321) are performed only for the layer in which the image information of the DB layers (L1, L3, L5, and L8 ) is updated. However, even for a DB layer whose image information has not been updated, drawing of the image of the layer in the buffer (S320) and replacement of the buffer (S321) may be performed.

以下ステップS404における処理を図34及び図35(a)〜図36(b)を参照して説明する。
ステップS431で、メモリ制御部222が、画像情報が更新されたレイヤL6、L7を全てDB構成にする(図35(b))。例えば、予備バッファRa、Rb(記憶領域Mi、Mj)をそれ以降WバッファB6w、B7wに割り当て、それまでの兼用バッファB6、B7をそれ以降RバッファB6r、B7rに割り当てる。
Hereinafter, the process in step S404 will be described with reference to FIGS. 34 and 35A to 36B.
In step S431, the memory control unit 222 sets all the layers L6 and L7 whose image information has been updated to the DB configuration (FIG. 35B). For example, the spare buffers Ra and Rb (storage areas Mi and Mj) are allocated to the W buffers B6w and B7w thereafter, and the shared buffers B6 and B7 are allocated to the R buffers B6r and B7r thereafter.

Claims (16)

第1乃至第Nのレイヤ(Nは2以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示装置において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1〜第(N+1)の記憶領域と、描画処理部と、メモリ制御部と、読み出し部と、画像合成部とを有し、
前記第1及び第(N+1)の記憶領域は、前記第1のレイヤに割り当てられ、前記第1のレイヤを、2つの記憶領域が割り当てられたダブルバッファ構成のレイヤとし、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
前記第2乃至第Nの記憶領域は、それぞれ第2乃至第Nのレイヤに割り当てられ、前記第2乃至第Nのレイヤを、単一の記憶領域が割り当てられたシングルバッファ構成のレイヤとし、前記シングルバッファ構成のレイヤの各々においては、割り当てられた単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
前記描画処理部が、外部から供給される、各レイヤの画像情報に基づいて、前記第1のレイヤの書き込み用バッファ、及び前記第2乃至第Nのレイヤの表示及び書き込み兼用バッファに描画を行い、
前記読み出し部が、前記第1のレイヤの表示用バッファ、及び前記第2乃至第Nのレイヤの表示及び書き込み兼用バッファから画像を読み出し、
前記画像合成部が、読み出された画像を合成し、
前記第2乃至第Nのレイヤの少なくとも一つについて当該レイヤの画像情報が更新されたら、前記描画処理部が、前記第1のレイヤの、書き込み用バッファに、前記第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記メモリ制御部が、前記第1のレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、前記描画処理部が、
前記第2乃至第Nのレイヤのうちの、画像情報が更新された少なくとも一つのレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記第1のレイヤの次に表示すべき画像を、前記第1のレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記メモリ制御部が、前記第1のレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより前記第1のレイヤの、新たな表示用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする画像合成表示装置。
In an image composition display device for compositing by superimposing images of first to Nth layers (N is an integer of 2 or more) and displaying a composite image,
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
A first to (N + 1) th storage area, a drawing processing unit, a memory control unit, a reading unit, and an image composition unit;
The first and (N + 1) storage areas are allocated to the first layer, the first layer is a double buffer configuration layer to which two storage areas are allocated, and the double buffer configuration layer , One of the two storage areas is assigned to the display buffer, the other is assigned to the write buffer,
The second to Nth storage areas are assigned to second to Nth layers, respectively, and the second to Nth layers are single buffer configuration layers to which a single storage area is assigned, and In each of the layers of the single buffer configuration, the allocated single storage area is allocated to the display and writing combined buffer,
The drawing processing unit performs drawing on the first layer writing buffer and the second to Nth layer display and writing combined buffers based on image information of each layer supplied from the outside. ,
The reading unit reads an image from the display buffer for the first layer and the display and write buffer for the second to Nth layers;
The image composition unit composes the read image,
When the image information of at least one of the second to Nth layers is updated, the drawing processing unit stores the first to Nth layers in the writing buffer of the first layer. , Draw the next image to be displayed in order from the lowest layer, set the rendered area to opaque,
When the drawing and the opacity setting are completed, the memory control unit allocates a storage area that has been used as a writing buffer in the first layer to a new display buffer and uses the storage area as a display buffer until then. Allocate the storage area that was used to a new writing buffer, so that the image stored in the storage area where the opaque setting has been made transitions to the opaque composition state used for image composition,
In the opaque composition state, the drawing processing unit is
Drawing each image of at least one layer of the second to Nth layers, in which image information is updated, in a display / write buffer for the layer;
Drawing an image to be displayed next to the first layer in the writing buffer of the first layer;
When the drawing in the opaque composition state is completed, the memory control unit allocates a storage area that has been used as a writing buffer in the first layer to a new display buffer, and uses it as a display buffer until then. The storage area used is allocated to a new writing buffer, whereby the image stored in the new display buffer of the first layer is shifted to a transparent composition state used for image composition. An image composition display device.
前記第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理において、前記描画処理部は、
前記第1のレイヤの画像情報が更新されている場合には、該更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、
前記第1のレイヤの画像情報が更新されていない場合には、前記第1のレイヤの表示用バッファに記憶されている画像と同じ画像を、前記次に表示すべき画像として描画し、
前記第2乃至第Nのレイヤのうちの画像情報が更新されたレイヤの各々については、該更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、
前記第2乃至第Nのレイヤのうちの画像情報が更新されていないレイヤの各々については、当該レイヤの表示及び書き込み兼用バッファに記憶されている画像と同じ画像を、前記次に表示すべき画像として描画する
ことを特徴とする請求項1に記載の画像合成表示装置。
In the process of drawing the first to Nth layers by overlapping the images to be displayed next in order from the lowest layer, the drawing processing unit includes:
When the image information of the first layer is updated, the image represented by the updated image information is drawn as the image to be displayed next,
When the image information of the first layer is not updated, the same image as the image stored in the display buffer of the first layer is drawn as the image to be displayed next,
For each of the layers in which the image information of the second to Nth layers is updated, the image represented by the updated image information is drawn as the image to be displayed next,
For each of the layers of the second to Nth layers in which the image information is not updated, the same image as the image stored in the display / write buffer of the layer is to be displayed next. The image composition display device according to claim 1, wherein:
前記第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理において、前記描画処理部は、
前記第2乃至第Nのレイヤの各々の、前記次に表示すべき画像のうち、それより後で描画されるより上位の画像により隠れることになる画像部分については描画を省略する
ことを特徴とする請求項1又は2に記載の画像合成表示装置。
In the process of drawing the first to Nth layers by overlapping the images to be displayed next in order from the lowest layer, the drawing processing unit includes:
Of the images to be displayed next in each of the second to Nth layers, drawing is omitted for an image portion that will be hidden by a higher-order image drawn after that. The image composition display device according to claim 1.
Nが2であることを特徴とする請求項1から3のいずれか1項に記載の画像合成表示装置。   4. The image composition display device according to claim 1, wherein N is 2. 5. 第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示装置において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1乃至第(N+M)の記憶領域(Mは1より大きくNより小さい整数)と、描画管理部と、描画処理部と、メモリ制御部と、読み出し部と、画像合成部とを有し、
前記第1乃至第Nの記憶領域は、それぞれ前記第1乃至第Nのレイヤに割り当てられ、
前記第(N+1)乃至第(N+M)の記録領域は、前記第1乃至第NのレイヤのうちのM個のレイヤに割り当てられて、前記M個のレイヤを2つの記憶領域が割り当てられたダブルバッファ構成のレイヤとし、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
前記第1乃至第Nのレイヤのうちの前記M個のレイヤ以外の、(N−M)個のレイヤは、単一の記憶領域が割り当てられたシングルバッファ構成のレイヤであり、前記シングルバッファ構成のレイヤにおいては、単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
前記M個のレイヤには、前記第1のレイヤが含まれ、
前記M個のダブルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの書き込み用バッファに描画を行い、
前記(N−M)個のシングルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの表示及び書き込み兼用バッファに描画を行い、
前記読み出し部が、前記M個のレイヤの表示用バッファ、及び前記(N−M)個のレイヤの表示及び書き込み兼用バッファから画像を読み出し、
前記画像合成部が、読み出された画像を合成し、
前記第1乃至第Nのレイヤのうちの、少なくとも一つシングルバッファ構成のレイヤについて画像情報が更新されたら、
前記描画管理部が、前記画像情報が更新された前記少なくとも一つの、シングルバッファ構成のレイヤのいずれよりも上位の、ダブルバッファ構成のレイヤをカバーレイヤとして指定し、
前記描画処理部が、該カバーレイヤの、書き込み用バッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記メモリ制御部が、前記カバーレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、前記描画処理部が、
前記画像情報が更新された前記少なくとも一つのシングルバッファ構成のレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記カバーレイヤの次に表示すべき画像を、前記カバーレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記メモリ制御部が、前記カバーレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファに当てられていた記憶領域を新たな書き込み用バッファに割り当て、これにより前記カバーレイヤの、新たな表示用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする画像合成表示装置。
In an image composition display device that combines images by superimposing images of first to Nth layers (N is an integer of 3 or more) and displays a composite image.
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
First to (N + M) storage areas (M is an integer greater than 1 and less than N), a drawing management unit, a drawing processing unit, a memory control unit, a reading unit, and an image composition unit;
The first to Nth storage areas are allocated to the first to Nth layers, respectively.
The (N + 1) th to (N + M) recording areas are assigned to M layers of the first to Nth layers, and the M layers are assigned with two storage areas. As a buffer configuration layer, in the double buffer configuration layer, one of the two storage areas is allocated to the display buffer, the other is allocated to the write buffer,
Of the first to Nth layers, (N−M) layers other than the M layers are layers of a single buffer configuration to which a single storage area is allocated, and the single buffer configuration In this layer, a single storage area is allocated to the display / write buffer,
The M layers include the first layer,
For each of the M double buffer layers, the drawing processing unit performs drawing in the writing buffer of the layer based on image information of the layer supplied from the outside,
For each of the (N−M) single buffer configuration layers, the rendering processing unit performs rendering in the display / write buffer for the layer based on image information of the layer supplied from the outside. Done
The reading unit reads an image from the M layer display buffer and the (NM) layer display and write buffer,
The image composition unit composes the read image,
When the image information is updated for at least one single buffer configuration layer among the first to Nth layers,
The drawing management unit designates, as a cover layer, a layer of a double buffer configuration that is higher than any of the at least one single buffer configuration layer in which the image information is updated,
The drawing processing unit draws and draws the image to be displayed next to the cover layer and the layer lower than the cover layer on the writing buffer of the cover layer in order from the lowest layer. Make the area opaque,
When the drawing and the opacity setting are completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display buffer and is used as a display buffer until then. The storage area that has been allocated is assigned to a new writing buffer, whereby the image stored in the storage area in which the opaque setting has been made shifts to an opaque composition state used for image composition,
In the opaque composition state, the drawing processing unit is
Drawing each image of the layer of the at least one single buffer configuration in which the image information has been updated, in the display and writing combined buffer of the layer;
Draw an image to be displayed next to the cover layer in the writing buffer of the cover layer,
When the drawing in the opaque composite state is completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display buffer, and is allocated to the display buffer until then. The image storage method is characterized in that the storage area that has been allocated is assigned to a new writing buffer, whereby the image stored in the new display buffer of the cover layer is shifted to a transparent composition state used for image composition. Display device.
前記カバーレイヤ、及び前記カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理において、前記描画処理部は、
前記カバーレイヤの画像情報が更新されている場合には、前記カバーレイヤの更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、
前記カバーレイヤの画像情報が更新されていない場合には、前記カバーレイヤの表示用バッファに記憶されている画像と同じ画像を、前記次に表示すべき画像として描画し、
前記カバーレイヤよりも下位のレイヤのうちの画像情報が更新されたレイヤの各々については、該更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、
前記カバーレイヤよりも下位のレイヤのうちの画像情報が更新されていないレイヤの各々については、当該レイヤの表示用バッファ又は表示及び書き込み兼用バッファに記憶されている画像と同じ画像を、前記次に表示すべき画像として描画する
ことを特徴とする請求項5に記載の画像合成表示装置。
In the process of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer, the drawing processing unit includes:
When the image information of the cover layer is updated, the image represented by the image information after the update of the cover layer is drawn as the image to be displayed next,
When the image information of the cover layer has not been updated, the same image as the image stored in the display buffer of the cover layer is drawn as the image to be displayed next,
For each of the layers in which the image information of the layers below the cover layer is updated, the image represented by the updated image information is drawn as the image to be displayed next,
For each of the layers whose image information is not updated among layers below the cover layer, the same image as the image stored in the display buffer of the layer or the display / write buffer is used next. The image composition display device according to claim 5, wherein the image is displayed as an image to be displayed.
前記カバーレイヤ、及び前記カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理において、前記描画処理部は、
前記カバーレイヤよりも下位のレイヤの各々の、前記次に表示すべき画像のうち、それより後で描画されるより上位の画像により隠れることになる画像部分については描画を省略する
ことを特徴とする請求項5又は6に記載の画像合成表示装置。
In the process of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer, the drawing processing unit includes:
Of the images to be displayed next in each of the layers below the cover layer, drawing is omitted for an image portion that will be hidden by a higher image drawn after that. The image composition display device according to claim 5 or 6.
第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示装置において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1乃至第(N+S)の記憶領域(Sは1以上でNよりも小さい整数)と、描画管理部と、描画処理部と、メモリ制御部と、読み出し部と、画像合成部とを有し、
前記第1乃至第(N+S個)の記憶領域のうちのN個の記憶領域は、通常は、それぞれ前記第1乃至第Nのレイヤのための表示及び書き込み兼用バッファに割り当てられ、
前記第1乃至第(N+S個)の記憶領域のうちのS個の記憶領域の各々は、通常は予備バッファとされ、必要に応じて、いずれかのレイヤの書き込み用バッファに割り当てられて、当該レイヤの、それまで表示及び書き込み兼用バッファとして用いられていた記憶領域を表示用バッファに割り当てることで、当該レイヤを2つの記憶領域が割り当てられたダブルバッファ構成のレイヤに切り替え、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
ダブルバッファ構成のレイヤ以外のレイヤは単一の記憶領域が割り当てられたシングルバッファ構成のレイヤであり、前記シングルバッファ構成のレイヤにおいては、単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
少なくとも一つのダブルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの書き込み用バッファに描画を行い、
少なくとも一つのシングルバッファ構成のレイヤの各々については、前記描画処理部が、外部から供給される、当該レイヤの画像情報に基づいて、当該レイヤの表示及び書き込み兼用バッファに描画を行い、
前記読み出し部が、前記シングルバッファ構成のレイヤの表示用バッファ、及び前記ダブルバッファ構成のレイヤの表示及び書き込み兼用バッファから画像を読み出し、
前記画像合成部が、読み出された画像を合成し、
前記第1乃至第NのレイヤのうちのSよりも大きい数のレイヤについて画像情報が更新されたら、
前記描画管理部が、画像情報が更新されたレイヤのうちの最も上位のレイヤをカバーレイヤとして指定し、
前記メモリ制御部が、それまで前記予備バッファとして用いられていた記憶領域のいずれかを、当該カバーレイヤの書き込み用バッファに割り当て、当該カバーレイヤの、それまで表示及び書き込み兼用バッファとして用いられていた記憶領域を、表示用バッファに割り当て、
前記描画処理部が、当該カバーレイヤの、書き込み用バッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記メモリ制御部が、前記カバーレイヤにおいてそれまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、前記描画処理部が、
前記カバーレイヤよりも下位の、前記画像情報が更新されたレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記カバーレイヤの次に表示すべき画像を、当該カバーレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記メモリ制御部が、前記カバーレイヤにおいてそれまで書き込み用バッファとして用いられていた記憶領域を当該カバーレイヤの新たな表示及び書き込み兼用バッファに割り当て、当該カバーレイヤにおいてそれまで表示用バッファとして用いられていた記憶領域を新たな予備バッファに割り当て、これにより前記カバーレイヤの、新たな表示及び書き込み兼用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする画像合成表示装置。
In an image composition display device that combines images by superimposing images of first to Nth layers (N is an integer of 3 or more) and displays a composite image.
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
First to (N + S) storage areas (S is an integer greater than or equal to 1 and smaller than N), a drawing management unit, a drawing processing unit, a memory control unit, a reading unit, and an image composition unit ,
Of the first to (N + S) storage areas, N storage areas are normally allocated to the display and write combined buffers for the first to Nth layers, respectively.
Each of the S storage areas of the first to (N + S) storage areas is normally a spare buffer, and is allocated to a write buffer in any layer as necessary. By allocating a storage area of a layer that has been used as a display / write buffer to the display buffer, the layer is switched to a double buffer configuration layer to which two storage areas are allocated. In the layer, one of the two storage areas is assigned to the display buffer, the other is assigned to the write buffer,
Layers other than the double buffer configuration layer are single buffer configuration layers to which a single storage area is allocated, and in the single buffer configuration layer, a single storage area is allocated to the display and write combined buffer,
For each layer of at least one double buffer configuration, the drawing processing unit performs drawing in the writing buffer of the layer based on the image information of the layer supplied from the outside,
For each layer of at least one single buffer configuration, the rendering processing unit performs rendering in the display and writing combined buffer of the layer based on image information of the layer supplied from the outside,
The reading unit reads an image from the single buffer configuration layer display buffer and the double buffer configuration layer display and writing combined buffer,
The image composition unit composes the read image,
When the image information is updated for a number of layers larger than S among the first to Nth layers,
The drawing management unit designates the highest layer among the layers whose image information has been updated as a cover layer,
The memory control unit allocates one of the storage areas previously used as the reserve buffer to the writing buffer for the cover layer, and has been used as a display and writing combined buffer until then for the cover layer. Allocate storage area to display buffer,
The drawing processing unit draws and draws the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer in the writing buffer of the cover layer. Make the area opaque,
When the drawing and the opacity setting are completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display buffer and is used as a display buffer until then. The storage area is assigned to a new writing buffer, so that the image stored in the storage area where the opaque setting has been made shifts to the opaque composition state used for image composition,
In the opaque composition state, the drawing processing unit is
Drawing each image of the layer whose image information is updated lower than the cover layer in the display and writing combined buffer of the layer,
Draw the image to be displayed next to the cover layer in the writing buffer of the cover layer,
When the drawing in the opaque composite state is completed, the memory control unit allocates a storage area that has been used as a writing buffer in the cover layer to a new display / writing buffer of the cover layer, and the cover layer In this case, the storage area previously used as the display buffer is assigned to a new spare buffer so that the image stored in the new display / writing buffer of the cover layer is used for image composition. An image composition display device characterized by being transferred to.
前記カバーレイヤ、及び前記カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理において、前記描画処理部は、
前記カバーレイヤについては、更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、
前記カバーレイヤよりも下位のレイヤのうちの画像情報が更新されたレイヤの各々については、該更新後の画像情報により表される画像を、前記次に表示すべき画像として描画し、
前記カバーレイヤよりも下位のレイヤのうちの画像情報が更新されていないレイヤの各々については、当該レイヤの表示及び書き込み兼用バッファに記憶されている画像と同じ画像を、前記次に表示すべき画像として描画する
ことを特徴とする請求項8に記載の画像合成表示装置。
In the process of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer, the drawing processing unit includes:
For the cover layer, draw the image represented by the updated image information as the image to be displayed next,
For each of the layers in which the image information of the layers below the cover layer is updated, the image represented by the updated image information is drawn as the image to be displayed next,
For each layer whose image information is not updated among layers below the cover layer, the same image as the image stored in the display / write buffer of the layer is to be displayed next. The image composition display device according to claim 8, wherein the image composition display device is drawn as
前記カバーレイヤ、及び前記カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画する処理において、前記描画処理部は、
前記カバーレイヤよりも下位のレイヤの各々の、前記次に表示すべき画像のうち、それより後で描画されるより上位の画像により隠れることになる画像部分については描画を省略する
ことを特徴とする請求項8又は9に記載の画像合成表示装置。
In the process of drawing the image to be displayed next to the cover layer and the layer lower than the cover layer in order from the lowest layer, the drawing processing unit includes:
Of the images to be displayed next in each of the layers below the cover layer, drawing is omitted for an image portion that will be hidden by a higher image drawn after that. The image composition display device according to claim 8 or 9.
前記画像情報が更新されたレイヤの数がS以下であるときは、
前記画像情報が更新されたレイヤのすべてに対して、前記予備バッファを割り当てることで、当該レイヤをすべてダブルバッファ構成に切り替えて、画像の書き換えを行う
ことを特徴とする請求項8から10のいずれか1項に記載の画像合成表示装置。
When the number of layers in which the image information is updated is S or less,
The rewriting of an image is performed by allocating the spare buffer to all the layers in which the image information has been updated, thereby switching all the layers to a double buffer configuration. The image composition display device according to claim 1.
第1乃至第Nのレイヤ(Nは2以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示方法において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1〜第(N+1)の記憶領域を用い、
前記第1及び第(N+1)の記憶領域は、前記第1のレイヤに割り当てられ、前記第1のレイヤを、2つの記憶領域が割り当てられたダブルバッファ構成のレイヤとし、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
前記第2乃至第Nの記憶領域は、それぞれ第2乃至第Nのレイヤに割り当てられ、前記第2乃至第Nのレイヤを、単一の記憶領域が割り当てられたシングルバッファ構成のレイヤとし、前記シングルバッファ構成のレイヤの各々においては、割り当てられた単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
各レイヤの画像情報に基づいて、前記第1のレイヤの書き込み用バッファ、及び前記第2乃至第Nのレイヤの表示及び書き込み兼用バッファに描画を行い、
前記第1のレイヤの表示用バッファ、及び前記第2乃至第Nのレイヤの表示及び書き込み兼用バッファから画像を読み出し、
読み出された画像を合成し、
前記第2乃至第Nのレイヤの少なくとも一つについて当該レイヤの画像情報が更新されたら、前記第1のレイヤの、書き込み用バッファに、前記第1乃至第Nのレイヤの、次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記第1のレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、
前記第2乃至第Nのレイヤのうちの、画像情報が更新された少なくとも一つのレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記第1のレイヤの次に表示すべき画像を、前記第1のレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記第1のレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより前記第1のレイヤの、新たな表示用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする画像合成表示方法。
In an image composition display method of combining images by superimposing images of first to Nth layers (N is an integer of 2 or more) and displaying a composite image,
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
Using the first to (N + 1) th storage areas,
The first and (N + 1) storage areas are allocated to the first layer, the first layer is a double buffer configuration layer to which two storage areas are allocated, and the double buffer configuration layer , One of the two storage areas is assigned to the display buffer, the other is assigned to the write buffer,
The second to Nth storage areas are assigned to second to Nth layers, respectively, and the second to Nth layers are single buffer configuration layers to which a single storage area is assigned, and In each of the layers of the single buffer configuration, the allocated single storage area is allocated to the display and writing combined buffer,
Based on the image information of each layer, drawing is performed in the writing buffer of the first layer and the display and writing combined buffer of the second to Nth layers,
Read images from the first layer display buffer and the second through Nth layer display and write buffers,
Synthesize the read image,
When the image information of at least one of the second to Nth layers is updated, it should be displayed next to the first to Nth layers in the writing buffer of the first layer. Draw images in order from the lowest layer, set the rendered area to be opaque,
When the drawing and the opacity setting are completed, in the first layer, a storage area that has been used as a writing buffer until then is allocated to a new display buffer, and a storage area that has been used as a display buffer until then. Is assigned to a new writing buffer, whereby the image stored in the storage area where the opaque setting has been made shifts to the opaque composition state used for image composition,
In the opaque composite state,
Drawing each image of at least one layer of the second to Nth layers, in which image information is updated, in a display / write buffer for the layer;
Drawing an image to be displayed next to the first layer in the writing buffer of the first layer;
When the drawing in the opaque composition state is completed, the storage area that has been used as a writing buffer in the first layer is allocated to a new display buffer, and the storage area that has been used as a display buffer until then. Is transferred to a new writing buffer, whereby the image stored in the new display buffer of the first layer is shifted to a transparent composition state used for image composition. .
第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示方法において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1乃至第(N+M)の記憶領域(Mは1より大きくNより小さい整数)を用い、
前記第1乃至第Nの記憶領域は、それぞれ前記第1乃至第Nのレイヤに割り当てられ、
前記第(N+1)乃至第(N+M)の記録領域は、前記第1乃至第NのレイヤのうちのM個のレイヤに割り当てられて、前記M個のレイヤを2つの記憶領域が割り当てられたダブルバッファ構成のレイヤとし、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
前記第1乃至第Nのレイヤのうちの前記M個のレイヤ以外の、(N−M)個のレイヤは、単一の記憶領域が割り当てられたシングルバッファ構成のレイヤであり、前記シングルバッファ構成のレイヤにおいては、単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
前記M個のレイヤには、前記第1のレイヤが含まれ、
前記M個のダブルバッファ構成のレイヤの各々については、当該レイヤの画像情報に基づいて、当該レイヤの書き込み用バッファに描画を行い、
前記(N−M)個のシングルバッファ構成のレイヤの各々については、当該レイヤの画像情報に基づいて、当該レイヤの表示及び書き込み兼用バッファに描画を行い、
前記M個のレイヤの表示用バッファ、及び前記(N−M)個のレイヤの表示及び書き込み兼用バッファから画像を読み出し、
読み出された画像を合成し、
前記第1乃至第Nのレイヤのうちの、少なくとも一つシングルバッファ構成のレイヤについて画像情報が更新されたら、
前記画像情報が更新された前記少なくとも一つの、シングルバッファ構成のレイヤのいずれよりも上位の、ダブルバッファ構成のレイヤをカバーレイヤとして指定し、
該カバーレイヤの、書き込み用バッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記カバーレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、
前記画像情報が更新された前記少なくとも一つのシングルバッファ構成のレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記カバーレイヤの次に表示すべき画像を、前記カバーレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記カバーレイヤにおいて、それまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファに当てられていた記憶領域を新たな書き込み用バッファに割り当て、これにより前記カバーレイヤの、新たな表示用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする画像合成表示方法。
In an image composition display method for combining images by superimposing images of first to Nth layers (N is an integer of 3 or more) and displaying a composite image,
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
First to (N + M) storage areas (M is an integer greater than 1 and less than N) are used.
The first to Nth storage areas are allocated to the first to Nth layers, respectively.
The (N + 1) th to (N + M) recording areas are assigned to M layers of the first to Nth layers, and the M layers are assigned with two storage areas. As a buffer configuration layer, in the double buffer configuration layer, one of the two storage areas is allocated to the display buffer, the other is allocated to the write buffer,
Of the first to Nth layers, (N−M) layers other than the M layers are layers of a single buffer configuration to which a single storage area is allocated, and the single buffer configuration In this layer, a single storage area is allocated to the display / write buffer,
The M layers include the first layer,
For each layer of the M double buffer configuration, drawing is performed in the writing buffer of the layer based on the image information of the layer,
For each of the (N−M) single buffer configuration layers, drawing is performed in the display / write buffer of the layer based on the image information of the layer,
Read an image from the M layer display buffer and the (NM) layer display and write buffer,
Synthesize the read image,
When the image information is updated for at least one single buffer configuration layer among the first to Nth layers,
A layer having a double buffer configuration, higher than any of the at least one single buffer configuration layer in which the image information has been updated, is designated as a cover layer,
An image to be displayed next to the cover layer and a layer lower than the cover layer is drawn in order from the lowest layer in the writing buffer of the cover layer, and an opaque setting is set in the drawn area. Done
When the drawing and opacity settings are completed, the storage area previously used as the writing buffer is allocated to the new display buffer in the cover layer, and the storage area previously used as the display buffer is newly assigned. The image stored in the storage area where the opaque setting is made is shifted to an opaque composition state used for image composition.
In the opaque composite state,
Drawing each image of the layer of the at least one single buffer configuration in which the image information has been updated, in the display and writing combined buffer of the layer;
Draw an image to be displayed next to the cover layer in the writing buffer of the cover layer,
When the drawing in the opaque composite state is completed, the storage area previously used as the writing buffer is allocated to the new display buffer in the cover layer, and the storage area previously allocated to the display buffer is newly assigned. An image composition display method characterized in that an image stored in a new display buffer of the cover layer is shifted to a transparent composition state used for image composition.
第1乃至第Nのレイヤ(Nは3以上の整数)の画像を重ね合わせることにより合成し、合成画像を表示する画像合成表示方法において、
第n(nは1から(N−1)までのいずれか)のレイヤの画像は、第(n+1)のレイヤの画像よりも上位のレイヤであって、より上位のレイヤの画像は、前記合成のための重ね合わせにおいて、より前面側に配置され、
第1乃至第(N+S)の記憶領域(Sは1以上でNよりも小さい整数)を用い、
前記第1乃至第(N+S個)の記憶領域のうちのN個の記憶領域は、通常は、それぞれ前記第1乃至第Nのレイヤのための表示及び書き込み兼用バッファに割り当てられ、
前記第1乃至第(N+S個)の記憶領域のうちのS個の記憶領域の各々は、通常は予備バッファとされ、必要に応じて、いずれかのレイヤの書き込み用バッファに割り当てられて、当該レイヤの、それまで表示及び書き込み兼用バッファとして用いられていた記憶領域を表示用バッファに割り当てることで、当該レイヤを2つの記憶領域が割り当てられたダブルバッファ構成のレイヤに切り替え、前記ダブルバッファ構成のレイヤにおいては、2つの記憶領域のうちの一方が表示用バッファに割り当てられ、他方が書き込み用バッファに割り当てられ、
ダブルバッファ構成のレイヤ以外のレイヤは単一の記憶領域が割り当てられたシングルバッファ構成のレイヤであり、前記シングルバッファ構成のレイヤにおいては、単一の記憶領域が表示及び書き込み兼用バッファに割り当てられ、
少なくとも一つのダブルバッファ構成のレイヤの各々については、当該レイヤの画像情報に基づいて、当該レイヤの書き込み用バッファに描画を行い、
少なくとも一つのシングルバッファ構成のレイヤの各々については、当該レイヤの画像情報に基づいて、当該レイヤの表示及び書き込み兼用バッファに描画を行い、
前記シングルバッファ構成のレイヤの表示用バッファ、及び前記ダブルバッファ構成のレイヤの表示及び書き込み兼用バッファから画像を読み出し、
読み出された画像を合成し、
前記第1乃至第NのレイヤのうちのSよりも大きい数のレイヤについて画像情報が更新されたら、
画像情報が更新されたレイヤのうちの最も上位のレイヤをカバーレイヤとして指定し、
それまで前記予備バッファとして用いられていた記憶領域のいずれかを、当該カバーレイヤの書き込み用バッファに割り当て、当該カバーレイヤの、それまで表示及び書き込み兼用バッファとして用いられていた記憶領域を、表示用バッファに割り当て、
当該カバーレイヤの、書き込み用バッファに、当該カバーレイヤ、及び当該カバーレイヤよりも下位のレイヤの次に表示すべき画像を最下位のレイヤから順に重ねて描画し、描画した領域に不透明の設定を行い、
前記描画及び不透明の設定が完了したら、前記カバーレイヤにおいてそれまで書き込み用バッファとして用いられていた記憶領域を新たな表示用バッファに割り当て、それまで表示用バッファとして用いられていた記憶領域を新たな書き込み用バッファに割り当て、これにより、不透明の設定が行われた記憶領域に記憶されている画像が画像合成に用いられる不透明合成状態に移行し、
前記不透明合成状態で、
前記カバーレイヤよりも下位の、前記画像情報が更新されたレイヤの各々の画像を、当該レイヤの表示及び書き込み兼用バッファに描画し、
前記カバーレイヤの次に表示すべき画像を、当該カバーレイヤの書き込み用バッファに描画し、
前記不透明合成状態における描画が完了したら、前記カバーレイヤにおいてそれまで書き込み用バッファとして用いられていた記憶領域を当該カバーレイヤの新たな表示及び書き込み兼用バッファに割り当て、当該カバーレイヤにおいてそれまで表示用バッファとして用いられていた記憶領域を新たな予備バッファに割り当て、これにより前記カバーレイヤの、新たな表示及び書き込み兼用バッファに記憶されている画像が画像合成に用いられる透明合成状態に移行する
ことを特徴とする画像合成表示方法。
In an image composition display method for combining images by superimposing images of first to Nth layers (N is an integer of 3 or more) and displaying a composite image,
The image of the nth layer (n is any one from 1 to (N-1)) is a higher layer than the image of the (n + 1) th layer, and the higher layer image is Placed on the front side in the overlay for
Using the first to (N + S) storage areas (S is an integer greater than or equal to 1 and less than N),
Of the first to (N + S) storage areas, N storage areas are normally allocated to the display and write combined buffers for the first to Nth layers, respectively.
Each of the S storage areas of the first to (N + S) storage areas is normally a spare buffer, and is allocated to a write buffer in any layer as necessary. By allocating a storage area of a layer that has been used as a display / write buffer to the display buffer, the layer is switched to a double buffer configuration layer to which two storage areas are allocated. In the layer, one of the two storage areas is assigned to the display buffer, the other is assigned to the write buffer,
Layers other than the double buffer configuration layer are single buffer configuration layers to which a single storage area is allocated, and in the single buffer configuration layer, a single storage area is allocated to the display and write combined buffer,
For each of the layers having at least one double buffer configuration, drawing is performed in the writing buffer of the layer based on the image information of the layer,
For each layer of at least one single buffer configuration, drawing is performed in the display and writing combined buffer of the layer based on the image information of the layer,
Read an image from the display buffer of the single buffer configuration layer, and the display and write buffer of the double buffer configuration layer,
Synthesize the read image,
When the image information is updated for a number of layers larger than S among the first to Nth layers,
Specify the highest layer among the layers with updated image information as the cover layer,
Any one of the storage areas that have been used as the spare buffer until then is assigned to the cover layer writing buffer, and the storage area of the cover layer that has been used as a display and writing buffer is used for display. Assigned to the buffer,
In the cover layer's writing buffer, draw the image to be displayed next to the cover layer and the layer lower than the cover layer in order, starting from the lowest layer, and set the rendered area to opaque. Done
When the drawing and the opacity setting are completed, the storage area previously used as the writing buffer in the cover layer is allocated to the new display buffer, and the storage area previously used as the display buffer is newly assigned. Allocating to the writing buffer, the image stored in the storage area where the opaque setting has been made shifts to the opaque composition state used for image composition,
In the opaque composite state,
Drawing each image of the layer whose image information is updated lower than the cover layer in the display and writing combined buffer of the layer,
Draw the image to be displayed next to the cover layer in the writing buffer of the cover layer,
When the drawing in the opaque composite state is completed, the storage area that has been used as a writing buffer in the cover layer is allocated to a new display / writing buffer in the cover layer, and the display buffer is used in the cover layer until then. The storage area used as a storage buffer is allocated to a new spare buffer, whereby the image stored in the new display / writing buffer of the cover layer is shifted to a transparent composition state used for image composition. An image composition display method.
請求項12から14のいずれか1項に記載の画像合成表示方法における処理をコンピュータに実行させるプログラム。   The program which makes a computer perform the process in the image composition display method of any one of Claim 12 to 14. 請求項15に記載のプログラムが記録されたコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to claim 15 is recorded.
JP2018564862A 2017-02-24 2017-02-24 Image compositing display device and method, program and recording medium Active JP6513313B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2017/007089 WO2018154707A1 (en) 2017-02-24 2017-02-24 Image synthesis and display apparatus and method, and program and recording medium

Publications (2)

Publication Number Publication Date
JPWO2018154707A1 true JPWO2018154707A1 (en) 2019-03-28
JP6513313B2 JP6513313B2 (en) 2019-05-15

Family

ID=63252525

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018564862A Active JP6513313B2 (en) 2017-02-24 2017-02-24 Image compositing display device and method, program and recording medium

Country Status (2)

Country Link
JP (1) JP6513313B2 (en)
WO (1) WO2018154707A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007029323A1 (en) * 2005-09-08 2007-03-15 Mitsubishi Denki Kabushiki Kaisha Rendering display device
JP2007241738A (en) * 2006-03-09 2007-09-20 Matsushita Electric Ind Co Ltd Screen composing device
US7307667B1 (en) * 2003-06-27 2007-12-11 Zoran Corporation Method and apparatus for an integrated high definition television controller
WO2008093391A1 (en) * 2007-01-29 2008-08-07 Mitsubishi Electric Corporation Image display device and image display method
JP2014513823A (en) * 2011-02-14 2014-06-05 アップル インコーポレイテッド Layer blending with edge alpha values for image translation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7307667B1 (en) * 2003-06-27 2007-12-11 Zoran Corporation Method and apparatus for an integrated high definition television controller
WO2007029323A1 (en) * 2005-09-08 2007-03-15 Mitsubishi Denki Kabushiki Kaisha Rendering display device
JP2007241738A (en) * 2006-03-09 2007-09-20 Matsushita Electric Ind Co Ltd Screen composing device
WO2008093391A1 (en) * 2007-01-29 2008-08-07 Mitsubishi Electric Corporation Image display device and image display method
JP2014513823A (en) * 2011-02-14 2014-06-05 アップル インコーポレイテッド Layer blending with edge alpha values for image translation

Also Published As

Publication number Publication date
JP6513313B2 (en) 2019-05-15
WO2018154707A1 (en) 2018-08-30

Similar Documents

Publication Publication Date Title
US6911983B2 (en) Double-buffering of pixel data using copy-on-write semantics
JP5545555B2 (en) Improved memory management for systems generating 3D computer images
JP2912419B2 (en) Dynamic control system for use with computer graphic devices
US6380935B1 (en) circuit and method for processing render commands in a tile-based graphics system
CA2496062C (en) Image processor and method for blending multiple image layers in accordance with transparency values
US8514235B2 (en) System and method for managing the computation of graphics shading operations
TWI474281B (en) Method of controlling multiple displays and systems thereof
JPS62298882A (en) Multiwindow display system
KR102055467B1 (en) Virtual surface allocation
JP2007528062A (en) Graphic device clustering using PCI Express
JPWO2008093391A1 (en) Image display device and image display method
CN102930572B (en) Cache uses antialiasing technology to reproduce the coverage values of text
CN114669047B (en) Image processing method, electronic equipment and storage medium
JP2007241738A (en) Screen composing device
JP4268142B2 (en) Drawing device
CN103620667B (en) For using the method and apparatus of colour field sequential display synthetic image
JP6513313B2 (en) Image compositing display device and method, program and recording medium
US8612664B2 (en) Memory management process and apparatus for the same
US11908079B2 (en) Variable rate tessellation
CN117234657B (en) Multi-window rendering optimization method based on virtual sub-layer
US20190206371A1 (en) Adaptive buffer latching to reduce display janks caused by variable buffer allocation time
JP2007080020A (en) Window processing device and method by stencil
JP5883953B2 (en) Programmable controller system, its programmable display, drawing editor device, program
KR101367246B1 (en) System and method of multiple framebuffer emulation on virtual machine
JP2009282716A (en) Image creation device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181210

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181210

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20181210

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20190225

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190409

R150 Certificate of patent or registration of utility model

Ref document number: 6513313

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250