KR20060136169A - Method and apparatus for processing JPEG data in mobile phone - Google Patents

Method and apparatus for processing JPEG data in mobile phone Download PDF

Info

Publication number
KR20060136169A
KR20060136169A KR1020050055735A KR20050055735A KR20060136169A KR 20060136169 A KR20060136169 A KR 20060136169A KR 1020050055735 A KR1020050055735 A KR 1020050055735A KR 20050055735 A KR20050055735 A KR 20050055735A KR 20060136169 A KR20060136169 A KR 20060136169A
Authority
KR
South Korea
Prior art keywords
decode
size
image
jpeg
image size
Prior art date
Application number
KR1020050055735A
Other languages
Korean (ko)
Other versions
KR20070000199A (en
KR100746394B1 (en
Inventor
이호희
이재환
Original Assignee
주식회사 팬택앤큐리텔
Filing date
Publication date
Application filed by 주식회사 팬택앤큐리텔 filed Critical 주식회사 팬택앤큐리텔
Priority to KR1020050055735A priority Critical patent/KR100746394B1/en
Priority claimed from KR1020050055735A external-priority patent/KR100746394B1/en
Priority to US11/472,584 priority patent/US20060291730A1/en
Priority to CNA2006100941443A priority patent/CN1893706A/en
Publication of KR20060136169A publication Critical patent/KR20060136169A/en
Publication of KR20070000199A publication Critical patent/KR20070000199A/en
Application granted granted Critical
Publication of KR100746394B1 publication Critical patent/KR100746394B1/en

Links

Images

Abstract

본 발명은 이동통신단말기에서 비규격 크기(사이즈)의 JPEG 사진을 일정 비율로 리사이징(Resizing)하여 왜곡없이 화면표시부를 통해 재생출력될 수 있도록 하는 기술에 관한 것이다.The present invention relates to a technique for resizing a non-standard size (size) JPEG picture at a predetermined rate in a mobile communication terminal so that the image can be reproduced and output through a screen display without distortion.

이를 위해, 본 발명은 외부로부터 전송된 JPEG 파일을 이미지데이터저장부에 저장하고, 저장된 상기 JPEG 파일을 재생하여 상기 JPEG 파일에 대응하는 사진을 화면표시부로 출력하는 기능을 갖춘 이동통신단말기에서의 JPEG 데이터 처리 방법에 있어서, 상기 JPEG 파일의 JPEG 데이터로부터 영상크기(X,Y)를 추출하는 제 1 과정; 상기 영상사이즈(X,Y)와 상기 화면표시부의 실제 화면크기(dx, dy)를 비교하는 제 2 과정; 및 상기 비교결과를 근거로, 상기 실제 화면크기(dx, dy)를 고려하여 상기 영상크기(X, Y)의 가로:세로 비율이 유지되도록 상기 영상크기(X, Y)를 영상크기(decode_x, decode_y)로 조절하여, 상기 화면표시부로 왜곡없는 JPEG 영상을 출력하는 제 3 과정을 구비하는 것을 특징으로 한다.To this end, the present invention stores a JPEG file transmitted from the outside to the image data storage unit, and reproduces the stored JPEG file to output a picture corresponding to the JPEG file to the screen display unit JPEG A data processing method comprising: a first step of extracting an image size (X, Y) from JPEG data of the JPEG file; A second process of comparing the image size (X, Y) with the actual screen size (dx, dy) of the screen display unit; And based on the comparison result, considering the actual screen size (dx, dy), the image size (X, Y) is adjusted to the image size (decode_x, so that the aspect ratio of the image size (X, Y) is maintained. and a third process of outputting a JPEG image without distortion to the screen display unit by adjusting to decode_y).

Description

이동통신단말기에서의JPEG 데이터 처리 방법 및 장치{Method and apparatus for processing JPEG data in mobile phone}Method and apparatus for processing JPEG data in mobile communication terminal

도 1은 이동통신단말기에 다운로드되는 JPEG 원본 사진(667×1000)의 예시도.1 is an exemplary diagram of a JPEG original photo (667 × 1000) downloaded to a mobile communication terminal.

도 2는 종래 이동통신단말기에서 상기 도 1의 사진이 LCD 패널(240×180)에 출력되는 예시도.2 is an exemplary view in which the photo of FIG. 1 is output to an LCD panel 240 × 180 in a conventional mobile communication terminal.

도 3은 본 발명이 적용된 이동통신단말기에서 상기 도 1의 사진이 LCD 패널(240×180)에 출력되는 예시도.3 is an exemplary view in which the picture of FIG. 1 is output to an LCD panel 240 × 180 in a mobile communication terminal to which the present invention is applied.

도 4는 본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 장치의 블럭구성도.4 is a block diagram of a JPEG data processing apparatus in a mobile communication terminal according to an embodiment of the present invention.

도 5는 도 4에 도시된 제어부의 세부 구성도.5 is a detailed configuration diagram of the control unit shown in FIG. 4.

도 6은 본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 방법을 설명하기 위한 플로우차트.6 is a flowchart for explaining a JPEG data processing method in a mobile communication terminal according to an embodiment of the present invention.

** 도면의 주요 부분에 대한 부호의 설명 **** Description of symbols for the main parts of the drawing **

10: 명령입력부 20: 제어부10: command input unit 20: control unit

22: JPEG 데이터 로딩부 24: 영상크기추출부22: JPEG data loading section 24: Image size extraction section

26: 영상크기비교부 30: 이미지데이터저장부26: image size comparison 30: image data storage unit

40: 디코딩부 50: 화면표시부40: decoding unit 50: screen display unit

본 발명은 이동통신단말기에서의 JPEG 데이터 처리 방법 및 장치에 관한 것으로, 보다 상세하게는 이동통신단말기에서 비규격 크기(사이즈)의 JPEG 사진을 일정 비율로 리사이징(Resizing)하여 왜곡없이 화면표시부를 통해 재생출력될 수 있도록 하는 기술에 관한 것이다.The present invention relates to a method and apparatus for processing JPEG data in a mobile communication terminal, and more particularly, to resizing a non-standard size (size) JPEG picture at a predetermined ratio in a mobile communication terminal through a screen display without distortion. The present invention relates to a technique for enabling reproduction output.

이동통신단말기에 다양한 기능이 구현되면서, 카메라를 탑재하여 소정 영상을 촬영하고, 이를 앨범기능을 이용하여 확인할 수 있도록 하고 있다. 여기서, 이동통신단말기를 이용하여 사진 촬영을 할 경우에는 정해진 규격(VGA(640×480), QVGA(320×240), SQCIF(160×120), QCIF(176×144), MEGA(1280×1024), 2MEGA(1600×1200) 등)으로 영상을 촬영하여 저장한다. 이와 같이 촬영된 영상신호는 통상적으로 JPEG방식으로 압축하여 내부 메모리에 저장되었다가, 사용자의 요청시 이를 로딩하여 화면표시부상으로 출력되어진다. 상기와 같이, 이동통신단말기를 통해 촬용되어진 사진은 화면표시부인 LCD 크기를 고려한 상태이기 때문에, 상기 사진이 화면표시부로 출력되어질 때는, 그 가로:세로의 비율이 LCD 크기를 따르게 된다. As various functions are implemented in a mobile communication terminal, a camera is mounted to take a predetermined image and to check the image using the album function. In this case, when taking a picture using a mobile communication terminal (VGA (640 × 480), QVGA (320 × 240), SQCIF (160 × 120), QCIF (176 × 144), MEGA (1280 × 1024) ), 2MEGA (1600 × 1200, etc.) to shoot and save the image. The video signal photographed as described above is typically stored in an internal memory after being compressed in a JPEG method, and is loaded on the user's request and output to the screen display unit. As described above, since the picture taken through the mobile communication terminal is in consideration of the LCD size, which is a screen display unit, when the picture is output to the screen display unit, the ratio of width to height follows the LCD size.

예를 들어, 도 1과 같이 667×1000의 JPEG 원본 사진을 화면사이즈가 240×180인 LCD 패널로 출력되어질 경우, 도 2와 같이 JPEG 사진이 가로 방향으로 늘어 진 상태로 출력되어진다.For example, when the JPEG original picture of 667 × 1000 is output to the LCD panel having a screen size of 240 × 180 as shown in FIG. 1, the JPEG picture is output in the horizontal direction as shown in FIG. 2.

한편, 이동통신단말기는 외부로부터 사진을 다운로드받아 이를 내부 메모리에 저장하는 기능을 제공하고 있는데, 이 경우 외부로부터 다운받은 사진이 LCD 크기를 고려한 규격에 맞지 않는 경우, 다운로드받은 사진의 가로:세로 비율을 LCD 크기의 가로:세로 비율로 조정하는 처리과정을 거치지 않기 때문에, 최초 다운로드받은 원본사진이 가로방향으로 늘어난 형태로 보이거나 세로방향으로 늘어난 형태로 비율이 변형되어 보이게 된다.Meanwhile, the mobile communication terminal provides a function of downloading a picture from the outside and storing it in the internal memory. In this case, when the picture downloaded from the outside does not meet the standard considering the LCD size, the aspect ratio of the downloaded picture. Because it does not go through the process of adjusting the LCD size to the aspect ratio, the original downloaded image appears to be stretched in the horizontal direction or the ratio is stretched in the vertical direction.

본 발명은 상기한 사정을 감안하여 창출되어진 것으로서, 이동통신단말기의 화면표시부의 크기를 근거로, 로딩되는 JPEG 파일의 JPEG 데이터에 대응하는 영상크기를 조절한 후, 상기 JPEG 데이터를 디코딩하여 상기 화면표시부상에 출력함으로써, 비규격 JPEG 파일의 사진도 왜곡없이 상기 화면표시부상에 출력되도록 하는 것을 목적으로 한다.The present invention has been made in view of the above circumstances, and based on the size of the screen display unit of the mobile communication terminal, after adjusting the image size corresponding to the JPEG data of the loaded JPEG file, the JPEG data is decoded and the screen is decoded. By outputting on a display section, it is an object to make a picture of a non-standard JPEG file also output on the screen display section without distortion.

상기한 목적을 달성하기 위해, 본 발명에 따른 이동통신단말기에서의 JPEG 데이터 처리 방법은, 외부로부터 전송된 JPEG 파일을 이미지데이터저장부에 저장하고, 저장된 상기 JPEG 파일을 재생하여 상기 JPEG 파일에 대응하는 사진을 화면표시부로 출력하는 기능을 갖춘 이동통신단말기에서의 JPEG 데이터 처리 방법에 있어서, 상기 JPEG 파일의 JPEG 데이터로부터 영상크기(X,Y)를 추출하는 제 1 과정; 상기 영상사이즈(X,Y)와 상기 화면표시부의 실제 화면크기(dx, dy)를 비교하는 제 2 과정; 및 상기 비교결과를 근거로 하여, 상기 실제 화면크기(dx, dy)를 고려하여 상기 영상크기(X, Y)의 가로:세로 비율이 유지될 수 있도록 상기 영상크기(X, Y)를 영상크기(decode_x, decode_y)로 조절하여, 상기 화면표시부로 왜곡없는 JPEG 영상을 출력하는 제 3 과정을 구비하는 것을 특징으로 한다.In order to achieve the above object, the JPEG data processing method in the mobile communication terminal according to the present invention, storing the JPEG file transmitted from the outside in the image data storage unit, and reproduces the stored JPEG file to correspond to the JPEG file A JPEG data processing method in a mobile communication terminal having a function of outputting a photograph to a screen display, comprising: a first step of extracting an image size (X, Y) from JPEG data of the JPEG file; A second process of comparing the image size (X, Y) with the actual screen size (dx, dy) of the screen display unit; And the image size (X, Y) of the image size (X, Y) to maintain the aspect ratio of the image size (X, Y) in consideration of the actual screen size (dx, dy) based on the comparison result. and adjusting to (decode_x, decode_y) and outputting a distortion-free JPEG image to the screen display unit.

바람직하게, 본 발명세서 상기 제 3 과정은 상기 영상크기(X, Y)와 상기 실제 화면크기(dx, dy)를 비교하는 제 3-1 과정; 만약, 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적으면, 상기 X와 Y를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-2 과정; 만약, X < dx 이고, Y ≥ dy 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-3 과정; 만약, X ≥ dx 이고, Y < dy 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-4 과정; 만약, (X/dx) ≥ (Y/dy) 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-5 과정; 만약, (X/dx) < (Y/dy) 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-6 과정; 및 상기 영상크기(decode_x, decode_y)를 이용하여 상기 JPEG 데이터를 디코딩하여, 상기 화면표시부로 출력하는 제 3-7 과정을 구비하는 것을 특징으로 한다. Preferably, the third process of the present invention is a 3-1 process of comparing the image size (X, Y) and the actual screen size (dx, dy); If the image size (X, Y) is less than the actual screen size (dx, dy), step 3-2 of outputting the X and Y to the adjusted image size (decode_x, decode_y), respectively; If X <dx and Y ≥ dy, step 3-3 of outputting (X * dy) / Y and dy as the adjusted image sizes (decode_x, decode_y), respectively; If X ≥ dx and Y <dy, a third to fourth process of outputting dx and (Y * dx) / X to the adjusted image sizes (decode_x, decode_y), respectively; If (X / dx) ≥ (Y / dy), a third process of outputting dx and (Y * dx) / X to the adjusted image sizes decode_x and decode_y, respectively; If (X / dx) <(Y / dy), step 3-6 of outputting (X * dy) / Y and dy to the adjusted image sizes (decode_x, decode_y), respectively; And a 3-7 process of decoding the JPEG data using the image sizes (decode_x, decode_y) and outputting the JPEG data to the screen display unit.

상기한 목적을 달성하기 위해, 본 발명에 따른 이동통신단말기에서의 JPEG 데이터 처리 장치는, 외부로부터 전송된 JPEG 파일을 이미지데이터저장부에 저장하고, 저장된 상기 JPEG 파일을 재생하여 상기 JPEG 파일에 대응하는 사진을 화면표시부로 출력하는 기능을 갖춘 이동통신단말기에서의 JPEG 데이터 처리 장치에 있 어서, 상기 JPEG 파일의 JPEG 데이터로부터 영상크기(X, Y)를 추출하는 영상크기추출부; 상기 영상크기(X,Y)와 기 등록된 상기 화면표시부의 실제 화면크기(dx, dy)를 비교하여, 상기 영상크기(X,Y)의 가로:세로 비율이 유지될 수 있도록 상기 영상크기(X, Y)를 영상크기(decode_x, decode_y)로 조절하는 영상크기비교부; 및 상기 영상크기(decode_x, decode_y)를 근거로 상기 JPEG 데이터를 디코딩하여 상기 화면표시부로 출력하는 디코딩부를 구비하는 것을 특징으로 한다.In order to achieve the above object, a JPEG data processing apparatus in a mobile communication terminal according to the present invention stores an externally transmitted JPEG file in an image data storage unit, and reproduces the stored JPEG file to correspond to the JPEG file. A JPEG data processing apparatus of a mobile communication terminal having a function of outputting a photograph to a screen display, the image size extracting unit for extracting the image size (X, Y) from the JPEG data of the JPEG file; The image size (X, Y) is compared with the actual screen size (dx, dy) of the registered screen display unit, and the aspect ratio of the image size (X, Y) is maintained so that the ratio of the image size (X, Y) can be maintained. An image size comparison unit for adjusting X, Y) to an image size (decode_x, decode_y); And a decoding unit for decoding the JPEG data based on the image sizes (decode_x and decode_y) and outputting the JPEG data to the screen display unit.

바람직하게, 본 발명에서 상기 영상크기비교부는 상기 영상크기(X, Y)와 상기 실제 화면크기(dx, dy)를 비교하여, 만약, 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적으면 X와 Y를 조절된 영상크기(decode_x, decode_y)로 출력하고, 만약, X < dx 이고, Y ≥ dy 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 출력하고, 만약, X ≥ dx 이고, Y < dy 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 출력하고, 만약, (X/dx) ≥ (Y/dy) 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 출력하고, 만약, (X/dx) < (Y/dy) 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 출력하는 것을 특징으로 한다. Preferably, in the present invention, the image size comparison unit compares the image size (X, Y) with the actual screen size (dx, dy), if the image size (X, Y) is the actual screen size (dx less than dy), outputs X and Y to the adjusted image size (decode_x, decode_y), and if X <dx and Y ≥ dy, then (X * dy) / Y and dy are adjusted image size ( decode_x, decode_y), and if X ≥ dx and Y <dy, then output dx and (Y * dx) / X with the adjusted image size (decode_x, decode_y), if (X / dx) ≥ If (Y / dy), dx and (Y * dx) / X are output at the adjusted image sizes (decode_x, decode_y), and if (X / dx) <(Y / dy), (X * dy ) / Y and dy are output in the adjusted image size (decode_x, decode_y).

이하, 첨부되어진 도면을 참조하여 본 발명의 실시예를 구체적으로 설명한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 4는 본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 장치의 블럭구성도이다.4 is a block diagram of a JPEG data processing apparatus in a mobile communication terminal according to an embodiment of the present invention.

본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 장치는, 도 4에 도시된 바와 같이, 명령입력부(10), 제어부(20), 이미지데이터저장부(30), 디코딩부(40), 화면표시부(50)를 구비한다.The JPEG data processing apparatus of the mobile communication terminal according to the embodiment of the present invention, as shown in Figure 4, the command input unit 10, the control unit 20, the image data storage unit 30, the decoding unit 40 And a screen display unit 50.

데이터케이블을 통해 외부 장비로부터 사진을 다운로드받고나 SD 카드에 저장된 사진을 이동통신단말기로 다운로드 받으면, 상기 다운로드된 사진에 해당하는 JPEG 파일은 제어부(20)에 의해 이미지데이터저장부(30)에 저장된다. 무선인터넷을 통해 JPEG 파일을 다운로드 받는 경우에도, 제어부(20)에 의해 다운로드된 JPEG 파일이 이미지데이터저장부(30)에 저장된다. 도 4에서는, 사진에 해당하는 JPEG 파일을 다운로드 받기 위한 구성에 대한 도시는 생략하였다. When a picture is downloaded from an external device through a data cable or a picture stored in an SD card is downloaded to a mobile communication terminal, a JPEG file corresponding to the downloaded picture is stored in the image data storage 30 by the controller 20. do. Even when the JPEG file is downloaded through the wireless Internet, the JPEG file downloaded by the control unit 20 is stored in the image data storage unit 30. In FIG. 4, an illustration of a configuration for downloading a JPEG file corresponding to a photo is omitted.

참고로, JPEG(Joint Photographic Coding Experts Group)은 사진과 같은 정지화상 정보를 통신하기 위하여 압축하는 기술의 표준으로서, 상기 JPEG을 기반으로 영상데이터가 압축되어 구성된 JPEG 데이터를 디코딩함으로써, 상기 JPEG 파일을 재생출력하는 것이다.For reference, the Joint Photographic Coding Experts Group (JPEG) is a standard for compressing a still image information such as a picture to communicate, and decodes the JPEG data by decoding the image data composed of the JPEG based on the JPEG data. It is to reproduce the output.

한편, 이미지데이터저장부(30)에 JPEG 파일이 저장된 상태에서, 명령입력부(10)를 통해 사진재생을 위한 예컨대, "앨범보기" 기능이 선택되면, 제어부(20)는 이미데이터저장부(30)에서 해당 JPEG 파일을 로딩하여, 상기 JPEG 파일에 해당하는 JPEG 데이터로부터 상기 JPEG 파일의 영상크기(X, Y)를 추출하고, 추출된 영상크기(X, Y)를 실제 화면크기(dx, dy)를 이용하여 조절하여, 크기조절된 화면크기(decode_x, decode_y)를 디코딩부(40)로 출력한다.On the other hand, when the JPEG file is stored in the image data storage unit 30, for example, the "view album" function is selected for the picture playback via the command input unit 10, the control unit 20 is already the data storage unit 30 ) Extracts the image size (X, Y) of the JPEG file from the JPEG data corresponding to the JPEG file, and extracts the extracted image size (X, Y) from the actual screen size (dx, dy). ) To be adjusted, and outputs the adjusted screen sizes decode_x and decode_y to the decoding unit 40.

