KR100826943B1 - Method and apparatus for processing jpeg image, and record media recored program for realizing the same - Google Patents

Method and apparatus for processing jpeg image, and record media recored program for realizing the same Download PDF

Info

Publication number
KR100826943B1
KR100826943B1 KR1020060065299A KR20060065299A KR100826943B1 KR 100826943 B1 KR100826943 B1 KR 100826943B1 KR 1020060065299 A KR1020060065299 A KR 1020060065299A KR 20060065299 A KR20060065299 A KR 20060065299A KR 100826943 B1 KR100826943 B1 KR 100826943B1
Authority
KR
South Korea
Prior art keywords
jpeg
image
header
data
generating
Prior art date
Application number
KR1020060065299A
Other languages
Korean (ko)
Other versions
KR20080006295A (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 엠텍비젼 주식회사
Priority to KR1020060065299A priority Critical patent/KR100826943B1/en
Publication of KR20080006295A publication Critical patent/KR20080006295A/en
Application granted granted Critical
Publication of KR100826943B1 publication Critical patent/KR100826943B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Abstract

JPEG으로 압축된 정지 영상을 편집할 경우 소요되는 시간 및 메모리를 줄이기 위한 JPEG 이미지 처리 방법은 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 삽입되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계와, 상기 제1 JPEG 이미지 중 소정 영역을 선택하는 단계와, 상기 소정 영역의 이미지 크기 정보와 제2 헤더를 생성하는 단계와, 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 단계를 포함한다. JPEG 이미지 중 일부분을 자르거나 두개의 JPEG 이미지를 붙이는 이미지 편집 처리에 소요되는 시간이 줄어들고, 메모리등 자원이 한정된 휴대용 단말기에 사용될 경우 효과적으로 메모리를 절약할 수 있다.In order to reduce the time and memory required when editing a JPEG-compressed still image, a JPEG image processing method includes: first data in which one restart marker is inserted for each first header and one basic block (Minimum Coded Unit, MCU); Generating a first JPEG image file comprising: selecting a predetermined region of the first JPEG image; generating image size information and a second header of the predetermined region; and corresponding to the predetermined region. And generating the second JPEG image file corresponding to the predetermined area by combining the second data including the image data and the second header. The time required for image editing processing to cut a portion of a JPEG image or to paste two JPEG images is reduced, and when used in a portable terminal with limited resources such as memory, the memory can be effectively saved.

Description

제이펙 이미지 처리 방법, 이미지 처리 장치 및 이를 구현하기 위한 프로그램이 기록된 기록매체{METHOD AND APPARATUS FOR PROCESSING JPEG IMAGE, AND RECORD MEDIA RECORED PROGRAM FOR REALIZING THE SAME}TECHNOD AND APPARATUS FOR PROCESSING JPEG IMAGE, AND RECORD MEDIA RECORED PROGRAM FOR REALIZING THE SAME}

도 1은 원본 이미지(original image)와 원본 이미지에서 절단된 특정 영역을 나타낸다. 1 shows an original image and a specific region cut out of the original image.

도 2는 원본 이미지로부터 절단된 특정 영역에 상응하는 JPEG 이미지를 생성하기 위한 종래의 JPEG 이미지 처리 방법을 나타낸 순서도이다.2 is a flowchart illustrating a conventional JPEG image processing method for generating a JPEG image corresponding to a specific region cut out from an original image.

도 3은 일반적인 JPEG 파일 구조를 나타낸다. 3 shows a general JPEG file structure.

도 4는 일반적인 JPEG 파일 구조(JPEG File Interchange Format, JFIF)에서 사용되는 마커 코드를 나타낸 도표이다. 4 is a diagram illustrating marker codes used in a general JPEG file interchange format (JFIF).

도 5는 본 발명의 일실시예에 따른 휴대용 단말기에 사용되는 영상 처리 장치를 나타낸 블록도이다. 5 is a block diagram illustrating an image processing apparatus used in a portable terminal according to an embodiment of the present invention.

도 6은 본 발명의 일실시예에 따른 도 5의 JPEG 영상 처리부를 나타낸 블록도이다. 6 is a block diagram illustrating the JPEG image processor of FIG. 5 according to an embodiment of the present invention.

도 7은 본 발명의 일실시예에 따른 소정의 포맷을 가지는 JPEG 원본 이미지 파일 구조를 나타낸다.7 illustrates a JPEG original image file structure having a predetermined format according to an embodiment of the present invention.

도 8은 도 7의 원본 이미지로부터 절단된 특정 영역의 이미지에 상응하는 JPEG 파일 구조를 나타낸다. FIG. 8 shows a JPEG file structure corresponding to an image of a specific area cut out from the original image of FIG. 7.

도 9는 본 발명의 일실시예에 따른 소정의 포맷을 가지는 제1 JPEG 원본 이미지 파일 구조를 나타낸다.9 illustrates a first JPEG original image file structure having a predetermined format according to an embodiment of the present invention.

도 10은 본 발명의 일실시예에 따른 소정의 포맷을 가지는 제2 JPEG 원본 이미지 파일 구조를 나타낸다.10 illustrates a second JPEG original image file structure having a predetermined format according to an embodiment of the present invention.

도 11은 도 9 및 도 10의 JPEG 원본 이미지를 합하여 생성된 JPEG 파일 구조를 나타낸다.FIG. 11 illustrates a JPEG file structure generated by combining the JPEG original images of FIGS. 9 and 10.

도 12는 본 발명의 일실시예에 따른 JPEG 이미지 처리 방법을 나타낸 순서도이다.12 is a flowchart illustrating a JPEG image processing method according to an embodiment of the present invention.

도 13은 본 발명의 일실시예에 따른 휴대용 단말기를 나타낸 블록도이다. 13 is a block diagram illustrating a portable terminal according to an embodiment of the present invention.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

500 : 이미지 처리 장치 530 : JPEG 인코더500: image processing unit 530: JPEG encoder

550 : JPEG 영상 처리부 552 : JPEG 파싱 모듈550: JPEG image processing unit 552: JPEG parsing module

554 : 편집 제어부 555 : 이미지 편집 모듈554: editing control unit 555: image editing module

556 : JPEG 편집 모듈 605 : DRI 마커556: JPEG editing module 605: DRI marker

607, 707 : 리스타트 간격607, 707: Restart interval

610, 710, 810, 910, 1010, 1110 : JPEG 이미지 파일의 헤더 610, 710, 810, 910, 1010, 1110: header of JPEG image file

본 발명은 제이펙 이미지 처리 방법, 이미지 처리 장치 및 이를 구현하기 위한 프로그램이 기록된 기록매체에 관한 것으로, 더욱 상세하게는 휴대용 단말기에 적용할 수 있는 제이펙 이미지 처리 방법, 이미지 처리 장치 및 이를 구현하기 위한 프로그램이 기록된 기록매체에 관한 것이다. The present invention relates to a JPEG image processing method, an image processing apparatus, and a recording medium on which a program for implementing the same is recorded. More particularly, the present invention relates to a JPEG image processing method, an image processing apparatus, and an implementation thereof. The present invention relates to a recording medium having recorded thereon a program.

최근에는 대부분의 휴대폰 및 PDA와 같은 휴대용 단말기에 카메라 기능이 포함되어 있다. 휴대용 단말기는 개인용 컴퓨터 등과 비교할 때 메모리 용량, 처리 속도 및 자원 등의 제약이 있다. Recently, most mobile terminals such as mobile phones and PDAs have camera functions. Portable terminals have limitations such as memory capacity, processing speed, and resources when compared to personal computers.

이미지 데이터는 효율적인 저장 및 전송을 위해 압축된 상태로 저장된다. 제이펙(JPEG)은 Joint Photographic Experts Group에서 정한 이미지 압축에 관한 표준으로서, 높은 압축 효율 때문에 사진과 같은 정지화상 이미지를 압축하는 파일 포맷으로 가장 널리 사용되고 있다. Image data is stored in a compressed state for efficient storage and transmission. JPEG is a standard for image compression set by the Joint Photographic Experts Group and is the most widely used file format for compressing still image images such as photographs due to its high compression efficiency.

도 1은 원본 이미지(original image)와 원본 이미지에서 절단된 특정 영역을 나타낸 도면이고, 도 2는 원본 이미지로부터 절단된 특정 영역에 상응하는 JPEG 이미지를 생성하기 위한 종래의 JPEG 이미지 처리 방법을 나타낸 순서도이다. JPEG 이미지의 특정 부분을 잘라내거나(crop) 또는 붙이는(paste) 작업은 종래에는 도 2와 같은 순서로 수행된다. 1 is a view showing an original image and a specific region cut out from an original image, and FIG. 2 is a flowchart illustrating a conventional JPEG image processing method for generating a JPEG image corresponding to a specific region cut from the original image. to be. Cropping or pasting a specific portion of a JPEG image is conventionally performed in the same order as in FIG. 2.

