Movatterモバイル変換


[0]ホーム

URL:


TWI486048B - System and method for converting pictures of mobile phone - Google Patents

System and method for converting pictures of mobile phone
Download PDF

Info

Publication number
TWI486048B
TWI486048BTW097135082ATW97135082ATWI486048BTW I486048 BTWI486048 BTW I486048BTW 097135082 ATW097135082 ATW 097135082ATW 97135082 ATW97135082 ATW 97135082ATW I486048 BTWI486048 BTW I486048B
Authority
TW
Taiwan
Prior art keywords
conversion request
double
image conversion
picture
request
Prior art date
Application number
TW097135082A
Other languages
Chinese (zh)
Other versions
TW201012168A (en
Inventor
Peng Yang Hung
Sheng Chien Huang
Original Assignee
Chi Mei Comm Systems Inc
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 Chi Mei Comm Systems IncfiledCriticalChi Mei Comm Systems Inc
Priority to TW097135082ApriorityCriticalpatent/TWI486048B/en
Publication of TW201012168ApublicationCriticalpatent/TW201012168A/en
Application grantedgrantedCritical
Publication of TWI486048BpublicationCriticalpatent/TWI486048B/en

Links

Landscapes

Description

Translated fromChinese
手機圖片轉換系統及方法Mobile phone picture conversion system and method

本發明涉及一種手機圖片轉換系統方法。The invention relates to a mobile phone picture conversion system method.

隨著通訊技術的發展,各類用於通訊的電子產品成本越來越低,市場價格也隨之下降,從而得以更普遍地應用,例如,手機的普及率越來越高,如今手機已成為目前普及使用的通訊模組,其可以用來交流資訊及聯繫感情等,成為廣大用戶日常生活中不可缺少的通訊工具。With the development of communication technology, the cost of various electronic products for communication is getting lower and lower, and the market price is also falling, so that it can be more widely used. For example, the popularity of mobile phones is getting higher and higher, and now mobile phones have become The communication modules that are currently in widespread use can be used to exchange information and connect with feelings, etc., and become an indispensable communication tool for users in their daily lives.

目前市場上出現了很多智慧手機,這些智慧手機的功能也日益強大,隨著手機功能的強大,手機中各個應用程式的運行速度成了手機性能好壞的主要因素之一。例如手機中的圖片顯示功能:手機來電顯示圖片、手機相簿中的圖片顯示、手機螢幕背景圖片顯示等。當使用者觀看手機中的圖片時,這時又有手機來電,由於功能表顯示程式和圖檔轉換程式運行於同一個程序,而同一個程序中,程式需要逐條執行程式碼,功能表顯示程式運行時,中間可能產生時間空隙,造成了程式運行速度緩慢,使得手機圖片轉換速度減慢。There are a lot of smart phones on the market, and the functions of these smart phones are becoming more and more powerful. With the powerful functions of mobile phones, the running speed of various applications in mobile phones has become one of the main factors of the performance of mobile phones. For example, the picture display function in the mobile phone: the caller ID picture of the mobile phone, the picture display in the mobile phone photo album, the background image display of the mobile phone screen, and the like. When the user watches the picture in the mobile phone, there is a mobile phone call at this time, because the function table display program and the image file conversion program run in the same program, and in the same program, the program needs to execute the code one by one, the function table display program At runtime, there may be time gaps in the middle, causing the program to run slowly, which slows the picture conversion speed of the mobile phone.

鑒於以上內容,有必要提供一種手機圖片轉換系統及方法,可以提高圖片轉換速度。In view of the above, it is necessary to provide a mobile phone picture conversion system and method, which canImprove picture conversion speed.

一種手機圖片轉換系統,該系統獨立運行於手機的一個圖片轉換程序上,該圖片轉換程序設置有至少一個檢查點,該系統包括多個優先權不同的雙端佇列,以存儲不同優先權對應的圖片轉換請求,該系統還包括:圖片轉換請求新增模組,用於接收應用程式所發送的圖片轉換請求,根據其優先權選擇雙端佇列,並將該圖片轉換請求插入該雙端佇列隊尾;圖片轉換模組,用於按照雙端佇列優先權的高低順序從當前最高優先權的雙端佇列的隊尾取出圖片轉換請求來執行;中斷模組,用於當新增的圖片轉換請求的優先權高於當前執行的圖片轉換請求的優先權時,於檢查點設置中斷標誌並記錄中斷原因,中斷當前執行的圖片轉換請求,並將該中斷的圖片轉換請求根據其優先權重新插入至對應的雙端佇列的隊尾,或者當該新增的圖片轉換請求的優先權低於當前執行的圖片轉換請求時,繼續執行當前的圖片轉換請求;及圖片轉換請求刪除模組,用於在執行該圖片轉換請求時,當有刪除雙端佇列中的圖片轉換請求時,記錄該圖片轉換請求,等到該圖片轉換請求到達雙端佇列的隊尾時,刪除該圖片轉換請求。A mobile phone picture conversion system, the system independently runs on a picture conversion program of a mobile phone, the picture conversion program is provided with at least one checkpoint, and the system includes a plurality of double-ended queues with different priorities to store different priority correspondences. The image conversion request, the system further includes: a picture conversion request adding module, configured to receive a picture conversion request sent by the application, select a double-ended queue according to the priority thereof, and insert the picture conversion request into the double-ended The image conversion module is configured to take a picture conversion request from the tail of the current highest priority double-ended queue according to the order of the double-ended queue priority; the interrupt module is used to add When the priority of the picture conversion request is higher than the priority of the currently executed picture conversion request, the interrupt flag is set at the checkpoint and the reason for the interruption is recorded, the currently executed picture conversion request is interrupted, and the interrupted picture conversion request is prioritized according to its priority. The right is reinserted into the tail of the corresponding double-ended queue, or when the priority of the new image conversion request is lower than the current When the image conversion request of the line is continued, the current image conversion request is continued; and the image conversion request deletion module is configured to record the image conversion request in the double-ended queue when the image conversion request is executed. The conversion request, when the image conversion request reaches the end of the double-ended queue, deletes the image conversion request.

一種手機圖片轉換方法,該方法包括如下步驟:(A)於手機的圖片轉換程序設置檢查點;(B)提供多個優先權不同的雙端佇列以存放對應優先權的圖片轉換請求;(C)按照雙端佇列優先權的高低順序,依次從當前最高優先權的雙端佇列隊尾取出一個圖片轉換請求並執行該圖片轉換請求;(D)在執行該圖片轉換請求時,當雙端佇列中新增圖片轉換請求且該新增的圖片轉換請求的優先權高於當前執行的圖片轉換請求時,中斷當前的圖片轉換請求,於檢查點處設置中斷標誌並記錄中斷原因,將該中斷的圖片轉換請求按照其優先權重新插入到對應的雙端佇列的隊尾,並執行該新增的圖片轉換請求,或者當該新增的圖片轉換請求的優先權低於當前執行的圖片轉換請求時,繼續執行當前的圖片轉換請求;(E)在執行該圖片轉換請求時,當有刪除雙端佇列中的圖片轉換請求時,記錄該圖片轉換請求,等到該圖片轉換請求到達雙端佇列的隊尾時,刪除該圖片轉換請求;及(F)重複步驟(C)至(E),直到每個雙端佇列中的圖片轉換請求都執行完畢。A mobile phone picture conversion method, the method comprising the following steps: (A) setting a checkpoint in a picture conversion program of the mobile phone; (B) providing a plurality of double-ended queues having different priorities to store a picture conversion request corresponding to the priority; C) according to the order of the priority of the double-ended queue, sequentially taking an image conversion request from the tail of the current highest priority double-ended queue and executing the image conversion request; (D) when performing the image conversion request, when the double When the image conversion request is added in the end column and the priority of the newly added image conversion request is higher than the currently executed image conversion request, the current picture is interrupted.Change the request, set the interrupt flag at the checkpoint and record the cause of the interruption, re-insert the interrupted picture conversion request according to its priority to the tail of the corresponding double-ended queue, and execute the new picture conversion request, or When the priority of the newly added picture conversion request is lower than the currently executed picture conversion request, the current picture conversion request is continued; (E) when the picture conversion request is executed, when the picture in the double-ended column is deleted When the request is converted, the image conversion request is recorded, and when the image conversion request reaches the end of the double-ended queue, the image conversion request is deleted; and (F) repeating steps (C) to (E) until each double-end The image conversion request in the queue is executed.