이어, 디코딩부(40)는 화면크기(decode_x, decode_y)를 이용하여 이미지데이터저장부(30)로부터 전송되는 JPEG 데이터를 디코딩하여 상기 화면크기 (decode_x, decode_y)에 해당하는 영상신호를 화면표시부(50)로 출력함으로써, 화면크기가 조절된 상태의 사진이 출력되어진다. Subsequently, the decoding unit 40 decodes JPEG data transmitted from the image data storage unit 30 using the screen sizes decode_x and decode_y to display an image signal corresponding to the screen sizes decode_x and decode_y. 50), the picture with the screen size adjusted is output.

이로서, 화면표시부(50)로 출력되는 JPEG 데이터에 해당하는 사진은 원래의 가로:세로 비율을 유지한 상태로 왜곡없이 출력되어진다.Thus, the picture corresponding to the JPEG data output to the screen display unit 50 is output without distortion while maintaining the original aspect ratio.

이하, 도 5에 도시된 제어부의 세부 구성도와 도 6에 도시된 플로우차트를 참조하여 본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 방법의 동작을 구체적으로 설명한다.Hereinafter, an operation of a JPEG data processing method in a mobile communication terminal according to an embodiment of the present invention will be described in detail with reference to the detailed configuration diagram of the control unit shown in FIG. 5 and the flowchart shown in FIG. 6.