도 2를 참조하면, 먼저 압축된 원본 JPEG 이미지의 데이터를 읽어들여(단계 201) 상기 읽어들인 JPEG 이미지의 데이터를 디코드(decode) 하여(단계 203) 상기 원본 이미지 영역(100) 중 원하는 특정 영역(10)의 원시 이미지 데이터(raw image data)를 얻고(단계 205), 상기 원하는 특정 영역(10)에 상응하는 원시 이미지 데이 터를 다시 인코드(encode)하여(단계 207) 상기 원하는 특정 영역(10)의 JPEG 이미지 데이터를 생성한다(단계 209). Referring to FIG. 2, first, data of a compressed original JPEG image is read (step 201), and data of the read JPEG image is decoded (step 203) to a desired specific area of the original image area 100. Raw image data of step 10) (step 205), and then re-encode the raw image data corresponding to the desired particular area 10 (step 207) to the desired specific area 10; JPEG image data is generated (step 209).

이때, 원시 이미지 데이터를 얻기 위해서는 원시 이미지 데이터 크기 만큼의 버퍼가 필요하며, 상기 읽어들인 원본 JPEG 이미지 데이터를 디코드하는 데 걸리는 시간 및 다시 상기 원하는 특정 영역(10)에 상응하는 원시 이미지 데이터를 인코드하는데 걸리는 시간이 추가로 더 필요하게 되는 단점이 있다. In this case, a buffer equal to the size of the raw image data is required to obtain the raw image data, and the time required to decode the read original JPEG image data and again encode the raw image data corresponding to the desired specific region 10. There is a disadvantage in that it takes more time to take.

따라서, 상기한 바와 같은 종래기술의 문제점을 해결하기 위해 본 발명의 제1 목적은 메모리 등 자원이 한정된 휴대용 단말기에서 JPEG으로 압축된 정지 영상을 편집할 경우 소요되는 시간 및 메모리를 줄이기 위한 JPEG 이미지 처리 방법을 제공하는 것이다. Therefore, the first object of the present invention to solve the problems of the prior art as described above is JPEG image processing to reduce the time and memory required when editing a still image compressed with JPEG in a portable terminal of limited resources such as memory To provide a way.

또한, 본 발명의 제2 목적은 메모리 등 자원이 한정된 휴대용 단말기에서 JPEG으로 압축된 정지 영상을 편집할 경우 소요되는 시간 및 메모리를 줄이기 위한 방법을 구현하기 위한 프로그램이 기록된 기록매체를 제공하는 것이다.It is also a second object of the present invention to provide a recording medium having a program recorded thereon for implementing a method for reducing the time and memory required when editing a still image compressed with JPEG in a portable terminal having limited resources such as a memory. .

또한, 본 발명의 제3 목적은 메모리 등 자원이 한정된 휴대용 단말기에서 JPEG으로 압축된 정지 영상을 편집할 경우 소요되는 시간 및 메모리를 줄이기 위한 이미지 처리 장치를 제공하는 것이다.Further, a third object of the present invention is to provide an image processing apparatus for reducing the time and memory required when editing a still image compressed with JPEG in a portable terminal with limited resources such as a memory.

상술한 본 발명의 제1 목적을 달성하기 위한 본 발명의 일측면에 따른 JPEG 이미지 처리 방법은 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 삽입되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계; 상기 제1 JPEG 이미지 중 소정 영역을 선택하는 단계; 상기 소정 영역의 이미지 크기 정보와 제2 헤더를 생성하는 단계; 및 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 단계를 포함한다. 상기 제1 헤더는 DRI(Define Restart Interval) 마커의 리스타트 간격이 1로 설정될 수 있다. 상기 제2 헤더는 상기 DRI 마커의 리스타트 간격이 1로 설정될 수 있다. In accordance with an aspect of the present invention, there is provided a method of processing a JPEG image according to an aspect of the present invention, wherein a restart marker is inserted in each of a first header and one basic block (Minimum Coded Unit, MCU). Generating a first JPEG image file comprising data; Selecting a predetermined area of the first JPEG image; Generating image size information and a second header of the predetermined area; And generating a second JPEG image file corresponding to the predetermined area by adding the second header and the second data including image data corresponding to the predetermined area. In the first header, a restart interval of a DRI marker may be set to '1'. In the second header, a restart interval of the DRI marker may be set to one.

또한, 상술한 본 발명의 제1 목적을 달성하기 위한 본 발명의 다른 측면에 따른 JPEG 이미지 처리 방법은 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계; 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 생성하는 단계; 상기 제1 JPEG 이미지 중 편집하고자 하는 제1 소정 영역을 선택하는 단계; 상기 제2 JPEG 이미지 중 편집하고자 하는 제2 소정 영역을 선택하는 단계; 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 제3 헤더를 생성하는 단계; 및 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 단계를 포함한다. In addition, the JPEG image processing method according to another aspect of the present invention for achieving the first object of the present invention is that one restart marker is disposed for each of the first header and one basic block (Minimum Coded Unit, MCU) Generating a first JPEG image file comprising first data; Generating a second JPEG image file including a second header and second data in which the one restart marker is disposed for each one basic block; Selecting a first predetermined area of the first JPEG image to be edited; Selecting a second predetermined area of the second JPEG image to be edited; Generating image size information and a third header of the first and second predetermined regions; And generating third JPEG image files corresponding to the first and second predetermined regions by combining the third header and the third data including the image data corresponding to the first and second predetermined regions. .

또한, 상술한 본 발명의 제2 목적을 달성하기 위한 본 발명의 일 측면에 따른 JPEG 이미지를 처리하는 디지털 처리 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며 상기 디지털 처리 장치에 의해 판독될 수 있는 기록매체는 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계; 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 생성하는 단계; 상기 제1 JPEG 이미지 중 편집하고자 하는 제1 소정 영역을 선택하는 단계; 상기 제2 JPEG 이미지 중 편집하고자 하는 제2 소정 영역을 선택하는 단계; 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 제3 헤더를 생성하는 단계; 및 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 단계를 수행한다. In addition, a program of instructions that can be executed by a digital processing apparatus for processing a JPEG image according to an aspect of the present invention for achieving the above-described second object of the present invention is tangibly implemented and read by the digital processing apparatus. The recording medium may include generating a first JPEG image file including a first header and first data including one restart marker for each basic block (Minimum Coded Unit, MCU); Generating a second JPEG image file including a second header and second data in which the one restart marker is disposed for each one basic block; Selecting a first predetermined area of the first JPEG image to be edited; Selecting a second predetermined area of the second JPEG image to be edited; Generating image size information and a third header of the first and second predetermined regions; And generating third JPEG image files corresponding to the first and second predetermined regions by combining the third header and the third data including the image data corresponding to the first and second predetermined regions. .

또한, 상술한 본 발명의 제2 목적을 달성하기 위한 본 발명의 다른 측면에 따른 JPEG 이미지를 처리하는 디지털 처리 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며 상기 디지털 처리 장치에 의해 판독될 수 있는 기록매체는 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계; 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 생성하는 단계; 상기 제1 JPEG 이미지 중 편집하고자 하는 제1 소정 영역을 선택하는 단계; 상기 제2 JPEG 이미지 중 편집하고자 하는 제2 소정 영역을 선택하는 단계; 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 제3 헤더를 생성하는 단계; 및 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 단계를 수행한다. Further, a program of instructions that can be executed by a digital processing apparatus for processing a JPEG image according to another aspect of the present invention for achieving the above-described second object of the present invention is tangibly implemented and read by the digital processing apparatus. The recording medium may include generating a first JPEG image file including a first header and first data including one restart marker for each basic block (Minimum Coded Unit, MCU); Generating a second JPEG image file including a second header and second data in which the one restart marker is disposed for each one basic block; Selecting a first predetermined area of the first JPEG image to be edited; Selecting a second predetermined area of the second JPEG image to be edited; Generating image size information and a third header of the first and second predetermined regions; And generating third JPEG image files corresponding to the first and second predetermined regions by combining the third header and the third data including the image data corresponding to the first and second predetermined regions. .

