JP5057895B2 - Image output apparatus and screen composition method - Google Patents

Image output apparatus and screen composition method Download PDF

Info

Publication number
JP5057895B2
JP5057895B2 JP2007225845A JP2007225845A JP5057895B2 JP 5057895 B2 JP5057895 B2 JP 5057895B2 JP 2007225845 A JP2007225845 A JP 2007225845A JP 2007225845 A JP2007225845 A JP 2007225845A JP 5057895 B2 JP5057895 B2 JP 5057895B2
Authority
JP
Japan
Prior art keywords
screen
screen component
image
processing
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007225845A
Other languages
Japanese (ja)
Other versions
JP2009060373A5 (en
JP2009060373A (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
Priority to JP2007225845A priority Critical patent/JP5057895B2/en
Publication of JP2009060373A publication Critical patent/JP2009060373A/en
Publication of JP2009060373A5 publication Critical patent/JP2009060373A5/ja
Application granted granted Critical
Publication of JP5057895B2 publication Critical patent/JP5057895B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、オンスクリーンディスプレイ(以下、OSDと表記する)においてビットマップデータを背景画像に重ねて高速に描画するための画像出力装置および画面構成方法に関する。   The present invention relates to an image output apparatus and a screen configuration method for rendering bitmap data on a background image at high speed on an on-screen display (hereinafter referred to as OSD).

従来、フレームメモリにビットマップデータを描画する処理はハードウェアを用いて高速化するような方法が一般的にとられている。ハードウェアアクセラレーションを使用することによりビットマップデータの描画を高速化する効果が得られるが、ハードウェアアクセラレーションの効果が得られないCPU負荷の高い演算処理が必要な描画は十分に高い速度で行うことができなかった。   Conventionally, the method of drawing bitmap data in a frame memory is generally performed at a high speed using hardware. The use of hardware acceleration provides the effect of speeding up the drawing of bitmap data, but drawing that requires computational processing with a high CPU load that does not provide the effect of hardware acceleration is sufficiently fast. Could not do.

描画処理に時間を要する処理の一つにアルファブレンド処理がある。アルファブレンド処理は、半透明の画像とほかの画像を重ね合わせる処理であり、二つの画像をアルファ値と呼ばれる係数を使って半透明合成するものである。パーソナルコンピュータのように乗算/除算の演算処理能力が高い装置ではアルファブレンド処理を十分高速で行うことができるが、演算処理能力がパーソナルコンピュータに比べて低い機器では、アルファブレンド処理を高速に行うことが困難である。   One of the processes that require time for drawing processing is alpha blend processing. The alpha blending process is a process of superimposing a translucent image on another image, and translucently synthesizes two images using a coefficient called an alpha value. A device with high multiplication / division processing capacity, such as a personal computer, can perform alpha blending at a sufficiently high speed, but a device with low processing capacity compared to a personal computer must perform alpha blending at high speed. Is difficult.

CPUの能力が低く、大容量のメモリを持たない装置においても不正の無いアルファブレンド処理を可能にするために、フレームメモリに描画する処理がアルファブレンド処理不可能な場合、中間データ生成時点でアルファブレンド処理を前処理してしまい、中間データをアルファブレンド処理が含まれない状態にしてしまう処理を有する印刷装置において、中間データ生成時には描画に用いるデータと、アルファブレンド情報を記述したテーブルをもって中間データ生成とする生成手段を有し、アルファブレンド情報を記述したテーブルを元に中間データからアルファブレンド処理を除去する処理を行うことにより効率良く除去処理を行う手段を有する画像処理装置が提案されている(特許文献1参照)。   To enable alpha blend processing without fraud even in a device with low CPU capacity and no large-capacity memory, if alpha blend processing is not possible in the frame memory, alpha is generated when intermediate data is generated. In a printing device that has a process that preprocesses the blending process and puts the intermediate data in a state that does not include the alpha blending process, the intermediate data has a table that describes the data used for drawing and alpha blending information when generating the intermediate data There has been proposed an image processing apparatus that has generation means for generation and has means for efficiently performing removal processing by performing processing for removing alpha blend processing from intermediate data based on a table describing alpha blend information. (See Patent Document 1).

特開2006−244248号公報JP 2006-244248 A

しかしながら、従来の印刷装置におけるアルファブレンド処理を除去する技術は前処理が必要であるため、描画の即時応答性が必要なデジタル放送レコーダーにおけるOSDを表示する場合においては、同じ技術が適用できなかった。   However, since the technology for removing the alpha blending process in the conventional printing apparatus requires pre-processing, the same technique cannot be applied when displaying the OSD in a digital broadcast recorder that requires immediate drawing responsiveness. .

本発明は、レコーダーのメニュー画面のフォーカス移動表示のような即時応答性が必要なOSD描画を高速に行うことを目的とする。   An object of the present invention is to perform OSD drawing that requires immediate response, such as focus movement display on a menu screen of a recorder, at high speed.

本発明の画像出力装置は、
複数の静止画像の、矩形の画面部品を重ねて1つの画面を表示する装置において、
1つの画面を構成する第1の画面部品を、第2の画面部品に置き換えるときに、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含むか否かを判断する条件判断手段と、
前景の画素と背景の画素を重ね合わせて画面合成を行う合成処理手段とを備え、
前記合成処理手段は、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含む場合には、前記第1の画面部品をフレームメモリから消去せずに前記第2の画面部品を描画し、
前記条件判断手段は、画面合成を高速に処理する必要があるかどうかを判断し、
画像合成を高速に処理する必要がある場合には、乗算及び除算を伴う演算処理をする画面合成処理を禁止することを特徴とする。
The image output apparatus of the present invention includes:
In a device that displays a single screen by overlapping rectangular screen components of multiple still images,
When replacing a first screen component constituting one screen with a second screen component, the area of the second screen component is exactly the same as the area occupied by the first screen component, or the first Condition determining means for determining whether or not the entire area occupied by one screen component is included;
Synthesis processing means for performing screen synthesis by superimposing foreground pixels and background pixels,
When the area of the second screen component is exactly the same as the area occupied by the first screen component or includes the entire area occupied by the first screen component, Rendering the second screen part without erasing the first screen part from the frame memory ;
The condition determining means determines whether it is necessary to process screen composition at high speed,
When image composition needs to be processed at high speed, screen composition processing that performs arithmetic processing involving multiplication and division is prohibited .

本発明によれば、新たに描画を行う前にクリア処理を行うことが不要となるので、高速にOSDに描画することができる。   According to the present invention, since it is not necessary to perform a clear process before newly drawing, it is possible to draw on the OSD at high speed.

実施の形態1.
図1はこの発明の実施の形態1の画像出力装置を示すブロック図である。図示の画像出力装置は、複数の静止画像の画面部品を重ねて1つの画面を表示するものであり、画像分類管理手段1、条件判断手段2、クリア処理手段3、合成処理手段5、ビデオデコード手段6、及び描画手段7を有する。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an image output apparatus according to Embodiment 1 of the present invention. The illustrated image output apparatus displays a single screen by superimposing a plurality of still image screen components. The image classification management means 1, the condition determination means 2, the clear processing means 3, the composition processing means 5, the video decode Means 6 and drawing means 7 are provided.

画像分類管理手段1は、画面部品を構成するビットマップ画像を、合成処理の方法に応じて分類し、静止画像の画面部品の表示コマンドを使用する方法を管理する。
画像分類管理手段1は、例えば、全透過する画素を含む静止画像の画面部品と、合成処理することによって全透過以外の透過率で描画する静止画像の画面部品とを分類し、静止画像の画面部品の表示コマンドを使用する方法を管理する。各画面部品は、画面上の矩形の領域を占めるものであり、その4つの頂点の座標は、(xa,ya)、(xa,yb)、(xb,ya)、(xb,yb)で表される。但し、xa、xbは、画面上の水平方向(横方向)の座標値、ya、ybは画面上の垂直方向(縦方向)の座標値である。
The image classification management unit 1 classifies the bitmap images constituting the screen parts in accordance with the composition processing method, and manages the method of using the still image screen part display command.
The image classification management unit 1 classifies, for example, a still image screen component including a pixel that is totally transmissive and a still image screen component that is drawn at a transmittance other than total transmissive by combining processing, and displays a still image screen. Manage how to use the display command for parts. Each screen component occupies a rectangular area on the screen, and the coordinates of the four vertices are represented by (xa, ya), (xa, yb), (xb, ya), (xb, yb). Is done. Here, xa and xb are coordinate values in the horizontal direction (horizontal direction) on the screen, and ya and yb are coordinate values in the vertical direction (vertical direction) on the screen.

条件判断手段2は、現在描画されている画面部品の占める領域が、これから描画しようとしている画面部品の占める領域に対してはみ出す部分を有するかどうかの判定を行う。
図2(a)〜(d)において、符号Paは、現在描画されている画面部品が占める領域を表し、符号Pbは、これから描画しようとしている画面部品が占める領域を表す。
図2(a)に示される領域Paと領域Pbは一部のみが重なりあうものであり、領域Paは領域Pbに対してはみ出す部分を有し、領域Pbは領域Paに対してはみ出す部分を有する。
図2()に示される領域Paは領域Pbに対してはみ出す部分を有さず、領域Pbは領域Paに対してはみ出す部分を有する。図2(a)に示される領域Paと図2(b)に示される領域Paは互いに同じ位置にあり、同じ大きさを有し、図2(b)に示される領域Pbは、図2(a)に示される領域Paの全体と図2(a)に示される領域Pb(図2(b)では符号Pb’で示されている)の全体の双方を含む、最も小さい矩形の領域である。
図2(c)に示される領域Paは領域Pbに対してはみ出す部分を有さず、領域Pbは領域Paに対してはみ出す部分を有する。
図2(d)に示される領域Paは領域Pbに対してはみ出す部分を有し、領域Pbは領域Paに対してはみ出す部分を有さない
なお、図示されていないが、領域Paと領域Pbが同じときは、いずれの領域も他方の領域に対してはみ出す部分を有さない。
The condition determination means 2 determines whether the area occupied by the currently drawn screen component has a portion that protrudes from the area occupied by the screen component to be drawn.
2A to 2D, the symbol Pa represents the area occupied by the currently drawn screen component, and the symbol Pb represents the region occupied by the screen component to be drawn.
The region Pa and the region Pb shown in FIG. 2 (a) partially overlap each other, the region Pa has a portion protruding from the region Pb, and the region Pb has a portion protruding from the region Pa. .
The region Pa shown in FIG. 2B does not have a portion that protrudes from the region Pb, and the region Pb has a portion that protrudes from the region Pa. The area Pa shown in FIG. 2A and the area Pa shown in FIG. 2B are in the same position and have the same size, and the area Pb shown in FIG. This is the smallest rectangular area including both the whole area Pa shown in a) and the whole area Pb shown in FIG. 2A (indicated by reference numeral Pb ′ in FIG. 2B). .
The region Pa shown in FIG. 2C does not have a portion that protrudes from the region Pb, and the region Pb has a portion that protrudes from the region Pa.
Area Pa as shown in FIG. 2 (d) has a portion protruding to the region Pb, region Pb is not to have a portion protruding to the region Pa.
Although not shown, when the region Pa and the region Pb are the same, neither region has a portion that protrudes from the other region.

条件判断手段2は、上記の現在描画されている画面部品の占める領域が、これから描画しようとする画面部品の占める領域に対してはみ出す部分を有するかどうかの判定とともに、描画しようとする画面部品が、アルファブレンド処理が必要なものであるか、カラーキー処理が必要なものであるか、これらのいずれも行わず、通常のデータ転送処理(完全上書き処理)だけを行うものであるかの判定を行なう。   The condition determining means 2 determines whether the area occupied by the currently drawn screen component has a portion that protrudes from the area occupied by the screen component to be drawn, and determines whether the screen component to be drawn is Whether alpha blending is required, color key processing is required, or neither of these is performed and only normal data transfer processing (complete overwrite processing) is performed Do.

クリア手段3は、条件判断手段2の条件判断により、現在描画している画面部品をクリアすることが必要と判断された場合に現在描画している画面部品の領域のクリアする処理を実行する。このクリア処理を行うと、描画手段7内のフレームメモリ内の各記憶位置の値が初期値例えば白色を表す値に置き換えられる。   The clear unit 3 executes a process of clearing the currently drawn screen component area when it is determined by the condition determination of the condition determination unit 2 that it is necessary to clear the currently drawn screen component. When this clear process is performed, the value of each storage position in the frame memory in the drawing means 7 is replaced with an initial value, for example, a value representing white.

合成処理手段5は、半透過処理、例えばアルファブレンド処理、カラーキー処理、通常の転送処理(完全上書き処理)を選択的に行うことができるものである。   The composition processing means 5 can selectively perform a translucent process such as an alpha blend process, a color key process, and a normal transfer process (complete overwrite process).

合成処理手段5は、例えば図3に示すように、第1層グラフィクス生成手段41、第1の第1層用スイッチ42、第1層アルファブレンド処理手段43、第1層カラーキー処理手段44、第2の第1層用スイッチ45、第1層グラフィクスメモリ46、第2層グラフィクス生成手段51、第1の第2層用スイッチ52、第2層アルファブレンド処理手段53、第2層カラーキー処理手段54、第2の第2層用スイッチ55、第2層グラフィクスメモリ56、及び加算手段61を有する。   For example, as shown in FIG. 3, the composition processing unit 5 includes a first layer graphics generation unit 41, a first first layer switch 42, a first layer alpha blend processing unit 43, a first layer color key processing unit 44, Second first layer switch 45, first layer graphics memory 46, second layer graphics generation means 51, first second layer switch 52, second layer alpha blend processing means 53, second layer color key processing Means 54, a second second layer switch 55, a second layer graphics memory 56, and an adding means 61.

条件判断手段2でアルファブレンド処理が必要であると判断されたとき、第1層グラフィクス生成手段41、51で生成された画面部品のビットマップデータが、スイッチ42,52により、アルファブレンド処理手段43、53に供給され、アルファブレンド処理を受け、その後スイッチ45、55を介して加算手段61に供給される。   When the condition determining means 2 determines that the alpha blending process is necessary, the bitmap data of the screen parts generated by the first layer graphics generating means 41, 51 is converted to the alpha blend processing means 43 by the switches 42, 52. , 53 and subjected to alpha blending processing, and then supplied to the adding means 61 via the switches 45, 55.

条件判断手段2でカラーキー処理が必要であると判断されたとき、第1層グラフィクス生成手段41、51で生成された画面部品のビットマップデータが、スイッチ42,52により、カラーキー処理手段44、54に供給され、カラーキー処理を受け、その後スイッチ45、55を介して加算手段61に供給される。   When the condition determining means 2 determines that the color key processing is necessary, the bitmap data of the screen parts generated by the first layer graphics generating means 41 and 51 is converted to the color key processing means 44 by the switches 42 and 52. , 54, undergoes color key processing, and then supplied to the adding means 61 via the switches 45, 55.

条件判断手段2で、アルファブレンド処理、カラーキー処理のいずれも受けずに通常処理(完全上書き処理)を受けるべきであると判断されたとき、第1層グラフィクス生成手段41、51で生成された画面部品のビットマップデータが、スイッチ42,52及びスイッチ45、55を介して(アルファブレンド処理手段43,53、及びカラーキー処理手段44、54のいずれも通ることなく、)加算手段61に供給される。   When the condition determining unit 2 determines that the normal process (complete overwrite process) should be performed without receiving either the alpha blend process or the color key process, the first layer graphics generating unit 41, 51 generates The bitmap data of the screen component is supplied to the adding means 61 via the switches 42 and 52 and the switches 45 and 55 (without passing through the alpha blend processing means 43 and 53 and the color key processing means 44 and 54). Is done.

加算手段61は、入力されたデータを(画素毎に)加算して、出力する。加算手段61から出力されたデータは、描画手段7内のフレームメモリ8に書き込まれる。描画手段7は、フレームメモリ8に記憶されたデータをOSDに表示する。   The adding means 61 adds the input data (for each pixel) and outputs the result. The data output from the adding means 61 is written into the frame memory 8 in the drawing means 7. The drawing means 7 displays the data stored in the frame memory 8 on the OSD.

画像分類管理手段1での画像を分類する方法として、画面部品を構成する入力画像データがPNG形式のビットマップデータである場合、データ構造にアルファチャンネルが存在するか否かを調べることにより透過処理が必要か否かを判断できる。また、ソフトウェアでPNGデータ構造をチェックするプログラムを作成して画像分類を自動的に行っても良い。さらにまた、アルファチャンネルの有無を無視して、画面をデザインする者が独自に画像分類を行っても良い。   As a method of classifying images in the image classification management means 1, when input image data constituting a screen component is bitmap data in PNG format, a transparent process is performed by checking whether an alpha channel exists in the data structure. Can be determined. Further, a program for checking the PNG data structure may be created by software to automatically perform image classification. Furthermore, the person who designs the screen may perform the image classification independently, ignoring the presence or absence of the alpha channel.

図4は画像分類管理手段1で扱う各画面部品のデータ構造の一例を示している。ファイル名、ブレンド種別、サイズ、領域名、位置の情報(x座標、y座標)を保持している。x座標及びy座標は、各画面部品の例えば左上の頂点の横方向位置及び縦方向位置を表す。   FIG. 4 shows an example of the data structure of each screen component handled by the image classification management means 1. It holds file name, blend type, size, area name, and position information (x coordinate, y coordinate). The x-coordinate and the y-coordinate represent the horizontal position and the vertical position of the top left corner of each screen component, for example.

ブレンド種別についてビットマップデータの分類は、全透過または透過なしで構成されているものか、中間の透過率を指定しているビットマップであるかどうかを基準に分類する。中間の透過率を使うものはアルファブレンド処理手段43、53によるアルファブレンド処理が必要なものに分類される。   The classification of the bitmap data with respect to the blend type is classified based on whether it is configured without total transmission or non-transmission, or is a bitmap designating an intermediate transmittance. Those using an intermediate transmittance are classified as those requiring alpha blend processing by the alpha blend processing means 43 and 53.

全透過するものは、カラーキー処理手段44,54による処理を受けるものに分類され、透過する部分にその画像で使用されていない任意の色を塗り、その色をカラーキーとして設定する。   Those that are totally transparent are classified as those that are subjected to processing by the color key processing means 44 and 54, and an arbitrary color that is not used in the image is painted on the transparent portion, and the color is set as a color key.

画像分類管理手段1のほかの例として、ビットマップデータのファイル名に接頭辞を付けておくことによって、上記のPNGデータ構造をチェックするプログラムを走らせる前にビットマップデータで合成処理の必要性を区別しておいても良い。
たとえば、アルファブレンド処理が必要なファイル名には図4の表の第2行に例示するように、「ab_」を付加しておく。カラーキー処理が必要なファイルには図4の表の第3行に例示するように、「ck_」を付加しておく。通常処理のファイルには図4の表の第4行に例示するように、「no_」を付加しておく。このようにすれば、条件判断手段2では、ビットマップデータの中身を解析する必要がなくなる分、ソフトウェアを簡素化できる。
As another example of the image classification management means 1, the necessity of the synthesis processing with the bitmap data before running the program for checking the above PNG data structure by adding a prefix to the file name of the bitmap data. May be distinguished.
For example, “ab_” is added to a file name that requires alpha blending processing, as illustrated in the second row of the table of FIG. As shown in the third row of the table of FIG. 4, “ck_” is added to a file that needs color key processing. As illustrated in the fourth row of the table in FIG. 4, “no_” is added to the normal processing file. In this way, the condition judging means 2 can simplify the software because it is not necessary to analyze the contents of the bitmap data.

条件判断手段2では、描画指示のあった画像について現在描画されている画面部品が占める領域(描画領域)Pa(図2(a)〜(d))と、これから描画しようとする画面部品が占める領域(描画領域)Pb(図2(a)〜(d))とを比較し、描画領域Paが描画領域Pbに対してはみ出す部分を有するかどうかの判定を行い、領域Paが領域Pbに対してはみ出す部分を有さない場合(図2(b)、図2(c)の場合)には、クリア処理は実行せずに、ブレンドの種別を判断し、判断結果に応じてブレンド処理を行う。   In the condition determination means 2, the area (drawing area) Pa (FIGS. 2A to 2D) occupied by the currently drawn screen component for the image for which drawing has been instructed, and the screen component to be drawn from now on occupy. The region (drawing region) Pb (FIGS. 2A to 2D) is compared to determine whether the drawing region Pa has a portion that protrudes from the drawing region Pb. When there is no protruding part (in the case of FIGS. 2B and 2C), the clear process is not executed, the blend type is determined, and the blend process is performed according to the determination result. .

もし、領域Paが領域Pbに対してはみ出す部分を有する場合(図2(a)、図2(d)の場合)には、クリア処理手段6でクリア処理を実行する。   If the area Pa has a portion protruding from the area Pb (in the case of FIG. 2A and FIG. 2D), the clear processing means 6 executes the clear process.

この場合、これから描画しようとする画面部品を、そのために本来必要な領域よりも大きな領域を占めるように構成することで、クリア処理を不要とし、或いは削減することができる。例えば、画面部品の構成に本来必要な領域が図2(a)の符号Pbで示すものである場合、図2(a)に示される領域Pbを占める画面部品ではなく、図2(b)に示される領域Pbを占める画面部品、即ち、領域Paの全体と、図2(a)の領域Pbの全体を含む矩形の領域を占める画面部品を構成して用いることで、クリア処理を不要とし、或いは削減することができる。   In this case, by configuring the screen component to be drawn so as to occupy an area larger than the area originally necessary for that purpose, the clear process can be eliminated or reduced. For example, if the area originally required for the configuration of the screen part is indicated by the symbol Pb in FIG. 2A, it is not the screen part occupying the area Pb shown in FIG. By configuring and using the screen parts occupying the area Pb shown, that is, the whole area Pa and the screen parts occupying a rectangular area including the whole area Pb in FIG. Alternatively, it can be reduced.

また、例えばボタン画像を画面部品として表示する場合に、クリア処理の呼び出し頻度(実行頻度)を低くするために、ボタン画像の縦横の寸法と配置する位置と画像の数を、ほかの画像に置き換える場合にも変更しないこととしても良い。   For example, when a button image is displayed as a screen component, the vertical and horizontal dimensions of the button image, the positions to be arranged, and the number of images are replaced with other images in order to reduce the calling frequency (execution frequency) of the clear process. It is also possible not to change the case.

このようにすることによって、毎回、現在の(画面部品としての)ビットマップ画像を次の(画面部品としての)ビットマップ画像に置き換えるために、次の(画面部品としての)ビットマップ画像を描画する前にクリア処理を実行する必要がなくなり、ビットマップ画像の切り替え表示が高速になる。即ち、クリア処理を実行するのは、OSD表示全体を消去する場合のみとなり、クリア処理の実行回数(頻度)を減らすことができる。   By doing this, each time the next bitmap image (as a screen component) is drawn to replace the current bitmap image (as a screen component) with the next (as a screen component) bitmap image This eliminates the need to execute the clearing process before performing the bitmap display, and the bitmap image switching display becomes faster. That is, the clear process is executed only when the entire OSD display is erased, and the number of times (frequency) of the clear process can be reduced.

図5に条件判断手段2における処理手順を示す。
まず、描画しようとする画面部品としてのビットマップ画像(新画像)の占める領域を現在描画されている(表示中の)画面部品としてのビットマップ画像(現画像)の占める領域と比較する。もし、現画像が占める領域が、新画像が占める領域に対してはみ出す部分を有する場合(図2(a)、(d))には(ステップS71でYes)、新しく描画を始める前に現在描画されているビットマップ画像を消去する処理(クリア処理)を実施する(ステップS74)。
FIG. 5 shows a processing procedure in the condition determining means 2.
First, the area occupied by the bitmap image (new image) as the screen part to be drawn is compared with the area occupied by the bitmap image (current image) as the currently drawn (displayed) screen part. If the area occupied by the current image has a portion that protrudes from the area occupied by the new image (FIGS. 2A and 2D) (Yes in step S71), the current drawing is started before starting a new drawing. A process (clear process) for erasing the bitmap image being performed is performed (step S74).

現画像が占める領域が、新画像が占める領域に対してはみ出す部分を有さない場合、即ち新画像の占める領域が現画像の占める領域と同じか或いは、はみ出す部分を有する場合(図2(b)、(c))には(ステップS71でNo)、クリア処理は実行せずに画像合成処理のため、ステップS72に進む。   When the area occupied by the current image does not have a portion protruding from the area occupied by the new image, that is, when the area occupied by the new image is the same as the area occupied by the current image or has a portion protruding (FIG. 2B ), (C)) (No in step S71), the process proceeds to step S72 for the image composition process without executing the clear process.

