KR101262850B1 - SVG image output apparatus using caching techniques and method thereof - Google Patents

SVG image output apparatus using caching techniques and method thereof Download PDF

Info

Publication number
KR101262850B1
KR101262850B1 KR1020090095179A KR20090095179A KR101262850B1 KR 101262850 B1 KR101262850 B1 KR 101262850B1 KR 1020090095179 A KR1020090095179 A KR 1020090095179A KR 20090095179 A KR20090095179 A KR 20090095179A KR 101262850 B1 KR101262850 B1 KR 101262850B1
Authority
KR
South Korea
Prior art keywords
svg
image
file
stored
parsed
Prior art date
Application number
KR1020090095179A
Other languages
Korean (ko)
Other versions
KR20100065071A (en
Inventor
설동명
최승한
이경희
박승민
Original Assignee
한국전자통신연구원
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 한국전자통신연구원 filed Critical 한국전자통신연구원
Publication of KR20100065071A publication Critical patent/KR20100065071A/en
Application granted granted Critical
Publication of KR101262850B1 publication Critical patent/KR101262850B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

본 발명은 SVG 이미지 출력 장치에 관한 것으로서, SVG 이미지를 저장하는 저장부; 및 SVG 파일이 입력되면, SVG 파일에 해당하는 SVG 이미지가 저장부에 저장되어 있는지를 판단하고, SVG 파일에 해당하는 SVG 이미지가 저장되어 있는 경우에는 저장된 SVG 이미지가 출력되도록 처리하는 캐시 제어부를 구비한다. 본 발명에 의하면, SVG 파일의 출력 이미지를 재사용할 수 있어 해당 이미지를 출력하기 위한 파싱 시간과 출력 이미지 생성 시간을 단축시킬 수 있는 효과가 있다.The present invention relates to an SVG image output device, comprising: a storage unit for storing an SVG image; And a cache controller configured to determine whether the SVG image corresponding to the SVG file is stored in the storage unit when the SVG file is input, and output the stored SVG image when the SVG image corresponding to the SVG file is stored. do. According to the present invention, the output image of the SVG file can be reused, thereby reducing the parsing time and output image generation time for outputting the corresponding image.

SVG, Scalable Vector Graphics, XML, 캐싱, 이미지 SVG, scalable vector graphics, xml, caching, image

Description

캐싱 기법을 이용한 SVG 이미지 출력 장치 및 그 방법{SVG image output apparatus using caching techniques and method thereof}SV image output apparatus using caching techniques and method

본 발명은 캐싱 기법을 이용한 SVG 이미지 출력 장치 및 그 방법에 관한 것이다. 보다 상세하게는, SVG 파일의 처리 결과 데이터를 캐싱 기법을 이용하여 SVG 이미지를 재사용 가능하도록 하여 SVG 파일의 처리 시간을 단축시키는 SVG 이미지 출력 장치 및 그 방법에 관한 것이다.The present invention relates to an SVG image output device using a caching technique and a method thereof. More specifically, the present invention relates to an SVG image output device and a method for reducing an SVG file processing time by reusing an SVG image by caching a result data of an SVG file.

본 발명은 지식경제부의 IT성장동력기술개발사업의 일환으로 수행한 연구로부터 도출된 것이다[과제관리번호: 2006-S-038-03, 과제명: 모바일 컨버전스 컴퓨팅을 위한 단말적응형 임베디드 운영체제 기술개발].The present invention is derived from a study conducted as part of the IT growth engine technology development project of the Ministry of Knowledge Economy. [Task Management Number: 2006-S-038-03, Title: Development of a Terminal Adaptive Embedded Operating System for Mobile Convergence Computing] ].

SVG(Scalable Vector Graphics)는 2차원 벡터 그래픽의 표현을 위한 XML 마크업 언어이다. 기본적으로 XHTML은 텍스트를 위한 것이라면 SVG는 그래픽을 위한 것이다.Scalable Vector Graphics (SVG) is an XML markup language for the representation of two-dimensional vector graphics. Basically XHTML is for text, SVG is for graphics.

SVG는 Macromedia(현, Adobe)사의 플래시 기술의 관점에서 매우 유사하다. 하지만, 둘의 차이점이라면 SVG는 여러 가지 측면에서 W3C의 추천을 받은데 반해 플래시는 XML 기반의 폐쇄된 바이너리 형식으로 구성되어 있다.SVG is very similar in terms of Flash technology from Macromedia (now Adobe). The difference between the two, however, is that SVG has been recommended by the W3C in many ways, while Flash is an XML-based closed binary format.

SVG는 명시적으로 다른 W3C 표준(예를 들어, CSS, DOM, SMIL 등)과 같은 표준과 협동작업을 할 수 있게끔 설계되어 있다.SVG is explicitly designed to work with standards such as other W3C standards (e.g. CSS, DOM, SMIL, etc.).