또한, 상술한 본 발명의 제3 목적을 달성하기 위한 본 발명의 일측면에 따른 이미지 처리 장치는 리스타트 간격이 1로 설정된 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 삽입되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일로부터 상기 제1 데이터를 읽어들이는 JPEG 파싱 모듈; 및 상기 읽어들인 제1 데이터로부터 선택된 소정 영역의 이미지 크기 정보와 리스타트 간격 1을 포함하는 제2 헤더를 생성하고, 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 이미지 편집 모듈을 포함한다. 상기 이미지 편집 모듈은 상기 읽어들인 제1 데이터로부터 소정 영역을 선택하는 편집 제어 모듈; 및 상기 소정 영역의 이미지 크기 정보와 상기 리스타트 간격 1을 포함하는 제2 헤더를 생성하고, 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 JPEG 편집 모듈을 포함할 수 있다. In addition, an image processing apparatus according to an aspect of the present invention for achieving the above-described third object of the present invention includes one first header and one basic block (Minimum Coded Unit, MCU) having a restart interval of 1; A JPEG parsing module for reading the first data from a first JPEG image file including first data into which a restart marker is inserted; And a second header including image size information of a predetermined area selected from the read first data and a restart interval 1, and generating second data including the image data corresponding to the predetermined area and the second header. And an image editing module for generating a second JPEG image file corresponding to the predetermined area. The image editing module includes an editing control module for selecting a predetermined area from the read first data; And generating a second header including image size information of the predetermined area and the restart interval 1, and adding the second header and the second header including image data corresponding to the predetermined area to correspond to the predetermined area. It may include a JPEG editing module for generating a second JPEG image file.

또한, 상술한 본 발명의 제3 목적을 달성하기 위한 본 발명의 다른 측면에 따른 이미지 처리 장치는 리스타트 간격이 1로 설정된 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 읽어들이고, 리스타트 간격이 1로 설정된 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 읽어들이는 JPEG 파싱 모듈; 및 상기 제1 JPEG 이미지 중 선택된 제1 소정 영역 및 상기 제2 JPEG 이미지 중 선택된 제2 소정 영역의 이미지 크기 정보와 리스타트 간격 1을 포함하는 제3 헤더를 생성하고, 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 이미지 편집 모듈을 포함한다. 상기 이미지 편집 모듈은 상기 읽어들인 제1 데이터 및 제2 데이터로부터 각각 상기 제1 소정 영역 및 상기 제2 소정 영역을 선택하는 편집 제어 모듈; 및 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 상기 리스타트 간격 1을 포함하는 상기 제3 헤더를 생성하고, 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 상기 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 JPEG 편집 모듈을 포함할 수 있다. In addition, an image processing apparatus according to another aspect of the present invention for achieving the above-described third object of the present invention includes one first header and one basic block (Minimum Coded Unit, MCU) having a restart interval of 1; Read a first JPEG image file including first data on which a restart marker is placed, a second header with a restart interval set to 1, and second data on which one restart marker is placed per one basic block; A JPEG parsing module for reading a second JPEG image file comprising a; And a third header including image size information and restart interval 1 of the first predetermined region selected from the first JPEG image and the second predetermined region selected from the second JPEG image, and generating the first and second predetermined images. And an image editing module configured to generate third JPEG image files corresponding to the first and second predetermined regions by combining the third data and the third header including image data corresponding to a region. The image editing module may include an editing control module configured to select the first predetermined area and the second predetermined area from the read first data and the second data, respectively; And generating the third header including the image size information of the first and second predetermined regions and the restart interval 1, and including the image data corresponding to the first and second predetermined regions. And a JPEG editing module that adds the third header to generate a third JPEG image file corresponding to the first and second predetermined regions.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다. As the invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the present invention to specific embodiments, it should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. In describing the drawings, similar reference numerals are used for similar elements.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다. Terms such as first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component. The term and / or includes a combination of a plurality of related items or any item of a plurality of related items.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, the terms "comprise" or "have" are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and one or more other features. It is to be understood that the present invention does not exclude the possibility of the presence or the addition of numbers, steps, operations, components, components, or a combination thereof.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art. Terms such as those defined in the commonly used dictionaries should be construed as having meanings consistent with the meanings in the context of the related art, and shall not be construed in ideal or excessively formal meanings unless expressly defined in this application. Do not.

도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.In describing the drawings, similar reference numerals are used for similar components.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다. Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the present invention. Hereinafter, the same reference numerals are used for the same components in the drawings, and duplicate descriptions of the same components are omitted.

일반적으로 휴대용 단말기에 장착된 카메라의 이미지 센서에서 촬상된 RGB 영상은 감마 보정(gamma correction) 및 칼라 보정(color correction) 등을 거쳐 YCbCr 영상으로 변환된 후 JPEG(Joint Photographic Experts Group) 파일 형태로 인코딩(encoding)되어 저장된다. In general, RGB images captured by an image sensor of a camera mounted on a portable terminal are converted into YCbCr images through gamma correction and color correction, and then encoded into a JPEG (Joint Photographic Experts Group) file format. (encoded) and stored.

도 3은 일반적인 JPEG 파일 구조를 나타내고, 도 4는 일반적인 JPEG 파일 구조(JPEG File Interchange Format, JFIF)에서 사용되는 마커 코드를 나타낸 도표이다. FIG. 3 shows a general JPEG file structure, and FIG. 4 is a diagram showing marker codes used in a general JPEG file structure (JFIF).

도 3을 참조하면, JPEG 파일은 크게 헤더(header, 610)와 데이터(data, 620)로 구분될 수 있다. 헤더(610)는 SOI(Start Of Image, 601), 이미지의 폭과 높이(603)과 같은 이미지의 크기(size) 정보, 양자화 테이블 및 허프만 테이블, DRI(Define Restart Interval, 605, 607), EOI(End Of Image, 630) 등을 포함한다. 데이터(620)는 압축된 정지 영상 데이터를 포함한다. 헤더는 인코딩(encoding) 시의 정보가 담겨 있으므로 디코딩(decoding) 시에 상기 헤더 정보를 바탕으로 압축된 데이터(620)를 디코딩한다. Referring to FIG. 3, a JPEG file may be largely classified into a header 610 and data 620. Header 610 includes image information such as SOI (Start Of Image) 601, image width and height 603, quantization table and Huffman table, DRI (Define Restart Interval, 605, 607), EOI (End Of Image, 630), and the like. The data 620 includes compressed still image data. Since the header contains information at the time of encoding, the compressed data 620 is decoded based on the header information at the time of decoding.

JPEG 파일 구조인 JFIF(JPEG File Interchange Format)는 복수의 블록으로 이루어진다. 복수의 블록 각각은 마커(marker)에 의해 구분된다. 마커는 압축 데이 터에 대한 다양한 정보를 제공하며 '0xFF'로 시작하는 두 바이트 데이터이다. The JPEG file interchange format (JFIF), which is a JPEG file structure, is composed of a plurality of blocks. Each of the plurality of blocks is separated by a marker. Markers provide a variety of information about compressed data and are two-byte data starting with '0xFF'.

도 4에 도시된 바와 같이, JPEG 파일 구조인 JFIF는 SOI(Start Of Image), JFIF Marker, DQT(Define Quantization Tables), SOF(Start Of Frame), DHT(Define Huffman Tables), SOS(Start Of Scan), DRI(Define Restart Interval), RST(Restart marker), 스캔 데이터 및 EOI(End Of Image)와 같은 복수의 블록으로 구성된다. 상기 JPEG 파일 구조(JFIF)는 JPEG 기술 분야에서는 널리 알려져 있으므로 자세한 설명은 생략한다. As shown in FIG. 4, the JFIF, which is a JPEG file structure, includes Start of Image (SOI), JFIF Marker, Define Quantization Tables (DQT), Start Of Frame (SOF), Define Huffman Tables (DHT), and Start Of Scan (SOS). ), A plurality of blocks such as a DRI (Define Restart Interval), a RST (Restart marker), scan data, and an End Of Image (EOI). Since the JPEG file structure (JFIF) is widely known in the JPEG technology field, a detailed description thereof will be omitted.

스캔 데이터는 SOS 다음에 오며, 스캔 데이터는 이미지 센서의 픽셀들의 RGB 칼라 정보를 컬러 모델 변환, DCT, 양자화 및 허프만 코딩(Huffman coding) 과정을 거쳐 생성된 데이터이다. The scan data follows the SOS, and the scan data is data generated through color model conversion, DCT, quantization, and Huffman coding of RGB color information of pixels of an image sensor.

리스타트 마커(RST)는 손상된 JPEG 파일을 최대한 복원하기 위해 사용되는 마커이다. JPEG은 인접한 영상 데이터값과의 차이값을 인코딩하므로 중간에 영상 데이터가 손상되게 되면 손상된 영상 데이터 뒤의 영상 데이터도 모두 손상이 되게 된다. 상기와 같은 JPEG 영상 데이터가 모두 손상되는 것을 방지하기 위하여 지정된 블록마다 JPEG의 디코딩을 다시 시작하게 하는 리스타트 마커(RST)를 스캔 데이터 안에 둔다. Restart Marker (RST) is a marker used to recover the damaged JPEG file as much as possible. Since JPEG encodes a difference value between adjacent image data values, if the image data is damaged in the middle, all the image data behind the damaged image data is also damaged. In order to prevent damage to all such JPEG image data, a restart marker (RST) is placed in the scan data to restart decoding of the JPEG for each designated block.