まず、画像分類管理手段1による、合成処理の方法についての分類結果に基づいて以下の判断を行う。
ステップS72では、描画しようとする画面部品としてのビットマップ画像(新画像)が、透過処理を要するものか否かを判断する(S72)。透過処理不要の場合(ステップS72でNo)、ステップS75に進み画像合成処理は行わずにそのまま画像データを転送する通常処理(完全上書き処理)を行う。
なんらかの透過処理が必要な場合は(ステップS72でYes)、ステップS73に進み、全透過が必要か半透過が必要かの判断を行う。
First, the following determination is made based on the classification result of the composition processing method by the image classification management means 1.
In step S72, it is determined whether or not the bitmap image (new image) as the screen component to be drawn requires transparency processing (S72). When the transmission process is not necessary (No in step S72), the process proceeds to step S75, and the normal process (complete overwrite process) for transferring the image data as it is without performing the image synthesis process is performed.
If any transmission processing is necessary (Yes in step S72), the process proceeds to step S73, where it is determined whether full transmission or semi-transmission is necessary.

全透過が必要な場合、即ち、半透過ではなく、全透過する部分のみを含むビットマップデータの場合は(ステップS73でYes)、ステップS76のカラーキー処理に進む。このカラーキー処理については後述する。
ステップS73でNoの場合は、半透過処理を行う必要があるので、ステップS77のアルファブレンド処理に進む。
If full transmission is required, that is, bitmap data including only a part that is not translucent but full transmission (Yes in step S73), the process proceeds to color key processing in step S76. This color key processing will be described later.
In the case of No in step S73, since it is necessary to perform the semi-transparent process, the process proceeds to the alpha blend process in step S77.

