Nothing Special   »   [go: up one dir, main page]

JPWO2015083279A1 - Information processing device - Google Patents

Information processing device Download PDF

Info

Publication number
JPWO2015083279A1
JPWO2015083279A1 JP2015551352A JP2015551352A JPWO2015083279A1 JP WO2015083279 A1 JPWO2015083279 A1 JP WO2015083279A1 JP 2015551352 A JP2015551352 A JP 2015551352A JP 2015551352 A JP2015551352 A JP 2015551352A JP WO2015083279 A1 JPWO2015083279 A1 JP WO2015083279A1
Authority
JP
Japan
Prior art keywords
display list
information processing
processing apparatus
subroutine
drawn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2015551352A
Other languages
Japanese (ja)
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 JPWO2015083279A1 publication Critical patent/JPWO2015083279A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

情報処理装置(100)は、CPU(1)により、特定の機能を実現するための情報処理が行われるとともに、全体的な制御が行われる装置である。情報処理装置(100)では、描画回路(2)が、実行開始命令を受信すると、VRAM(3)に記憶した、静止画を描画する命令の集合であるディスプレイリスト(31)を実行して、静止画を描画する。静止画が描画されると、CPU(1)によりVRAM(3)が記憶したディスプレイリスト(31)を書き換え、実行開始命令を描画回路(2)へ送信する。これにより、情報処理装置(100)は、アニメーションを表示する。The information processing apparatus (100) is an apparatus in which the CPU (1) performs information processing for realizing a specific function and performs overall control. In the information processing apparatus (100), when the drawing circuit (2) receives the execution start command, it executes the display list (31), which is a set of commands for drawing a still image, stored in the VRAM (3), Draw a still image. When a still image is drawn, the display list (31) stored in the VRAM (3) is rewritten by the CPU (1), and an execution start command is transmitted to the drawing circuit (2). Thereby, the information processing apparatus (100) displays the animation.

Description

この発明は、情報処理装置におけるアニメーション描画技術に関する。   The present invention relates to an animation drawing technique in an information processing apparatus.

産業用機器や基盤設備機器等のCPU(Central Processing Unit,処理装置の一例)によって特定の情報処理を行う情報処理装置では、以前は、単純なHMI(Human Machine Interface)が用いられていた。しかし、最近は、情報処理装置では、アニメーションが使用されることが増えている。   In an information processing apparatus that performs specific information processing using a CPU (Central Processing Unit, an example of a processing apparatus) such as an industrial device or a basic equipment, a simple HMI (Human Machine Interface) has been used in the past. However, recently, animation is increasingly used in information processing apparatuses.

アニメーションは、表示されているボタンや絵等、画面を構成する部品の位置やサイズ、色といった属性が少しずつ異なる複数の静止画を順に描画することで実現される。アニメーションを滑らかに見せるためには、30fps(frame per second)程度以上の速度で描画を実行する必要がある。   The animation is realized by sequentially drawing a plurality of still images having slightly different attributes such as displayed buttons and pictures, such as the position, size, and color of the components constituting the screen. In order to make the animation look smooth, it is necessary to perform drawing at a speed of about 30 fps (frame per second) or more.

しかし、産業機器や基盤設備機器のように用途が限定された情報処理装置は、必要最低限の性能しか持たないため、30fps以上の速度で描画を実行することは困難である。
そのため、このような情報処理装置では、アニメーションを実現するために専用の描画回路を搭載することが多い。しかし、描画回路がアニメーションを実現するための全ての処理を実行する場合、回路規模が大きくなり、コストが上昇してしまう。反対に、描画回路の回路規模を小さくし、一部の処理をCPUで実行する場合、CPUの負荷が大きくなり、描画以外の処理を圧迫してしまう。
However, information processing apparatuses with limited applications such as industrial equipment and infrastructure equipment have only the minimum necessary performance, and it is difficult to execute drawing at a speed of 30 fps or higher.
For this reason, such an information processing apparatus is often equipped with a dedicated drawing circuit for realizing animation. However, when the drawing circuit executes all the processes for realizing the animation, the circuit scale increases and the cost increases. On the other hand, when the circuit scale of the drawing circuit is reduced and a part of the processing is executed by the CPU, the load on the CPU increases, and processing other than drawing is under pressure.

特許文献1には、CPUの負荷を小さく抑えつつ、描画回路の回路規模を小さくして、アニメーションを実現する技術についての記載がある。
特許文献1に記載された技術では、画面を構成する部品であるスプライト画像の集合と、各スプライト画像を描画する位置及び大きさを表すスプライト属性と、スプライト画像を描画する手順を記録したアニメーション実行プログラムとを用意しておく。そして、描画回路がアニメーション実行プログラムを解釈し、スプライト属性を参照してスプライト画像を描画する。一方で、CPUは、経過時間に応じてスプライト属性を書き換える処理だけを実行する。
Japanese Patent Application Laid-Open No. 2004-228561 describes a technique for realizing an animation by reducing the circuit scale of a drawing circuit while keeping the load on the CPU small.
In the technique described in Patent Literature 1, a set of sprite images that are components constituting a screen, sprite attributes representing the position and size of drawing each sprite image, and an animation execution that records the procedure for drawing the sprite image Prepare a program. Then, the drawing circuit interprets the animation execution program and draws the sprite image with reference to the sprite attribute. On the other hand, the CPU executes only the process of rewriting the sprite attribute according to the elapsed time.