스캔 데이터가 시작되기 전에 DRI 마커(605)를 이용하여 리스타트(restart) 간격(607)을 정의한다. DRI 마커(605)에 정의된 리스타트 간격이 0보다 크면 상기 간격만큼의 기본 블록(Minimum Coded Unit, MCU)마다 리스타트 마커가 존재한다. 예를 들어, 도 3에 도시된 바와 같이 리스타트 간격(607)이 7 이라면 7 개의 MCU 마다 리스타트 마커(RST)가 존재한다. A restart interval 607 is defined using the DRI marker 605 before the scan data begins. If the restart interval defined in the DRI marker 605 is greater than zero, there is a restart marker for each basic block (Minimum Coded Unit, MCU) by the interval. For example, as shown in FIG. 3, if the restart interval 607 is 7, there is a restart marker RST for every seven MCUs.

도 5는 본 발명의 일실시예에 따른 휴대용 단말기에 사용되는 영상 처리 장치를 나타낸 블록도이고, 도 6은 본 발명의 일실시예에 따른 도 5의 JPEG 영상 처리부를 나타낸 블록도이다. 도 7은 본 발명의 일실시예에 따른 소정의 포맷을 가지는 JPEG 원본 이미지 파일 구조를 나타내며, 도 8은 도 7의 원본 이미지로부터 절단된 특정 영역의 이미지에 상응하는 JPEG 파일 구조를 나타낸다. 도 9는 본 발명의 일실시예에 따른 소정의 포맷을 가지는 제1 JPEG 원본 이미지 파일 구조를 나타내며, 도 10은 본 발명의 일실시예에 따른 소정의 포맷을 가지는 제2 JPEG 원본 이미지 파일 구조를 나타내며, 도 11은 도 9 및 도 10의 JPEG 원본 이미지를 합하여 생성된 JPEG 파일 구조를 나타낸다.5 is a block diagram illustrating an image processing apparatus used in a portable terminal according to an embodiment of the present invention, and FIG. 6 is a block diagram illustrating the JPEG image processing unit of FIG. 5 according to an embodiment of the present invention. FIG. 7 illustrates a JPEG original image file structure having a predetermined format according to an embodiment of the present invention, and FIG. 8 illustrates a JPEG file structure corresponding to an image of a specific region cut out from the original image of FIG. 7. 9 illustrates a first JPEG original image file structure having a predetermined format according to an embodiment of the present invention, and FIG. 10 illustrates a second JPEG original image file structure having a predetermined format according to an embodiment of the present invention. FIG. 11 illustrates a JPEG file structure generated by combining the JPEG original images of FIGS. 9 and 10.

도 5를 참조하면, 영상 처리 장치(500)는 화질 보정부(520), JPEG 인코더(530) 및 JPEG 영상 처리부(550)를 포함한다. Referring to FIG. 5, the image processing apparatus 500 includes an image quality corrector 520, a JPEG encoder 530, and a JPEG image processor 550.

화질 보정부(520)는 이미지 센서(510)로부터 출력된 RGB 이미지 데이터를 입력받아 화질을 보정한 후 휘도 데이터(Y) 및 색상 데이터(Cb 및 Cr)로 변환하여 출력한다. 구체적으로 화질 보정부(520)는 RGB 이미지 데이터를 화이트 결함 보정(White Defect Correction), 감마 보정(gamma correction), 칼라 보정(color correction) 및/또는 자동 화이트 밸런스(Auto White Balance) 등을 통하여 화질을 보정한다. 이미지 센서(510)는 CMOS 이미지 센서(Complementary Metal-Oxide Semiconductor Image Sensor)가 될 수 있다. 또는 이미지 센서(510)는 CCD(Charge Coupled Device) 이미지 센서가 될 수도 있다. The image quality correction unit 520 receives the RGB image data output from the image sensor 510, corrects the image quality, and converts the image into luminance data Y and color data Cb and Cr. In detail, the image quality correction unit 520 displays the RGB image data through white defect correction, gamma correction, color correction, and / or auto white balance. Calibrate The image sensor 510 may be a complementary metal-oxide semiconductor image sensor. Alternatively, the image sensor 510 may be a charge coupled device (CCD) image sensor.

JPEG 인코더(530)는 변환된 YCbCr 이미지 데이터를 입력받아 DCT(Discrete Cosine Transform) 변환, 양자화(Quantization) 및 허프만 코딩(Huffman coding)을 수행하여 도 7에 도시된 바와 같은 JPEG 원본 이미지 파일을 생성한다. The JPEG encoder 530 receives the converted YCbCr image data and performs DCT (Discrete Cosine Transform) transform, quantization, and Huffman coding to generate a JPEG original image file as shown in FIG. 7. .

JPEG 이미지를 인코딩할 경우에는 기본 블록(MCU) 단위로 인코딩하며 디코딩할 경우에도 기본 블록(MCU) 단위로 디코딩한다. 기본 블록(MCU)의 크기는 샘플링 방법에 따라 결정된다. 예를 들어 YUV444와 같이 샘플링 주기가 1:1:1인 경우에는 기본 블록(MCU)이 8 픽셀 x 8 픽셀이 되고, YUV422와 같이 샘플링 주기가 2:1:1인 경우에는 기본 블록(MCU)이 16 픽셀 x 8 픽셀이 된다. When encoding a JPEG image, it is encoded in a basic block (MCU) unit, and in decoding, it is decoded in a basic block (MCU) unit. The size of the basic block (MCU) is determined by the sampling method. For example, if the sampling period is 1: 1: 1 as in YUV444, the base block (MCU) is 8 pixels by 8 pixels; if the sampling period is 2: 1: 1 as in YUV422, the base block (MCU) is This is 16 pixels by 8 pixels.

허프만 인코딩 후의 기본 블록(MCU)은 예를 들어 20비트등과 같이 바이트(8비트) 단위가 아니므로 JPEG 인코더(530)는 20비트에 '0000'을 붙여 바이트 단위인 24비트로 만든 후 RST 마커를 붙여준다. Since the basic block (MCU) after Huffman encoding is not a byte (8-bit) unit, for example, 20-bit, etc., the JPEG encoder 530 attaches '0000' to 20 bits to make it 24-bit, which is a byte unit. Paste it.

JPEG 인코더(530)는 상기 생성된 JPEG 원본 이미지 파일의 헤더(710)의 DRI 마커(605)의 리스타트 간격(707)을 1로 설정하여 데이터(620)에 나타난 바와 같이 매 기본 블록(MCU) 마다 리스타트 마커(RST)를 붙여 준다. The JPEG encoder 530 sets the restart interval 707 of the DRI marker 605 of the header 710 of the generated JPEG original image file to 1 to show every basic block (MCU) as shown in the data 620. Put a restart marker (RST) on each side.

메모리(540)는 JPEG 인코더에서 압축된 정지 영상을 저장한다. 메모리(540)는 영상 처리 장치(500)의 외부에 별도로 설치될 수도 있고, 또는 영상 처리 장치(500)의 내부에 포함되도록 설치될 수도 있다.The memory 540 stores the still image compressed by the JPEG encoder. The memory 540 may be separately installed outside the image processing apparatus 500 or may be installed to be included in the image processing apparatus 500.

JPEG 영상 처리부(550)는 상기 생성된 JPEG 원본 이미지 파일을 입력받아 편집하고자 하는 이미지 영역의 이미지 데이터를 파싱하고, 상기 파싱된 이미지 데이터의 이미지 크기에 상응하는 헤더를 갖도록 헤더를 수정하여 상기 파싱된 이미지 데이터와 합하여 수정된 JPEG 이미지 파일을 생성한다. The JPEG image processing unit 550 receives the generated JPEG original image file, parses image data of an image area to be edited, and modifies the header to have a header corresponding to the image size of the parsed image data. The modified JPEG image file is generated by combining with the image data.

제어부(600)는 휴대용 단말기의 베이스 밴드 프로세서와 같이 휴대용 단말기의 전반적인 동작을 제어하며, 이미지 센서(510) 및 영상 처리부(500)등의 동작을 제어한다. The controller 600 controls the overall operations of the portable terminal, such as the baseband processor of the portable terminal, and controls the operations of the image sensor 510 and the image processor 500.