透過処理が不要のビットマップ画像に対してアルファブレンド処理を行うこともできるが、図1の条件判断手段2を加えることによって、高速処理できるものと処理に時間がかかるものとに分け、高速処理できるものに対してアルファブレンド処理を行い、高速処理できないものに対して代替処理を行うこととすることができるため、全体として描画に要する時間を短縮することが可能となる。   Alpha blend processing can also be performed on bitmap images that do not require transparency processing, but by adding the condition determination means 2 in FIG. 1, it is divided into those that can be processed at high speed and those that take time to process. Since it is possible to perform alpha blending on those that can be performed and to perform alternative processing on those that cannot be processed at high speed, it is possible to reduce the time required for drawing as a whole.

アルファブレンド処理手段43、53で行われるアルファブレンド処理には、画像全体を1つの共通のアルファ値を用いて半透明にして重ね合わせる方法や、画像の画素ごとのアルファ値を用いて画素ごとに合成する方法がある。アルファ値が0から255の範囲の整数値をとる場合r、g、b各成分のアルファブレンド処理の計算式は次のように表される。
r={rf・a+rb・(255−a)}/255 …(1R)
g={gf・a+gb・(255−a)}/255 …(1G)
b={bf・a+bb・(255−a)}/255 …(1B)
上記の式(1R)、(1G)、(1B)中で、rfは第1層、例えば前景の赤色成分、rbは第2層、例えば背景の赤色成分、gfは前景の緑色成分、gbは背景の緑色成分、bfは前景の青色成分、bbは背景の青色成分、aは前景のα値を表している。式(1R)は次のように書き換えることで、乗算と除算を3回から2回に減らすことができる。
r=rb+(rf−rb)・a/255 …(2R)
式(1G)及び式(1B)も同様に変形可能である。
The alpha blending processing performed by the alpha blending processing means 43 and 53 includes a method in which the entire image is made semi-transparent using one common alpha value, or a pixel-by-pixel using an alpha value for each pixel of the image. There is a way to synthesize. When the alpha value takes an integer value in the range of 0 to 255, the formula for the alpha blend process for each of the r, g, and b components is expressed as follows.
r = {rf · a + rb · (255−a)} / 255 (1R)
g = {gf · a + gb · (255−a)} / 255 (1G)
b = {bf · a + bb · (255−a)} / 255 (1B)
In the above formulas (1R), (1G), and (1B), rf is the first layer, for example, the foreground red component, rb is the second layer, for example, the background red component, gf is the foreground green component, and gb is The green component of the background, bf is the blue component of the foreground, bb is the blue component of the background, and a is the α value of the foreground. By rewriting equation (1R) as follows, multiplication and division can be reduced from three to two.
r = rb + (rf−rb) · a / 255 (2R)
Equations (1G) and (1B) can be similarly modified.