SVG 파일을 화면상으로 출력하기 위해서는 매번 SVG 파일의 XML 데이터를 파싱(Parsing)한 후, 이를 바탕으로 사람이 인식 가능한 형태의 이미지를 생성하고, 이를 화면에 출력하게 된다.To output an SVG file on the screen, parse the XML data of the SVG file every time, and then generate an image that can be recognized by a human being based on this, and output it on the screen.

도 1 및 도 2는 SVG 파일과 그에 대응되는 실제 출력 SVG 이미지를 나타내는 도면이다. 전술한 바와 같이, 도 1 및 도 2는 SVG 파일 안에서 텍스트로 표현한 이미지를 실제 SVG 이미지로 출력하기 위한 연속적인 좌표값을 생성하는 것이다.1 and 2 are diagrams illustrating an SVG file and an actual output SVG image corresponding thereto. As described above, FIGS. 1 and 2 generate continuous coordinate values for outputting an image represented by text in an SVG file as an actual SVG image.

그리고, 도 3은 일반적인 SVG 출력 장치가 SVG 이미지를 출력하는 과정을 설명하기 위한 흐름도이다. 먼저, 입력받은 텍스트 형태의 SVG 파일을 리딩하여(S10), SVG 파일을 파싱한다(S20). 그리고, S20 단계를 통해 SVG 파일의 파싱이 완료되면 SVG 이미지가 생성되고(S30), 이 후 파싱된 데이터를 기반으로 SVG 이미지를 출력하거나 랜더링 작업을 진행하게 된다(S40).3 is a flowchart illustrating a process of outputting an SVG image by a general SVG output apparatus. First, the SVG file of the input text form is read (S10), and the SVG file is parsed (S20). When the parsing of the SVG file is completed through the step S20, an SVG image is generated (S30), and then the SVG image is output or rendered based on the parsed data (S40).

한편, SVG 파일은 동적으로 변경이 가능하다는 특징으로 가지고 있기 때문에, 거의 모든 SVG 출력 장치는 SVG 파일 런타임 시 해당 SVG 파일을 파싱하여 출력 이미지를 생성하는 작업을 진행한다. 이 경우 해당 이미지가 동적으로 변경되는 것을 바로 반영할 수 있다는 장점이 있다. On the other hand, since SVG files can be dynamically changed, almost all SVG output devices parse an SVG file at runtime to generate an output image. In this case, there is an advantage that the image can be reflected immediately.

하지만, 모든 SVG 이미지가 동적으로 변경되는 것은 아니며, 초기 출력 화면이나 자주 사용되는 SVG 이미지들은 거의 동적 변경이 없는 SVG 이미지인 경우가 많다.However, not all SVG images are dynamically changed, and the initial output screen or frequently used SVG images are often SVG images with little dynamic change.

반면, 기존의 SVG 출력 장치는 매번 연속적으로 많은 양의 SVG 데이터를 파싱하여 출력하기 때문에, 최종적으로 SVG 이미지를 출력하는데 오랜 시간이 소요된다. 단순한 이미지의 경우 파싱 시간이 출력 장치의 처리 성능에 거의 영향을 주지 않지만, SVG 파일의 복잡도가 증가할수록 그에 따른 SVG 이미지를 생성하는 시간이 매우 증가하게 되는 문제점이 있다.On the other hand, since the existing SVG output device parses and outputs a large amount of SVG data continuously each time, it takes a long time to finally output the SVG image. In the case of a simple image, the parsing time has little effect on the processing performance of the output device. However, as the complexity of the SVG file increases, the time for generating the SVG image increases accordingly.

본 발명은 전술한 바와 같은 문제점을 해결하기 위해 고안된 것으로서,The present invention is designed to solve the problems as described above,

동적으로 변경되지 않고 자주 사용되는 SVG 파일의 출력 이미지 데이터를 저장하고 있다가 이를 재사용해줌으로써, 매번 SVG 파일을 파싱하는데 따른 소요시간을 단축시켜 SVG 이미지 출력 속도를 높일 수 있는 SVG 출력 장치 및 그 방법을 제공하는 것을 목적으로 한다.SVG output device and method that can speed up SVG image output by reducing the time required to parse SVG file every time by storing and reusing output image data of frequently used SVG file without changing dynamically The purpose is to provide.

본 발명의 실시예에 따른 SVG 이미지 출력 장치는, SVG 이미지를 저장하는 저장부; 및 SVG 파일이 입력되면, 상기 SVG 파일에 해당하는 SVG 이미지가 상기 저장부에 저장되어 있는지를 판단하고, 상기 SVG 파일에 해당하는 SVG 이미지가 저장되어 있는 경우에는 저장된 SVG 이미지가 출력되도록 처리하는 캐시 제어부를 구비한다.SVG image output apparatus according to an embodiment of the present invention, the storage unit for storing the SVG image; And when the SVG file is input, it is determined whether the SVG image corresponding to the SVG file is stored in the storage unit. A control unit is provided.