여기서, JPEG 영상 처리부(550)는 제어부(560) 내부에 포함되도록 구현될 수도 있다. 영상 처리 장치(500)는 도면에는 도시하지 않았지만 표시부(1310, 도 13 참조)에서 표시될 수 있는 크기 및 화소수를 가진 영상 데이터로 스케일링하는 스케일러(scaler)를 더 포함할 수 있다. Here, the JPEG image processor 550 may be implemented to be included in the controller 560. Although not shown in the drawing, the image processing apparatus 500 may further include a scaler for scaling the image data having the size and the number of pixels that can be displayed on the display unit 1310 (see FIG. 13).

도 6을 참조하면, JPEG 영상 처리부(550)는 JPEG 파싱 모듈(JPEG parsing module, 552) 및 이미지 편집 모듈(555)을 포함한다. 이미지 편집 모듈(555)은 편집 제어 모듈(554) 및 JPEG 편집 모듈(556)을 포함한다. Referring to FIG. 6, the JPEG image processor 550 includes a JPEG parsing module 552 and an image editing module 555. The image editing module 555 includes an editing control module 554 and a JPEG editing module 556.

JPEG 파싱 모듈(552)는 상기 생성된 JPEG 원본 이미지 파일 중 이미지 데이터(620)를 리스타트 마커(RST)의 리스타트 간격(707)을 참조하여 MCU 단위로 메모리(540)로부터 읽어들인다. 구체적으로, JPEG 파싱 모듈(552)는 JPEG 원본 이미지-예를 들어 도 7의 JPEG 원본 이미지-로부터 특정 영역(625)의 이미지를 잘라내고자 할 경우에는 JPEG 원본 이미지 데이터를 읽어들인다. 또한, JPEG 파싱 모듈(552)는 두개의 JPEG 원본 이미지-예를 들어 도 9의 제1 JPEG 원본 이미지와 도 10의 제2 JPEG 원본 이미지-를 붙이고자하는 경우에는 붙이고자하는 두개의 JPEG 원본 이미지의 데이터를 메모리(540)로부터 읽어들인다. The JPEG parsing module 552 reads the image data 620 of the generated JPEG original image file from the memory 540 in MCU units with reference to the restart interval 707 of the restart marker RST. Specifically, the JPEG parsing module 552 reads JPEG original image data when it wants to crop an image of a specific area 625 from a JPEG original image, for example, the JPEG original image of FIG. 7. In addition, the JPEG parsing module 552 may add two JPEG original images, for example, the first JPEG original image of FIG. 9 and the second JPEG original image of FIG. 10. Data is read from the memory 540.

편집 제어 모듈(554)는 JPEG 원본 이미지-예를 들어 도 7의 JPEG 원본 이미 지-로부터 특정 영역의 이미지를 잘라내고자 할 경우에는 JPEG 파싱 모듈(552)로부터 제공된 MCU 단위의 JPEG 원본 이미지 데이터(620)로부터 편집하고자 하는 특정 영역(625)의 이미지 데이터를 선택하여 잘라낸다. 또한, 편집 제어 모듈(554)는 두개의 JPEG 원본 이미지-예를 들어 도 9의 제1 JPEG 원본 이미지와 도 10의 제2 JPEG 원본 이미지-를 붙이고자하는 경우에는 JPEG 파싱 모듈(552)로부터 제공된 도 9의 제1 JPEG 원본 이미지 데이터(920)와 도 10의 제2 JPEG 원본 이미지 데이터(1020)를 합한다. 또한, 편집 제어 모듈(554)는 제1 및 제2 JPEG 원본 이미지로부터 각각 선택된 제1 이미지 영역 및 제2 이미지 영역을 붙이고자하는 경우에는 JPEG 파싱 모듈(552)로부터 제공된 제1 및 제2 JPEG 원본 이미지 데이터의 제1 이미지 영역의 데이터와 제2 이미지 영역의 데이터를 합한다. 편집 제어 모듈(554)는 상기와 같이 편집된 JPEG 이미지 데이터와 편집된 JPEG 이미지의 사이즈 정보를 JPEG 편집 모듈(556)로 제공한다. The edit control module 554 may use the MCU unit JPEG original image data 620 provided from the JPEG parsing module 552 to cut out an image of a specific area from a JPEG original image, for example, the JPEG original image of FIG. 7. Select and crop the image data of the specific region 625 to be edited. In addition, the edit control module 554 may provide two JPEG original images, for example, the first JPEG original image of FIG. 9 and the second JPEG original image of FIG. 10, provided from the JPEG parsing module 552. The first JPEG original image data 920 of FIG. 9 and the second JPEG original image data 1020 of FIG. 10 are added together. In addition, the edit control module 554 may apply the first and second JPEG originals provided from the JPEG parsing module 552 to paste the first and second image regions selected from the first and second JPEG original images, respectively. The data of the first image area and the data of the second image area of the image data are summed. The edit control module 554 provides the edited JPEG image data and the size information of the edited JPEG image to the JPEG editing module 556 as described above.

JPEG 편집 모듈(556)는 편집 제어 모듈(554)로부터 제공된 편집된 JPEG 이미지의 사이즈 정보에 기초하여 메모리(540)로부터 읽어들인 해당되는 JPEG 원본 이미지의 헤더를 수정하고, 상기 수정된 헤더와 편집된 JPEG 이미지 데이터를 합하여 메모리(540)에 저장한다. 구체적으로, JPEG 편집 모듈(556)는 JPEG 원본 이미지-예를 들어 도 7의 JPEG 원본 이미지-로부터 특정 영역의 이미지를 잘라내고자 할 경우에는 도 7의 JPEG 원본 이미지로부터 잘라내어진 JPEG 이미지의 사이즈 정보(803)에 기초하여 도 7의 JPEG 원본 이미지의 헤더 중 이미지 사이즈를 수정하여 상기 수정된 이미지 사이즈(803)를 가진 수정된 헤더(810)와 잘라내어진 JPEG 이미 지 데이터(625)를 합하여 메모리(540)에 저장한다. 또한, JPEG 편집 모듈(556)는 두개의 JPEG 원본 이미지-예를 들어 도 9의 제1 JPEG 원본 이미지와 도 10의 제2 JPEG 원본 이미지-를 붙이고자하는 경우에는 도 9의 JPEG 원본 이미지의 사이즈 정보(903) 및 도 10의 JPEG 원본 이미지의 사이즈 정보(1003)을 합하여 수정된 이미지 사이즈(1103)를 가진 수정된 헤더(1110)와 붙여진 JPEG 이미지 데이터(910, 920)를 합하여 편집된 JPEG 이미지 파일을 생성하여 메모리(540)에 저장한다.The JPEG editing module 556 modifies the header of the corresponding JPEG original image read from the memory 540 based on the size information of the edited JPEG image provided from the editing control module 554, and edits the header and the edited header. The JPEG image data is summed and stored in the memory 540. Specifically, when the JPEG editing module 556 wants to cut an image of a specific area from a JPEG original image, for example, the JPEG original image of FIG. 7, the JPEG editing module 556 may use the size information of the JPEG image cut out from the JPEG original image of FIG. 7. The image size of the header of the JPEG original image of FIG. 7 is modified based on 803 to add the modified header 810 having the modified image size 803 and the cropped JPEG image data 625 to the memory 540. ). In addition, the JPEG editing module 556 may apply the size of the JPEG original image of FIG. 9 in the case of pasting two JPEG original images, for example, the first JPEG original image of FIG. 9 and the second JPEG original image of FIG. 10. JPEG image edited by adding the modified header 1110 having the modified image size 1103 and the pasted JPEG image data 910, 920 by adding the information 903 and the size information 1003 of the JPEG original image of FIG. A file is generated and stored in the memory 540.

도 12는 본 발명의 일실시예에 따른 JPEG 이미지 처리 방법을 나타낸 순서도이다.12 is a flowchart illustrating a JPEG image processing method according to an embodiment of the present invention.

도 12를 참조하면, 먼저 본 발명의 일실시예에 따른 소정된 포맷으로 JPEG 원본 이미지 파일을 생성한다(단계 1210). 본 발명의 일실시예에 따른 소정된 포맷을 가진 JPEG 원본 이미지 파일은 도 7에 도시된 바와 같이 헤더의 DRI 마커(605)의 리스타트 간격(607)을 1로 설정하여 매 기본 블록(MCU) 마다 RST 마커를 포함한다. 도 7의 헤더(710)에서 "FF DD"는 DRI 마커로써, "00 01"은 한 개의 MCU마다 RST가 존재함을 의미한다. 12, first, a JPEG original image file is generated in a predetermined format according to an embodiment of the present invention (step 1210). In the JPEG original image file having a predetermined format according to an embodiment of the present invention, as shown in FIG. 7, the basic interval (MCU) is set by setting the restart interval 607 of the DRI marker 605 in the header to 1. Each contains an RST marker. In the header 710 of FIG. 7, "FF DD" is a DRI marker, and "00 01" means that an RST exists for each MCU.