相較於習知技術,所述手機圖片轉換系統及方法,將手機圖片轉換程式單獨創建一個程序,合理安排程式運行時間,達到提高圖片轉換速度。Compared with the prior art, the mobile phone picture conversion system and method separately create a program for the mobile phone picture conversion program, and reasonably arrange the program running time to improve the picture conversion speed.

1‧‧‧手機1‧‧‧Mobile phone

100‧‧‧手機圖片轉換系統100‧‧‧Mobile Image Conversion System

101‧‧‧圖片轉換程序101‧‧‧ Picture Conversion Program

102‧‧‧功能表顯示程序102‧‧‧Menu display program

103‧‧‧應用程式103‧‧‧Application

10‧‧‧圖片轉換請求新增模組10‧‧‧Image conversion request new module

12‧‧‧圖片轉換請求刪除模組12‧‧‧Image Conversion Request Removal Module

14‧‧‧中斷模組14‧‧‧Interrupt module

16‧‧‧圖片轉換模組16‧‧‧Image Conversion Module

圖1係本發明手機圖片轉換系統較佳實施例之運行環境圖。1 is a diagram showing the operating environment of a preferred embodiment of the mobile phone picture conversion system of the present invention.

圖2係圖1中手機圖片轉換系統100的較佳實施例之功能模組圖。2 is a functional block diagram of a preferred embodiment of the mobile phone picture conversion system 100 of FIG.

圖3係本發明手機圖片轉換方法較佳實施例之作業流程圖。3 is a flow chart showing the operation of the preferred embodiment of the mobile phone picture conversion method of the present invention.

圖4係新增圖片轉換請求的較佳實施例之作業流程圖。Figure 4 is a flow diagram of the operation of a preferred embodiment of a new picture conversion request.

圖5係刪除圖片轉換請求的較佳實施例之作業流程圖。Figure 5 is a flow diagram of the operation of the preferred embodiment of deleting a picture conversion request.