특히, 상기 캐시 제어부는, 입력받은 SVG 파일에 해당하는 SVG 이미지가 상 기 저장부에 저장되어 있는 경우, 해당 SVG 이미지를 사용할 것인지 여부를 사용자에게 질의하고, 질의에 대한 사용자 선택에 따라 상기 해당 SVG 이미지가 출력되도록 처리하는 것을 특징으로 한다.In particular, when the SVG image corresponding to the input SVG file is stored in the storage unit, the cache controller asks the user whether to use the SVG image, and the corresponding SVG according to a user selection for the query. It characterized in that the image is processed to be output.

또한, 상기 캐시 제어부는, 입력받은 SVG 파일에 해당하는 SVG 이미지가 상기 저장부에 저장되어 있지 않은 경우, 상기 SVG 파일을 파싱하여 SVG 이미지가 새로 생성되도록 처리하는 것을 특징으로 한다.The cache controller may be configured to parse the SVG file and generate a new SVG image when the SVG image corresponding to the input SVG file is not stored in the storage unit.

또한, 상기 캐시 제어부는, 상기 새로 생성된 SVG 이미지가 상기 저장부에 저장되도록 처리하는 것을 특징으로 한다.The cache controller may be further configured to process the newly generated SVG image to be stored in the storage unit.

또한, 상기 저장부는, 상기 SVG 이미지를 BMP, PNG, GIF, JPEG, 및 TIFF 중 어느 하나의 파일 형식으로 저장하는 것을 특징으로 한다.The storage unit may store the SVG image in any one file format among BMP, PNG, GIF, JPEG, and TIFF.

한편, 본 발명의 다른 실시예에 따른 SVG 이미지 출력 장치는, 파싱된 SVG 파일을 저장하는 저장부; 및 SVG 파일이 입력되면, 상기 SVG 파일에 해당하는 파싱된 SVG 파일이 상기 저장부에 저장되어 있는지를 판단하고, 상기 SVG 파일에 해당하는 파싱된 SVG 파일이 저장되어 있는 경우에는 저장되어 있는 파싱된 SVG 파일을 기반으로 상기 SVG 파일의 SVG 이미지가 생성되도록 처리하는 캐시 제어부를 구비하는 한다.On the other hand, SVG image output apparatus according to another embodiment of the present invention, the storage unit for storing the parsed SVG file; And when an SVG file is input, it is determined whether a parsed SVG file corresponding to the SVG file is stored in the storage unit, and when the parsed SVG file corresponding to the SVG file is stored, And a cache controller configured to generate an SVG image of the SVG file based on the SVG file.

특히, 상기 캐시 제어부는, 상기 SVG 파일에 해당하는 파싱된 SVG 파일이 저장되어 있는 경우, 해당하는 파싱된 SVG 파일을 사용할 것인지 여부를 사용자에게 질의하고, 질의에 대한 사용자 선택에 따라 해당하는 파싱된 SVG 파일을 기반으로 상기 SVG 파일의 SVG 이미지가 생성되도록 처리하는 것을 특징으로 한다.In particular, when the parsed SVG file corresponding to the SVG file is stored, the cache controller asks the user whether to use the parsed SVG file and parses the corresponding message according to a user selection for the query. The SVG image of the SVG file is generated based on the SVG file.

또한, 상기 캐시 제어부는, 입력받은 SVG 파일에 해당하는 파싱된 SVG 파일이 상기 저장부에 저장되어 있지 않은 경우, 상기 SVG 파일을 파싱하여 SVG 이미지가 새로 생성되도록 처리하는 것을 특징으로 한다.The cache controller may parse the SVG file and generate a new SVG image when the parsed SVG file corresponding to the input SVG file is not stored in the storage unit.

한편, 본 발명의 SVG 이미지 출력 방법은, 캐시 제어부가, SVG 파일이 입력되면, 상기 SVG 파일에 해당하는 SVG 이미지가 저장수단에 저장되어 있는지를 판단하는 단계; 상기 SVG 파일에 해당하는 SVG 이미지가 저장되어 있는 경우, 해당 SVG 이미지를 사용할 것인지 여부를 사용자에게 질의하는 단계; 및 질의에 대한 사용자 선택에 따라 저장되어 있는 해당 SVG 이미지가 출력되도록 처리하는 단계를 포함한다.On the other hand, SVG image output method of the present invention, the cache control unit, if the SVG file is input, determining whether the SVG image corresponding to the SVG file is stored in the storage means; If a SVG image corresponding to the SVG file is stored, querying a user whether to use the SVG image; And processing to output the corresponding SVG image stored according to the user's selection of the query.

특히, 상기 SVG 파일에 해당하는 SVG 이미지가 저장되어 있지 않은 경우, 상기 SVG 파일을 파싱하여 SVG 이미지가 새로 생성되도록 처리하는 단계를 더 포함하는 것을 특징으로 한다.In particular, when the SVG image corresponding to the SVG file is not stored, the method further comprises the step of parsing the SVG file to generate a new SVG image.