상기와 같이, 매 기본 블록(MCU) 마다 RST 마커를 삽입함으로써 기본 블록(MCU)와 RST 마커를 하나의 압축된 JPEG 블록으로 다룰 수 있다. 즉, 이렇게 N 픽셀 x M 픽셀의 독립적인 JPEG 블록으로 다루어 질 수 있으므로 후술하는 바와 같이 JPEG 원본 이미지의 특정 영역을 임의로 잘라내거나 붙일 수 있게 된다. As described above, by inserting the RST marker in every basic block (MCU), the basic block (MCU) and the RST marker can be treated as one compressed JPEG block. That is, since it can be treated as an independent JPEG block of N pixels x M pixels, a specific area of the JPEG original image can be arbitrarily cut or pasted as described below.

다시 도 12를 참조하면, 상기 소정된 포맷을 가지는 JPEG 원본 이미지 파일로부터 편집하고자 하는 영역을 선택한다(단계 1220). JPEG 원본 이미지로부터 특 정 영역의 이미지를 잘라내고자 할 경우에는 상기 편집하고자 하는 영역은 상기 JPEG 원본 이미지의 일부인 특정 영역을 나타낸다. 또는 예를 들어 도 9의 제1 JPEG 원본 이미지와 도 10의 제2 JPEG 원본 이미지와 같은 두개의 JPEG 원본 이미지를 붙이고자하는 경우에는 상기 편집하고자 하는 영역은 도 9의 제1 JPEG 원본 이미지 전체와 도 10의 제2 JPEG 원본 이미지 전체를 나타낸다. 또는, 예를 들어 도 9의 제1 JPEG 원본 이미지로부터 선택된 제1 이미지 영역 및 도 10의 제2 JPEG 원본 이미지로부터 선택된 제2 이미지 영역을 붙이고자하는 경우에는 상기 편집하고자 하는 영역은 상기 제1 이미지 영역 및 제2 이미지 영역을 나타낸다. Referring back to FIG. 12, an area to be edited is selected from the JPEG original image file having the predetermined format (step 1220). When the image of a specific region is to be cut out from the JPEG original image, the region to be edited represents a specific region which is part of the JPEG original image. Alternatively, in the case of pasting two JPEG original images, for example, the first JPEG original image of FIG. 9 and the second JPEG original image of FIG. 10, the region to be edited corresponds to the entire first JPEG original image of FIG. 9. The entire second JPEG original image of FIG. 10 is shown. Alternatively, for example, when the first image area selected from the first JPEG original image of FIG. 9 and the second image area selected from the second JPEG original image of FIG. 10 are pasted, the region to be edited is the first image. Region and a second image region.

상기 선택한 영역에 상응하는 이미지의 폭과 높이를 나타내는 이미지 사이즈에 기초하여 헤더의 이미지 사이즈 정보를 수정하고, 상기 수정된 헤더와 상기 선택된 영역의 이미지 데이터를 합하여(merge) 상기 선택한 영역에 상응하는 JPEG 이미지 파일을 생성한다(단계 1230). 상기 선택된 영역의 JPEG 이미지 파일은 JPEG 원본 이미지와 같은 압축 방법을 사용하고 이미지의 크기만이 수정되므로, 도 8에 도시한 바와 같이, 상기 선택된 영역의 JPEG 이미지 파일의 수정된 헤더(810)는 이미지의 크기(803)만이 수정되며, JPEG 원본 이미지 파일의 헤더(710)와 같이 DRI 마커(605)의 리스타트 간격(707)을 1로 설정하여 매 기본 블록(MCU) 마다 RST 마커를 붙여 준다. 즉, 수정된 헤더(810)는 상기 선택된 영역의 이미지의 폭과 높이에 상응하는 이미지의 크기(803)를 포함한다. A JPEG corresponding to the selected region by modifying image size information of the header based on an image size indicating a width and a height of an image corresponding to the selected region, and merging the modified header and image data of the selected region. Create an image file (step 1230). Since the JPEG image file of the selected region uses the same compression method as the JPEG original image and only the size of the image is modified, as shown in FIG. 8, the modified header 810 of the JPEG image file of the selected region is an image. Only the size 803 is modified, and the RST marker is attached to every basic block (MCU) by setting the restart interval 707 of the DRI marker 605 to 1, like the header 710 of the JPEG original image file. That is, the modified header 810 includes a size 803 of the image corresponding to the width and height of the image of the selected area.

종래에는 JPEG 이미지의 일부분을 잘라내거나 붙이는 동작을 하기 위해 읽어들인 JPEG 원본 이미지 데이터를 디코드하고, 다시 원하는 특정 영역에 상응하는 JPEG 이미지 데이터를 인코드하였으나, 본 발명은 JPEG 원본 이미지 데이터를 디코드하지 않고, 원하는 특정 영역에 상응하는 JPEG 이미지 데이터를 인코드하지도 않으며, 대신에 JPEG 파일 포맷을 이용한 이미지 처리 방법을 적용하여 JPEG 이미지의 일부분을 잘라내거나 붙이는 동작을 수행함으로써 메모리등 자원이 한정된 모바일 폰과 같은 휴대용 단말기에 효과적으로 적용할 수 있다. Conventionally, JPEG original image data which has been read in order to cut or paste a portion of a JPEG image is decoded, and JPEG image data corresponding to a specific area desired is decoded, but the present invention does not decode JPEG original image data. It does not encode JPEG image data corresponding to a specific area of interest, but instead cuts and pastes a portion of a JPEG image by applying an image processing method using the JPEG file format, such as a mobile phone with limited resources such as memory. It can be effectively applied to portable terminals.

도 13은 본 발명의 일실시예에 따른 휴대용 단말기를 나타낸 블록도이다. 13 is a block diagram illustrating a portable terminal according to an embodiment of the present invention.

도 13을 참조하면, 본 발명의 일실시예에 따른 휴대용 단말기는 이미지 센서(510), 영상 처리부(500), 표시부(1310), 무선 송수신부(1320), 메모리(1330), 입력부(1340), 오디오 처리부(1350) 및 제어부(600)를 포함한다. 이미지 센서(510) 및 영상 처리부(500)는 도 5 및 도 6에서 설명하였으므로 설명을 생략한다.Referring to FIG. 13, a portable terminal according to an exemplary embodiment of the present invention may include an image sensor 510, an image processor 500, a display unit 1310, a wireless transceiver 1320, a memory 1330, and an input unit 1340. , An audio processor 1350 and a controller 600. Since the image sensor 510 and the image processor 500 have been described with reference to FIGS. 5 and 6, description thereof will be omitted.

무선 송수신부(1320)는 안테나를 통하여 무선 주파수 신호를 수신하여 베이스 밴드 신호로 변환하거나 베이스밴드 신호를 무선 주파수 신호로 변환하여 안테나를 통하여 전송함으로써 무선 통신 기능을 수행한다. The radio transceiver 1320 performs a radio communication function by receiving a radio frequency signal through an antenna and converting the radio frequency signal into a baseband signal or converting the baseband signal into a radio frequency signal and transmitting through the antenna.

오디오 처리부(1350)는 무선 송수신부(1320)로부터 출력된 오디오 신호를 스피커(1352) 또는 이어폰(1354)를 통하여 출력하거나, 또는 마이크를 통해 입력 받은 오디오 신호를 무선 송수신부(1320)으로 제공한다. The audio processor 1350 outputs the audio signal output from the wireless transceiver 1320 through the speaker 1352 or the earphone 1354 or provides an audio signal input through the microphone to the wireless transceiver 1320. .

입력부(1340)는 일반적인 이동 통신 단말기와 같이 사용자로부터 숫자, 문자 및/또는 메뉴를 선택받는다. 입력부(1340)는 다수의 키 버튼이 구비된 키 패드 또는 터치 스크린(touch screen) 등으로 구현될 수 있다. The input unit 1340 receives a number, letters, and / or a menu from a user like a general mobile communication terminal. The input unit 1340 may be implemented as a keypad or a touch screen equipped with a plurality of key buttons.

표시부(1310)는 제어부(600)의 제어를 받아 메모리(1330)에 저장되어 있는 영상 데이터를 포함한 각종 데이터 또는 입력부(1340)를 통해 입력되는 데이터를 액정표시장치(Liquid Crystal Display), 유기 EL(Organic Light Emitting Diodes)과 같은 디스플레이 화면 상에 표시한다. The display unit 1310 may control various types of data including image data stored in the memory 1330 or data input through the input unit 1340 under the control of the control unit 600. Organic Light Emitting Diodes).