명령입력부(10)를 통해 사진재생모드 예컨대, "앨범보기"가 설정되면(S2), 제어부(20)의 JPEG 데이터 로딩부(22)는 이미지데이터저장부(30)에 저장된 특정 파일명의 JPEG 파일에 해당하는 JPEG 데이터를 로딩하여, 이를 영상크기추출부(24)로 전송한다(S4).When the picture reproducing mode, for example, "view album" is set through the command input unit 10 (S2), the JPEG data loading unit 22 of the control unit 20 stores the JPEG file of the specific file name stored in the image data storage unit 30. By loading the corresponding JPEG data, it is transmitted to the image size extraction unit 24 (S4).

영상크기추출부(24)는 상기 JPEG 데이터의 헤더로부터 상기 JPEG 데이터에 의해 구성되는 영상크기(X, Y)를 추출하고, 추출된 영상크기(X, Y)를 영상크기비교부(26)로 전송한다.The image size extracting unit 24 extracts the image sizes X and Y constituted by the JPEG data from the header of the JPEG data, and converts the extracted image sizes X and Y to the image size comparing unit 26. send.

이어, 영상크기비교부(26)는 내부 메모리(미도시)에 기등록된 실제화면크기데이터에 의한 실제화면크기(dx, dy)와 상기 영상크기(X, Y)를 비교한다(S8).Next, the image size comparison unit 26 compares the image size (X, Y) with the actual screen size (dx, dy) by the actual screen size data previously registered in the internal memory (not shown) (S8).