본 발명에 따르면 다음과 같은 효과 있다.According to the present invention has the following effects.

SVG 파일의 출력 이미지를 재사용할 수 있어 해당 이미지를 출력하기 위한 파싱 시간과 출력 이미지 생성 시간을 단축시킬 수 있는 효과가 있다. 뿐만 아니라, SVG 파일을 사용하는 응용 장치들의 초기 동작 시간을 현저하게 줄일 수 있고 런타임 시에도 SVG 파일의 처리 시간을 단축할 수 있는 효과가 있다.The output image of the SVG file can be reused, which reduces the parsing time for outputting the image and the output image generation time. In addition, the initial operation time of the applications using the SVG file can be significantly reduced, and the processing time of the SVG file can be shortened at runtime.

이하, 본 발명을 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다. 여기서, 반복되는 설명, 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능, 및 구성에 대한 상세한 설명은 생략한다. 본 발명의 실시형태는 당 업계에서 평균적인 지식을 가진 자에게 본 발명을 보다 완전하게 설명하기 위해서 제공되는 것이다. 따라서, 도면에서의 요소들의 형상 및 크기 등은 보다 명확한 설명을 위해 과장될 수 있다. 각 도면에 제시된 동일한 참조부호는 동일한 부재를 나타낸다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. Hereinafter, a repeated description, a known function that may obscure the gist of the present invention, and a detailed description of the configuration will be omitted. Embodiments of the present invention are provided to more fully describe the present invention to those skilled in the art. Accordingly, the shapes and sizes of the elements in the drawings and the like can be exaggerated for clarity. Like reference symbols in the drawings denote like elements.

도 4는 본 발명의 실시예에 따른 캐싱 기법을 이용한 SVG 출력 장치를 설명하기 위한 도면이다.4 is a diagram for describing an SVG output apparatus using a caching scheme according to an exemplary embodiment of the present invention.

도 4를 참조하면, 본 발명의 캐싱 기법을 이용한 SVG 출력 장치는, 리딩부(12), 캐시 제어부(14), 저장부(16), 파일 파싱부(18), 이미지 생성부(20), 및 출력부(22)를 구비한다.Referring to FIG. 4, the SVG output apparatus using the caching technique of the present invention includes a reading unit 12, a cache control unit 14, a storage unit 16, a file parser 18, an image generator 20, And an output unit 22.

리딩부(12)는 XML 기반의 SVG 파일을 읽어들인다.The reading unit 12 reads an XML-based SVG file.

캐시 제어부(14)는 리딩부(12)로부터 SVG 파일을 입력받아, 입력받은 SVG 파일에 해당하는 SVG 이미지가 저장부(16)에 저장되어 있는지를 판단하고, 입력받은 SVG 파일에 해당하는 SVG 이미지가 저장되어 있으면 저장된 SVG 이미지가 출력되도록 처리한다. 이때, 캐시 제어부(14)는, 입력받은 SVG 파일에 해당하는 SVG 이미지가 저장부(16)에 저장되어 있는 경우, 먼저 해당 SVG 이미지를 사용할 것인지를 사 용자 인터페이스(도시 생략)을 통해 사용자에게 질의하고, 질의에 대한 사용자 선택에 따라 해당 SVG 이미지가 사용자 인터페이스를 통해 출력되도록 처리하는 것이 바람직하다.The cache controller 14 receives the SVG file from the reading unit 12, determines whether the SVG image corresponding to the input SVG file is stored in the storage unit 16, and the SVG image corresponding to the input SVG file. If is saved, the saved SVG image is processed. At this time, the cache controller 14, when the SVG image corresponding to the input SVG file is stored in the storage unit 16, the user first asks the user through a user interface (not shown) whether to use the SVG image. In addition, it is preferable to process the SVG image to be output through the user interface according to the user's selection of the query.

한편, 캐시 제어부(14)는, 입력받은 SVG 파일에 해당하는 SVG 이미지가 저장부(16)에 저장되어 있지 않은 경우, 입력받은 SVG 파일을 파싱하여 SVG 이미지가 새로 생성될 수 있도록 처리한다. On the other hand, if the SVG image corresponding to the input SVG file is not stored in the storage unit 16, the cache controller 14 parses the input SVG file so that the SVG image can be newly generated.