메모리(1330)는 휴대용 단말기의 동작을 제어하기 위한 복수의 프로그램, 프로그램 수행에 의해 생성된 데이터 및/또는 영상 데이터 등을 저장한다. The memory 1330 stores a plurality of programs for controlling the operation of the portable terminal, data generated by program execution, and / or video data.

제어부(600)는 휴대용 단말기의 전반적인 동작을 제어한다. 제어부(600)는 메모리(1330)에 저장되어 있는 각종 데이터를 불러들여 표시부(1310)로 제공하거나, 이미지 센서(510) 및 영상 처리부(500)의 동작을 제어한다. 도 13에서는 영상 처리부(500)와 제어부(600)를 각각 별도의 블록으로 구성하였지만, 영상 처리부(500)와 제어부(600)를 통합하여 하나의 칩으로도 구현할 수 있음은 물론이다.The controller 600 controls the overall operation of the portable terminal. The controller 600 retrieves various data stored in the memory 1330 and provides the data to the display unit 1310 or controls the operations of the image sensor 510 and the image processor 500. In FIG. 13, the image processor 500 and the controller 600 are configured as separate blocks, but the image processor 500 and the controller 600 may be integrated into one chip.

상기와 같은 JPEG 이미지 처리 방법 및 영상 처리 장치에 따르면, JPEG 이미지 파일의 리스타트 간격을 1로 설정한 후 JPEG 이미지 중 일부분을 자르거나 두 개의 JPEG 이미지를 붙여 새로운 JPEG 이미지 파일을 생성한다. According to the JPEG image processing method and the image processing apparatus as described above, after setting the restart interval of the JPEG image file to 1, a portion of the JPEG image is cut or two JPEG images are attached to generate a new JPEG image file.

따라서, 종래 JPEG 이미지의 일부분을 잘라내거나 붙이는 동작을 하기 위해 JPEG 이미지 데이터를 읽어들여 디코드하고 다시 원하는 특정 영역에 상응하는 JPEG 이미지 데이터를 인코드하는 과정이 불필요하다. 그 결과, JPEG 이미지 중 일부분을 자르거나 두개의 JPEG 이미지를 붙이는 이미지 편집 처리에 소요되는 시간이 줄어든다. Therefore, in order to cut or paste a portion of the conventional JPEG image, there is no need to read and decode the JPEG image data and to encode JPEG image data corresponding to a specific area desired. As a result, the time required for image editing processing to cut a part of a JPEG image or to paste two JPEG images is reduced.

또한, 종래 JPEG 이미지의 일부분을 잘라내거나 붙이는 동작을 하기 위해 JPEG 이미지 데이터를 읽어들여 디코드하는 과정이 불필요하므로 상기 디코드한 결과 얻어지는 원시 이미지 데이터를 저장할 버퍼가 불필요하다. 그 결과 메모리 등 자원이 한정된 휴대용 단말기에 사용될 경우 효과적으로 메모리를 절약할 수 있다. In addition, since a process of reading and decoding JPEG image data is unnecessary in order to cut or paste a portion of a conventional JPEG image, a buffer for storing raw image data obtained as a result of the decoding is unnecessary. As a result, when used in a portable terminal with limited resources such as memory, memory can be effectively saved.

이상 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although described with reference to the embodiments above, those skilled in the art will understand that the present invention can be variously modified and changed without departing from the spirit and scope of the invention as set forth in the claims below. Could be.

Claims (14)

제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 삽입되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계;Generating a first JPEG image file including first data and first data into which one restart marker is inserted for each basic code unit (Minimum Coded Unit, MCU); 상기 제1 JPEG 이미지 중 소정 영역을 선택하는 단계; Selecting a predetermined area of the first JPEG image; 상기 소정 영역의 이미지 크기 정보와 제2 헤더를 생성하는 단계; 및Generating image size information and a second header of the predetermined area; And 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 단계를 포함하는 JPEG 이미지 처리 방법.And generating a second JPEG image file corresponding to the predetermined area by adding the second header and the second data including image data corresponding to the predetermined area. 제1항에 있어서, 상기 제1 헤더는 DRI(Define Restart Interval) 마커의 리스타트 간격이 1로 설정된 것을 특징으로 하는 JPEG 이미지 처리 방법.The method of claim 1, wherein the first header has a restart interval of a DRI marker. 제2항에 있어서, 상기 제2 헤더는 상기 DRI 마커의 리스타트 간격이 1로 설정된 것을 특징으로 하는 JPEG 이미지 처리 방법.The method of claim 2, wherein the second header has a restart interval of the DRI marker set to one. 청구항 4은(는) 설정등록료 납부시 포기되었습니다.Claim 4 was abandoned when the registration fee was paid. 제1항에 있어서,The method of claim 1, 상기 제1 JPEG 이미지 파일은 JFIF(JPEG File Interchange Format) 파일 구조를 가지는 것을 특징으로 하는 JPEG 이미지 처리 방법.And the first JPEG image file has a JPEG File Interchange Format (JFIF) file structure. 청구항 5은(는) 설정등록료 납부시 포기되었습니다.Claim 5 was abandoned upon payment of a set-up fee. 제1항에 있어서, 상기 JPEG 이미지 처리 방법은 휴대용 단말기에서 사용되는 것을 특징으로 하는 JPEG 이미지 처리 방법.The method of claim 1, wherein the JPEG image processing method is used in a portable terminal. 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계;Generating a first JPEG image file including first data and first data in which one restart marker is disposed for each basic block (Minimum Coded Unit, MCU); 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 생성하는 단계; Generating a second JPEG image file including a second header and second data in which the one restart marker is disposed for each one basic block; 상기 제1 JPEG 이미지 중 편집하고자 하는 제1 소정 영역을 선택하는 단계; Selecting a first predetermined area of the first JPEG image to be edited; 상기 제2 JPEG 이미지 중 편집하고자 하는 제2 소정 영역을 선택하는 단계; Selecting a second predetermined area of the second JPEG image to be edited; 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 제3 헤더를 생성하는 단계; 및Generating image size information and a third header of the first and second predetermined regions; And 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 단계를 포함하는 JPEG 이미지 처리 방법.JPEG, comprising: generating a third JPEG image file corresponding to the first and second predetermined areas by combining the third header and the third data including image data corresponding to the first and second predetermined areas; Image processing method. 제6항에 있어서, 상기 제1 헤더 및 상기 제2 헤더는 DRI(Define Restart Interval) 마커의 리스타트 간격이 1로 설정된 것을 특징으로 하는 JPEG 이미지 처리 방법.The method of claim 6, wherein the first header and the second header have a restart interval of a DRI marker. 제7항에 있어서, 상기 제3 헤더는 상기 DRI 마커의 리스타트 간격이 1로 설정된 것을 특징으로 하는 JPEG 이미지 처리 방법.8. The method of claim 7, wherein the third header has a restart interval of the DRI marker set to one. JPEG 이미지를 처리하는 디지털 처리 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며 상기 디지털 처리 장치에 의해 판독될 수 있는 기록매체로서, As a recording medium in which a program of instructions executable by a digital processing apparatus for processing a JPEG image is tangibly implemented and can be read by the digital processing apparatus, 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 삽입되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계;Generating a first JPEG image file including first data and first data into which one restart marker is inserted for each basic code unit (Minimum Coded Unit, MCU); 상기 제1 JPEG 이미지 중 소정 영역을 선택하는 단계; Selecting a predetermined area of the first JPEG image; 상기 소정 영역의 이미지 크기 정보와 제2 헤더를 생성하는 단계; 및Generating image size information and a second header of the predetermined area; And 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 단계를 수행하는 프로그램이 기록된 기록매체.And generating a second JPEG image file corresponding to the predetermined area by combining the second data and the second header including image data corresponding to the predetermined area. JPEG 이미지를 처리하는 디지털 처리 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며 상기 디지털 처리 장치에 의해 판독될 수 있는 기록매체로서, As a recording medium in which a program of instructions executable by a digital processing apparatus for processing a JPEG image is tangibly implemented and can be read by the digital processing apparatus, 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스 타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 생성하는 단계;Generating a first JPEG image file including a first header and first data in which one list marker is disposed for each basic code unit (Minimum Coded Unit, MCU); 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 생성하는 단계; Generating a second JPEG image file including a second header and second data in which the one restart marker is disposed for each one basic block; 상기 제1 JPEG 이미지 중 편집하고자 하는 제1 소정 영역을 선택하는 단계; Selecting a first predetermined area of the first JPEG image to be edited; 상기 제2 JPEG 이미지 중 편집하고자 하는 제2 소정 영역을 선택하는 단계; Selecting a second predetermined area of the second JPEG image to be edited; 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 제3 헤더를 생성하는 단계; 및Generating image size information and a third header of the first and second predetermined regions; And 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 단계를 수행하는 프로그램이 기록된 기록매체.And generating a third JPEG image file corresponding to the first and second predetermined areas by combining the third header and the third data including the image data corresponding to the first and second predetermined areas. The recorded recording medium. 리스타트 간격이 1로 설정된 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 삽입되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일로부터 상기 제1 데이터를 읽어들이는 JPEG 파싱 모듈;Read the first data from a first JPEG image file comprising a first header with a restart interval set to 1 and first data into which one restart marker is inserted for each basic code unit (Minimum Coded Unit, MCU). JPEG parsing module; 상기 읽어들인 제1 데이터로부터 선택된 소정 영역의 이미지 크기 정보와 리스타트 간격 1을 포함하는 제2 헤더를 생성하고, 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 이미지 편집 모듈을 포함하는 이미지 처리 장치.From the read first data, a second header including image size information of a predetermined region and a restart interval 1 is generated, and the second header including image data corresponding to the predetermined region is combined with the second header. And an image editing module for generating a second JPEG image file corresponding to the predetermined area. 제11항에 있어서, 상기 이미지 편집 모듈은 The image editing module of claim 11, wherein the image editing module is 상기 읽어들인 제1 데이터로부터 소정 영역을 선택하는 편집 제어 모듈; 및An editing control module for selecting a predetermined area from the read first data; And 상기 소정 영역의 이미지 크기 정보와 상기 리스타트 간격 1을 포함하는 제2 헤더를 생성하고, 상기 소정 영역에 상응하는 이미지 데이터를 포함하는 제2 데이터와 상기 제2 헤더를 합하여 상기 소정 영역에 상응하는 제2 JPEG 이미지 파일을 생성하는 JPEG 편집 모듈을 포함하는 것을 특징으로 하는 이미지 처리 장치.A second header including image size information of the predetermined area and the restart interval 1 is generated, and the second header including image data corresponding to the predetermined area and the second header are added to correspond to the predetermined area. And a JPEG editing module for generating a second JPEG image file. 리스타트 간격이 1로 설정된 제1 헤더와 한 개의 기본 블록(Minimum Coded Unit, MCU)마다 한 개의 리스타트 마커가 배치되는 제1 데이터를 포함하는 제1 JPEG 이미지 파일을 읽어들이고, 리스타트 간격이 1로 설정된 제2 헤더와 상기 한 개의 기본 블록마다 상기 한 개의 리스타트 마커가 배치되는 제2 데이터를 포함하는 제2 JPEG 이미지 파일을 읽어들이는 JPEG 파싱 모듈; 및Read a first JPEG image file that includes a first header with a restart interval set to 1 and first data with one restart marker placed per one basic block (Minimum Coded Unit, MCU), and the restart interval is A JPEG parsing module for reading a second JPEG image file including a second header set to 1 and second data in which the one restart marker is disposed for each one basic block; And 상기 제1 JPEG 이미지 중 선택된 제1 소정 영역 및 상기 제2 JPEG 이미지 중 선택된 제2 소정 영역의 이미지 크기 정보와 리스타트 간격 1을 포함하는 제3 헤더를 생성하고, 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 이미지 편집 모듈을 포함하는 이미지 처리 장치.Generate a third header including image size information and a restart interval 1 of the first predetermined area selected from the first JPEG image and the second predetermined area selected from the second JPEG image, and generating the first and second predetermined areas And an image editing module configured to generate third JPEG image files corresponding to the first and second predetermined regions by combining the third data and the third header including image data corresponding to the first and second predetermined regions. 제13항에 있어서, 상기 이미지 편집 모듈은 The image editing module of claim 13, wherein the image editing module is 상기 읽어들인 제1 데이터 및 제2 데이터로부터 각각 상기 제1 소정 영역 및 상기 제2 소정 영역을 선택하는 편집 제어 모듈; 및An editing control module for selecting the first predetermined area and the second predetermined area from the read first data and second data, respectively; And 상기 제1 및 제2 소정 영역의 이미지 크기 정보와 상기 리스타트 간격 1을 포함하는 상기 제3 헤더를 생성하고, 상기 제1 및 제2 소정 영역에 상응하는 이미지 데이터를 포함하는 상기 제3 데이터와 상기 제3 헤더를 합하여 상기 제1 및 제2 소정 영역에 상응하는 제3 JPEG 이미지 파일을 생성하는 JPEG 편집 모듈을 포함하는 것을 특징으로 하는 이미지 처리 장치.Generating the third header including image size information of the first and second predetermined regions and the restart interval 1, and including the third data including image data corresponding to the first and second predetermined regions; And a JPEG editing module that adds the third header to generate a third JPEG image file corresponding to the first and second predetermined regions.
KR1020060065299A 2006-07-12 2006-07-12 Method and apparatus for processing jpeg image, and record media recored program for realizing the same KR100826943B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060065299A KR100826943B1 (en) 2006-07-12 2006-07-12 Method and apparatus for processing jpeg image, and record media recored program for realizing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060065299A KR100826943B1 (en) 2006-07-12 2006-07-12 Method and apparatus for processing jpeg image, and record media recored program for realizing the same