特開2011−018291号公報JP 2011-018291 A

しかし、特許文献1に記載された技術では、アニメーション実行プログラムが固定されているため、アニメーション表現に制限がある。
例えば、スプライト画像を描画する順を変更できないため、重なった位置にスプライト画像を描画する場合に、スプライト画像の配置の前後関係を変更することができない。アニメーションの途中でスプライト画像を別のスプライト画像に置き換えたり、スプライト画像の数を増減したりすることもできない。スプライト画像も予め定められているため、アニメーションの進行に応じて一部の画像を変更することもできない。スプライト画像がラスタ画像であるため、拡大すると品質が低下してしまう。
However, in the technique described in Patent Document 1, since the animation execution program is fixed, there is a limitation in animation expression.
For example, since the order in which the sprite images are drawn cannot be changed, when the sprite images are drawn at overlapping positions, the order of the arrangement of the sprite images cannot be changed. You cannot replace a sprite image with another sprite image or increase or decrease the number of sprite images during the animation. Since the sprite image is also determined in advance, a part of the image cannot be changed as the animation progresses. Since the sprite image is a raster image, the quality deteriorates when it is enlarged.

この発明は、CPU負荷を小さく抑えつつ、描画回路の回路規模を小さくして、柔軟な表現が可能なアニメーションを実現することを目的とする。   An object of the present invention is to realize an animation capable of flexible expression by reducing the circuit scale of a drawing circuit while keeping the CPU load small.

この発明に係る情報処理装置は、
処理装置により情報処理を行う情報処理装置であって、複数の静止画を順に描画することにより実現されるアニメーションを表示する機能を有する情報処理装置であり、
1つの静止画を描画する命令の集合であるディスプレイリストを記憶する記憶装置と、
実行開始命令を受信すると、前記記憶装置によって記憶されたディスプレイリストを実行して、静止画を描画する描画回路と
を備え、
前記処理装置は、前記描画回路によって静止画が描画されると、前記ディスプレイリストを書き換え、新たな実行開始命令を前記描画回路へ送信する
ことを特徴とする。
An information processing apparatus according to the present invention includes:
An information processing apparatus that performs information processing by a processing apparatus, an information processing apparatus having a function of displaying an animation realized by sequentially drawing a plurality of still images,
A storage device for storing a display list which is a set of instructions for drawing one still image;
A drawing circuit for executing a display list stored by the storage device and drawing a still image upon receiving an execution start command;
When the still image is drawn by the drawing circuit, the processing device rewrites the display list and transmits a new execution start command to the drawing circuit.

この発明に係る情報処理装置では、描画回路は、ディスプレイリストを実行して静止画を描画するだけであるため、回路規模が小さい。処理装置は、ディスプレイリストを書き換えるだけであるため、負荷が小さい。また、静止画を描画する命令の集合であるディスプレイリストを静止画毎に書き換えることにより、柔軟な表現が可能である。   In the information processing apparatus according to the present invention, since the drawing circuit only executes the display list and draws a still image, the circuit scale is small. Since the processing device only rewrites the display list, the load is small. In addition, flexible display is possible by rewriting a display list, which is a set of commands for drawing a still image, for each still image.

実施の形態1に係る情報処理装置100の構成図。1 is a configuration diagram of an information processing apparatus 100 according to Embodiment 1. FIG. 実施の形態1に係る情報処理装置100のアニメーション描画処理を示すフローチャート。5 is a flowchart showing an animation drawing process of the information processing apparatus 100 according to the first embodiment. ディスプレイリスト31を示す図。The figure which shows the display list 31. FIG. サブルーチンXで描画される図形を示す図。The figure which shows the figure drawn by the subroutine X. サブルーチンYで描画される図形を示す図。The figure which shows the figure drawn by the subroutine Y. FIG. サブルーチンXの各命令を示す図。The figure which shows each command of the subroutine X. サブルーチンXの説明図。Explanatory drawing of the subroutine X. FIG. 図3に示すディスプレイリスト31によって描画される出力画像32を示す図。The figure which shows the output image 32 drawn by the display list 31 shown in FIG. 書き換えられたディスプレイリスト31を示す図。The figure which shows the display list 31 rewritten. 図9に示すディスプレイリスト31によって描画される出力画像32を示す図。The figure which shows the output image 32 drawn by the display list 31 shown in FIG.

実施の形態1.
図1は、実施の形態1に係る情報処理装置100の構成図である。
情報処理装置100は、産業用機器や基盤設備機器等であり、特定の機能を有している。また、特定の機能をサポートするため等に、アニメーションを描画する機能を有している。
情報処理装置100は、CPU1、描画回路2、VRAM3(Video Random Access Memory)、出力部4を備える。
Embodiment 1 FIG.
FIG. 1 is a configuration diagram of an information processing apparatus 100 according to the first embodiment.
The information processing apparatus 100 is an industrial device, infrastructure equipment, or the like, and has a specific function. Also, it has a function of drawing an animation in order to support a specific function.
The information processing apparatus 100 includes a CPU 1, a drawing circuit 2, a VRAM 3 (Video Random Access Memory), and an output unit 4.