보다 상세하게는, 캐시 제어부(14)는 입력받은 SVG 파일을 파일 파싱부(18)에 전달하고, 파일 파싱부(18)는 캐시 제어부(14)로부터 전달받은 SVG 파일을 파싱(parsing)한다. 그리고, 파일 파싱부(18)를 통해 파싱된 SVG 파일은 이미지 생성부(20)에 전달되고, 이미지 생성부(20)는 이를 전달받아 SVG 이미지를 새로 생성한다. 이미지 생성부(20)를 통해 새로 생성된 SVG 이미지는 사용자 인터페이스를 통해 사용자에게 출력되며, 캐시 제어부(16)에 의해 저장부(14)에 저장된다. 저장된 SVG 이미지는 추후 동일한 SVG 파일에 대한 SVG 이미지 생성 요구 시 재활용된다. 이때, 캐시 제어부(16)는 사용자 선택을 통해 생성된 SVG 이미지 파일의 저장여부를 결정하는 것이 바람직하다. 이는 사용자 판단 하에 동적으로 자주 변경되지 않는 SVG 파일의 SVG 이미지가 저장될 수 있도록 하기 위함이다.More specifically, the cache controller 14 transfers the input SVG file to the file parser 18, and the file parser 18 parses the SVG file received from the cache controller 14. The SVG file parsed through the file parser 18 is transferred to the image generator 20, and the image generator 20 receives the generated SVG image. The newly generated SVG image through the image generator 20 is output to the user through the user interface, and is stored in the storage 14 by the cache controller 16. Saved SVG images will be recycled in the future when SVG image creation requests for the same SVG file are made. In this case, the cache controller 16 may determine whether to store the SVG image file generated through user selection. This is to ensure that SVG images of SVG files that are not dynamically changed frequently are stored at the user's discretion.

전술한 SVG 파일을 파싱하고 그에 따른 SVG 이미지를 생성하는 방법은 종래 공지된 다양한 방법들을 통해 달성될 수 있으며, 이는 본 발명의 요지에 해당하는 사항이 아니기 때문에 본 발명의 명확한 이해를 돕기 위해 이에 대한 더 이상의 상세한 설명은 생략하기로 한다.The above-described method for parsing an SVG file and generating an SVG image accordingly may be achieved through various methods known in the art. Detailed descriptions will be omitted.

저장부(16)는 이미지 생성부(20)를 통해 생성된 SVG 이미지를 캐시 제어부(14)의 제어신호에 따라 저장한다. 이때 저장부(16)는 생성된 SVG 이미지를 BMP, PNG, GIF, JPEG, 및 TIFF 중 어느 하나의 이미지 파일 형식으로 저장한다.The storage unit 16 stores the SVG image generated by the image generator 20 according to the control signal of the cache controller 14. At this time, the storage unit 16 stores the generated SVG image in any one of the image file format of BMP, PNG, GIF, JPEG, and TIFF.

한편, 전술한 실시예에서는 저장부(16)에 이미지 생성부(20)을 통해 생성된 SVG 이미지가 저장되는 것으로 설명하였으나, 저장부(16)에는 파일 파싱부(18)를 통해 생성된 파싱된 SVG 파일이 저장될 수도 있다. 그리고, 캐시 제어부(14)는 SVG 파일이 입력되면 그에 해당하는 파싱된 SVG 파일이 저장부(16)에 저장되어 있는지를 판단하고, 입력받은 SVG 파일에 해당하는 파싱된 SVG 파일이 저장되어 있으면, 저장되어 있는 파싱된 SVG 파일을 기반으로 SVG 이미지가 생성되도록 처리할 수도 있다. Meanwhile, in the above-described embodiment, the SVG image generated by the image generator 20 is stored in the storage 16, but the storage 16 is parsed by the file parser 18. SVG files may be saved. When the SVG file is input, the cache controller 14 determines whether the parsed SVG file is stored in the storage unit 16, and if the parsed SVG file corresponding to the input SVG file is stored, You can also process the SVG image to be generated based on the parsed SVG file.

즉, 저장부(16)에는 파싱된 SVG 파일이 저장될 수도 있고, 파싱된 SVG 파일을 기반으로 생성된 SVG 이미지가 저장될 수도 있다. 이는 처리 시간 단축과 사용 가능한 캐싱 메모리의 크기에 따라 달라질 수 있는 것이며, 사용자 설정에 따라 변경 가능하다. 저장부(16)의 메모리 용량이 큰 경우에는 SVG 이미지를 바로 저장하는 것이 바람직하고, 메모리가 제한적인 경우에는 파싱된 SVG 파일만을 저장해 두는 것이 바람직하다.That is, the storage 16 may store the parsed SVG file, or may store the SVG image generated based on the parsed SVG file. This may vary depending on the processing time and the size of available caching memory, and can be changed according to user settings. When the memory capacity of the storage unit 16 is large, it is preferable to immediately store the SVG image, and when the memory is limited, it is preferable to store only the parsed SVG file.

출력부(22)는 캐시 제어부(14)의 제어신호에 따라 SVG 이미지를 사용자에게 출력한다. 즉, 출력부(22)는 캐시 제어부(14)의 제어에 따라 저장부(16)에 저장되어 있던 SVG 이미지 또는 이미지 생성부(20)를 통해 새로 생성된 SVG 이미지를 사용자에게 출력한다.The output unit 22 outputs the SVG image to the user according to the control signal of the cache control unit 14. That is, the output unit 22 outputs the newly generated SVG image to the user through the SVG image stored in the storage unit 16 or the image generator 20 under the control of the cache controller 14.