如圖1所示,是本發明手機圖片轉換系統較佳實施例的運行環境圖。該手機圖片轉換系統100獨立運行於手機1的一個圖片轉換程序101中,該程序中只運行該手機圖片轉換系統100。該手機1中還包括,但不限於:功能表顯示程序102。該手機1中還運行有多個應用程式103,所述應用程式包括:通話、簡訊、媒體庫、背景圖片顯示等。所述多個應用程式103用於向手機圖片轉換系統100發送圖片轉換請求,該手機圖片轉換系統100提供了多個雙端佇列來存儲所述圖片轉換請求,每個雙端佇列的優先權不同。本較佳實施例中,該手機圖片轉換系統100提供了4個雙端佇列。因為各個應用程式103的優先權不同,則應用程式103所對應的圖片轉換請求的優先權也不同。按照圖片轉換請求的優先權不同,將同等優先權的圖片轉換請求排列到一個雙端佇列中。例如:通話來電顯示的圖片轉換請求的優先權高於當前編輯的相簿中的圖片轉換請求的優先權,則將所述兩個圖片轉換請求分別排列在兩個雙端佇列中。所述圖片轉換程序101中設置有多個中斷檢查點,所述檢查點用於設置中斷標誌。FIG. 1 is a diagram showing an operating environment of a preferred embodiment of the mobile phone picture conversion system of the present invention. The mobile phone picture conversion system 100 operates independently in a picture conversion program 101 of the mobile phone 1, in which only the mobile phone picture conversion system 100 is operated. The mobile phone 1 also includes, but is not limited to, a function table display program 102. The phone 1 also runs moreAn application 103, the application includes: a call, a newsletter, a media library, a background image display, and the like. The plurality of applications 103 are configured to send a picture conversion request to the mobile phone picture conversion system 100. The mobile phone picture conversion system 100 provides a plurality of double-ended queues to store the picture conversion request, and each double-ended queue is prioritized. The rights are different. In the preferred embodiment, the mobile phone picture conversion system 100 provides four double-ended queues. Since the priorities of the respective applications 103 are different, the priority of the picture conversion request corresponding to the application 103 is also different. The image conversion requests of the same priority are arranged in a double-ended queue according to the priority of the picture conversion request. For example, if the priority of the picture conversion request of the caller ID display is higher than the priority of the picture conversion request in the currently edited album, the two picture conversion requests are respectively arranged in two double-ended queues. A plurality of interrupt checkpoints are provided in the picture conversion program 101, and the checkpoints are used to set an interrupt flag.

如圖2所示,是圖1中手機圖片轉換系統100的較佳實施例的功能模組圖。所述模組是具有特定功能的軟體程式段,該軟體存儲於電腦可讀存儲介質或其他存儲設備,可被電腦或其他包含處理器的計算裝置執行,從而完成手機圖片轉換的系列流程。所述手機圖片轉換系統100包括:圖片轉換請求新增模組10、圖片轉換請求刪除模組12、中斷模組14及圖片轉換模組16。As shown in FIG. 2, it is a functional module diagram of a preferred embodiment of the mobile phone picture conversion system 100 of FIG. The module is a software program segment with a specific function, and the software is stored in a computer readable storage medium or other storage device, and can be executed by a computer or other computing device including a processor, thereby completing a series of processes for converting a mobile phone picture. The mobile phone picture conversion system 100 includes a picture conversion request adding module 10, a picture conversion request deleting module 12, an interrupt module 14 and a picture conversion module 16.

圖片轉換請求新增模組10用於接收多個應用程式103所發送的圖片轉換請求。根據所述圖片轉換請求所對應的應用程式103的優先權,選擇該圖片轉換請求需要插入的雙端佇列。The picture conversion request adding module 10 is configured to receive a picture conversion request sent by the plurality of applications 103. According to the priority of the application 103 corresponding to the picture conversion request, the double-ended queue that the picture conversion request needs to be inserted is selected.

該圖片轉換請求新增模組10判斷所選擇的雙端佇列是否已滿。當所選擇的雙端佇列已滿,刪除該雙端佇列隊頭的圖片轉換請求,並通知該被刪除的圖片轉換請求所對應的應用程式103。當所選擇的雙端佇列已滿,將所接收的圖片轉換請求插入隊尾,並對該新增的圖片轉換請求生成一個唯一序號ID,並將該ID回傳給新增圖片轉換請求所對應的應用程式103。The picture conversion request adding module 10 determines whether the selected double-ended queue is full. When the selected double-ended queue is full, the picture conversion request of the double-ended queue header is deleted, and the application 103 corresponding to the deleted picture conversion request is notified. When selectedThe selected double-ended queue is full, the received image conversion request is inserted into the tail of the queue, and a unique serial number ID is generated for the newly added image conversion request, and the ID is transmitted back to the corresponding new image conversion request. Application 103.

該圖片轉換請求新增模組10還用於判斷當前是否有圖片轉換請求正在被所述圖片轉換模組16執行。若當前有圖片轉換請求正在被執行,則判斷新增的圖片轉換請求的優先權是否高於當前正在執行的圖片轉換請求。The picture conversion request adding module 10 is further configured to determine whether a picture conversion request is currently being executed by the picture conversion module 16. If there is currently a picture conversion request being executed, it is determined whether the priority of the newly added picture conversion request is higher than the picture conversion request currently being executed.

中斷模組14用於當所新增的圖片轉換請求的優先權高於當前正在執行的圖片轉換請求時,中斷當前正在執行的圖片轉換工作,並在該被中斷的圖片轉換工作中的檢查點處設置中斷標誌,並在該圖片轉換請求中記錄該中斷動作的原因。該中斷模組14將該中斷的圖片轉換請求根據其優先權重新插入到對應的雙端佇列中。同時,該中斷模組14通知圖片轉換模組16執行新增的圖片轉換請求。The interrupt module 14 is configured to interrupt the currently-executed image conversion work when the priority of the newly added picture conversion request is higher than the currently-executed picture conversion request, and check points in the interrupted picture conversion work. The interrupt flag is set, and the reason for the interrupt action is recorded in the picture conversion request. The interrupt module 14 reinserts the interrupted picture conversion request into the corresponding double-ended queue according to its priority. At the same time, the interrupt module 14 notifies the picture conversion module 16 to perform a new picture conversion request.