CPU1は、情報処理装置100が有する特定の機能を実現するための情報処理や、情報処理装置100の全体的な制御を行う。
CPU1は、アニメーションを描画する機能のうち、静止画を描画する命令の集合であるディスプレイリスト31をVRAM3に記憶し、1フレーム毎(静止画毎)にディスプレイリスト31の一部を書き換える処理を行う。また、CPU1は、描画回路2にディスプレイリスト31の実行開始命令を送信する。
The CPU 1 performs information processing for realizing a specific function of the information processing apparatus 100 and performs overall control of the information processing apparatus 100.
Among the functions for drawing animation, the CPU 1 stores a display list 31 that is a set of instructions for drawing a still image in the VRAM 3 and performs a process of rewriting a part of the display list 31 for each frame (for each still image). . In addition, the CPU 1 transmits an execution start command for the display list 31 to the drawing circuit 2.

描画回路2は、VRAM3に記憶されたディスプレイリスト31を実行して静止画である出力画像32を描画し、描画した出力画像32をVRAM3に出力する。
描画回路2は、ディスプレイリスト実行部21、描画部22を備える。ディスプレイリスト実行部21は、ディスプレイリスト31を実行して、描画用の命令やデータを出力する。描画部22は、ディスプレイリスト実行部21が出力した命令やデータに基づき、出力画像32を描画して、描画した出力画像32をVRAM3に出力する。
The drawing circuit 2 executes the display list 31 stored in the VRAM 3 to draw an output image 32 that is a still image, and outputs the drawn output image 32 to the VRAM 3.
The drawing circuit 2 includes a display list execution unit 21 and a drawing unit 22. The display list execution unit 21 executes the display list 31 and outputs drawing commands and data. The drawing unit 22 draws the output image 32 based on the command and data output from the display list execution unit 21 and outputs the drawn output image 32 to the VRAM 3.

VRAM3は、ディスプレイリスト31と、出力画像32とを記憶する記憶装置である。   The VRAM 3 is a storage device that stores a display list 31 and an output image 32.

出力部4は、VRAM3に出力された出力画像32をLCD(Liquid Crystal Display)等の表示装置に出力する。   The output unit 4 outputs the output image 32 output to the VRAM 3 to a display device such as an LCD (Liquid Crystal Display).

図2は、実施の形態1に係る情報処理装置100のアニメーション描画処理を示すフローチャートである。
まず、CPU1は、アニメーションの最初のフレームの描画内容を記述したディスプレイリスト31を生成し、又は、何らかの記憶装置から取得して、VRAM3に記憶する(S1)。そして、CPU1は、描画回路2にディスプレイリスト31の実行開始命令を送信する(S2)。
FIG. 2 is a flowchart showing an animation drawing process of the information processing apparatus 100 according to the first embodiment.
First, the CPU 1 generates a display list 31 describing the drawing contents of the first frame of the animation, or obtains it from some storage device and stores it in the VRAM 3 (S1). Then, the CPU 1 transmits an instruction to start execution of the display list 31 to the drawing circuit 2 (S2).

描画回路2のディスプレイリスト実行部21は、実行開始命令を受信すると、VRAM3に記憶されたディスプレイリスト31の命令を順に実行して、描画用の命令やデータを出力する(S3)。描画回路2の描画部22は、出力された命令やデータに基づき、出力画像32を描画して、描画した出力画像32をVRAM3に出力する(S4)。
出力部4は、VRAM3に出力された出力画像32を表示装置に出力する(S5)。
When receiving the execution start command, the display list execution unit 21 of the drawing circuit 2 sequentially executes the commands of the display list 31 stored in the VRAM 3 and outputs drawing commands and data (S3). The drawing unit 22 of the drawing circuit 2 draws the output image 32 based on the output command and data, and outputs the drawn output image 32 to the VRAM 3 (S4).
The output unit 4 outputs the output image 32 output to the VRAM 3 to the display device (S5).

CPU1は、次のフレームがあるか否かを判定する(S6)。
次のフレームがある場合(S6で“ある”)、CPU1は、次のフレームの描画内容を記述する命令に、VRAM3に記憶されたディスプレイリスト31を書き換える(S7)。そして、CPU1は、処理をS2に戻し、描画回路2にディスプレイリスト31の実行開始命令を送信する。
一方、次のフレームがない場合(S6で“ない”)、CPU1は、アニメーション描画処理を終了する。
The CPU 1 determines whether there is a next frame (S6).
When there is a next frame (“Yes” in S6), the CPU 1 rewrites the display list 31 stored in the VRAM 3 with a command describing the drawing contents of the next frame (S7). Then, the CPU 1 returns the process to S <b> 2 and transmits an execution start command for the display list 31 to the drawing circuit 2.
On the other hand, when there is no next frame (“No” in S6), the CPU 1 ends the animation drawing process.