먼저, 영상크기비교부(26)는 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적은가를 판단하여(S10), 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적으면(S10에서 Yes) 상기 X와 Y를 상기 JPEG 데이터의 영상크기(decode_x, decode_y)로 출력한다(S16).First, the image size comparison unit 26 determines whether the image size (X, Y) is smaller than the actual screen size (dx, dy) (S10), and the image size (X, Y) is the actual screen size. If less than (dx, dy) (Yes in S10), the X and Y are output as image sizes (decode_x, decode_y) of the JPEG data (S16).

그러나, 이와 달리 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적지 않으면(S10에서 No), 영상크기비교부(26)는 X < dx 이고, Y ≥ dy 인가를 판단한다(S14).On the other hand, if the image size (X, Y) is not less than the actual screen size (dx, dy) (No in S10), the image size comparison unit 26 determines that X <dx, Y ≥ dy (S14).

S14의 판단결과, X < dx 이고, Y ≥ dy 이면(S14에서 Yes), 상기 JPEG 데이터의 영상크기의 X축 크기와 Y 축 크기를 (X*dy)/Y, dy로 각각 조절하여, (X*dy)/Y와 dy를 상기 JPEG 데이터의 영상크기(decode_x, decode_y)로 출력한다.As a result of the determination in S14, when X <dx and Y ≥ dy (Yes in S14), the X-axis size and Y-axis size of the image size of the JPEG data are adjusted to (X * dy) / Y, dy, respectively, ( X * dy) / Y and dy are output as image size (decode_x, decode_y) of the JPEG data.