所述圖片轉換模組16用於依次從最高優先權的雙端佇列的隊尾取出圖片轉換請求,對該圖片轉換請求進行圖片轉換操作。在執行所述圖片轉換操作過程中,判斷檢查點是否有中斷標誌。若檢查點有中斷標誌,清除中斷標誌,繼續執行該圖片轉換請求。若檢查點沒有中斷標誌,繼續執行該圖片轉換請求。當執行完該圖片轉換請求後,將該執行結果回傳給該圖片轉換請求所對應的應用程式103。該圖片轉換模組16判斷所有雙端佇列中是否還存在未執行的圖片轉換請求。若至少一個雙端佇列中還存在未執行的圖片轉換請求,繼續從該雙端佇列的隊尾取出圖片轉換請求來執行。The picture conversion module 16 is configured to sequentially take out a picture conversion request from the tail of the highest priority double-ended queue, and perform a picture conversion operation on the picture conversion request. During the execution of the picture conversion operation, it is determined whether the checkpoint has an interrupt flag. If the checkpoint has an interrupt flag, the interrupt flag is cleared and the image conversion request is continued. If the checkpoint does not have an interrupt flag, continue with the image conversion request. After the image conversion request is executed, the execution result is returned to the application 103 corresponding to the image conversion request. The picture conversion module 16 determines whether there are still unexecuted picture conversion requests in all the double-ended queues. If there is still an unexecuted image conversion request in at least one of the double-ended queues, the image conversion request is continued to be executed from the tail of the double-ended queue.

圖片轉換請求刪除模組12用於接收應用程式103發送的要刪除的圖片轉換請求的ID。所述圖片轉換請求刪除模組12判斷正在執行的圖片轉換請求的ID是否與所要刪除的圖片轉換請求的ID相同。若不相同,該圖片轉換請求刪除模組12在所有雙端佇列中搜索,查看是否存在所述ID對應的圖片轉換請求。若存在一個雙端佇列中有所述圖片轉換請求,記錄該圖片轉換請求,等到該圖片轉換請求到達該雙端佇列的隊尾時,刪除該圖片轉換請求。若相同,中斷模組14中斷當前執行的圖片轉換請求,並將中斷結果及原因回傳給該圖片轉換請求所對應的應用程式103。The picture conversion request deletion module 12 is configured to receive the ID of the picture conversion request to be deleted sent by the application 103. The picture conversion request deletion module 12 determines whether the ID of the picture conversion request being executed is the same as the ID of the picture conversion request to be deleted. If not the same, the picture conversion request deletion module 12 searches through all the double-ended queues to check whether there is a picture conversion request corresponding to the ID. If there is a picture conversion request in a double-ended queue, the picture conversion request is recorded, and when the picture conversion request reaches the tail of the double-ended queue, the picture conversion request is deleted. If the same, the interrupt module 14 interrupts the currently executed picture conversion request, and returns the interrupt result and the reason to the application 103 corresponding to the picture conversion request.

如圖3所示,是本發明手機圖片轉換方法較佳實施例的作業流程圖。As shown in FIG. 3, it is a flowchart of the operation of the preferred embodiment of the mobile phone picture conversion method of the present invention.

步驟S30,圖片轉換模組16按照雙端佇列優先權的高低順序從當前最高優先權的雙端佇列的隊尾中取出圖片轉換請求。In step S30, the picture conversion module 16 fetches the picture conversion request from the tail of the current highest priority double-ended queue according to the order of the double-ended queue priority.

步驟S32,在執行所述取出的圖片轉換請求的同時,圖片轉換請求新增模組10判斷是否有新的圖片轉換請求進入雙端佇列。若存在新的圖片轉換請求進入雙端佇列,進入步驟S34;若沒有新的圖片轉換請求進入雙端佇列,進入步驟S40。Step S32, while executing the fetched picture conversion request, the picture conversion request adding module 10 determines whether a new picture conversion request enters the double-ended queue. If there is a new picture conversion request to enter the double-ended queue, go to step S34; if there is no new picture conversion request to enter the double-ended queue, go to step S40.

步驟S34,所述圖片轉換請求新增模組10判斷該新增的圖片轉換請求的優先權是否高於當前正在執行的圖片轉換請求的優先權。若新增的圖片轉換請求的優先權高於當前正在執行的圖片轉換請求,進入步驟S36;若所新增的圖片轉換請求的優先權低於或等於當前正在執行的圖片轉換請求,進入步驟S44。Step S34, the picture conversion request adding module 10 determines whether the priority of the newly added picture conversion request is higher than the priority of the picture conversion request currently being executed. If the priority of the newly added picture conversion request is higher than the picture conversion request currently being executed, the process proceeds to step S36; if the priority of the newly added picture conversion request is lower than or equal to the picture conversion request currently being executed, the process proceeds to step S44. .