図3は、ディスプレイリスト31を示す図である。
ディスプレイリスト31は、描画回路2が解釈可能な命令を順に並べたものである。ディスプレイリスト31は、少なくとも画面を構成する図形を描画する命令群であるサブルーチンと、サブルーチンを呼び出す呼出命令と、サブルーチンによって描画される図形の位置姿勢等の属性を指定する属性命令と、ディスプレイリスト31の終了を示す終了命令とを含む。
ディスプレイリスト31は、属性命令の次に呼出命令が配置され、呼出命令よりも後に呼出命令で呼び出されるサブルーチンが配置される。そして、最後の呼出命令の後に終了命令が配置される。
FIG. 3 is a diagram showing the display list 31.
The display list 31 is a list in which instructions that can be interpreted by the drawing circuit 2 are arranged in order. The display list 31 includes at least a subroutine that is a group of instructions for drawing graphics constituting the screen, a call instruction for calling the subroutine, an attribute instruction for designating attributes such as the position and orientation of the graphic drawn by the subroutine, and the display list 31. And an end instruction indicating the end of the.
In the display list 31, a call instruction is arranged next to the attribute instruction, and a subroutine called by the call instruction is arranged after the call instruction. An end instruction is arranged after the last call instruction.

図3に示すディスプレイリスト31では、アドレスA0に、回転、拡大縮小、平行移動等を同時に指定できる行列設定命令(属性命令の一例)が配置され、アドレスA1にアドレスA5に配置されたサブルーチンを呼び出す呼出命令が配置されている。さらに、アドレスA2には、再び、行列設定命令が配置され、アドレスA3にアドレスA6に配置されたサブルーチンを呼び出す呼出命令が配置されている。そして、アドレスA4には、終了命令が配置されている。   In the display list 31 shown in FIG. 3, a matrix setting instruction (an example of an attribute instruction) that can simultaneously specify rotation, enlargement / reduction, parallel movement, and the like is arranged at address A0, and a subroutine arranged at address A5 is called at address A1. A call instruction is arranged. Furthermore, a matrix setting instruction is again arranged at address A2, and a calling instruction for calling a subroutine arranged at address A6 is arranged at address A3. An end instruction is arranged at address A4.

ここでは、サブルーチンXは図4に示す矩形を描画するサブルーチンであり、サブルーチンYは図5に示す図形を描画するサブルーチンであるとする。   Here, it is assumed that the subroutine X is a subroutine for drawing a rectangle shown in FIG. 4, and the subroutine Y is a subroutine for drawing a graphic shown in FIG.

図6は、サブルーチンXの命令を示す図である。図7は、サブルーチンXの説明図である。
アドレスA50からアドレスA54までには、描画する矩形の各点1〜4の位置を指定する命令が配置されている。アドレスA55には、描画する線の太さを指定する命令が配置され、アドレスA56には、描画する線の色を指定する命令が配置されている。アドレスA57には、アドレスA50からアドレスA54までで指定した各点の間(点1と点2の間、点2と点3の間、点3と点4の間、点4と点1の間)を、アドレスA55,A56で指定した線で結ぶ命令が配置されている。アドレス58には、サブルーチンの呼び出し元に戻るリターン命令が配置されている。
FIG. 6 is a diagram illustrating an instruction of the subroutine X. FIG. 7 is an explanatory diagram of the subroutine X.
From address A50 to address A54, instructions for specifying the positions of the respective points 1 to 4 of the rectangle to be drawn are arranged. An instruction for designating the thickness of the line to be drawn is arranged at the address A55, and an instruction for designating the color of the line to be drawn is arranged at the address A56. Address A57 includes points designated by addresses A50 to A54 (between points 1 and 2, between points 2 and 3, between points 3 and 4, and between points 4 and 1). ) Are connected by a line designated by addresses A55 and A56. A return instruction for returning to the subroutine caller is arranged at the address 58.

サブルーチンYについても、サブルーチンXと同様に、まず各点の位置を指定する命令が配置され、その後に描画する線の太さ及び色を指定する命令が配置され、各点間を線で結ぶ命令が配置され、リターン命令が配置される。   As for subroutine Y, as in subroutine X, an instruction for designating the position of each point is first arranged, followed by an instruction for designating the thickness and color of the line to be drawn, and an instruction for connecting the points with lines. Is placed and a return instruction is placed.

情報処理装置100の動作例を説明する。
CPU1は、アニメーションの1フレーム目の描画内容を示すディスプレイリスト31をVRAM3に記憶した後(S1)、ディスプレイリスト31の実行開始命令を描画回路2に送信する(S2)。ここでは、図3に示すディスプレイリスト31がVRAM3に記憶されたものとする。
An operation example of the information processing apparatus 100 will be described.
The CPU 1 stores the display list 31 indicating the drawing contents of the first frame of the animation in the VRAM 3 (S1), and then transmits an execution start command for the display list 31 to the drawing circuit 2 (S2). Here, it is assumed that the display list 31 shown in FIG. 3 is stored in the VRAM 3.