이와 달리, S14의 판단결과, X < dx 이고, Y ≥ dy 이 아니면(S14에서 No), 영상크기비교부(26)는 X ≥ dx 이고, Y < dy 인가를 판단한다(S18).On the contrary, as a result of the determination in S14, if X <dx and Y ≥ dy (No in S14), the image size comparison unit 26 determines whether X ≥ dx and Y <dy (S18).

S18의 판단결과, X ≥ dx 이고, Y < dy 이면(S18에서 Yes), 상기 JPEG 데이터의 영상크기의 X축 크기와 Y 축 크기를 dx와 (Y*dx)/X로 각각 조절하여, (X*dy)/Y와 dy를 상기 JPEG 데이터의 영상크기(decode_x, decode_y)로 출력한다.As a result of the determination in S18, when X ≥ dx and Y <dy (Yes in S18), the X-axis size and the Y-axis size of the image size of the JPEG data are adjusted by dx and (Y * dx) / X, respectively, X * dy) / Y and dy are output as image size (decode_x, decode_y) of the JPEG data.

그러나, S18에서 X ≥ dx 이고, Y < dy 이 아니면(S18에서 No), (X/dx) ≥ (Y/dy) 를 판단하여(S22), 실제 화면의 가로크기와 영상의 가로크기에 대한 비율과 실제 화면의 세로크기와 영상의 세로크기에 대한 비율을 비교한다.However, if X ≥ dx in S18 and Y <dy is not (No in S18), (X / dx) ≥ (Y / dy) is determined (S22) to determine the horizontal size of the actual screen and the horizontal size of the image. Compare the ratio with the ratio of the actual screen height to the image height.