步驟S36,所述中斷模組14在檢查點設置中斷標誌及記錄中斷原因,中斷當前執行的圖片轉換請求,並將該中斷的圖片轉換請求按照其優先權重新插入到對應的雙端佇列的隊尾。Step S36, the interrupt module 14 sets an interrupt flag and records the interruption at the checkpoint.Therefore, the currently executed picture conversion request is interrupted, and the interrupted picture conversion request is re-inserted to the end of the corresponding double-ended queue according to its priority.

步驟S38,圖片轉換模組16執行所述新增的圖片轉換請求。進入步驟S50。In step S38, the picture conversion module 16 executes the newly added picture conversion request. Go to step S50.

步驟S40,圖片轉換請求刪除模組12判斷是否存在有應用程式103發送的刪除圖片轉換請求。若不存在,進入步驟S44;若存在,進入步驟S42。In step S40, the picture conversion request deletion module 12 determines whether there is a deletion picture conversion request sent by the application 103. If not, proceed to step S44; if yes, proceed to step S42.

步驟S42,所述圖片轉換請求刪除模組12刪除應用程式103所要刪除的圖片轉換請求。In step S42, the picture conversion request deletion module 12 deletes the picture conversion request to be deleted by the application 103.

步驟S44,繼續執行當前執行的圖片轉換請求。Step S44, continuing to execute the currently executed picture conversion request.

步驟S46,圖片轉換模組16判斷當前執行的圖片轉換請求工作中檢查點是否有中斷標誌。若檢查點存在中斷標誌,進入步驟S48;若檢查點不存在中斷標誌,則將該圖片轉換請求執行完成後,進入步驟S50。In step S46, the picture conversion module 16 determines whether the check point in the currently executed picture conversion request operation has an interrupt flag. If there is an interrupt flag at the checkpoint, the process proceeds to step S48; if the checkpoint does not exist, the image conversion request is executed, and the process proceeds to step S50.

步驟S48,圖片轉換模組16清除檢查點的中斷標誌,繼續完成該圖片轉換請求。In step S48, the picture conversion module 16 clears the interrupt flag of the checkpoint and continues to complete the picture conversion request.

步驟S50,該圖片轉換模組16判斷所有雙端佇列中是否還存在未執行的圖片轉換請求。若至少一個雙端佇列中還存在未執行的圖片轉換請求,轉至步驟S30。若所有雙端佇列中都不存在有未執行的圖片轉換請求,結束流程。In step S50, the picture conversion module 16 determines whether there is still an unexecuted picture conversion request in all the double-ended queues. If there is still an unexecuted picture conversion request in at least one of the double-ended queues, the process goes to step S30. If there are no unexecuted image conversion requests in all the double-ended queues, the process ends.

如圖4所示,是新增圖片轉換請求的較佳實施例的作業流程圖。As shown in FIG. 4, it is a job flow diagram of a preferred embodiment of a new picture conversion request.

步驟S320,根據所接收的新增圖片轉換請求的優先權選擇相應的雙端佇列。Step S320, selecting corresponding according to the priority of the received new picture conversion requestDouble-ended queue.

步驟S321,判斷所選擇的雙端佇列是否已滿。若所述雙端佇列已滿,進入步驟S322;若所述雙端佇列沒滿,進入步驟S323。In step S321, it is judged whether the selected double-ended queue is full. If the double-ended queue is full, the process goes to step S322; if the double-ended queue is not full, the process goes to step S323.

步驟S322,從該雙端佇列的隊頭刪除一個圖片轉換請求,進入步驟S323。Step S322, deleting a picture conversion request from the head of the double-ended queue, and proceeding to step S323.

步驟S323,將所述新增的圖片轉換請求插入該選擇的雙端佇列。Step S323, inserting the newly added picture conversion request into the selected double-ended queue.

步驟S324,生成一個唯一序號ID給該入隊的圖片轉換請求,並將該ID回傳給該圖片轉換請求對應的應用程式103。Step S324, generating a unique serial number ID for the image conversion request of the enqueue, and transmitting the ID back to the application 103 corresponding to the image conversion request.

步驟S325,判斷所新增的圖片轉換請求的優先權是否高於當前正在執行的圖片轉換請求的優先權。若所接收的圖片轉換請求的優先權高於當前正在執行的圖片轉換請求的優先權,則進入步驟S326。若所接收的圖片轉換請求的優先權低於或等於當前正在執行的圖片轉換請求的優先權,結束流程。Step S325, determining whether the priority of the newly added picture conversion request is higher than the priority of the picture conversion request currently being executed. If the priority of the received picture conversion request is higher than the priority of the picture conversion request currently being executed, then step S326 is reached. If the priority of the received picture conversion request is lower than or equal to the priority of the picture conversion request currently being executed, the process ends.

步驟S326,通知圖片轉換模組16轉換新增的圖片轉換請求,結束流程。Step S326, the notification picture conversion module 16 converts the newly added picture conversion request, and ends the process.

如圖5所示,是刪除圖片轉換請求的較佳實施例的作業流程圖。As shown in FIG. 5, it is a job flow diagram of a preferred embodiment for deleting a picture conversion request.

步驟S500,應用程式103發送要刪除的圖片轉換請求的ID。In step S500, the application 103 transmits the ID of the picture conversion request to be deleted.

步驟S502,所述圖片轉換請求刪除模組12判斷正在執行的圖片轉換請求的ID是否與所要刪除的圖片轉換請求的ID相同。若相同,進入步驟S504;若不相同,進入步驟S506。Step S502, the picture conversion request deletion module 12 determines whether the ID of the picture conversion request being executed is the same as the ID of the picture conversion request to be deleted. If it is the same, the process goes to step S504; if not, the process goes to step S506.