すると、ディスプレイリスト実行部21は、ディスプレイリスト31を順に実行して描画用の命令やデータを出力し(S3)、描画部22は、出力された命令やデータに基づき、出力画像32を描画して、描画した出力画像32をVRAM3に出力する(S4)。ここでは、図8に示す出力画像32がVRAM3に出力されたものとする。
具体的には、ディスプレイリスト実行部21は、まず図3に示すディスプレイリスト31のアドレスA0の行列設定命令を読み込み、行列M0を出力する。次に、ディスプレイリスト実行部21は、アドレスA1の呼出命令を読み込み、呼出命令に従いアドレスA5のサブルーチンXへ移動する。そして、ディスプレイリスト実行部21は、図6に示すアドレスA50からアドレスA56までを順に読み込み、各点の位置と、線の太さ及び色とを出力し、さらにアドレスA57を読み込み、直線を描画する命令を出力する。
このとき、描画部22は、アドレスA50〜A54で指定された点の座標に行列M0で指定された回転、拡大縮小、平行移動等を作用させて各点の位置を決定し、アドレスA55,A56で指定された太さ及び色の線で、決定した各点をつないだ絵を描く。
続いて、ディスプレイリスト実行部21は、アドレスA58のリターン命令でアドレスA2に戻り、アドレスA3の行列設定命令の読み込み、サブルーチンYの実行を行い、命令及びデータを出力する。このとき、描画部22は、サブルーチンYで指定された点の座標に、アドレスA3の行列M1で指定された回転、拡大縮小、平行移動等を作用させて各点の位置を決定し、サブルーチンYで指定された太さ及び色の線で、決定した各点をつないだ絵を描く。
Then, the display list execution unit 21 sequentially executes the display list 31 and outputs drawing commands and data (S3), and the drawing unit 22 draws the output image 32 based on the output commands and data. The drawn output image 32 is output to the VRAM 3 (S4). Here, it is assumed that the output image 32 shown in FIG. 8 is output to the VRAM 3.
Specifically, the display list execution unit 21 first reads a matrix setting command at the address A0 of the display list 31 shown in FIG. 3, and outputs a matrix M0. Next, the display list execution unit 21 reads the call instruction at the address A1, and moves to the subroutine X at the address A5 according to the call instruction. Then, the display list execution unit 21 sequentially reads from the address A50 to the address A56 shown in FIG. 6, outputs the position of each point, the thickness and color of the line, further reads the address A57, and draws a straight line. Output instructions.
At this time, the drawing unit 22 determines the position of each point by applying the rotation, enlargement / reduction, parallel movement, etc., designated by the matrix M0 to the coordinates of the point designated by the addresses A50-A54, and addresses A55, A56. Draw a picture connecting the determined points with lines of thickness and color specified in.
Subsequently, the display list execution unit 21 returns to the address A2 by the return instruction at the address A58, reads the matrix setting instruction at the address A3, executes the subroutine Y, and outputs the instruction and data. At this time, the drawing unit 22 determines the position of each point by applying the rotation, enlargement / reduction, parallel movement, etc., designated by the matrix M1 of the address A3 to the coordinates of the point designated by the subroutine Y. Draw a picture connecting the determined points with lines of thickness and color specified in.

そして、出力部4は、VRAM3に出力された出力画像32を表示装置に出力する(S5)。   Then, the output unit 4 outputs the output image 32 output to the VRAM 3 to the display device (S5).

CPU1は、1フレーム目の静止画が表示装置に出力されると、次のフレームがあるか否かを判定する(S6)。ここでは、次のフレームがあるとする。
次のフレームがあるので、CPU1は、VRAM3に記憶されたディスプレイリスト31の一部を書き換えた後(S7)、ディスプレイリスト31の実行開始命令を描画回路2に送信する(S2)。ここでは、図9に示すように、図3に示すディスプレイリスト31のアドレスA0に配置された行列M0がM0’に書き換えられ、アドレスA2に配置された行列M1が行列M1’に書き換えられたとする。
When the still image of the first frame is output to the display device, the CPU 1 determines whether there is a next frame (S6). Here, it is assumed that there is a next frame.
Since there is a next frame, the CPU 1 rewrites a part of the display list 31 stored in the VRAM 3 (S7), and then transmits an execution start command for the display list 31 to the drawing circuit 2 (S2). Here, as shown in FIG. 9, it is assumed that the matrix M0 arranged at the address A0 of the display list 31 shown in FIG. 3 is rewritten to M0 ′, and the matrix M1 arranged at the address A2 is rewritten to the matrix M1 ′. .

すると、1フレーム目の描画時と同様に、ディスプレイリスト実行部21は、ディスプレイリスト31を順に実行して描画用の命令やデータを出力し(S3)、描画部22は、出力された命令やデータに基づき、出力画像32を描画して、描画した出力画像32をVRAM3に出力する(S4)。ここでは、図10に示す出力画像32がVRAM3に出力されたものとする。図10では、描画されている図形は図8と同じであるが、行列M0,M1が行列M0’,M1’に書き換えられているため、描画されている位置が図8と異なっている。   Then, as in the first frame drawing, the display list execution unit 21 sequentially executes the display list 31 to output drawing commands and data (S3), and the drawing unit 22 outputs the output commands and data. The output image 32 is drawn based on the data, and the drawn output image 32 is output to the VRAM 3 (S4). Here, it is assumed that the output image 32 shown in FIG. 10 is output to the VRAM 3. In FIG. 10, the drawn figure is the same as in FIG. 8, but the drawn positions are different from those in FIG. 8 because the matrices M0 and M1 are rewritten to the matrices M0 'and M1'.