파일 파싱부(18)는 리딩부(12)로부터 SVG 파일을 전달받아 캐시 제어부(14)의 제어신호에 따라 SVG 파일을 파싱하고, 이를 이미지 생성부(20)에 전달한다.The file parser 18 receives the SVG file from the reading unit 12, parses the SVG file according to the control signal of the cache controller 14, and transfers the SVG file to the image generator 20.

이미지 생성부(20)는 파일 파싱부(18)를 통해 파싱된 SVG 파일을 입력받아 SVG 이미지를 생성하고, 생성된 SVG 이미지를 캐시 제어부(14)에 전달한다.The image generator 20 receives an SVG file parsed through the file parser 18, generates an SVG image, and transfers the generated SVG image to the cache controller 14.

상기한 구성을 갖는 본 발명에 따르면, SVG 파일의 출력 이미지를 재사용할 수 있어 해당 이미지를 출력하기 위한 파싱 시간과 출력 이미지 생성 시간을 단축시킬 수 있는 효과가 있다.According to the present invention having the above configuration, it is possible to reuse the output image of the SVG file has the effect of reducing the parsing time for outputting the image and the output image generation time.

뿐만 아니라, SVG 파일을 사용하는 응용 장치들의 초기 동작 시간을 현저하게 줄일 수 있고 런타임 시에도 SVG 파일의 처리 시간을 단축할 수 있는 효과가 있다.In addition, the initial operation time of the applications using the SVG file can be significantly reduced, and the processing time of the SVG file can be shortened at runtime.

도 5는 본 발명의 실시예에 따른 캐싱 기법을 이용한 SVG 출력 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating an SVG output method using a caching scheme according to an embodiment of the present invention.

도 5를 참조하면, 리딩부가 SVG 파일을 읽어들여 이를 캐시 제어부에 전달한다(S10).Referring to FIG. 5, the reading unit reads the SVG file and transfers it to the cache controller (S10).

캐시 제어부는 S10 단계를 통해 읽어들인 SVG 파일에 해당하는 SVG 이미지가 저장부에 캐싱되어 있는 지를 판단한다(S20). 즉, 입력받은 SVG 파일에 해당하는 SVG 이미지가 이전에 SVG 이미지 생성과정을 통해 저장부에 저장되어 있는지를 판단한다.The cache controller determines whether the SVG image corresponding to the SVG file read through the step S10 is cached in the storage unit (S20). That is, it is determined whether the SVG image corresponding to the input SVG file is previously stored in the storage through the SVG image generation process.

S20 단계에서의 판단 결과, 리딩부를 통해 입력받은 SVG 파일에 해당하는 SVG 이미지가 저장부에 저장되어 있지 않은 경우, 입력받은 SVG 파일을 파싱하여 SVG 이미지가 새로 생성되도록 처리한다(S40, S50). 이때 SVG 파일의 파싱 및 이미지 생성은 파일 파싱부 및 이미지 생성부를 통해서 각각 이루어진다.As a result of the determination in step S20, when the SVG image corresponding to the SVG file input through the reading unit is not stored in the storage unit, the input SVG file is parsed to process the newly generated SVG image (S40 and S50). In this case, parsing and image generation of the SVG file are performed through the file parsing unit and the image generating unit, respectively.

한편, 리딩부를 통해 입력받은 SVG 파일에 해당하는 SVG 이미지가 저장부에 저장되어 있는 경우에는, 저장된 SVG 이미지가 출력되도록 처리한다(S60).On the other hand, when the SVG image corresponding to the SVG file input through the reading unit is stored in the storage unit, the stored SVG image is processed to be output (S60).

이때, 해당 SVG 이미지를 사용할 것인지 여부를 사용자에게 질의하고, 질의에 대한 사용자 선택에 따라 상기 해당 SVG 이미지가 출력되도록 처리하는 것이 바람직하다.In this case, it is preferable to query the user whether or not to use the SVG image, and to process the SVG image to be output according to a user's selection of the query.

S60 단계 이후에, 새로 생성된 SVG 이미지가 저장부에 저장되도록 처리한다. 즉, 새로 생성된 SVG 이미지를 저장할 것인지를 사용자에게 질의하고(S70), 질의에 따른 사용자 선택에 따라 해당 SVG 이미지를 저장부에 저장한다(S80). After step S60, the newly generated SVG image is processed to be stored in the storage unit. That is, the user is asked whether to save the newly created SVG image (S70), and the corresponding SVG image is stored in the storage unit according to the user's selection according to the query (S80).

본 발명에 따른 SVG이미지 출력 방법은 동적으로 변경되지 않고 자주 사용되는 SVG 파일의 출력 이미지 데이터를 저장하고 있다가 이를 재사용해줌으로써, 매번 SVG 파일을 파싱하는데 따른 소요시간을 단축시켜 SVG 이미지 출력 속도를 높일 수가 있다.SVG image output method according to the present invention by storing the output image data of the frequently used SVG file without changing dynamically and reuse it, reducing the time required for parsing the SVG file every time to speed up the SVG image output You can increase it.