영상크기비교부(S26)는 S22의 비교결과 (X/dx) ≥ (Y/dy) 이면(S22에서 Yes), 상기 JPEG 데이터의 영상크기의 X축 크기와 Y 축 크기를 dx와 (Y*dx)/X 로 각각 조절하여, dx와 (Y*dx)/X를 상기 JPEG 데이터의 영상크기(decode_x, decode_y)로 출력하고(S26), S22의 비교결과 (X/dx) ≥ (Y/dy) 이 아니면(S22에서 No) 즉, (X/dx) < (Y/dy) 이면, 상기 JPEG 데이터의 영상크기의 X축 크기와 Y 축 크기를 (X*dy)/Y와 dy로 각각 조절하여, (X*dy)/Y와 dy 를 상기 JPEG 데이터의 영상크기(decode_x, decode_y)로 출력한다(S24).If the image size comparison unit S26 compares the result of S22 (X / dx) ≥ (Y / dy) (Yes in S22), the X-axis size and Y-axis size of the image size of the JPEG data are converted into dx and (Y * dx) / X, respectively, and output dx and (Y * dx) / X as the image size (decode_x, decode_y) of the JPEG data (S26), and the comparison result of S22 (X / dx) ≥ (Y / dy) (No in S22), that is, (X / dx) <(Y / dy), the X-axis size and the Y-axis size of the image size of the JPEG data are (X * dy) / Y and dy, respectively. By adjusting, (X * dy) / Y and dy are output as image size (decode_x, decode_y) of the JPEG data (S24).

이어, 디코딩부(40)는 영상크기비교부(26)로부터 전송되는 영상크기(decode_x, decode_y)를 이용하여, 상기 JPEG 데이터를 디코딩한다(S28).Subsequently, the decoding unit 40 decodes the JPEG data using the image sizes decode_x and decode_y transmitted from the image size comparing unit 26 (S28).

상술한 디코딩부(40)가 영상크기(decode_x, decode_y)를 고려하여, 상기 JPEG 데이터를 디코딩함으로써, 상기 JPEG 데이터는 원래 사진의 가로:세로 비율을 유지하면서 실제 화면 크기에 맞도록 사진의 크기가 조절된 상태로, 화면표시부(50)상에 출력된다(S30).The decoding unit 40 decodes the JPEG data in consideration of the image sizes (decode_x, decode_y), so that the JPEG data is sized to fit the actual screen size while maintaining the aspect ratio of the original picture. In the adjusted state, it is output on the screen display unit 50 (S30).

본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 방법이 적용됨으로써, 도 1과 같은 667(X)×1000(Y) 크기의 JPEG 원본 사진이 240(dx)×180(dy) 크기의 LCD 패널로 출력되더라도, 원래의 JPEG 사진크기가 120((X*dy)/Y)×180(dy) 크기로 조절되어, 도 3과 같이 왜곡없이 출력되게 된다.By applying the JPEG data processing method in the mobile communication terminal according to an embodiment of the present invention, the JPEG original picture of 667 (X) × 1000 (Y) size as shown in Figure 1 is 240 (dx) × 180 (dy) size Even if it is output to the LCD panel, the original JPEG picture size is adjusted to a size of 120 ((X * dy) / Y) × 180 (dy), so as to be output without distortion as shown in FIG. 3.

이상 설명한 바와 같이, 본 발명의 실시예에 따른 이동통신단말기에서의 JPEG 데이터 처리 방법 및 장치에 의하면, 이동통신단말기의 화면표시부의 크기를 근거로, 로딩되는 JPEG 파일의 JPEG 데이터에 대응하는 영상크기를 조절한 후, 상기 JPEG 데이터를 디코딩하여 상기 화면표시부상에 출력함으로써, 비규격 JPEG 파일의 사진도 왜곡없이 재생출력할 수 있다는 효과가 있다.As described above, according to the method and apparatus for processing JPEG data in a mobile communication terminal according to an embodiment of the present invention, an image size corresponding to JPEG data of a JPEG file to be loaded is based on the size of the screen display unit of the mobile communication terminal. After adjusting, the JPEG data is decoded and output on the screen display unit, so that a picture of a non-standard JPEG file can be reproduced and output without distortion.

한편, 본 발명은 상술한 실시예로만 한정되는 것이 아니라 본 발명의 요지를 벗어나지 않는 범위내에서 수정 및 변형하여 실시할 수 있고, 이러한 수정 및 변경 등은 이하의 특허 청구의 범위에 속하는 것으로 보아야 할 것이다.On the other hand, the present invention is not limited to the above-described embodiment, but can be modified and modified within the scope not departing from the gist of the present invention, such modifications and changes should be regarded as belonging to the following claims. will be.

Claims (4)