第1層アルファブレンド処理手段43では、第1層グラフィクス生成手段41から供給された前景のビットマップ画像とアルファ値(α=a/255)を掛けあわせ、半透過処理を行い、第1層グラフィックメモリ46にデータを転送する。   The first layer alpha blend processing unit 43 multiplies the foreground bitmap image supplied from the first layer graphics generation unit 41 and the alpha value (α = a / 255), performs translucent processing, and performs the first layer graphic. Data is transferred to the memory 46.

同様に、第2層アルファブレンド処理手段53では、第2層グラフィクス生成手段51から供給された背景のビットマップ画像についてアルファ値(1−α)=(255−a)/255)を掛けて半透過処理を行い、第2層グラフィックメモリ56に転送する。
加算手段61は、第1層グラフィクスメモリ46から読み出されたデータと、第2層グラフィクスメモリ56から読み出されたデータを加算することで、合成を行う。加算手段61から出力される合成結果は、合成処理手段5の出力として、描画手段7に転送される。
Similarly, the second layer alpha blend processing unit 53 multiplies the background bitmap image supplied from the second layer graphics generation unit 51 by the alpha value (1−α) = (255−a) / 255) half. Transparency processing is performed and transferred to the second layer graphic memory 56.
The adding means 61 performs synthesis by adding the data read from the first layer graphics memory 46 and the data read from the second layer graphics memory 56. The synthesis result output from the adding unit 61 is transferred to the drawing unit 7 as an output of the synthesis processing unit 5.

ビデオデコード手段6では動画像をデコードし、描画手段7に転送する。
描画手段7は、合成処理手段5の出力とビデオデコード手段6の出力とを合成することで、動画とビットマップ静止画像とを重ね合わせた画像を得る。
The video decoding means 6 decodes the moving image and transfers it to the drawing means 7.
The drawing unit 7 combines the output of the synthesis processing unit 5 and the output of the video decoding unit 6 to obtain an image obtained by superimposing the moving image and the bitmap still image.