步驟S504,中斷模組14中斷當前正在執行的圖片轉換請求,並將該中斷結果及中斷原因回傳給該圖片轉換請求所對應的應用程式103,通知圖片轉換請求模組16從該雙端佇列的隊尾中取出其他圖片轉換請求來執行,結束流程。Step S504, the interrupt module 14 interrupts the currently executing image conversion request, and returns the interrupt result and the interrupt reason to the application corresponding to the image conversion request.103. The notification picture conversion request module 16 takes out another picture conversion request from the tail of the double-ended queue to execute, and ends the process.

步驟S506,圖片轉換請求刪除模組12在所有雙端佇列中搜索,找到該ID所對應的圖片轉換請求,記錄該圖片轉換請求,等到該圖片轉換請求到達雙端佇列的隊尾時,刪除該圖片轉換請求。Step S506, the picture conversion request deletion module 12 searches in all the double-ended queues, finds the picture conversion request corresponding to the ID, records the picture conversion request, and waits until the picture conversion request reaches the tail end of the double-ended queue. Delete the image conversion request.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered by the following patent application.

100‧‧‧圖片轉換系統100‧‧‧ Picture Conversion System

10‧‧‧圖片轉換請求新增模組10‧‧‧Image conversion request new module

12‧‧‧圖片轉換請求刪除模組12‧‧‧Image Conversion Request Removal Module

14‧‧‧中斷模組14‧‧‧Interrupt module

16‧‧‧圖片轉換模組16‧‧‧Image Conversion Module

Claims (9)