そして、出力部4は、VRAM3に出力された出力画像32を表示装置に出力する(S5)。   Then, the output unit 4 outputs the output image 32 output to the VRAM 3 to the display device (S5).

以降、フレームがなくなるまで、ディスプレイリスト31の書き換えと(S7)、書き換えられたディスプレイリスト31に基づく描画処理と(S2〜S5)とを繰り返す。これにより、出力画像32の内容が逐次変化し、アニメーション表示が実現される。   Thereafter, the display list 31 is rewritten (S7), and the rendering process based on the rewritten display list 31 (S2 to S5) is repeated until there is no frame. Thereby, the content of the output image 32 changes sequentially, and animation display is realized.

以上のように、実施の形態1に係る情報処理装置100では、描画回路2はディスプレイリスト31を実行して静止画を描画するだけであるため、回路規模を小さい。CPU1は、ディスプレイリスト31を書き換えるだけであるため、負荷が小さい。   As described above, in the information processing apparatus 100 according to the first embodiment, the drawing circuit 2 only executes the display list 31 to draw a still image, and thus the circuit scale is small. Since the CPU 1 only rewrites the display list 31, the load is small.

また、静止画を描画する命令の集合であるディスプレイリスト31を静止画毎に書き換えることにより、描画する図形の位置、姿勢だけでなく、図形を描画する順、図形の出現及び削除、描画する図形の部分的な変化等、表現の幅の広いアニメーションを実現できる。   In addition, by rewriting the display list 31 that is a set of commands for drawing a still image for each still image, not only the position and orientation of the figure to be drawn, but also the order of drawing the figure, the appearance and deletion of the figure, and the figure to be drawn It is possible to realize animations with a wide range of expression, such as partial changes.

さらに、描画される図形は点座標の羅列で構成されたベクタ形式である。そのため、拡縮、回転しても描画結果の画質が劣化しない。   Furthermore, the figure to be drawn is a vector format composed of a list of point coordinates. For this reason, the image quality of the drawing result does not deteriorate even if the image is scaled or rotated.

なお、上記説明では、図形を描画する命令として線を描画する命令の例を示した。しかし、図形を描画する命令は、線を描画する命令だけでなく、ディスプレイリスト31で実行できる任意の命令であってもよい。
例えば、ラスタ形式のスプライト画像を描画する命令や、点を線で結んだ領域を塗りつぶす命令等であってもよい。塗りつぶすのは単色だけでなく、不透明度を持つ配色、グラデーションになっている配色、特定のパターン、特定の画像で塗りつぶしてもよい。また、点を結ぶ線は、直線だけでなく、ベジェ曲線やスプライン曲線等の任意の曲線を用いて接続してもよい。その他、ラスタオペレーションを指定するものや、シザー領域を指定するもの等、描画内容に影響を及ぼす他の命令であってもよい。
In the above description, an example of a command for drawing a line is shown as a command for drawing a graphic. However, the command for drawing a graphic is not limited to a command for drawing a line, but may be any command that can be executed by the display list 31.
For example, a command for drawing a raster-type sprite image, a command for painting a region where dots are connected by a line, or the like may be used. It is possible to fill with not only a single color but also a color scheme with opacity, a color scheme with gradation, a specific pattern, and a specific image. The line connecting the points may be connected using an arbitrary curve such as a Bezier curve or a spline curve as well as a straight line. In addition, other commands that affect the drawing contents, such as those that specify a raster operation and those that specify a scissor area, may be used.

また、上記説明では、呼出命令の前に、属性命令の例である行列設定命令を設定する例を示した。しかし、呼出命令の前には、行列設定命令以外の任意の属性命令を配置してもよい。
例えば、単純に位置のみを指定する命令、図形全体に特定の色を加算あるいは積算する命令等を配置してもよい。
In the above description, an example in which a matrix setting command, which is an example of an attribute command, is set before the call command. However, any attribute instruction other than the matrix setting instruction may be arranged before the call instruction.
For example, a command for simply specifying only the position, a command for adding or integrating a specific color over the entire figure, and the like may be arranged.

また、上記説明では、ディスプレイリスト31は、呼出命令で移動した先のサブルーチンを実行する例を説明した。しかし、ディスプレイリスト31は、呼出命令で呼び出したサブルーチンに、さらに呼出命令を配置したネスト構造を有していてもよい。
例えば、ディスプレイリスト31は、人物を描画するサブルーチンが、いくつかの行列設定命令と呼出命令とを持ち、それぞれの呼出命令で呼び出されるサブルーチンが手や足等を描画するような構成であってもよい。
Further, in the above description, the display list 31 has been described as executing the previous subroutine moved by the call instruction. However, the display list 31 may have a nested structure in which a call instruction is further arranged in a subroutine called by the call instruction.
For example, the display list 31 may be configured such that a subroutine for drawing a person has several matrix setting instructions and a call instruction, and a subroutine called by each call instruction draws a hand, a leg, or the like. Good.