외부로부터 전송된 JPEG 파일을 이미지데이터저장부에 저장하고, 저장된 상기 JPEG 파일을 재생하여 상기 JPEG 파일에 대응하는 사진을 화면표시부로 출력하는 기능을 갖춘 이동통신단말기에서의 JPEG 데이터 처리 방법에 있어서,A JPEG data processing method of a mobile communication terminal having a function of storing a JPEG file transmitted from an external unit in an image data storage unit, and reproducing the stored JPEG file to output a picture corresponding to the JPEG file to a screen display unit. 상기 JPEG 파일의 JPEG 데이터로부터 영상크기(X,Y)를 추출하는 제 1 과정;A first step of extracting an image size (X, Y) from JPEG data of the JPEG file; 상기 영상사이즈(X,Y)와 상기 화면표시부의 실제 화면크기(dx, dy)를 비교하는 제 2 과정; 및A second process of comparing the image size (X, Y) with the actual screen size (dx, dy) of the screen display unit; And 상기 비교결과를 근거로 하여, 상기 실제 화면크기(dx, dy)를 고려하여 상기 영상크기(X, Y)의 가로:세로 비율이 유지될 수 있도록 상기 영상크기(X, Y)를 영상크기(decode_x, decode_y)로 조절하여, 상기 화면표시부로 왜곡없는 JPEG 영상을 출력하는 제 3 과정을 구비하는 것을 특징으로 하는 이동통신단말기에서의 JPEG 데이터 처리 방법.Based on the comparison result, the image size (X, Y) is converted to the image size (X, Y) so that the aspect ratio of the image size (X, Y) can be maintained in consideration of the actual screen size (dx, dy). decode_x, decode_y), and a third process of outputting a distortion-free JPEG image to the screen display unit. 제 1 항에 있어서, 상기 제 3 과정은 The method of claim 1, wherein the third process is 상기 영상크기(X, Y)와 상기 실제 화면크기(dx, dy)를 비교하는 제 3-1 과정;Step 3-1 of comparing the image size (X, Y) with the actual screen size (dx, dy); 만약, 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적으면, 상기 X와 Y를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-2 과정;If the image size (X, Y) is less than the actual screen size (dx, dy), step 3-2 of outputting the X and Y to the adjusted image size (decode_x, decode_y), respectively; 만약, X < dx 이고, Y ≥ dy 이면, (X*dy)/Y와 dy를 조절된 영상크기 (decode_x, decode_y)로 각각 출력하는 제 3-3 과정;If X <dx and Y ≥ dy, step 3-3 of outputting (X * dy) / Y and dy to the adjusted image sizes (decode_x, decode_y), respectively; 만약, X ≥ dx 이고, Y < dy 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-4 과정;If X ≥ dx and Y <dy, a third to fourth process of outputting dx and (Y * dx) / X to the adjusted image sizes (decode_x, decode_y), respectively; 만약, (X/dx) ≥ (Y/dy) 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-5 과정;If (X / dx) ≥ (Y / dy), a third process of outputting dx and (Y * dx) / X to the adjusted image sizes decode_x and decode_y, respectively; 만약, (X/dx) < (Y/dy) 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 제 3-6 과정; 및If (X / dx) <(Y / dy), step 3-6 of outputting (X * dy) / Y and dy to the adjusted image sizes (decode_x, decode_y), respectively; And 상기 영상크기(decode_x, decode_y)를 이용하여 상기 JPEG 데이터를 디코딩하여, 상기 화면표시부로 출력하는 제 3-7 과정을 구비하는 것을 특징으로 하는 이동통신단말기에서의 JPEG 데이터 처리 방법.And a third to seventh step of decoding the JPEG data using the image sizes (decode_x and decode_y) and outputting the JPEG data to the screen display unit. 외부로부터 전송된 JPEG 파일을 이미지데이터저장부에 저장하고, 저장된 상기 JPEG 파일을 재생하여 상기 JPEG 파일에 대응하는 사진을 화면표시부로 출력하는 기능을 갖춘 이동통신단말기에서의 JPEG 데이터 처리 장치에 있어서,A JPEG data processing apparatus of a mobile communication terminal having a function of storing a JPEG file transmitted from an external unit in an image data storage unit and reproducing the stored JPEG file to output a picture corresponding to the JPEG file to a screen display unit. 상기 JPEG 파일의 JPEG 데이터로부터 영상크기(X, Y)를 추출하는 영상크기추출부;An image size extraction unit for extracting an image size (X, Y) from the JPEG data of the JPEG file; 상기 영상크기(X,Y)와 기 등록된 상기 화면표시부의 실제 화면크기(dx, dy)를 비교하여, 상기 영상크기(X,Y)의 가로:세로 비율이 유지될 수 있도록 상기 영상크기(X, Y)를 영상크기(decode_x, decode_y)로 조절하는 영상크기비교부; 및The image size (X, Y) is compared with the actual screen size (dx, dy) of the registered screen display unit, and the aspect ratio of the image size (X, Y) is maintained so that the ratio of the image size (X, Y) can be maintained. An image size comparison unit for adjusting X, Y) to an image size (decode_x, decode_y); And 상기 영상크기(decode_x, decode_y)를 근거로 상기 JPEG 데이터를 디코딩하 여 상기 화면표시부로 출력하는 디코딩부를 구비하는 것을 특징으로 하는 이동통신단말기에서의 JPEG 데이터 처리 방법.And a decoding unit for decoding the JPEG data based on the image size (decode_x, decode_y) and outputting the JPEG data to the screen display unit. 제 3 항에 있어서, 상기 영상크기비교부는The method of claim 3, wherein the image size comparison unit 상기 영상크기(X, Y)와 상기 실제 화면크기(dx, dy)를 비교하여, By comparing the image size (X, Y) and the actual screen size (dx, dy), 만약, 상기 영상크기(X, Y)가 상기 실제 화면크기(dx, dy)보다 적으면, 상기 X와 Y를 조절된 영상크기(decode_x, decode_y)로 각각 출력하고, If the image size (X, Y) is less than the actual screen size (dx, dy), and output the X and Y in the adjusted image size (decode_x, decode_y), respectively, 만약, X < dx 이고, Y ≥ dy 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 각각 출력하고, If X <dx and Y ≥ dy, then output (X * dy) / Y and dy to the adjusted image sizes (decode_x, decode_y), respectively. 만약, X ≥ dx 이고, Y < dy 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 각각 출력하고, If X ≥ dx and Y <dy, then output dx and (Y * dx) / X with the adjusted image size (decode_x, decode_y), respectively. 만약, (X/dx) ≥ (Y/dy) 이면, dx 와 (Y*dx)/X를 조절된 영상크기(decode_x, decode_y)로 각각 출력하고, If (X / dx) ≥ (Y / dy), dx and (Y * dx) / X are output as the adjusted image sizes (decode_x, decode_y), respectively. 만약, (X/dx) < (Y/dy) 이면, (X*dy)/Y와 dy를 조절된 영상크기(decode_x, decode_y)로 각각 출력하는 것을 특징으로 하는 이동통신단말기에서의 JPEG 데이터 처리 장치.If (X / dx) <(Y / dy), JPEG data processing in the mobile communication terminal characterized by outputting (X * dy) / Y and dy in the adjusted image size (decode_x, decode_y), respectively. Device.
KR1020050055735A 2005-06-27 2005-06-27 Method and apparatus for processing JPEG data in mobile phone KR100746394B1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020050055735A KR100746394B1 (en) 2005-06-27 2005-06-27 Method and apparatus for processing JPEG data in mobile phone
US11/472,584 US20060291730A1 (en) 2005-06-27 2006-06-21 Method and apparatus for processing JPEG data in mobile communication terminal
CNA2006100941443A CN1893706A (en) 2005-06-27 2006-06-27 Method and apparatus for processing jpeg data in mobile communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050055735A KR100746394B1 (en) 2005-06-27 2005-06-27 Method and apparatus for processing JPEG data in mobile phone