본 발명의 일부 단계들은 컴퓨터가 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록 장치를 포함한다. 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, CD-RW, 자기 테이프, 플로피디스크, HDD, 광 디스크, 광자기 저장장치 등이 있을 수 있으며, 또한 캐리어 웨이브(예를 들어, 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드로 저장되고 실행될 수 있다.Some steps of the invention may be embodied as computer readable code on a computer readable recording medium. A computer-readable recording medium includes all kinds of recording apparatuses in which data that can be read by a computer system is stored. Examples of computer-readable recording media may include ROM, RAM, CD-ROM, CD-RW, magnetic tape, floppy disk, HDD, optical disk, magneto-optical storage, and the like. , Transmission over the Internet). The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이상에서와 같이 도면과 명세서에서 최적의 실시예가 개시되었다. 여기서 특정한 용어들이 사용되었으나, 이는 단지 본 발명을 설명하기 위한 목적에서 사용된 것이지 의미 한정이나 특허청구범위에 기재된 본 발명의 범위를 제한하기 위하여 사용된 것은 아니다. 그러므로, 본 기술 분야의 통상의 지식을 가진자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호범위는 첨부된 특허청구범위의 기술적 사상에 의해 정해져야 할 것이다.As described above, an optimal embodiment has been disclosed in the drawings and specification. Although specific terms have been employed herein, they are used for purposes of illustration only and are not intended to limit the scope of the invention as defined in the claims or the claims. Therefore, those skilled in the art will appreciate that various modifications and equivalent embodiments are possible without departing from the scope of the present invention. Accordingly, the true scope of the present invention should be determined by the technical idea of the appended claims.

도 1 및 2는 SVG 파일과 그에 대응되는 실제 출력 SVG 이미지를 나타내는 도면이다.1 and 2 illustrate an SVG file and an actual output SVG image corresponding thereto.

도 3은 일반적인 SVG 이미지 출력 장치가 SVG 이미지를 출력하는 과정을 설명하기 위한 흐름도이다.3 is a flowchart illustrating a process of outputting an SVG image by a general SVG image output apparatus.

도 4는 본 발명의 실시예에 따른 캐싱 기법을 이용한 SVG 출력 장치를 설명하기 위한 도면이다.4 is a diagram for describing an SVG output apparatus using a caching scheme according to an exemplary embodiment of the present invention.

도 5는 본 발명의 실시예에 따른 캐싱 기법을 이용한 SVG 출력 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating an SVG output method using a caching scheme according to an embodiment of the present invention.

Claims (10)

삭제delete 삭제delete 삭제delete 삭제delete 삭제delete SVG 이미지 출력 장치에 관한 것으로서,SVG image output device, 파싱된 SVG 파일을 저장하는 저장부; 및A storage unit to store parsed SVG files; And SVG 파일이 입력되면, 상기 SVG 파일에 해당하는 파싱된 SVG 파일이 상기 저장부에 저장되어 있는지를 판단하고, 상기 SVG 파일에 해당하는 파싱된 SVG 파일이 저장되어 있는 경우에는 저장되어 있는 파싱된 SVG 파일을 기반으로 상기 SVG 파일의 SVG 이미지가 생성되도록 처리하는 캐시 제어부를 구비하며,When an SVG file is input, it is determined whether a parsed SVG file corresponding to the SVG file is stored in the storage unit, and when the parsed SVG file corresponding to the SVG file is stored, the parsed SVG stored And a cache controller configured to process the SVG image of the SVG file to be generated based on the file. 상기 캐시 제어부는,The cache control unit, 상기 SVG 파일에 해당하는 파싱된 SVG 파일이 저장되어 있는 경우, 해당하는 파싱된 SVG 파일을 사용할 것인지 여부를 사용자에게 질의하고, 질의에 대한 사용자 선택에 따라 해당하는 파싱된 SVG 파일을 기반으로 상기 SVG 파일의 SVG 이미지가 생성되도록 처리하는 SVG 이미지 출력 장치.When the parsed SVG file corresponding to the SVG file is stored, the user is asked whether to use the parsed SVG file, and the SVG is based on the parsed SVG file according to the user's selection for the query. SVG image output device that handles the generation of SVG images for files. 삭제delete 청구항 6에 있어서,The method of claim 6, 상기 캐시 제어부는,The cache control unit, 입력받은 SVG 파일에 해당하는 파싱된 SVG 파일이 상기 저장부에 저장되어 있지 않은 경우, 상기 SVG 파일을 파싱하여 SVG 이미지가 새로 생성되도록 처리하는 것을 특징으로 하는 SVG 이미지 출력 장치.If the parsed SVG file corresponding to the input SVG file is not stored in the storage unit, the SVG image output device is configured to parse the SVG file to generate a new SVG image. 삭제delete 삭제delete
KR1020090095179A 2008-12-05 2009-10-07 SVG image output apparatus using caching techniques and method thereof KR101262850B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020080123483 2008-12-05
KR20080123483 2008-12-05