透明指定あるいは半透明指定した箇所では下層の画像が見えることになる。アルファ係数が0/255から255/255で表されている場合に、係数が255/255の不透明設定がされているものに関しては、上層の画像で下層の画像が上書きされるため、下層の画像はユーザーには見えない。   The lower layer image can be seen at the place designated as transparent or semi-transparent. When the alpha coefficient is expressed in the range of 0/255 to 255/255, the lower layer image is overwritten with the upper layer image, so that the lower layer image is overwritten with the upper layer image. Is invisible to the user.

条件判断手段2でカラーキー処理を要するものとして分類されたビットマップデータは、カラーキー処理手段44、54で、少なくともその一部がカラーキーで塗られ、該カラーキーで塗られた部分(画素)以外のビットマップデータのみがグラフィクスメモリ46、56に転送される、さらに加算手段61を介して描画手段7内のフレームメモリ8に転送される。
カラーキーで塗られた部分はフレームメモリ8に転送されない。
その結果、カラーキーで塗られた部分では背景の画像がそのまま表示される(透けて見えるものとして表示される)ことになる。この処理は、アルファブレンド処理のように乗算や除算の演算処理が発生しないため、カラーキーによる描画はアルファブレンド処理よりも高速に行われる。
The bitmap data classified as requiring the color key processing by the condition determining means 2 is at least partly painted with the color key by the color key processing means 44, 54, and the portion (pixel) painted with the color key. Only the bitmap data other than () is transferred to the graphics memories 46 and 56, and further transferred to the frame memory 8 in the drawing means 7 via the adding means 61.
The portion painted with the color key is not transferred to the frame memory 8.
As a result, the background image is displayed as it is in the portion painted with the color key (displayed as being seen through). Since this processing does not require multiplication or division calculation processing unlike the alpha blend processing, drawing with the color key is performed at a higher speed than the alpha blend processing.

第1層グラフィック生成手段41にビットマップ画像がレンダリングされると、第1層カラーキー処理手段44に送られ、カラーキーとして指定されている色以外の画素がビットマップに含まれていたら、カラーキー処理手段44において、カラーキー以外の画素を第1層グラフィックメモリ46に転送する。カラーキーの部分はグラフィックメモリ46に書き込まれない。   When the bitmap image is rendered in the first layer graphic generation unit 41, the bitmap image is sent to the first layer color key processing unit 44. If pixels other than the color designated as the color key are included in the bitmap, the color is displayed. In the key processing means 44, the pixels other than the color key are transferred to the first layer graphic memory 46. The color key portion is not written in the graphic memory 46.

第2層グラフィクス生成手段51、第2層カラーキー処理手段53、第2層グラフィクスメモリ56の動作も上記と同様である。   The operations of the second layer graphics generation unit 51, the second layer color key processing unit 53, and the second layer graphics memory 56 are the same as described above.

透過処理が不要な画面部品としての画像については、第1層グラフィクス生成手段41、第2層グラフィクス生成手段51の出力が、スイッチ42、45、52、55を介して、そのまま第1層グラフィクスメモリ46、第2層グラフィクスメモリ56に転送され、その後、加算手段61を経て、フレームメモリ8に転送される。
この場合にも、カラーキー処理と同様に、アルファブレンド演算処理が発生しないため描画が高速に行われる。
For an image as a screen component that does not require transparency processing, the outputs of the first layer graphics generation unit 41 and the second layer graphics generation unit 51 are directly sent to the first layer graphics memory via the switches 42, 45, 52, and 55. 46, transferred to the second-layer graphics memory 56, and then transferred to the frame memory 8 via the adding means 61.
Also in this case, as in the color key process, the alpha blending calculation process does not occur, so that drawing is performed at a high speed.

実施の形態2.
図6は、この発明の実施の形態2の画像出力装置を示すブロック図である。図6において、図1と同じ符号は同一又は類似の部材を示す。
31は、パーソナルコンピュータであり、画面部品としてのビットマップデータBMDに対し、図7(a)、(b)に示す千鳥格子状のカラーキーパターンを塗る。即ち、図7(a)、(b)のカラーキーパターンに重なる画素をカラーキーの色の画素で置換え、置き換えたビットマップ画像を生成する。カラーキーで置き換える部分の大きさ(従って、全体に対する面積比)は、透過率に応じて変えられる。異なる透過率の画像(例えばn種類の画像)が必要な場合には、カラーキーで置き換える部分の大きさが異なる(n種類の)画像を用意しておく。図7(a)には、カラーキーで置き換える部分の大きさが比較的小さいものを示し、図7(b)には、カラーキーで置き換える部分の大きさが較的大きいものを示す。生成された画像(カラーキーパターンが上塗りされた画像)のデータは、画像出力装置を動作させるためのプログラムと一緒にフラッシュメモリ、メモリカードなどの記録媒体32などに書き込まれ、画像出力装置に提供される。
Embodiment 2. FIG.
FIG. 6 is a block diagram showing an image output apparatus according to Embodiment 2 of the present invention. In FIG. 6, the same reference numerals as those in FIG. 1 denote the same or similar members.
A personal computer 31 applies a staggered color key pattern shown in FIGS. 7A and 7B to the bitmap data BMD as a screen component. That is, pixels that overlap the color key patterns in FIGS. 7A and 7B are replaced with pixels of the color of the color key, and a replaced bitmap image is generated. The size of the portion to be replaced with the color key (and hence the area ratio relative to the whole) can be changed according to the transmittance. When images with different transmittances (for example, n types of images) are required, images with different sizes (n types) to be replaced with color keys are prepared. FIG. 7A shows a case where the size of the portion replaced with the color key is relatively small, and FIG. 7B shows a case where the size of the portion replaced with the color key is relatively large. The data of the generated image (image with the color key pattern overcoated) is written to a recording medium 32 such as a flash memory or a memory card together with a program for operating the image output device and provided to the image output device. Is done.

このようなカラーキーパターンで上塗りされた画像を用いることで、アルファブレンド処理の行う代わりに、カラーキー手段処理を行って擬似アルファブレンド画像(「擬似半透過処理用画像」)を生成することができる。   By using an image overcoated with such a color key pattern, a pseudo alpha blend image (“pseudo translucent image”) can be generated by performing color key means processing instead of performing alpha blend processing. it can.

実施の形態3.
図8は、OSD画面レイアウトの例である。11はディスプレイ画面、12はフォーカス(ハイライト)が当たっているボタン画像、13及び14はフォーカスが当たっていないボタン画像、15はフォーカスが当たっているボタンに応じて、表示される内容が変化する情報表示領域である。
Embodiment 3 FIG.
FIG. 8 is an example of the OSD screen layout. 11 is a display screen, 12 is a button image that is in focus (highlight), 13 and 14 are button images that are not in focus, and 15 is a display content that changes depending on the button that is in focus. This is an information display area.

符号11で示される画面を表示させる場合、リモコンの上下カーソルキーを押すと、ボタン12からボタン13へフォーカスが移動する。このような表示を行うには、1つのボタンにつきフォーカスが当たっている画像と当たっていない画像の2種類を用意する方法がある。そのときに、フォーカスが当たっているものをフォーカスが当たっていないものと幅、高さともに同じ寸法にしておくと、ボタン画像を描画しなおすときに上書きするだけでよく、クリア処理を呼び出す必要がない。このように定位置に表示するボタン画像の大きさはすべて同じものに揃え、OSD全体を非表示にするときのみクリア処理を呼び出すようにする。   When the screen indicated by reference numeral 11 is displayed, the focus moves from the button 12 to the button 13 by pressing the up and down cursor keys on the remote control. In order to perform such display, there is a method of preparing two types of images, one focused image and one unfocused image, for each button. At that time, if you set the focused and the same width and height as the unfocused one, you only need to overwrite it when you redraw the button image, and you need to call the clear process. Absent. In this way, the button images displayed at the fixed positions are all the same size, and the clear process is called only when the entire OSD is not displayed.