Publications (3)

Publication Number Publication Date
KR20060136169A true KR20060136169A (en) 2007-01-02
KR20070000199A KR20070000199A (en) 2007-01-02
KR100746394B1 KR100746394B1 (en) 2007-08-03

Family

ID=37567418

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050055735A KR100746394B1 (en) 2005-06-27 2005-06-27 Method and apparatus for processing JPEG data in mobile phone

Country Status (3)

Country Link
US (1) US20060291730A1 (en)
KR (1) KR100746394B1 (en)
CN (1) CN1893706A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070010910A (en) * 2005-07-20 2007-01-24 삼성전자주식회사 The adaptive image scaler on the basis of the image signal and the method thereof
KR100720871B1 (en) * 2006-06-20 2007-05-23 삼성전자주식회사 Apparatus and method for low distortion display in portable communication terminal
CN101309476B (en) * 2007-05-15 2011-05-04 鸿富锦精密工业(深圳)有限公司 Mobile apparatus and method for changing image size
US20090033683A1 (en) * 2007-06-13 2009-02-05 Jeremy Schiff Method, system and apparatus for intelligent resizing of images
US20090171766A1 (en) * 2007-12-27 2009-07-02 Jeremy Schiff System and method for providing advertisement optimization services
CN109410893A (en) * 2018-09-04 2019-03-01 广州优视网络科技有限公司 Show the method, apparatus and electronic equipment of picture
KR20210037102A (en) 2019-09-27 2021-04-06 곽기종 Method of provide image graphics
US11540827B2 (en) 2019-12-13 2023-01-03 Covidien Lp Hand-held electromechanical surgical instruments

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6545687B2 (en) * 1997-01-09 2003-04-08 Canon Kabushiki Kaisha Thumbnail manipulation using fast and aspect ratio zooming, compressing and scaling
US7062098B1 (en) * 2000-05-12 2006-06-13 International Business Machines Corporation Method and apparatus for the scaling down of data
FI115674B (en) * 2000-06-30 2005-06-15 Nokia Corp Method and system for displaying pages based on page definition language on hand-portable devices
US20020180764A1 (en) * 2001-06-01 2002-12-05 John Gilbert Method and system for digital image management
KR100608735B1 (en) * 2002-07-09 2006-08-04 엘지전자 주식회사 Picture display method for mobile communication device
KR100595067B1 (en) * 2003-01-27 2006-07-03 엘지전자 주식회사 Apparatus and method for resizing image
US7158154B2 (en) * 2003-06-18 2007-01-02 Lg Electronics Inc. Method for controlling display mode in portable computer

Similar Documents

Publication Publication Date Title
KR100746394B1 (en) Method and apparatus for processing JPEG data in mobile phone
KR20060136169A (en) Method and apparatus for processing JPEG data in mobile phone
US20110193982A1 (en) Method and apparatus for processing and reproducing camera video
US20090100462A1 (en) Video browsing based on thumbnail image
US8132211B2 (en) Information processing apparatus displaying indices of video contents, information processing method and information processing program
US7092023B2 (en) Moving image reproducing device equipped with multi-image playback function
CN100527820C (en) Video playback device and playback method
US20070126908A1 (en) Image photographing apparatus and method
US10708567B2 (en) Display control apparatus and control method thereof
US8514254B2 (en) Apparatus and method for processing digital images
EP1722372A2 (en) Method for displaying image data in portable terminal
CN102054150A (en) Apparatus and method for image processing using security function
US20090244305A1 (en) Video Recording System and Imaging Apparatus
KR20060102673A (en) Apparatus and method for photographing during video recording
KR101547828B1 (en) Apparatus and method for image processing
US20120092521A1 (en) Image processing apparatus having function of correcting image based on ambient illumination, and image processing method
US20030099404A1 (en) Image encoding apparatus and method, image display apparatus and method, image processing system and image sensing apparatus
JP2006014221A (en) Imaging apparatus and imaging method
WO2003030529A1 (en) Television reception apparatus
KR100775187B1 (en) Thumbnail recording method and terminal using the same
US7705890B2 (en) Apparatus and method for photographing an image in a wireless terminal
US20050286803A1 (en) Image processing apparatus, display device, image processing method, and image processing program
US8605166B2 (en) Photographing apparatus, photographing method and recording medium
KR100827142B1 (en) Apparatus and method for extracting video data in mobile terminal
KR100767670B1 (en) Apparatus for control output picture of memory card and control method of the same