Publications (2)

Publication Number Publication Date
KR20100065071A KR20100065071A (en) 2010-06-15
KR101262850B1 true KR101262850B1 (en) 2013-05-22

Family

ID=42364575

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020090095179A KR101262850B1 (en) 2008-12-05 2009-10-07 SVG image output apparatus using caching techniques and method thereof

Country Status (1)

Country Link
KR (1) KR101262850B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160082732A (en) 2014-12-29 2016-07-11 이엔유 주식회사 Component-based dynamic image display system and method using the svg file format
KR20160102360A (en) 2016-08-08 2016-08-30 이엔유 주식회사 Component-based dynamic image display system and method using the svg file format
CN107390072A (en) * 2017-08-25 2017-11-24 上海蓝瑞电气有限公司 SVG ageing testing methods and its device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101589369B1 (en) * 2014-04-15 2016-01-28 광운대학교 산학협력단 Apparatus and method for caching processed resources using non-volatile memory
KR101716823B1 (en) 2015-07-09 2017-03-16 주식회사 이앤아이월드 System for electronic book service
US10642590B2 (en) 2017-06-30 2020-05-05 Samsung Electronics Co., Ltd. Method and electronic device for rendering scalable vector graphics content
KR102017843B1 (en) * 2017-11-16 2019-10-21 (주)인크루넷 W3C Web standard technology HTML5 and Java enterprise standard technology JEE 7 book / drawing service system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004164208A (en) * 2002-11-12 2004-06-10 Canon Inc Image processing method
US6873343B2 (en) 2000-05-11 2005-03-29 Zoran Corporation Scalable graphics image drawings on multiresolution image with/without image data re-usage
JP2007018172A (en) 2005-07-06 2007-01-25 Canon Inc Information processor and information processing method
US20080059886A1 (en) * 2006-08-31 2008-03-06 Ati Technologies Inc. Smart picture selector and cache

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6873343B2 (en) 2000-05-11 2005-03-29 Zoran Corporation Scalable graphics image drawings on multiresolution image with/without image data re-usage
JP2004164208A (en) * 2002-11-12 2004-06-10 Canon Inc Image processing method
JP2007018172A (en) 2005-07-06 2007-01-25 Canon Inc Information processor and information processing method
US20080059886A1 (en) * 2006-08-31 2008-03-06 Ati Technologies Inc. Smart picture selector and cache

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160082732A (en) 2014-12-29 2016-07-11 이엔유 주식회사 Component-based dynamic image display system and method using the svg file format
KR20160102360A (en) 2016-08-08 2016-08-30 이엔유 주식회사 Component-based dynamic image display system and method using the svg file format
CN107390072A (en) * 2017-08-25 2017-11-24 上海蓝瑞电气有限公司 SVG ageing testing methods and its device
CN107390072B (en) * 2017-08-25 2019-12-24 上海蓝瑞电气有限公司 SVG aging test method and device

Also Published As

Publication number Publication date
KR20100065071A (en) 2010-06-15

Similar Documents

Publication Publication Date Title
KR101262850B1 (en) SVG image output apparatus using caching techniques and method thereof
US20150046797A1 (en) Document format processing apparatus and document format processing method
US20080320387A1 (en) Information displaying device and information displaying method
EP2972827B1 (en) Collaborative editing
KR101453743B1 (en) Pre-caching method for web application and device using the same
JP2007287146A (en) Optimization of storage and transmission of markup language file
KR101689745B1 (en) Web browsing system and method for rendering dynamic resource URI of script
KR20140009175A (en) Partial loading and editing of documents from a server
CN103049439A (en) Processing method for markup language documents, browser and network operating system
CN103164193A (en) Method and device for template rendering
US20120236004A1 (en) Information output apparatus and information output method and recording medium
JP2018055241A (en) Device, method and program for providing document file creation service in cloud system
US20140229533A1 (en) Client-side network page generation
JP2011146036A (en) Information processor, control method for the same, and program
US20060075331A1 (en) Structured document processing method and apparatus, and storage medium
CN111881651A (en) Method for converting UOT streaming document into OFD format document
CN105447016B (en) A kind of fast search of component and the method for reuse
CN103914293A (en) Page generation method and server
US20140337707A1 (en) Method and apparatus for client to browse web page provided by server
US20180032487A1 (en) Scalable vector graphics bundles
JP4308448B2 (en) Content generation according to the output device
CN116484038A (en) SVG logging data interaction management software method and system
CN110049133A (en) A kind of method and apparatus that dns zone file full dose issues
KR101498920B1 (en) Web page pre-caching system and method for offline-executing
JP2010009191A (en) Image processor

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

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20190503

Year of fee payment: 7