Translated fromChinese
一種手機圖片轉換系統,該手機上運行有多個應用程式,該系統獨立運行於手機的一個圖片轉換程序上,該圖片轉換程序設置有至少一個檢查點,該系統包括多個優先權不同的雙端佇列,以存儲不同優先權對應的圖片轉換請求,該系統還包括:圖片轉換請求新增模組,用於接收應用程式所發送的圖片轉換請求,根據其優先權選擇雙端佇列,並將該圖片轉換請求插入該雙端佇列尾端;圖片轉換模組,用於按照雙端佇列優先權的高低順序從當前最高優先權的雙端佇列的尾端取出圖片轉換請求來執行;中斷模組,用於當新增的圖片轉換請求的優先權高於當前執行的圖片轉換請求的優先權時,於檢查點設置中斷標誌並記錄中斷原因,中斷當前執行的圖片轉換請求,並將該中斷的圖片轉換請求根據其優先權重新插入至對應的雙端佇列的尾端,或者當該新增的圖片轉換請求的優先權低於當前執行的圖片轉換請求時,繼續執行當前的圖片轉換請求;及圖片轉換請求刪除模組,用於當有正在執行的圖片轉換請求時,若接收到要刪除雙端佇列中的圖片轉換請求,記錄所要刪除雙端佇列中的圖片轉換請求,等到所要刪除雙端佇列中的圖片轉換請求到達雙端佇列的尾端時,刪除所要刪除雙端佇列中的圖片轉換請求。A mobile phone picture conversion system, the mobile phone running a plurality of applications, the system independently running on a picture conversion program of the mobile phone, the picture conversion program is provided with at least one checkpoint, the system includes multiple pairs of different priorities The terminal queue is configured to store image conversion requests corresponding to different priorities, and the system further includes: a picture conversion request adding module, configured to receive a picture conversion request sent by the application, and select a double-ended queue according to the priority thereof. And inserting the image conversion request into the end of the double-ended queue; the image conversion module is configured to take the image conversion request from the tail end of the current highest priority double-ended queue according to the order of the double-ended queue priority The interrupt module is configured to set an interrupt flag at the checkpoint and record the interrupt cause, and interrupt the currently executed image conversion request when the priority of the newly added image conversion request is higher than the priority of the currently executed image conversion request. And re-inserting the interrupted picture conversion request according to its priority to the end of the corresponding double-ended queue, or when the new When the priority of the slice conversion request is lower than the currently executed image conversion request, the current image conversion request is continued; and the image conversion request deletion module is used to receive the image conversion request when the image conversion request is being executed. The image conversion request in the end column, the image conversion request in the double-ended column is deleted, and when the image conversion request in the double-ended column is to be deleted to the end of the double-ended column, the double-end is deleted. Image conversion request in the column.如申請專利範圍第1項所述之手機圖片轉換系統,所述圖片轉換模組還用於判斷當前執行圖片轉換請求的圖片轉換程序的檢查點處是否設有中斷標誌,若所述檢查點處設置有中斷標誌,清除該中斷標誌,完成該圖片轉換請求工作。The mobile phone picture conversion system of claim 1, wherein the picture conversion module is further configured to determine whether an interruption flag is provided at a checkpoint of a picture conversion program that currently performs a picture conversion request, if the check point is An interrupt flag is set, the interrupt flag is cleared, and the image conversion request operation is completed.如申請專利範圍第1項所述之手機圖片轉換系統,所述圖片轉換請求新增模組還用於判斷所選擇的雙端佇列是否已滿,若該雙端佇列已滿,刪除該雙端佇列頭部的圖片轉換請求,將該新增的圖片轉換請求插入到該雙端佇列的尾端,生成一個ID給新增的圖片轉換請求,並將該ID傳送給該圖片轉換請求所對應的應用程式。The mobile phone picture conversion system according to claim 1, wherein the picture conversion request is newly added.The module is further configured to determine whether the selected double-ended queue is full, and if the double-ended queue is full, delete the image conversion request of the double-ended queue header, and insert the new image conversion request into the At the end of the double-ended queue, an ID is generated for the new image conversion request, and the ID is transmitted to the application corresponding to the image conversion request.如申請專利範圍第1項所述之手機圖片轉換系統,所述中斷模組還用於若所述應用程式需要刪除的圖片轉換請求為正在執行的圖片轉換請求時,中斷當前執行的圖片轉換請求,並將該中斷結果及中斷原因回傳給該應用程式。The mobile phone picture conversion system of claim 1, wherein the interruption module is further configured to interrupt the currently executed picture conversion request if the image conversion request that the application needs to delete is a picture conversion request being executed. And return the interrupt result and the cause of the interrupt back to the application.如申請專利範圍第1項所述之手機圖片轉換系統,所述圖片轉換模組還用於判斷所有雙端佇列中是否還存在未執行的圖片轉換請求,若存在,則從雙端佇列的尾端取出該圖片轉換請求,並執行該圖片轉換請求。The mobile phone picture conversion system of claim 1, wherein the picture conversion module is further configured to determine whether there is still an unexecuted image conversion request in all the double-ended queues, and if present, from the double-ended array The end of the picture is taken out of the picture conversion request and the picture conversion request is executed.一種手機圖片轉換方法,該方法包括如下步驟:(A)於手機的圖片轉換程序設置檢查點;(B)提供多個優先權不同的雙端佇列以存放對應優先權的圖片轉換請求;(C)按照雙端佇列優先權的高低順序,依次從當前最高優先權的雙端佇列尾端取出一個圖片轉換請求並執行該圖片轉換請求;(D)在執行該圖片轉換請求時,當雙端佇列中新增圖片轉換請求且該新增的圖片轉換請求的優先權高於當前執行的圖片轉換請求時,中斷當前的圖片轉換請求,於檢查點處設置中斷標誌並記錄中斷原因,將該中斷的圖片轉換請求按照其優先權重新插入到對應的雙端佇列的尾端,並執行該新增的圖片轉換請求,當該新增的圖片轉換請求的優先權低於當前執行的圖片轉換請求時,繼續執行當前的圖片轉換請求;(E)當有正在執行的圖片轉換請求時,若接收到要刪除雙端佇列中的圖片轉換請求,記錄所要刪除雙端佇列中的圖片轉換請求,等到所要刪除雙端佇列中的圖片轉換請求到達雙端佇列的尾端時,刪除所要刪除雙端佇列中的圖片轉換請求;及(F)重複步驟(C)至(E),直到每個雙端佇列中的圖片轉換請求都執行完畢。A mobile phone picture conversion method, the method comprising the following steps: (A) setting a checkpoint in a picture conversion program of the mobile phone; (B) providing a plurality of double-ended queues having different priorities to store a picture conversion request corresponding to the priority; C) according to the order of the priority of the double-ended queue, sequentially taking an image conversion request from the tail of the current highest priority double-ended queue and executing the image conversion request; (D) when performing the image conversion request, when When a new image conversion request is added in the double-ended queue and the priority of the newly added image conversion request is higher than the currently executed image conversion request, the current image conversion request is interrupted, an interrupt flag is set at the checkpoint, and the cause of the interruption is recorded. The interrupted picture conversion request is re-inserted to the end of the corresponding double-ended queue according to its priority, and the new picture conversion request is executed, when the priority of the newly added picture conversion request is lower than the currently executed When the image conversion request is made, the current image conversion request is continued; (E) when there is an image conversion request being executed, if the image in the double-ended queue is to be deleted Change request record to be deleted image switching request in the double-ended queue, wait to be deletedWhen the image conversion request in the double-ended queue reaches the end of the double-ended queue, delete the picture conversion request in the double-ended column to be deleted; and (F) repeat steps (C) to (E) until each double The image conversion request in the end column is executed.如申請專利範圍第6項所述之手機圖片轉換方法,在步驟(C)之後還包括:判斷當前執行圖片轉換請求的圖片轉換程序的檢查點處是否設有中斷標誌;及若所述檢查點處設置有中斷標誌,清除該中斷標誌,完成該圖片轉換請求。The mobile phone picture conversion method according to claim 6, wherein after the step (C), the method further comprises: determining whether an interruption flag is provided at a checkpoint of the picture conversion program currently executing the picture conversion request; and if the check point is An interrupt flag is set, the interrupt flag is cleared, and the image conversion request is completed.如申請專利範圍第6項所述之手機圖片轉換方法,該方法還包括:在執行圖片轉換請求時,若應用程式發送新的圖片轉換請求,根據該新增的圖片轉換請求的優先權選擇對應的雙端佇列;判斷所選擇的雙端佇列是否已滿;若該雙端佇列已滿,刪除該雙端佇列頭部的圖片轉換請求,並將該新增的圖片轉換請求插入到該雙端佇列的尾端;若該雙端佇列沒有滿,則直接將該新增的圖片轉換請求插入到該雙端佇列的尾端;及生成一個ID給新增的圖片轉換請求,並將該ID傳送給該圖片轉換請求所對應的應用程式。The method for converting a mobile phone picture according to claim 6, wherein the method further comprises: when the image conversion request is executed, if the application sends a new picture conversion request, the priority is selected according to the priority of the newly added picture conversion request. Double-ended queue; determine whether the selected double-ended queue is full; if the double-ended queue is full, delete the image conversion request of the double-ended header and insert the new image conversion request To the end of the double-ended queue; if the double-ended queue is not full, the new image conversion request is directly inserted into the end of the double-ended queue; and an ID is generated for the new image conversion Request and pass the ID to the application corresponding to the image conversion request.如申請專利範圍第6項所述之手機圖片轉換方法,所述步驟(E)還包括:若所述應用程式需要刪除的圖片轉換請求為正在執行的圖片轉換請求時,中斷當前執行的圖片轉換請求,並將該中斷結果及中斷原因回傳給該應用程式。The mobile phone picture conversion method according to claim 6, wherein the step (E) further comprises: interrupting the currently executed picture conversion if the image conversion request that the application needs to delete is a picture conversion request being executed; Request and pass back the interrupt result and the reason for the interruption to the application.
TW097135082A2008-09-122008-09-12System and method for converting pictures of mobile phoneTWI486048B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
TW097135082ATWI486048B (en)2008-09-122008-09-12System and method for converting pictures of mobile phone

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
TW097135082ATWI486048B (en)2008-09-122008-09-12System and method for converting pictures of mobile phone