Publications (2)

Publication Number Publication Date
KR20080006295A KR20080006295A (en) 2008-01-16
KR100826943B1 true KR100826943B1 (en) 2008-05-02

Family

ID=39220141

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060065299A KR100826943B1 (en) 2006-07-12 2006-07-12 Method and apparatus for processing jpeg image, and record media recored program for realizing the same

Country Status (1)

Country Link
KR (1) KR100826943B1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101410837B1 (en) * 2013-09-10 2014-06-24 이에스이 주식회사 Apparatus for managing image by monitoring video memory
CN103778631B (en) * 2014-01-16 2017-01-18 西安理工大学 Picture segmentation method based on JPEG document flow
WO2023090623A1 (en) * 2021-11-19 2023-05-25 삼성전자주식회사 Method and device for editing media file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020053572A (en) * 2000-12-27 2002-07-05 한국과학기술정보연구원 Image partial transmission apparatus and method of network
JP2002354264A (en) 2001-05-28 2002-12-06 Nec Microsystems Ltd Image processor and its method
US20060228030A1 (en) 2005-04-08 2006-10-12 Hadady Craig E Method and system for image compression for use with scanners

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020053572A (en) * 2000-12-27 2002-07-05 한국과학기술정보연구원 Image partial transmission apparatus and method of network
JP2002354264A (en) 2001-05-28 2002-12-06 Nec Microsystems Ltd Image processor and its method
US20060228030A1 (en) 2005-04-08 2006-10-12 Hadady Craig E Method and system for image compression for use with scanners

Also Published As

Publication number Publication date
KR20080006295A (en) 2008-01-16

Similar Documents

Publication Publication Date Title
US10841580B2 (en) Apparatus and method of adaptive block filtering of target slice based on filter control information
KR100896974B1 (en) Method, devices, system and software product for compressed-domain video editing
US20050213830A1 (en) Image processing device and method
US8558909B2 (en) Method and apparatus for generating compressed file, camera module associated therewith, and terminal including the same
KR100630983B1 (en) Image processing method, and image encoding apparatus and image decoding apparatus capable of employing the same
US8155455B2 (en) Image capturing system and method thereof
US10728544B2 (en) Encoding device, encoding method, decoding device, and decoding method
US20090041363A1 (en) Image Processing Apparatus For Reducing JPEG Image Capturing Time And JPEG Image Capturing Method Performed By Using Same
KR100733835B1 (en) Device for generating JPEG file including voice and audio data, method for generating the same and medium for storing the same
CN107079131B (en) Image processing apparatus and image processing method
US7986350B2 (en) Mobile terminal and operating method thereof
KR100826943B1 (en) Method and apparatus for processing jpeg image, and record media recored program for realizing the same
JP4174960B2 (en) Signal processing apparatus and method, and file generation method
JP5565226B2 (en) Image data processing apparatus and image data processing method
US7606432B2 (en) Apparatus and method for providing thumbnail image data on a mobile terminal
CN107079130B (en) Image processing apparatus and image processing method
JP4223940B2 (en) Image generation apparatus, portable terminal, image generation method, image display method, and program
KR20090010803A (en) Method and mobile terminal for displaying of image data acquired from camera
JP4262144B2 (en) Image coding apparatus and method
Dwivedi Design of JPEG Compressor
KR100771119B1 (en) Plurality of image data merging method and device thereof
JPH11205793A (en) Image compression device, image decompression device and digital still camera
JP2003179922A (en) Method for extending image and program, and digital camera
JP2006101212A (en) Image conversion device, communication terminal apparatus, digital still camera, image converting method, and computer program
JP2008072747A (en) Image processing apparatus and program

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
FPAY Annual fee payment
FPAY Annual fee payment

Payment date: 20170329

Year of fee payment: 10