また、上記説明では、S7でCPU1は、ディスプレイリスト31のうち行列設定命令を書き換える例を説明した。しかし、CPU1は、ディスプレイリスト31の行列設定命令以外の任意の命令を書き換えてもよい。
例えば、CPU1は、ディスプレイリスト31の呼出命令を書き換えてもよい。図3において、アドレスA1の呼出命令の移動先をアドレスA6へ、アドレスA3の呼出命令の移動先をアドレスA5に書き換えれば、アニメーション途中で図形の描画順を入れ替えることができる。これにより、図形が重なった場合の配置の前後関係を入れ替えることができる。
また、例えば、呼び出されるサブルーチンを別のサブルーチンに書き換えてもよい。これにより、描画される図形を別の図形に変更することができる。また、呼び出されるサブルーチンを何もしないNOP命令に書き換えてもよいし、反対に、呼び出されるサブルーチンとして予めNOP命令を配置しておき、NOP命令を図形を描画するサブルーチンに書き換えてもよい。これにより、アニメーション途中で図形を削除したり、出現させたりすることができる。
また、例えば、呼び出されるサブルーチンの一部の内容を書き換えてもよい。例えば、図6に示すサブルーチンXのうち、アドレスA51を書き換えることで図形の一部を変形させることができるし、アドレスA55やアドレスA56を書き換えることで、線の太さや色を変化させることができる。
In the above description, the example in which the CPU 1 rewrites the matrix setting command in the display list 31 in S7 has been described. However, the CPU 1 may rewrite any command other than the matrix setting command in the display list 31.
For example, the CPU 1 may rewrite the call command for the display list 31. In FIG. 3, if the destination of the call instruction at address A1 is rewritten to address A6 and the destination of the call instruction at address A3 is rewritten to address A5, the drawing order of graphics can be changed during the animation. Thereby, the front-rear relationship of the arrangement when the figures overlap can be exchanged.
Further, for example, a subroutine to be called may be rewritten to another subroutine. Thereby, the figure drawn can be changed to another figure. Further, the called subroutine may be rewritten to a NOP instruction that does nothing, and conversely, a NOP instruction may be arranged in advance as a called subroutine, and the NOP instruction may be rewritten to a subroutine that draws a figure. Thereby, a figure can be deleted or made to appear during the animation.
Further, for example, part of the contents of the called subroutine may be rewritten. For example, in the subroutine X shown in FIG. 6, a part of the figure can be deformed by rewriting the address A51, and the line thickness and color can be changed by rewriting the address A55 and the address A56. .

また、CPU1は、前記サブルーチンと前記呼出命令と前記属性命令とのうちいずれかのみを書き換えるとしてもよい。これにより、アニメーションの表現の幅は狭くなるが、CPU1の負荷をより小さくすることができる。   Further, the CPU 1 may rewrite only one of the subroutine, the call instruction, and the attribute instruction. Thereby, although the width of the expression of animation becomes narrow, the load of CPU1 can be made smaller.

1 CPU、2 描画回路、21 ディスプレイリスト実行部、22 描画部、3 VRAM、31 ディスプレイリスト、32 出力画像、4 出力部、100 情報処理装置。   DESCRIPTION OF SYMBOLS 1 CPU, 2 Drawing circuit, 21 Display list execution part, 22 Drawing part, 3 VRAM, 31 Display list, 32 Output image, 4 Output part, 100 Information processing apparatus.

この発明に係る情報処理装置は、
処理装置により情報処理を行う情報処理装置であって、複数の静止画を順に描画することにより実現されるアニメーションを表示する機能を有する情報処理装置であり、
1つの静止画を描画する命令の集合であるディスプレイリストを記憶する記憶装置と、
実行開始命令を受信すると、前記記憶装置によって記憶されたディスプレイリストを実行して、静止画を描画する描画回路と
を備え、
前記処理装置は、前記描画回路によって静止画が描画されると、前記ディスプレイリストの一部のみを書き換え、新たな実行開始命令を前記描画回路へ送信する
ことを特徴とする。
An information processing apparatus according to the present invention includes:
An information processing apparatus that performs information processing by a processing apparatus, an information processing apparatus having a function of displaying an animation realized by sequentially drawing a plurality of still images,
A storage device for storing a display list which is a set of instructions for drawing one still image;
A drawing circuit for executing a display list stored by the storage device and drawing a still image upon receiving an execution start command;
When the still image is drawn by the drawing circuit, the processing device rewrites only a part of the display list and transmits a new execution start command to the drawing circuit.

Claims (4)