Publications (2)

Publication NumberPublication Date
TW201012168A TW201012168A (en)2010-03-16
TWI486048Btrue TWI486048B (en)2015-05-21

Family

ID=44828885

Family Applications (1)

Application NumberTitlePriority DateFiling Date
TW097135082ATWI486048B (en)2008-09-122008-09-12System and method for converting pictures of mobile phone

Country Status (1)

CountryLink
TW (1)TWI486048B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP0384635B1 (en)*1989-02-241997-08-13AT&T Corp.Adaptive job scheduling for multiprocessing systems
TW364085B (en)*1997-05-091999-07-11IbmPCI host bridge multi-priority fairness arbiter
US6065088A (en)*1998-08-312000-05-16International Business Machines CorporationSystem and method for interrupt command queuing and ordering
US6742091B2 (en)*1999-06-102004-05-25Nokia CorporationMethod of implementing a double-ended queue in a memory and memory arrangement
US6845371B1 (en)*1999-09-222005-01-18Lg Electronics Inc.Multimedia data structure reflecting change of user relevance feedback and method of determining weights of image features of multimedia data
TW200602981A (en)*2004-03-312006-01-16Ignios LtdResource management in a multicore architecture
TW200813819A (en)*2006-06-192008-03-16Diskeeper CorpComputer micro-jobs

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP0384635B1 (en)*1989-02-241997-08-13AT&T Corp.Adaptive job scheduling for multiprocessing systems
TW364085B (en)*1997-05-091999-07-11IbmPCI host bridge multi-priority fairness arbiter
US6065088A (en)*1998-08-312000-05-16International Business Machines CorporationSystem and method for interrupt command queuing and ordering
US6742091B2 (en)*1999-06-102004-05-25Nokia CorporationMethod of implementing a double-ended queue in a memory and memory arrangement
US6845371B1 (en)*1999-09-222005-01-18Lg Electronics Inc.Multimedia data structure reflecting change of user relevance feedback and method of determining weights of image features of multimedia data
TW200602981A (en)*2004-03-312006-01-16Ignios LtdResource management in a multicore architecture
TW200813819A (en)*2006-06-192008-03-16Diskeeper CorpComputer micro-jobs

Also Published As

Publication numberPublication date
TW201012168A (en)2010-03-16

Similar Documents

PublicationPublication DateTitle
JP4818278B2 (en) Application linkage method and system
US20180285053A1 (en)Screenshot method and apparatus
JP5259714B2 (en) Execution order determination apparatus, execution order determination program, execution order determination circuit, and information processing apparatus
CN104679598B (en)System and method for selecting either synchronously or asynchronously inter-process communication mechanisms
CN103106109A (en) Mobile device and method for running two platform systems or application programs thereon
CN115269196A (en)Thread pool dynamic creation method, device, equipment and storage medium
CN110096521A (en)Log information processing method and device
CN114816408A (en) Information processing method and device
TWI486048B (en)System and method for converting pictures of mobile phone
JP2012065284A (en)Network scanner, information processor, and network scanning system
CN111625350A (en)Memory allocation method, device, equipment and storage medium for network message data
US20110022995A1 (en)Circuit design information generating equipment, function execution system, and memory medium storing program
CN117271092A (en)Thread scheduling method, device, electronic equipment and storage medium
CN110096378A (en)Inter-thread communication method and related device
WO2018201993A1 (en)Image drawing method, terminal and storage medium
CN112181596A (en)Virtual machine cloning method, device, equipment and storage medium
JP2010146055A (en)Image processing apparatus, method and program
CN101662300A (en)System and method for converting picture of mobile telephone
CN115658351B (en) 2D copying method, device, electronic device and computer-readable storage medium
CN115982060B (en)Memory recycling method and related device
JP2009053829A (en) Information processing apparatus and information processing program
JP2019149164A (en)Workflow management mechanism
JP7151514B2 (en) Simulation system, information processing device, program and simulation method
JP7327076B2 (en) Information processing device, information processing method, and program
JP5223653B2 (en) Information processing apparatus, information processing method, and information processing program

Legal Events

DateCodeTitleDescription
MM4AAnnulment or lapse of patent due to non-payment of fees

[8]ページ先頭

©2009-2025 Movatter.jp