実施の形態4.
図9は動画を背景とした場合のOSDを表している。図において、21はディスプレイ画面、22は背景の動画、23はOSDで表されたタイムコードである。タイムコードのように一定時間単位で表示を更新し、即時応答性が必要なリアルタイム性を要求されるOSD描画については、カラーキー処理により描画を行う。図9において、1文字ごとに1つのビットマップ画像が貼り付けられる場合、矩形の中に数字が書かれているため、合成処理を施さない場合には、数字の周りの下層のビデオあるいは静止画像が隠される。この問題を解決するために、数字の背景をカラーキーで塗りつぶし、カラーキーの色設定を行う。カラーキーで塗られた部分はグラフィックメモリに転送されないので、合成した画面にはビデオの上に矩形の背景なしで数字が表示される。
Embodiment 4 FIG.
FIG. 9 shows an OSD when a moving image is used as a background. In the figure, 21 is a display screen, 22 is a background video, and 23 is a time code expressed in OSD. For OSD drawing that requires a real-time response that requires immediate responsiveness, such as time code, the display is updated, and drawing is performed by color key processing. In FIG. 9, when one bitmap image is pasted for each character, a number is written in a rectangle. Therefore, if no composition processing is performed, a lower-layer video or still image around the number is displayed. Is hidden. In order to solve this problem, the background of the number is filled with the color key, and the color setting of the color key is performed. Since the part painted with the color key is not transferred to the graphic memory, a number is displayed on the synthesized screen without a rectangular background.

実施の形態5.
リアルタイム性が要求されないような描画速度が重視されない画面を構成する場合にはアルファブレンド処理を実施しても問題はないが、実施の形態4のようにタイムコードを表示するような場合や実施の形態3のようにリモコン操作に連動してフォーカス移動を行うような場合には、アルファブレンド用の画像を使用すると表示速度が追いつかないことがある。
Embodiment 5 FIG.
When configuring a screen that does not place importance on the drawing speed that does not require real-time performance, there is no problem even if the alpha blending process is performed. When focus movement is performed in conjunction with the remote control operation as in the third mode, the display speed may not be able to catch up if an image for alpha blending is used.

この問題を解決するために、図10に示すように、条件判断手段2内に、高速表示を行なうかどうかの判断をする画面モード管理手段2cを追加する。ボタン画像のフォーカス表示の切り替えを行うような画面デザインや時計表示を行うような即時応答が必要な場面は、乗算および除算を伴う演算処理をする画面合成処理、例えばアルファブレンド処理を禁止する。   In order to solve this problem, as shown in FIG. 10, a screen mode management means 2c for determining whether to perform high-speed display is added in the condition judgment means 2. In a scene that requires an immediate response such as a screen design for switching the focus display of a button image or a clock display, screen composition processing that performs arithmetic processing involving multiplication and division, such as alpha blending processing, is prohibited.

一方、たとえば番組詳細情報を、背景が動画である画面に重ねて表示させる場合のように、即時応答性があまり求められないような場合にはアルファブレンド処理を許可する。   On the other hand, alpha blend processing is permitted when the immediate responsiveness is not so required, for example, when the detailed program information is displayed on a screen whose background is a moving image.

図11に処理フローを示す。図11は図5の処理フローの変形であり、図5と同一の符号は、同様の処理ステップを示す。   FIG. 11 shows a processing flow. FIG. 11 is a modification of the processing flow of FIG. 5, and the same reference numerals as those in FIG. 5 indicate similar processing steps.

ステップS73で全透過ではない(ステップS73でNo)場合には、ステップS91に進む。ステップS91では、リアルタイム性が要求されるモード(即ち、高速表示を行なうモード)かどうかを判別し、リアルタイム性が不要な場合には(ステップS91でNo)となり、ステップS77に進みアルファブレンド処理を行う。   If it is not total transmission in step S73 (No in step S73), the process proceeds to step S91. In step S91, it is determined whether or not the mode requires real-time characteristics (that is, a mode for performing high-speed display). If real-time characteristics are not required (No in step S91), the process proceeds to step S77 and alpha blending processing is performed. Do.

リアルタイム性が必要な場合には(ステップS91でYes)、実施の形態2で示したようなアルファブレンドを使わなくても背景が透けて見える画像を使い、カラーキー処理ができる代替画像(千鳥格子状カラーキーパターンを塗った画像、即ち、擬似半透過処理用画像)に置換し(ステップS92)、ステップS76に進んでカラーキー処理を行う。   When real-time characteristics are required (Yes in step S91), an alternative image that can perform color key processing using an image that shows through the background without using alpha blending as described in the second embodiment (Satoshi Chidori) The image is replaced with an image coated with a child color key pattern, that is, a pseudo-translucent image (step S92), and the process proceeds to step S76 to perform color key processing.

なお、リアルタイム性の必要性の有無のモード管理は描画を行うためのプログラムのフラグのオン、オフ(ON、OFF)で実現することができる。   Note that mode management for the necessity of real-time capability can be realized by turning on and off (ON, OFF) a flag of a program for drawing.

アルファブレンド禁止モードで処理するのが適切な表示には、図8に示される、リモコンのカーソルキーの操作によるフォーカス(ハイライト)の移動表示のほか、スポーツ番組の時間表示、字幕表示などがある。アルファブレンド許可モードで処理するのが適切な表示には、チャンネル番号表示、番組名表示、番組詳細情報表示などがある。   Display suitable for processing in the alpha blend prohibition mode includes movement display of focus (highlight) by operating the cursor key of the remote controller shown in FIG. 8, sports program time display, subtitle display, and the like. . Display suitable for processing in the alpha blend permission mode includes channel number display, program name display, and program detailed information display.

実施の形態6.
図12は、実施の形態6の画像出力装置を示す。図示の画像出力装置は、図10に示すものと概して同じであるが、条件判断手段2が領域管理手段2dを備える。
Embodiment 6 FIG.
FIG. 12 shows an image output apparatus according to the sixth embodiment. The illustrated image output apparatus is generally the same as that shown in FIG. 10, but the condition determination means 2 includes an area management means 2d.

図13は実施の形態6の動作を説明するための図である。図13において81は画面全体、82は動画像の主要な領域を示しており、OSDによって動画像の表示を妨げられないようにしたい領域(「アルファブレンド必須領域」とも呼ばれる)を示している。83は動画像の一部が隠れてもあまりユーザーが気にしない領域を表している。図示の例では、領域83は、画面の周辺部に位置し、領域82は、画面の中央部、即ち、周辺部83以外の部分から成る。動画像の表示を極力邪魔しないようにOSDを表示する場合、実施の形態5で示したモード管理手段2cに加え、図12に示すように、領域管理をする手段2dを条件判断手段2内に設け、動画像の主要な領域82は、アルファブレンド処理が必須の領域とし、動画像の一部が隠れてもあまりユーザーが気にしない領域83はアルファブレンド処理が不要な領域として処理する。アルファブレンド処理が不要な領域83に描画するときは図7のカラーキーパターンで塗りつぶした画像を用いたカラーキー処理を行うようにする。   FIG. 13 is a diagram for explaining the operation of the sixth embodiment. In FIG. 13, reference numeral 81 denotes the entire screen, and reference numeral 82 denotes a main area of the moving image, which indicates an area (also referred to as “alpha blend essential area”) that is desired to prevent the display of the moving image by the OSD. Reference numeral 83 denotes an area where the user does not care much even if a part of the moving image is hidden. In the illustrated example, the region 83 is located in the peripheral portion of the screen, and the region 82 includes a central portion of the screen, that is, a portion other than the peripheral portion 83. When displaying the OSD so as not to disturb the display of moving images as much as possible, in addition to the mode management means 2c shown in the fifth embodiment, means 2d for area management is included in the condition judgment means 2 as shown in FIG. The main area 82 of the moving image is an area in which the alpha blending process is indispensable, and the area 83 that the user does not care much even if a part of the moving image is hidden is processed as an area that does not need the alpha blending process. When drawing in an area 83 that does not require alpha blending processing, color key processing using an image painted with the color key pattern of FIG. 7 is performed.