処理装置により情報処理を行う情報処理装置であって、複数の静止画を順に描画することにより実現されるアニメーションを表示する機能を有する情報処理装置であり、
1つの静止画を描画する命令の集合であるディスプレイリストを記憶する記憶装置と、
実行開始命令を受信すると、前記記憶装置によって記憶されたディスプレイリストを実行して、静止画を描画する描画回路と
を備え、
前記処理装置は、前記描画回路によって静止画が描画されると、前記ディスプレイリストを書き換え、新たな実行開始命令を前記描画回路へ送信する
ことを特徴とする情報処理装置。
An information processing apparatus that performs information processing by a processing apparatus, an information processing apparatus having a function of displaying an animation realized by sequentially drawing a plurality of still images,
A storage device for storing a display list which is a set of instructions for drawing one still image;
A drawing circuit for executing a display list stored by the storage device and drawing a still image upon receiving an execution start command;
When the still image is drawn by the drawing circuit, the processing device rewrites the display list and transmits a new execution start command to the drawing circuit.
前記ディスプレイリストは、図形を描画するサブルーチンと、前記サブルーチンを呼び出す呼出命令と、前記サブルーチンによって描画される図形の属性を指定する属性命令とを含む
ことを特徴とする請求項1に記載の情報処理装置。
2. The information processing according to claim 1, wherein the display list includes a subroutine for drawing a graphic, a call command for calling the subroutine, and an attribute command for designating an attribute of the graphic drawn by the subroutine. apparatus.
前記属性命令は、前記図形の位置と姿勢と大きさと色との少なくともいずれかの属性を指定する
ことを特徴とする請求項2に記載の情報処理装置。
The information processing apparatus according to claim 2, wherein the attribute command specifies at least one of a position, a posture, a size, and a color of the graphic.
前記処理装置は、前記描画回路によって静止画が描画されると、前記サブルーチンと前記呼出命令と前記属性命令との少なくともいずれかを書き換える
ことを特徴とする請求項2に記載の情報処理装置。
The information processing apparatus according to claim 2, wherein the processing apparatus rewrites at least one of the subroutine, the calling instruction, and the attribute instruction when a still image is drawn by the drawing circuit.
JP2015551352A 2013-12-06 2013-12-06 Information processing device Pending JPWO2015083279A1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/082775 WO2015083279A1 (en) 2013-12-06 2013-12-06 Information processing device

Publications (1)

Publication Number Publication Date
JPWO2015083279A1 true JPWO2015083279A1 (en) 2017-03-16

Family

ID=53273071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015551352A Pending JPWO2015083279A1 (en) 2013-12-06 2013-12-06 Information processing device

Country Status (3)

Country Link
JP (1) JPWO2015083279A1 (en)
TW (1) TWI520094B (en)
WO (1) WO2015083279A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10105154A (en) * 1996-09-30 1998-04-24 Hitachi Ltd Graphic display device and graphic processor
WO2004051578A1 (en) * 2002-11-29 2004-06-17 Research In Motion Limited System and method of converting frame-based animations into interpolator-based animations
JP2005050317A (en) * 2003-06-26 2005-02-24 Canon Inc Rendering successive flames in graphic object system
JP2009294990A (en) * 2008-06-06 2009-12-17 Akuseru:Kk Image processing system
JP2012181283A (en) * 2011-02-28 2012-09-20 Kyoraku Sangyo Kk Two-dimensional image display apparatus and game machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10105154A (en) * 1996-09-30 1998-04-24 Hitachi Ltd Graphic display device and graphic processor
WO2004051578A1 (en) * 2002-11-29 2004-06-17 Research In Motion Limited System and method of converting frame-based animations into interpolator-based animations
JP2005050317A (en) * 2003-06-26 2005-02-24 Canon Inc Rendering successive flames in graphic object system
JP2009294990A (en) * 2008-06-06 2009-12-17 Akuseru:Kk Image processing system
JP2012181283A (en) * 2011-02-28 2012-09-20 Kyoraku Sangyo Kk Two-dimensional image display apparatus and game machine

Also Published As

Publication number Publication date
TWI520094B (en) 2016-02-01
TW201523508A (en) 2015-06-16
WO2015083279A1 (en) 2015-06-11

Similar Documents

Publication Publication Date Title
JP5750103B2 (en) Animation control apparatus, animation control method, and animation control program
CN105955687B (en) Image processing method, device and system
KR102304891B1 (en) Method and system for generating mask overlay for display panel corresponding to touch path
WO2022247179A1 (en) Image rendering method and apparatus, device, and storage medium
KR100770622B1 (en) Display controller enabling superposed display
JP2013045401A (en) Animation drawing device
CN112346890B (en) Off-screen rendering method and system for complex graphics
US8970604B2 (en) State display device and display method of state display device
JP2010175638A (en) Display device and method for display in display device
WO2015083279A1 (en) Information processing device
JP2001109457A (en) Method and device for image processing
KR102091398B1 (en) Image drawing device, image drawing method, and image drawing program
JP5407590B2 (en) Image display device
JP2002258827A (en) Image display device
JP6113127B2 (en) Vehicle display device
JP6271945B2 (en) Drawing apparatus, method and program
JP5228326B2 (en) Image display device
JPH1186026A (en) Image processor
JP6036072B2 (en) Image processing device
JP5885827B2 (en) Drawing control apparatus and drawing control program
JP2010009271A (en) Image processor
JP2016081394A (en) Image processing device and image processing method
JP2011008181A (en) Image display device
JPH01200489A (en) Processor for three-dimensional graphic
JP2002245482A (en) Three-dimensional image display device and program

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160315