KR20070020986A - Apparatus and method for controlling graphic display - Google Patents
Apparatus and method for controlling graphic display Download PDFInfo
- Publication number
- KR20070020986A KR20070020986A KR1020050075426A KR20050075426A KR20070020986A KR 20070020986 A KR20070020986 A KR 20070020986A KR 1020050075426 A KR1020050075426 A KR 1020050075426A KR 20050075426 A KR20050075426 A KR 20050075426A KR 20070020986 A KR20070020986 A KR 20070020986A
- Authority
- KR
- South Korea
- Prior art keywords
- graphic
- displayed
- hardware
- graphics
- display
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2340/00—Aspects of display data processing
- G09G2340/12—Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
본 발명은 그래픽 디스플레이 제어장치 및 그 방법에 관한 것으로, GDI(Graphic Device Interface)를 이용하여 디스플레이 된 그래픽과 다이렉트 드로우(Direct Draw)를 이용하여 디스플레이 된 그래픽의 중첩영역 중 다이렉트 드로우를 이용하여 디스플레이 된 그래픽의 중첩영역을 컬러 키(color key)를 이용하여 투명 처리하고, GDI를 이용하여 디스플레이 된 그래픽이 종료된 경우에 상기 다이렉트 드로우를 이용하여 디스플레이 된 그래픽의 중첩영역을 투명 처리전의 상태로 갱신함으로써, GDI를 이용하여 디스플레이 된 그래픽의 출력이 정상적으로 이루어지도록 한다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for controlling a graphic display and a method thereof. By transparently processing the overlapping area of the graphic using a color key, and updating the overlapping area of the graphic displayed using the direct draw to the state before the transparent processing when the graphic displayed using the GDI is finished. Using GDI, the output of the displayed graphic is normal.
Description
도 1a와 도 1b는 종래 그래픽 디스플레이 제어에 따른 그래픽의 변화를 나타낸 도면.1A and 1B are diagrams illustrating a change in graphics according to a conventional graphic display control.
도 2는 본 발명의 일 실시예에 따른 그래픽 디스플레이 제어장치에 대한 블록 구성을 나타낸 도면.2 is a block diagram illustrating a graphic display control apparatus according to an embodiment of the present invention.
도 3은 본 발명의 일 실시예에 따른 그래픽 디스플레이 제어방법에 대한 동작 플로우챠트를 나타낸 도면.3 is a flowchart illustrating an operation of a method for controlling a graphic display according to an exemplary embodiment of the present invention.
도 4a 내지 도 4d는 본 발명에 따른 그래픽 디스플레이 제어에 따른 그래픽의 변화를 나타낸 도면. 4A to 4D are diagrams illustrating a change in graphics according to the graphic display control according to the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>
200 : 디스플레이부 210 : 제어부200: display unit 210: control unit
212 : GDI 제어모듈 214 : 다이렉트 드로우 제어모듈212: GDI control module 214: direct draw control module
220 : 저장부 222 : 윈도우 정보 테이블220: storage unit 222: window information table
224 : 그래픽 정보 테이블224: Graphic Information Table
본 발명은 그래픽 디스플레이 제어장치 및 그 방법에 관한 것이다.The present invention relates to a graphic display control device and a method thereof.
일반적으로 윈도우즈(Windows)를 운영체제(Operating System)로 사용하는 AV(Audio Video)시스템은 GDI(Graphic Device Interface)를 이용하여 그래픽을 디스플레이 한다.In general, an AV (Audio Video) system using Windows as an operating system displays graphics using a GDI (Graphic Device Interface).
GDI는 선 그리기, 컬러 관리와 같은 그래픽 함수들을 구현하는 일을 담당하는 윈도우의 구성요소로 디스플레이, 프린터, 기타 장치에 대한 그래픽 출력을 위하여 응용 프로그램이 사용할 수 있는 함수와 그에 관련된 구조를 제공한다. GDI 객체(object)에는 펜, 브러시, 폰트, 팔레트, 비트맵 등이 있다.GDI is a window component responsible for implementing graphics functions such as line drawing and color management. It provides functions and related structures that can be used by an application program to output graphics to displays, printers, and other devices. GDI objects include pens, brushes, fonts, palettes, and bitmaps.
GDI는 윈도우즈 운영체제에서 응용프로그램을 작성하는 프로그래머를 위해 하드웨어에 독립적인 프로그램을 작성할 수 있도록 하는 인터페이스를 제공한다. 즉, GDI는 하드웨어 관련된 루틴들을 내부적으로 포함하고 있는 것이다.GDI provides an interface that allows you to write hardware-independent programs for programmers who write applications on the Windows operating system. That is, GDI internally includes hardware related routines.
따라서, 프로그래머는 GDI를 이용함으로써 그래픽 카드나 그래픽 모드에 상관없이 프로그램 할 수 있다. 즉, GDI는 하드웨어에 독립적(independent)이다.Therefore, programmers can use GDI to program regardless of graphics card or graphics mode. In other words, GDI is hardware independent.
그러나, GDI는 프로그래머가 편리하게 사용할 수 있도록 정의되어 있으나, 각각의 하드웨어 루틴들을 처리해야 하기 때문에 속도가 느리다. 따라서, GDI는 변 화가 많은 그래픽 또는 중첩(overlap)되는 그래픽을 표시하는 데에는 부적합하다. However, although GDI is defined to be convenient for the programmer, it is slow because each hardware routine must be processed. Therefore, GDI is not suitable for displaying a lot of changeable graphics or overlapping graphics.
이는 다이렉트 드로우(Direct Draw)와 같은 다이렉트 엑스(Direct X)기술에 의해 해결되고 있다.This is solved by Direct X technology, such as Direct Draw.
다이렉트 엑스는 윈도우의 기본 개념인 디바이스 독립성(device independency)과는 달리 하드웨어를 직접 제어할 수 있는 API 세트이다.DirectX, unlike device independency, the basic concept of Windows, is a set of APIs that let you control hardware directly.
이러한 다이렉트 엑스는 다이렉트 사운드(Direct sound), 다이렉트 드로우(Direct draw), 다이렉트 플레이(Direct play) 및 다이렉트 인풋(Direct input)의 4가지 API 세트로 구성되어 있다. The Direct X consists of four sets of APIs: Direct sound, Direct draw, Direct play, and Direct input.
다이렉트 사운드는 고음질의 지연이 거의 없는 사운드와 믹싱(mixing)의 기능을 제공한다. 이것은 윈도우 게임을 보다 현실감 있게 해주는 데 실제 오디오 카드의 사운드 채널을 직접 제어하기 때문에 가능한 것이다. 이를 구현하기 위해 다이렉트 사운드는 가상의 DMA 버퍼를 만들어 오디오 카드의 버퍼와 직접 데이터를 주고받는다.Direct sound provides the function of mixing and sound with very little delay. This makes Windows games more realistic because they directly control the sound channel of the actual audio card. To achieve this, Direct Sound creates a virtual DMA buffer that sends and receives data directly to and from the audio card's buffer.
다이렉트 드로우는 해당 그래픽 디바이스의 기능을 직접적으로 수행하는 API를 제공한다. 예를 들어, 다이렉트 드로우는 비디오 카드의 메모리를 직접 조작하거나 하드웨어적인 비트블릿(bitblit)을 수행하고, 오버레이(overlay)와 페이지 플립핑(Fliping) 같은 기능을 애플리케이션에서 직접 실행할 수 있게 해준다. 이렇게 함으로써, 더 나은 성능의 그래픽 가속 기능을 얻을 수 있게 된다.Direct draw provides an API that directly performs the functionality of the graphics device. Direct draw, for example, allows you to directly manipulate the video card's memory, perform hardware bitbits, and perform functions such as overlays and page flips directly in your application. By doing this, you get better graphics acceleration.
다이렉트 플레이는 네트워크상에서 멀티플레이어 게임을 진행할 수 있게 만들어진 것으로 다이렉트 플레이 객체와 다이렉트 플레이 서버로 구성된다. 다이렉 트 플레이 객체는 게임이 통신을 하게 되는 대상이고, 다이렉트 플레이 서버는 실제 모뎀이나 시리얼, 인터넷 네트워크와의 연결을 담당한다. 즉, 다이렉트 플레이는 공통 인터페이스로서 게임프로그래머가 다중 사용자를 위한 게임을 만들 때 통신 부분의 코드를 만들지 않도록 해준다. Direct play is made up of multiplayer games on the network and consists of a direct play object and a direct play server. The direct play object is the target for the game to communicate with, and the direct play server is responsible for connecting to the actual modem, serial and internet network. In other words, direct play is a common interface that prevents game programmers from creating code for the communications portion when creating games for multiple users.
다이렉트 인풋은 윈도우가 보다 많은 수의 게임용 I/O 장비와 어울리도록 하는 것이다. 예를 들어, PC에 연결될 헤드 마운팅 디바이스나 디지털 조이스틱 등의 차세대 게임 I/O를 위해 프로그래머에게 어떤 추상 계층을 제공하는 것이다. 즉, 프로그래머는 어떤 게임 I/O가 연결되더라도 이에 구애받지 않고 게임을 만들 수가 잇게 된다. Direct input allows Windows to match more gaming I / O gear. For example, it provides a programmer with an abstraction layer for next-generation game I / O, such as head-mounting devices or digital joysticks that will be connected to a PC. That is, the programmer can make a game regardless of which game I / O is connected.
살펴본 바와 같이, 다이렉트 드로우는 비디오 카드의 메모리를 직접 점유하여 변화가 많은 그래픽이나 오버랩(overlap)되는 그래픽을 자연스럽게 출력할 수 있도록 해준다.As we've seen, direct draw directly occupies the video card's memory, allowing for smooth output of varying or overlapping graphics.
GDI를 이용한 그래픽의 출력과 다이렉트 드로우를 이용한 그래픽의 출력은 하나의 디바이스(예로, 모니터)를 통해 동시에 이루어질 수 있다.The output of graphics using GDI and the output of graphics using direct draw may be simultaneously performed through one device (eg, a monitor).
이는 다이렉트 드로우가 디바이스(모니터)의 비디오카드의 메모리를 직접 점유하게 됨으로써, GDI를 이용하여 출력되는 그래픽이 정상적으로 출력되지 않게 되는 문제점을 발생시킨다.This causes a problem in that the direct draw directly occupies the memory of the video card of the device (monitor), so that graphics output using the GDI are not normally output.
이에 대해서 도 1a와 도 1b를 참조하여 구체적으로 살펴보기로 한다.This will be described in detail with reference to FIGS. 1A and 1B.
도 1a는 GDI를 이용하여 디스플레이 되는 그래픽과 다이렉트 드로우를 이용하여 디스플레이 되는 그래픽의 출력이 동시에 이루어지고 있는 도면이다.FIG. 1A is a diagram in which graphics displayed using GDI and graphics displayed using direct draw are simultaneously output.
도 1b는 도 1a에 도시된 다이렉트 드로우를 이용하여 디스플레이 된 그래픽이 변경된 경우, 변경된 다이렉트 드로우를 이용하여 디스플레이 된 그래픽이 도 1a에 도시된 GDI를 이용하여 디스플레이 된 그래픽 위에 오버랩(overlap)됨을 나타낸 도면이다.FIG. 1B illustrates that when the graphic displayed using the direct draw shown in FIG. 1A is changed, the graphic displayed using the changed direct draw overlaps the graphic displayed using the GDI shown in FIG. 1A. to be.
이는 다이렉트 드로우가 모니터의 비디오 카드의 메모리를 점유하여 그래픽의 변경에 대한 출력을 수행함으로써, 변경된 그래픽이 GDI를 이용하여 디스플레이 된 그래픽 위에 오버랩 되어 출력되게 된다.This allows the direct draw to occupy the memory of the monitor's video card to output the change in graphics so that the changed graphics are output overlaid on the displayed graphics using GDI.
이에 따라, GDI를 이용하여 디스플레이 된 그래픽이 정상적으로 출력되지 않게 되는 문제점이 발생하게 된다. Accordingly, there is a problem that graphics displayed using GDI are not normally output.
따라서, 본 발명은 상기와 같은 문제점을 해결하기 위한 것으로, GDI를 이용하여 디스플레이 된 그래픽과 다이렉트 드로우를 이용하여 디스플레이 된 그래픽이 중첩되는 경우, GDI를 이용하여 디스플레이 된 그래픽의 출력이 정상적으로 이루어지도록 한 그래픽 디스플레이 제어장치 및 그 방법을 제공함에 있다. Accordingly, the present invention is to solve the above problems, and when the graphics displayed using the GDI and the graphics displayed using the direct draw overlap, the output of the graphics displayed using the GDI is normally made. The present invention provides a graphic display controller and a method thereof.
상기 목적을 달성하기 위한 본 발명의 일 측면에 따른 그래픽 디스플레이 제어장치는, 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽과 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역 중 하드웨어를 직접 제어하여 디스 플레이 된 그래픽의 중첩영역을 투명 처리하고, 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽이 종료된 경우에 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명 처리전의 상태로 갱신하는 제어부를 포함한다.The graphic display control apparatus according to an aspect of the present invention for achieving the above object, the graphics displayed by processing the independent display hardware and directly control the hardware and the hardware of the overlapping region of the displayed graphics by directly controlling the hardware And a control unit for transparently processing the overlapping region of the control panel and updating the overlapping region of the displayed graphic to the state before the transparent processing by directly controlling the hardware when the displayed graphic is terminated by processing the overlapping region of the apparatus independently of the hardware.
상기 제어부는, 상기 하드웨어와 독립적으로 처리하여 그래픽의 디스플레이를 GDI(Graphic Device Interface)를 이용하여 수행하고, 상기 하드웨어를 직접 제어하여 그래픽의 디스플레이를 다이렉트 드로우(Direct Draw)를 이용하여 수행할 수 있다.The controller may perform the display of the graphic using GDI (Graphic Device Interface) by independently processing the hardware, and perform the display of the graphic by using a direct draw by directly controlling the hardware. .
상기 제어부는, 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역에 대한 투명처리를 컬러 키(color key)를 이용하여 수행할 수 있다.The controller may directly control the hardware to perform transparent processing on the overlapped area of the displayed graphic using a color key.
상기 제어부는, 상기 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽의 크기, 디스플레이 위치를 포함한 그래픽정보 메시지를 발생하고, 상기 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽의 종료요청에 따라 해당 그래픽을 종료하고 그래픽 종료메시지를 발생하는 독립 그래픽 처리부; 와 상기 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽과 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 상기 그래픽 정보메시지에 포함된 그래픽의 크기, 디스플레이 위치를 이용하여 검사하고, 상기 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽과 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명처리하고, 상기 그래픽 종료메시지에 따라 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명 처리전의 상태로 갱신하는 직접 그래픽 처리부를 포함한다. The controller generates a graphic information message including a size and a display position of the displayed graphic by processing independently of the hardware, and terminates the corresponding graphic according to the end request of the displayed graphic by processing independently of the hardware. An independent graphics processor for generating a message; And process the graphics independently displayed by the hardware and the hardware directly controlled by using the size and the display position of the graphics included in the graphic information message. Direct graphics to directly control the displayed graphic and the hardware to transparently process the overlapping area of the displayed graphic, and directly control the hardware according to the graphic end message to update the overlapping area of the displayed graphic to the state before the transparent processing. It includes a processing unit.
상기 목적을 달성하기 위한 본 발명의 다른 측면에 따른 그래픽 디스플레이 제어장치는, 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽의 크기, 디스플레이 위치를 포함한 그래픽정보 메시지를 발생하고, 상기 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽의 종료요청에 따라 해당 그래픽을 종료하고 그래픽 종료메시지를 발생하는 독립 그래픽 처리부; 와 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽과 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 상기 그래픽 정보메시지에 포함된 그래픽의 크기, 디스플레이 위치를 이용하여 검사하고, 상기 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽과 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명처리하고, 상기 그래픽 종료메시지에 따라 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명 처리전의 상태로 갱신하는 직접 그래픽 처리부를 포함한다.Graphic display control apparatus according to another aspect of the present invention for achieving the above object is processed independently of the hardware to generate a graphic information message including the size of the displayed graphic, the display position, and processed independently of the hardware to display An independent graphics processing unit which terminates the corresponding graphic according to the requested termination of the generated graphic and generates a graphic ending message; Independently of the hardware and the hardware, the displayed graphic and the hardware are directly controlled, and the overlapping area of the displayed graphic is inspected using the size and display position of the graphic included in the graphic information message, and the display is processed independently of the hardware. A direct graphics processing unit for directly controlling the overlapped area of the displayed graphic by directly controlling the displayed graphic and the hardware, and updating the overlapped area of the displayed graphic to a state before the transparent processing by directly controlling the hardware according to the graphic end message. Include.
상기 독립 그래픽 처리부는, 상기 하드웨어와 독립적으로 처리하여 그래픽의 디스플레이를 GDI(Graphic Device Interface)를 이용하여 수행할 수 있다.The independent graphics processor may process the graphics independently of the hardware to perform graphic display using a GDI (Graphic Device Interface).
상기 직접 그래픽 처리부는, 상기 하드웨어를 직접 제어하여 그래픽의 디스플레이를 다이렉트 드로우(Direct Draw)를 이용하여 수행할 수 있다.The direct graphics processor may directly control the hardware to perform the display of the graphic by using a direct draw.
상기 직접 그래픽 처리부는, 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역에 대한 투명처리를 컬러 키(color key)를 이용하여 수행할 수 있다.The direct graphics processor may directly control the hardware to perform transparent processing on the overlapped area of the displayed graphic using a color key.
상기 목적을 달성하기 위한 본 발명의 또 다른 측면에 따른 그래픽 디스플레이 제어장치는, GDI(Graphic Device Interface)를 이용하여 디스플레이 된 그래픽의 크기, 디스플레이 위치를 포함한 그래픽 정보메시지를 발생하고, 상기 GDI를 이용하여 디스플레이 된 그래픽의 종료요청에 따라 해당 그래픽을 종료하고 그래픽 종료메시지를 발생하는 독립 그래픽 처리부; 와 상기 GDI를 이용하여 디스플레이 된 그래픽과 다이렉트 드로우(Direct Draw)를 이용하여 디스플레이 된 그래픽의 중첩영역을 상기 그래픽 정보메시지에 포함된 그래픽의 크기, 디스플레이 위치를 이용하여 검사하고, 상기 GDI를 이용하여 디스플레이 된 그래픽과 다이렉트 드로우를 이용하여 디스플레이 된 그래픽의 중첩영역을 컬러 키(color key)를 이용하여 투명 처리하고, 상기 그래픽 종료메시지에 따라 상기 다이렉트 드로우를 이용하여 디스플레이 된 그래픽의 중첩영역을 투명처리 전 상태로 갱신하는 직접 그래픽 처리부를 포함한다.Graphic display control apparatus according to another aspect of the present invention for achieving the above object, generating a graphic information message including the size of the displayed graphic, the display position using the GDI (Graphic Device Interface), using the GDI An independent graphic processing unit for terminating the graphic according to the end request of the displayed graphic and generating a graphic end message; And the overlapping area of the graphic displayed using the GDI and the graphic displayed using the direct draw using the size and the display position of the graphic included in the graphic information message, and using the GDI. The overlapped area of the displayed graphic using the displayed graphic and the direct draw is transparently processed using a color key, and the overlapping area of the displayed graphic using the direct draw is transparently processed according to the graphic end message. It includes a direct graphics processing unit for updating to the previous state.
한편, 상기 목적을 달성하기 위한 본 발명의 일 측면에 따른 그래픽 디스플레이 제어방법은, 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽과 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역 중 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명 처리하는 단계; 와 하드웨어와 독립적으로 처리하여 디스플레이 된 그래픽이 종료된 경우에 상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역을 투명 처리전의 상태로 갱신하는 단계를 포함한다.On the other hand, the graphic display control method according to an aspect of the present invention for achieving the above object, the display is processed by directly controlling the hardware and the display of the overlapping region of the displayed graphics by directly controlling the displayed graphics and hardware by processing independently of the hardware Transparently processing an overlapping area of the graphic; And controlling the hardware to update the overlapping area of the displayed graphic to the state before the transparent processing when the displayed graphic is terminated by processing independently of the hardware.
상기 하드웨어와 독립적으로 처리하여 그래픽의 디스플레이는 GDI(Graphic Device Interface)를 이용하여 이루어지고, 상기 하드웨어를 직접 제어하여 그래픽의 디스플레이는 다이렉트 드로우(Direct Draw)를 이용하여 이루어질 수 있다.The display of graphics by processing independently of the hardware may be performed using a Graphic Device Interface (GDI), and the display of graphics by directly controlling the hardware may be performed using a direct draw.
상기 하드웨어를 직접 제어하여 디스플레이 된 그래픽의 중첩영역에 대한 투명처리는 컬러 키(color key)를 이용하여 이루어질 수 있다.Transparent processing of the overlapping area of the graphic displayed by directly controlling the hardware may be performed using a color key.
상기 목적을 달성하기 위한 본 발명의 다른 측면에 따른 그래픽 디스플레이 제어방법은, GDI(Graphic Device Interface)를 이용하여 디스플레이 된 그래픽과 다이렉트 드로우(Direct Draw)를 이용하여 디스플레이 된 그래픽의 중첩영역 중 다이렉트 드로우를 이용하여 디스플레이 된 그래픽의 중첩영역을 컬러 키(color key)를 이용하여 투명 처리하는 단계; 와 GDI를 이용하여 디스플레이 된 그래픽이 종료된 경우에 상기 다이렉트 드로우를 이용하여 디스플레이 된 그래픽의 중첩영역을 투명 처리전의 상태로 갱신하는 단계를 포함한다.According to another aspect of the present invention, there is provided a method for controlling a graphic display, which includes a graphic displayed by using a GDI (Graphic Device Interface) and a direct draw among overlapping regions of a graphic displayed by using a direct draw. Transparently processing the overlapping area of the graphic displayed by using a color key; And updating the overlapping area of the graphic displayed using the direct draw to the state before the transparent processing when the graphic displayed using the GDI is finished.
이하 본 발명에 따른 그래픽 디스플레이 제어장치 및 그 방법을 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, a graphic display control apparatus and a method thereof according to the present invention will be described in detail with reference to the accompanying drawings.
또한, 이해의 편의를 위하여 비록 다른 도면에 속하더라도 동일한 구성요소에는 동일한 부호를 부여하였음을 주의하여야 한다.In addition, it should be noted that the same reference numerals are given to the same elements, although belonging to different drawings for convenience of understanding.
도 2는 본 발명의 일 실시예에 따른 그래픽 디스플레이 제어장치에 대한 블 록 구성을 나타낸 도면이다.2 is a block diagram illustrating a graphic display control apparatus according to an embodiment of the present invention.
도 2에 도시된 바와 같이, 본 발명에 따른 그래픽 디스플레이 제어장치는 디스플레이부(200), 제어부(210) 및 저장부(220)를 포함한다.As shown in FIG. 2, the graphic display control apparatus according to the present invention includes a
제어부(210)는 GDI 제어모듈(212)과 다이렉트 드로우 제어모듈(214)을 포함한다.The
GDI 제어모듈(212)은 임의의 윈도우 어플리케이션 프로그램으로부터 임의의 윈도우를 디스플레이하기 위한 윈도우메시지가 수신됨에 따라 GDI(Graphic Device Interface)를 이용하여 임의의 윈도우를 생성하여 디스플레이부(200)를 통해 디스플레이하고, 임의의 윈도우의 크기, 타입, 윈도우의 디스플레이 위치를 윈도우 정보메시지에 포함시켜 다이렉트 드로우 제어모듈(214)에 제공한다.When the
여기서, 윈도우는 디스플레이부(220)의 화면에 자체 경계를 가질 수 있다. 일반적으로 윈도우는 공지된 바와 같이 일정크기(가로ㅧ세로)를 가지는 사각형으로 나타낼 수 있다. Here, the window may have its own boundary on the screen of the
그리고, GDI 제어모듈(212)은 디스플레이부(200)에 디스플레이 되고 있는 임의의 윈도우의 종료요청에 따라 해당 윈도우를 종료하고, 해당 윈도우가 종료되었음을 나타내기 위한 윈도우 종료메시지를 발생하여 다이렉트 드로우 제어모듈(214)에 제공한다.In addition, the
한편, 다이렉트 드로우 제어모듈(214)은 GDI 제어모듈(212)로부터 수신된 윈도우 정보메시지에 포함된 임의의 윈도우에 대한 크기, 디스플레이 위치, 타입을 저장부(220)내의 윈도우 정보 테이블(222)에 저장한다.On the other hand, the direct
다이렉트 드로우 제어모듈(214)은 GDI 제어모듈(212)로부터 임의의 윈도우에 대한 윈도우 종료메시지의 수신에 따라 해당 윈도우에 대한 크기, 디스플레이 위치, 타입을 저장부(220)내의 윈도우 정보 테이블(222)에서 삭제한다.The direct
다이렉트 드로우 제어모듈(214)은 비디오 영상을 디스플레이하기 위한 어플리케이션 프로그램으로부터 디스플레이부(200)를 통하여 재생되고 있는 비디오 영상에 임의의 그래픽 오버레이 요청에 따라 임의의 그래픽을 재생되고 있는 비디오 영상에 임의의 그래픽을 오버레이 하여 출력하고, 오버레이 요청된 임의의 그래픽 정보를 저장부(220)내의 그래픽정보 테이블(224)에 저장한다. The direct
여기서, 임의의 그래픽 정보는 임의의 그래픽이 차지하는 영역, 임의의 그래픽의 영역을 구성하는 하나 이상의 픽셀(pixel)의 컬러정보를 포함한다. 그리고, 컬러정보는 그래픽 영역을 구성하는 각각의 픽셀이 가지는 R(Red), G(Green), B(Blue) 각각에 대한 비트수를 나타낸다.Here, the arbitrary graphic information includes an area occupied by an arbitrary graphic and color information of one or more pixels constituting an area of the arbitrary graphic. The color information indicates the number of bits for each of R (Red), G (Green), and B (Blue) of each pixel of the graphics area.
다이렉트 드로우 제어모듈(214)은 비디오 영상을 디스플레이하기 위한 어플리케이션 프로그램으로부터 재생되고 있는 비디오 영상에 오버레이 된 그래픽의 변경요청에 따라 변경 요청된 그래픽을 디스플레이부(200)를 통해 디스플레이하고, 변경 요청된 그래픽 정보를 그래픽 정보 테이블(224)에 저장한다. 여기서, 변경 요청된 그래픽 정보는 변경 요청된 그래픽의 영역, 변경 요청된 그래픽의 영역을 구성하는 하나 이상의 픽셀(pixel)의 컬러정보를 포함한다. The direct
다이렉트 드로우 제어모듈(214)은 임의의 윈도우의 영역과 변경 요청된 그래픽의 영역이 겹치는 경우에 임의의 윈도우의 영역과 겹치는 변경 요청된 그래픽의 영역을 컬러 키(color key) 처리하여 투명하게 디스플레이하고, 컬러 키 처리된 그래픽 영역에 대한 정보를 그래픽 정보 테이블(224)에 저장한다. The direct
이에 따라, 변경 요청된 그래픽의 영역과 겹치는 임의의 윈도우 영역은 그대로 디스플레이 된다. 여기서, 컬러 키 처리된 그래픽 영역에 대한 정보는 컬러 키 처리된 그래픽 영역, 컬러 키 처리된 그래픽 영역에 포함된 하나 이상의 픽셀의 컬러정보를 포함한다. Accordingly, any window area overlapping the area of the graphic requested to be changed is displayed as it is. Here, the information on the color keyed graphic area includes color information of one or more pixels included in the color keyed graphic area and the color keyed graphic area.
다이렉트 드로우 제어모듈(214)은 GDI 제어모듈(212)로부터 변경 요청된 그래픽의 영역과 겹치는 임의의 윈도우에 대한 윈도우 종료메시지가 수신됨에 따라 해당 윈도우에 대한 크기, 디스플레이 위치, 타입을 저장부(220)내의 윈도우 정보 테이블(222)에서 삭제하고, 그래픽 정보 테이블(224)에 저장된 컬러 키 처리된 그래픽 영역의 컬러정보를 이용하여 컬러 키 처리된 그래픽 영역을 컬러 키 처리하기전의 상태로 갱신한다.The direct
도 3은 본 발명의 일 실시예에 따른 그래픽 디스플레이 제어방법에 대한 동작 플로우챠트를 나타낸 도면이다.3 is a flowchart illustrating an operation of a graphic display control method according to an exemplary embodiment of the present invention.
도 3에 도시된 바와 같이, 본 발명에 따른 그래픽 디스플레이 제어방법은 도 2에 도시된 다이렉트 드로우 제어모듈에 의해서 수행될 수 있다. As shown in FIG. 3, the graphic display control method according to the present invention may be performed by the direct draw control module shown in FIG. 2.
다이렉트 드로우 제어모듈은 비디오 영상을 디스플레이하기 위한 어플리케이션 프로그램으로부터 디스플레이 장치를 통하여 재생되고 있는 비디오 영상에 임의의 그래픽 오버레이 요청에 따라 임의의 그래픽을 재생되고 있는 비디오 영상에 임 의의 그래픽을 오버레이 하여 출력하고, 오버레이 된 임의의 그래픽 정보를 그래픽정보 테이블 데이터베이스에 저장한다(S300).The direct draw control module overlays an arbitrary graphic on the video image being played and outputs the arbitrary graphic on the video image being played through the display device from the application program for displaying the video image. The overlayed arbitrary graphic information is stored in the graphic information table database (S300).
여기서, 임의의 그래픽 정보는 임의의 그래픽이 차지하는 영역, 임의의 그래픽의 영역을 구성하는 하나 이상의 픽셀(pixel)의 컬러정보를 포함한다. 그리고 컬러정보는 그래픽 영역을 구성하는 픽셀이 가지는 R(Red), G(Green), B(Blue) 각각에 대한 비트수를 나타낸다.Here, the arbitrary graphic information includes an area occupied by an arbitrary graphic and color information of one or more pixels constituting an area of the arbitrary graphic. The color information represents the number of bits for each of R (Red), G (Green), and B (Blue) of the pixels constituting the graphic area.
다이렉트 드로우 제어모듈은 임의의 윈도우에 대한 디스플레이를 제어하기 위한 GDI 제어모듈로부터 수신된 윈도우 정보메시지에 포함된 임의의 윈도우에 대한 크기, 디스플레이 위치 등을 윈도우 정보 테이블 데이터베이스에 저장한다(S302).The direct draw control module stores a size, a display position, and the like of a window included in the window information message received from the GDI control module for controlling the display of the window in the window information table database (S302).
여기서, 윈도우 정보메시지는 임의의 윈도우 어플리케이션 프로그램으로부터 임의의 윈도우를 디스플레이 요청에 따라 GDI 제어모듈에 의해 디스플레이 장치에 디스플레이 된 임의의 윈도우에 대한 크기, 디스플레이 위치 등을 포함한 메시지이다. Here, the window information message is a message including the size, display position, etc. of any window displayed on the display device by the GDI control module in response to a display request of any window from any window application program.
다이렉트 드로우 제어모듈은 비디오 영상을 디스플레이하기 위한 어플리케이션 프로그램으로부터 재생되고 있는 비디오 영상에 오버레이 된 그래픽의 변경요청이 있는가를 검사한다(S304).The direct draw control module checks whether there is a change request of the graphic overlaid on the video image being reproduced from the application program for displaying the video image (S304).
다이렉트 드로우 제어모듈은 재생되고 있는 비디오 영상에 오버레이 된 그래픽의 변경 요청이 있는 경우에 변경 요청된 그래픽을 디스플레이 장치를 통해 디스플레이하고, 변경 요청된 그래픽 정보를 그래픽 정보 테이블 데이터베이스에 저장 한다(S306). When there is a change request of the graphic overlayed on the video image being played, the direct draw control module displays the change requested graphic through the display apparatus and stores the change requested graphic information in the graphic information table database (S306).
여기서, 변경 요청된 그래픽 정보는 그래픽의 영역, 그래픽의 영역을 구성하는 하나 이상의 픽셀(pixel)의 컬러정보를 포함한다. 그리고 컬러정보는 그래픽의 영역을 구성하는 픽셀이 가지는 R(Red), G(Green), B(Blue) 각각에 대한 비트수를 나타낸다.Here, the graphic information requested to change includes an area of the graphic and color information of one or more pixels constituting the area of the graphic. Color information indicates the number of bits for each of R (Red), G (Green), and B (Blue) of the pixels constituting the graphic region.
다이렉트 드로우 제어모듈은 임의의 윈도우의 영역과 변경 요청된 그래픽의 영역이 중첩되는가를 윈도우 정보메시지에 포함된 임의의 윈도우에 대한 크기, 디스플레이 위치 등을 이용하여 검사한다(S308).The direct draw control module checks whether an area of an arbitrary window overlaps with an area of a graphic requested to be changed using a size, a display position, and the like of an arbitrary window included in the window information message (S308).
다이렉트 드로우 제어모듈은 임의의 윈도우의 영역과 변경 요청된 그래픽의 영역이 겹치는 경우에 임의의 윈도우의 영역과 겹치는 변경 요청된 그래픽의 영역을 컬러 키(color key)를 이용하여 투명 처리하고, 컬러 키 처리된 그래픽 영역에 대한 정보를 그래픽 정보 테이블 데이터 베이스에 저장한다(S310). The direct draw control module transparently processes an area of the requested graphic to be overlapped with an area of an arbitrary window using a color key when the area of an arbitrary window and the area of the requested graphic overlap. Information about the processed graphic area is stored in the graphic information table database (S310).
이에 따라, 변경 요청된 그래픽의 영역과 겹치는 임의의 윈도우 영역은 그대로 디스플레이 된다. 여기서, 컬러 키 처리된 그래픽 영역에 대한 정보는 컬러 키 처리된 그래픽 영역, 컬러 키 처리된 그래픽 영역에 포함된 하나 이상의 픽셀의 컬러정보를 포함한다. Accordingly, any window area overlapping the area of the graphic requested to be changed is displayed as it is. Here, the information on the color keyed graphic area includes color information of one or more pixels included in the color keyed graphic area and the color keyed graphic area.
이에 대해서 도 4a 내지 도 4c를 참조하여 좀 더 자세히 살펴보기로 한다.This will be described in more detail with reference to FIGS. 4A to 4C.
도 4a는 다이렉트 드로우를 이용하여 디스플레이 된 그래픽(400)과 GDI를 이용하여 디스플레이 된 윈도우(402)가 디스플레이 장치에 디스플레이 된 도면이다. 여기서, 다이렉트 드로우를 이용하여 디스플레이 된 그래픽(400)과 GDI를 이용하여 디스플레이 된 윈도우(402)는 서로 중첩되는 영역이 없는 것으로 한다.4A is a diagram in which a graphic 400 displayed using a direct draw and a
도 4b는 GDI를 이용하여 디스플레이 된 윈도우(402)와 변경 요청된 그래픽(410)이 중첩된 영역(412)을 나타낸 도면이다.FIG. 4B illustrates an
도 4c는 다이렉트 드로우 제어모듈이 이러한 중첩된 영역(412)을 컬러 키를 이용하여 투명 처리하여 얻어진 도면이다. 따라서, 도 4c에 도시된 바와 같이 변경 요청된 그래픽의 영역과 임의의 윈도우 영역간 중첩된 영역(412)이 컬러 키 처리됨으로써, GDI를 이용한 윈도우(402)가 변화됨이 없이 원래대로 디스플레이 됨을 알 수 있다. 4C is a diagram in which the direct draw control module transparently processes the overlapped
다이렉트 드로우 제어모듈은 GDI 제어모듈로부터 변경 요청된 그래픽의 영역과 겹치는 임의의 윈도우에 대한 윈도우 종료요청이 있는가를 검사한다(S312).The direct draw control module checks whether there is a window termination request for any window overlapping the area of the graphic requested to be changed from the GDI control module (S312).
다이렉트 드로우 제어모듈은 GDI 제어모듈로부터 윈도우 종료요청에 따라 해당 윈도우에 대한 크기, 디스플레이 위치 등을 윈도우 정보 테이블 데이터베이스에서 삭제한다(S314). The direct draw control module deletes the size, display position, etc. of the corresponding window from the window information table database according to the window termination request from the GDI control module (S314).
한편, GDI 제어모듈은 윈도우 종료요청이 있는 해당 윈도우를 디스플레이 장치에서 종료하는 것이 바람직하다.On the other hand, the GDI control module preferably terminates the window corresponding to the window termination request on the display device.
이후, 다이렉트 드로우 제어모듈은 그래픽 정보 테이블 데이터베이스에 저장된 컬러 키 처리된 그래픽 영역의 컬러정보를 이용하여 컬러 키 처리된 그래픽 영역을 컬러 키 처리전의 상태로 갱신하여 디스플레이 장치를 통해 디스플레이 한다(S316).Thereafter, the direct draw control module updates the color keyed graphic area to the state before the color key processing by using the color information of the color key processed graphic area stored in the graphic information table database and displays it on the display device (S316).
이를 나타낸 도면이 도 4d에 도시되어 있다. 도 4d에 도시된 바와 같이 다이 렉트 드로우 제어모듈은 그래픽 정보 테이블 데이터베이스에 저장된 컬러 키 처리된 그래픽 영역(412)의 컬러정보를 이용하여 컬러 키 처리된 그래픽 영역(412)을 컬러 키 처리 전 영역(414)으로 갱신한다.This is illustrated in Figure 4d. As shown in FIG. 4D, the direct draw control module uses the color information of the color keyed
이상에서 본 발명에 대하여 그 바람직한 실시예를 마이크로소프트사의 윈도우 환경 하에서 설명하였으나, 본 발명의 기술적 사상의 범위 내에서 맥 운영체제(MacOS), 리눅스(Linux) 등의 다른 컴퓨터 운영체제 플랫폼뿐만 아니라, Windows CE, Palm OS와 같은 모바일 환경에도 모두 적용 가능하다. 본 발명의 실시예에 구체적으로 나타난 각 구성요소는 변형하여 실시할 수 있는 것이다.Although the preferred embodiment of the present invention has been described above under the Windows environment of Microsoft Corporation, the Windows CE, as well as other computer operating system platforms such as Mac OS and Linux within the scope of the present invention, It is also applicable to mobile environments such as Palm OS. Each component specifically shown in the embodiment of the present invention may be modified.
상술한 바와 같이, 본 발명에 따른 그래픽 디스플레이 제어장치 및 그 방법에 따르면, GDI를 이용하여 디스플레이 된 그래픽과 다이렉트 드로우를 이용하여 디스플레이 된 그래픽이 중첩되는 경우, GDI를 이용하여 디스플레이 된 그래픽의 출력이 정상적으로 이루어지도록 할 수 있다.As described above, according to the graphic display control device and the method according to the present invention, when the graphic displayed using the GDI and the graphic displayed using the direct draw overlap, the output of the graphic displayed using the GDI is It can be done normally.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050075426A KR100870179B1 (en) | 2005-08-17 | 2005-08-17 | Apparatus and method for controlling graphic display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050075426A KR100870179B1 (en) | 2005-08-17 | 2005-08-17 | Apparatus and method for controlling graphic display |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20070020986A true KR20070020986A (en) | 2007-02-22 |
KR100870179B1 KR100870179B1 (en) | 2008-11-25 |
Family
ID=41647812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050075426A KR100870179B1 (en) | 2005-08-17 | 2005-08-17 | Apparatus and method for controlling graphic display |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100870179B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101433950B1 (en) * | 2008-04-02 | 2014-09-23 | 엘지전자 주식회사 | Method for calling synchronousness |
US10643545B2 (en) | 2015-10-27 | 2020-05-05 | Samsung Electronics Co., Ltd. | Method and apparatus for merging images by electronic device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0962473A (en) * | 1995-08-24 | 1997-03-07 | Hitachi Ltd | Multiwindow display method |
JPH11249782A (en) | 1998-03-04 | 1999-09-17 | Toshiba Corp | Terminal equipment having plural windows, window display method and recording medium recording window display control program |
GB9922627D0 (en) * | 1999-09-25 | 1999-11-24 | Koninkl Philips Electronics Nv | User interface generation |
JP2002032168A (en) | 2000-07-13 | 2002-01-31 | Hitachi Ltd | Window controlling method |
US6501464B1 (en) * | 2000-10-31 | 2002-12-31 | Intel Corporation | On-screen transparent keyboard interface |
-
2005
- 2005-08-17 KR KR1020050075426A patent/KR100870179B1/en not_active IP Right Cessation
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101433950B1 (en) * | 2008-04-02 | 2014-09-23 | 엘지전자 주식회사 | Method for calling synchronousness |
US10643545B2 (en) | 2015-10-27 | 2020-05-05 | Samsung Electronics Co., Ltd. | Method and apparatus for merging images by electronic device |
US11302258B2 (en) | 2015-10-27 | 2022-04-12 | Samsung Electronics Co., Ltd. | Method for operating electronic device and electronic device for supporting the same |
Also Published As
Publication number | Publication date |
---|---|
KR100870179B1 (en) | 2008-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5844569A (en) | Display device interface including support for generalized flipping of surfaces | |
KR100482708B1 (en) | List controlled video operations | |
US8878833B2 (en) | Systems, methods, and apparatus for recording of graphical display | |
US8207983B2 (en) | Overlaying videos on a display device | |
AU596909B2 (en) | Console emulation for a graphics workstation | |
CN101080698B (en) | Image processor, image processing system and method for producing image | |
CN108108140B (en) | Multi-screen cooperative display method, storage device and equipment supporting 3D display | |
US10376787B2 (en) | Method and system for renewing screen | |
EP2133842A1 (en) | Image generating apparatus, image processing method, information recording medium, and program | |
JP2007312949A (en) | Game machine | |
CN103870674A (en) | Implementing a remote gaming server on a desktop computer | |
CN101911125A (en) | Multi-buffer support for off-screen surfaces in a graphics processing system | |
CN104243995A (en) | Image processing device, image processing system, image processing method, and computer program | |
US9457275B2 (en) | Information processing device | |
CN116821040B (en) | Display acceleration method, device and medium based on GPU direct memory access | |
US20060119602A1 (en) | Address based graphics protocol | |
US20120117508A1 (en) | Window management for an embedded system | |
CN112188264A (en) | Method and terminal for realizing multi-window video playing based on Android | |
CN108335342A (en) | Method, equipment and the computer program product of more people's drawing are carried out in web browser | |
US20070115288A1 (en) | Sprite interface and code-based functions | |
CN112799801B (en) | Method, device, equipment and medium for drawing simulated mouse pointer | |
CN113129417A (en) | Image rendering method in panoramic application and terminal equipment | |
KR100870179B1 (en) | Apparatus and method for controlling graphic display | |
CN116966546A (en) | Image processing method, apparatus, medium, device, and program product | |
JP2001143100A (en) | Method and device for providing depth gradation effects in three-dimensional video graphic system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20121030 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20131030 Year of fee payment: 6 |
|
FPAY | Annual fee payment |
Payment date: 20141030 Year of fee payment: 7 |
|
LAPS | Lapse due to unpaid annual fee |