図14は、実施の形態6の装置の動作を示す。図14は、図11と概して同じであるが、ステップS93が付加されている。   FIG. 14 shows the operation of the apparatus of the sixth embodiment. FIG. 14 is generally the same as FIG. 11 except that step S93 is added.

リアルタイム性(高速処理)が不要の場合には、図14のステップS91でNoとなるが、次にステップS93において、領域判定を行なう。この領域判定では、描画するビットマップを配置する位置が図13のアルファブレンド必須領域82と重なっているかどうかを判定する。もし、アルファブレンド必須領域82にビットマップを描画する場合は、ステップS77のアルファブレンド処理を実行するが、アルファブレンド不要領域83のみにビットマップ画像を描画する場合には、ステップS92に進み、カラーキーパターンで塗りつぶした画像(代替画像)を用いてカラーキー処理(S76)を行なう。このようにすることで、演算処理をさらに少なくすることができる。   If real-time performance (high-speed processing) is not required, No is determined in step S91 in FIG. 14, but then region determination is performed in step S93. In this area determination, it is determined whether or not the position where the bitmap to be drawn is arranged overlaps the alpha blend essential area 82 in FIG. If a bitmap is to be rendered in the alpha blend required area 82, the alpha blend process in step S77 is executed. If a bitmap image is to be rendered only in the alpha blend unnecessary area 83, the process proceeds to step S92, where color Color key processing (S76) is performed using an image (substitute image) painted with a key pattern. By doing so, the arithmetic processing can be further reduced.

なお、ステップS91を省略し、ステップS73でNoのとき、ステップS93に進むこととしても良い。即ち、リアルタイム性要求モードかどうかの判定を行なわず、領域判定を行ない、その結果に応じてアルファブレンド処理又は、代替画像を用いたカラーキー処理を行なうようにしても良い。   Note that step S91 may be omitted, and the process may proceed to step S93 when No in step S73. In other words, the region determination may be performed without determining whether the mode is the real-time requirement mode, and the alpha blend process or the color key process using the substitute image may be performed according to the result.

本発明の活用例として、ビデオレコーダーおよびテレビジョン受像機のOSD表示に適用できる。   As an application example of the present invention, it can be applied to OSD display of a video recorder and a television receiver.

この発明の実施の形態1の画像出力装置を示すブロック図である。1 is a block diagram illustrating an image output device according to a first embodiment of the present invention. (a)〜(d)は、現在描画されている画面部品と、これから描画しようとしている画面部品との関係を示す図である。(A)-(d) is a figure which shows the relationship between the screen components currently drawn and the screen components which are going to draw from now on. 図1の合成処理手段の一例を示すブロック図である。It is a block diagram which shows an example of the synthetic | combination process means of FIG. 実施の形態1の画像出力装置で用いられる画面部品のデータ構造を示す図である。3 is a diagram illustrating a data structure of a screen component used in the image output apparatus according to Embodiment 1. FIG. 図1の条件判断手段2の処理手順を示すフロー図である。It is a flowchart which shows the process sequence of the condition judgment means 2 of FIG. この発明の実施の形態2の画像出力装置を示すブロック図である。It is a block diagram which shows the image output device of Embodiment 2 of this invention. (a)及び(b)は、実施の形態2で用いられるカラーキーパターンの例を示す図である。(A) And (b) is a figure which shows the example of the color key pattern used in Embodiment 2. FIG. OSD画面レイアウトの例を示す図である。It is a figure which shows the example of an OSD screen layout. 動画を背景とした場合のOSDの例を示すである。It is an example of OSD when a moving image is used as a background. この発明の実施の形態5の画像出力装置を示すブロック図である。It is a block diagram which shows the image output device of Embodiment 5 of this invention. 図10の条件判断手段2の処理手順を示すフロー図である。It is a flowchart which shows the process sequence of the condition judgment means 2 of FIG. この発明の実施の形態6の画像出力装置を示すブロック図である。It is a block diagram which shows the image output device of Embodiment 6 of this invention. 領域管理の概念図である。It is a conceptual diagram of area management. 図12の条件判断手段2の処理手順を示すフロー図である。It is a flowchart which shows the process sequence of the condition judgment means 2 of FIG.

符号の説明Explanation of symbols

1 画像分類管理手段、 2 条件判断手段、 3 クリア処理手段、 5 合成処理手段、 6 ビデオデコード手段、 7 描画手段、 8 フレームメモリ、 41 第1層グラフィック生成手段、 42 スイッチ、 43 アルファブレンド処理手段、 44 カラーキー処理手段、 45 スイッチ、 46 第1層グラフィックメモリ、 51 第2層グラフィック生成手段、 52 スイッチ、 53 アルファブレンド処理手段、 54 カラーキー処理手段、 55 スイッチ、 56 第2層グラフィックメモリ、 61 加算手段。   DESCRIPTION OF SYMBOLS 1 Image classification management means, 2 Condition judgment means, 3 Clear processing means, 5 Composition processing means, 6 Video decoding means, 7 Drawing means, 8 Frame memory, 41 1st layer graphic generation means, 42 Switch, 43 Alpha blend processing means 44 color key processing means, 45 switch, 46 first layer graphic memory, 51 second layer graphic generation means, 52 switch, 53 alpha blend processing means, 54 color key processing means, 55 switch, 56 second layer graphic memory, 61 Addition means.

Claims (4)

複数の静止画像の、矩形の画面部品を重ねて1つの画面を表示する装置において、
1つの画面を構成する第1の画面部品を、第2の画面部品に置き換えるときに、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含むか否かを判断する条件判断手段と、
前景の画素と背景の画素を重ね合わせて画面合成を行う合成処理手段とを備え、
前記合成処理手段は、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含む場合には、前記第1の画面部品をフレームメモリから消去せずに前記第2の画面部品を描画し、
前記条件判断手段は、画面合成を高速に処理する必要があるかどうかを判断し、
画像合成を高速に処理する必要がある場合には、乗算及び除算を伴う演算処理をする画面合成処理を禁止する
ことを特徴とする画像出力装置。
In a device that displays a single screen by overlapping rectangular screen components of multiple still images,
When replacing a first screen component constituting one screen with a second screen component, the area of the second screen component is exactly the same as the area occupied by the first screen component, or the first Condition determining means for determining whether or not the entire area occupied by one screen component is included;
Synthesis processing means for performing screen synthesis by superimposing foreground pixels and background pixels,
When the area of the second screen component is exactly the same as the area occupied by the first screen component or includes the entire area occupied by the first screen component, Rendering the second screen part without erasing the first screen part from the frame memory ;
The condition determining means determines whether it is necessary to process screen composition at high speed,
An image output device characterized by prohibiting screen composition processing for performing arithmetic processing involving multiplication and division when image composition needs to be processed at high speed .
複数の静止画像の、矩形の画面部品を重ねて1つの画面を表示する装置において、
1つの画面を構成する第1の画面部品を、第2の画面部品に置き換えるときに、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含むか否かを判断する条件判断手段と、
前景の画素と背景の画素を重ね合わせて画面合成を行う合成処理手段とを備え、
前記合成処理手段は、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含む場合には、前記第1の画面部品をフレームメモリから消去せずに前記第2の画面部品を描画し、
半透過処理すべき静止画像の画面部品に加えて、該画面部品の透過率に応じた面積割合
で、カラーキーパターンに置換えた擬似半透過処理用画像を用意しておき、
前記条件判断手段は、静止画像の画面部品を高速に処理すべきであるかどうかを判断し、
前記合成処理手段は、高速に処理すべきものである場合には、前記擬似半透過処理用画像を用いて合成を行い、高速に処理すべきものではない場合には、半透過処理を行うことを特徴とする画像出力装置。
In a device that displays a single screen by overlapping rectangular screen components of multiple still images,
When replacing a first screen component constituting one screen with a second screen component, the area of the second screen component is exactly the same as the area occupied by the first screen component, or the first Condition determining means for determining whether or not the entire area occupied by one screen component is included;
Synthesis processing means for performing screen synthesis by superimposing foreground pixels and background pixels,
When the area of the second screen component is exactly the same as the area occupied by the first screen component or includes the entire area occupied by the first screen component, Rendering the second screen part without erasing the first screen part from the frame memory;
In addition to the screen image of the still image to be translucently processed, an image for pseudo translucent processing replaced with a color key pattern at an area ratio corresponding to the transmittance of the screen component is prepared,
The condition determining means determines whether or not the still image screen component should be processed at a high speed,
The composition processing means performs composition using the pseudo-translucent processing image when it should be processed at high speed, and performs semi-transparent processing when it should not be processed at high speed. the images output device you.
複数の静止画像の、矩形の画面部品を重ねて1つの画面を表示する方法において、
1つの画面を構成する第1の画面部品を、第2の画面部品に置き換えるときに、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含むか否かを判断する条件判断ステップと、
前景の画素と背景の画素を重ね合わせて画面合成を行う合成処理ステップとを備え、
前記合成処理ステップは、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含む場合には、前記第1の画面部品をフレームメモリから消去せずに前記第2の画面部品を描画し、
前記条件判断ステップは、画面合成を高速に処理する必要があるかどうかを判断し、画像合成を高速に処理する必要がある場合には、乗算及び除算を伴う演算処理をする画面合成処理を禁止する
ことを特徴とする画面構成方法。
In a method of displaying a single screen by superimposing rectangular screen components of multiple still images,
When replacing a first screen component constituting one screen with a second screen component, the area of the second screen component is exactly the same as the area occupied by the first screen component, or the first A condition determining step for determining whether or not the entire area occupied by one screen component is included;
A composition processing step for performing screen composition by superimposing foreground pixels and background pixels,
If the area of the second screen component is the same as the area occupied by the first screen component or includes the entire area occupied by the first screen component, Rendering the second screen part without erasing the first screen part from the frame memory ;
The condition determining step determines whether it is necessary to process the screen composition at a high speed. If it is necessary to process the image composition at a high speed, the screen composition process for performing arithmetic processing involving multiplication and division is prohibited. A screen composition method characterized by:
複数の静止画像の、矩形の画面部品を重ねて1つの画面を表示する方法において、
1つの画面を構成する第1の画面部品を、第2の画面部品に置き換えるときに、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含むか否かを判断する条件判断ステップと、
前景の画素と背景の画素を重ね合わせて画面合成を行う合成処理ステップとを備え、
前記合成処理ステップは、前記第2の画面部品の領域が前記第1の画面部品で占められる領域と全く同じ、或いは、前記第1の画面部品で占められる領域の全体を含む場合には、前記第1の画面部品をフレームメモリから消去せずに前記第2の画面部品を描画し、
半透過処理すべき静止画像の画面部品に加えて、該画面部品の透過率に応じた面積割合
で、カラーキーパターンに置換えた擬似半透過処理用画像を用意しておき、
前記条件判断ステップは、静止画像の画面部品を高速に処理すべきであるかどうかを判断し、
前記合成処理ステップは、高速に処理すべきものである場合には、前記擬似半透過処理用画像を用いて合成を行い、高速に処理すべきものではない場合には、半透過処理を行うことを特徴とする画面構成方法。
In a method of displaying a single screen by superimposing rectangular screen components of multiple still images,
When replacing a first screen component constituting one screen with a second screen component, the area of the second screen component is exactly the same as the area occupied by the first screen component, or the first A condition determining step for determining whether or not the entire area occupied by one screen component is included;
A composition processing step for performing screen composition by superimposing foreground pixels and background pixels,
If the area of the second screen component is the same as the area occupied by the first screen component or includes the entire area occupied by the first screen component, Rendering the second screen part without erasing the first screen part from the frame memory;
In addition to the screen image of the still image to be translucently processed, an image for pseudo translucent processing replaced with a color key pattern at an area ratio corresponding to the transmittance of the screen component is prepared,
The condition determining step determines whether or not to process the still image screen component at a high speed,
The composition processing step performs composition using the pseudo-translucent processing image when it is to be processed at high speed, and performs semitransparent processing when it is not to be processed at high speed. to that screen configuring and.
JP2007225845A 2007-08-31 2007-08-31 Image output apparatus and screen composition method Expired - Fee Related JP5057895B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007225845A JP5057895B2 (en) 2007-08-31 2007-08-31 Image output apparatus and screen composition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007225845A JP5057895B2 (en) 2007-08-31 2007-08-31 Image output apparatus and screen composition method

Publications (3)

Publication Number Publication Date
JP2009060373A JP2009060373A (en) 2009-03-19
JP2009060373A5 JP2009060373A5 (en) 2009-12-17
JP5057895B2 true JP5057895B2 (en) 2012-10-24

Family

ID=40555703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007225845A Expired - Fee Related JP5057895B2 (en) 2007-08-31 2007-08-31 Image output apparatus and screen composition method

Country Status (1)

Country Link
JP (1) JP5057895B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5022324B2 (en) * 2008-09-12 2012-09-12 ルネサスエレクトロニクス株式会社 Image processing apparatus and method
JP2012007829A (en) * 2010-06-25 2012-01-12 Sharp Corp Heating cooker
JP5418946B2 (en) * 2011-05-13 2014-02-19 福建捷聯電子有限公司 How to control the display via dual keys
JP5991638B2 (en) * 2011-12-06 2016-09-14 株式会社オリンピア Game machine
JP5776096B2 (en) * 2012-02-14 2015-09-09 カルソニックカンセイ株式会社 Display control device for vehicle
JP6238509B2 (en) * 2012-06-04 2017-11-29 三菱電機株式会社 Display control apparatus and display control method
JP2018050154A (en) * 2016-09-21 2018-03-29 三菱電機株式会社 Image synthesizer and image composition method
CN109547700A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 Photographic method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005189663A (en) * 2003-12-26 2005-07-14 Matsushita Electric Ind Co Ltd Multi-layer image composing system

Also Published As

Publication number Publication date
JP2009060373A (en) 2009-03-19

Similar Documents

Publication Publication Date Title
JP5057895B2 (en) Image output apparatus and screen composition method
US9355493B2 (en) Device and method for compositing video planes
JP2005292975A (en) Button processing method and data processor
KR20160120343A (en) Cross-platform rendering engine
US8584005B1 (en) Previewing redaction content in a document
CN104038807A (en) Layer mixing method and device based on open graphics library (OpenGL)
US20130129206A1 (en) Methods and Apparatus for Improved Display of Foreground Elements
JP4926852B2 (en) Image display device, image data providing device, image display system, image display system control method, control program, and recording medium
JP5650740B2 (en) Design support apparatus, design support program, design support method, and integrated circuit
CN113082696A (en) Display control method and device and electronic equipment
TWI470577B (en) Method and apparatus for rendering overlapped objects
JP2009230760A (en) Image processor and image processing method
CN109104628B (en) Focus foreground generation method, storage medium, device and system of android television
JP4860561B2 (en) Image display device, image data providing device, image display system, image display system control method, control program, and recording medium
JP2005135415A (en) Graphic decoder including command based graphic output accelerating function, graphic output accelerating method therefor, and image reproducing apparatus
JP2009094902A (en) Image synthesizing apparatus, image synthesizing method, program and recoding medium
US20090080802A1 (en) Information processing apparatus and method for generating composite image
TW202025080A (en) Methods and devices for graphics processing
JP7267429B2 (en) Display control device, display control method and program
JP2008067356A (en) Image display device, image data providing device, image display system, image display system control method, control program, and recording medium
JP4911585B2 (en) Image processing apparatus, image processing method, program, and information recording medium
JP4707867B2 (en) Video composition device
JP3358595B2 (en) Image display method, image display device, and recording medium recording image display program
US20170147537A1 (en) Method, apparatus and system for reproducing a document defined in a page description language
JP7284272B2 (en) Image transmission device, image transmission method and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091029

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120522

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120608

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120731

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

Free format text: PAYMENT UNTIL: 20150810

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees