TWI280486B - Method for processing a data stream by utilizing multi-processor - Google Patents

Method for processing a data stream by utilizing multi-processor Download PDF

Info

Publication number
TWI280486B
TWI280486B TW94116925A TW94116925A TWI280486B TW I280486 B TWI280486 B TW I280486B TW 94116925 A TW94116925 A TW 94116925A TW 94116925 A TW94116925 A TW 94116925A TW I280486 B TWI280486 B TW I280486B
Authority
TW
Taiwan
Prior art keywords
compression
processor
compressed
data stream
section
Prior art date
Application number
TW94116925A
Other languages
Chinese (zh)
Other versions
TW200641632A (en
Inventor
Po-Cheng Wu
Li-Wei Lu
Chung-Cheng Chen
Original Assignee
Intervideo Digital Technology
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 Intervideo Digital Technology filed Critical Intervideo Digital Technology
Priority to TW94116925A priority Critical patent/TWI280486B/en
Publication of TW200641632A publication Critical patent/TW200641632A/en
Application granted granted Critical
Publication of TWI280486B publication Critical patent/TWI280486B/en

Links

Abstract

The present invention discloses a method for processing a data stream by utilizing plural processors, including the central processing unit and the compression processor of at least one MPEG card. With the similar concept of the distributed system, the present invention could make best use of each processor in the computer and therefore greatly reduce the rendering time. The steps of the method comprises: dividing the data stream into plural segments; checking states of a central processing unit and at least one compressing processor; dispatching the segments to either the central processing unit or the compressing processor according to the statuses, wherein the central processing unit or the compressing processor would process the segments to generate compressed segments; and cascading the compressed segments to generate a compressed data stream.

Description

1280486 五、,發明說明(1) 【發明所屬之技術領域】 本發明係關於一種利用多個處理器來處理資料流之方法, 特別是關於一種利用中央處理器以及壓縮處理器來壓縮資 料流之方法。 【先前技術】 隨著資訊科技之進步與發展,越來越多關於影像、聲音或 視訊内容之捕捉的應用乃--問世。其中一個普遍之應用 為當使用者於蒐集多媒體資料或檔案之後,可利用電腦内 #種編輯程式來處理這些影像或聲音/視訊檔案。例如, 使用者可藉由剪輯、合併、轉碼或增加視覺/聽覺特效來 使上述之影像或聲音/視訊檔案具有各種欲得之效果。 就一般個人電腦之處理能力而言,多媒體資料之處理確實 相當耗時,尤其是壓縮以及解壓縮。因此,某些使用者便 於電腦之擴充槽(例如PC I插槽或者USB埠)上額外安裝一 個或以上之壓縮卡,以協助壓縮與解壓縮之工作。上述壓 縮卡通常具有一個處理器或者單一功能之晶片,用以將資 料壓縮並且/或解壓縮為特定之格式,例如MPEG-1 (Motion Picture Experts Group ;動態影像壓縮標準 _、MPEG-2或者MPEG-4等。由於此類壓縮卡係針對特定之 功能所設計,亦即壓縮與解壓縮,所以其處理速度相對而 言乃高於未安裝此類壓縮卡之電腦。1280486 V. Technical Description of the Invention The present invention relates to a method for processing a data stream by using a plurality of processors, and more particularly to a method for compressing a data stream by using a central processing unit and a compression processor. method. [Prior Art] With the advancement and development of information technology, more and more applications for the capture of video, sound or video content are available. One of the most common applications is that when users collect multimedia materials or files, they can use the editing program on the computer to process these images or audio/video files. For example, the user can make the above-mentioned image or sound/video file have various effects by editing, merging, transcoding or adding visual/audio effects. In terms of the processing power of a typical personal computer, the processing of multimedia data is indeed quite time consuming, especially compression and decompression. Therefore, some users may install one or more additional compression cards on the expansion slot of the computer (such as PC I slot or USB port) to assist with compression and decompression. The above compression card typically has a processor or a single function chip for compressing and/or decompressing data into a specific format, such as MPEG-1 (Motion Picture Experts Group; Motion Picture Compression Standard_, MPEG-2 or MPEG). -4, etc. Since such compression cards are designed for specific functions, ie compression and decompression, their processing speed is relatively higher than that of computers without such compression cards.

然而,來源資料與目標資料之種類相當繁多,而壓縮卡所 支援之來源或壓縮種類卻相當有限。舉例來說,某一 MPEGHowever, the types of source and target data are quite numerous, and the source or compression type supported by the compression card is quite limited. For example, some MPEG

1280486 ,五、.發明說明(2) 卡僅能將資料流壓縮為MPEG-2或者MPEG-1格式之檔案,另 一方面,某些壓縮卡僅能支援特定種類之來源,例如由數 位攝影機(DV)所補捉之資料。假使使用者欲編輯各種壓 縮種類或者來自各種資料來源之MPEG檔案,其建構 (render i ng)之工作將僅能單獨由電腦之中央處理器來 執行。如此一來,壓縮卡將因上述限制而缺乏實值效益。 再者,習知之方法僅允許使用者由多個處理器中選擇一個 來執行多媒體資料流,而無法整合數個處理器來執行繁重 之壓縮與解壓縮的工作。至於被選擇之處理器,例如中央 #理器,將時時處於滿載之狀態,並且忙於處理分派之任 務,而其他之處理器,像是MPEG卡上之處理器,卻一直處 於閒置之狀態,實為一種資源之浪費。 因此,需要一種更為有效率之方法來利用中央處理器以及 壓縮卡以處理資料流。 【發明内容】 鑒於上述問題,本發明在此提供一種利用多個安裝於電腦 内之處理器來處理資料流的方法,藉由此方法,使用者可 充分利用每一個可用之處理器來執行壓縮/解壓縮之工 _,因而能夠藉由最佳化地配置每一個處理器之處理能力 來降低處理之時間。 本發明之目的在於提供一種利用多個處理器來處理資料流 的方法,首先將資料流分為數個區段,並確認中央處理器 以及至少一個壓縮處理器之狀態。隨後,根據確認而得之1280486, V. Invention Description (2) The card can only compress the data stream into MPEG-2 or MPEG-1 format files. On the other hand, some compression cards can only support certain kinds of sources, such as digital cameras ( DV) The information captured. If the user wants to edit various types of compression or MPEG files from various sources, the construction of the render will only be performed by the central processing unit of the computer. As a result, the compression card will lack real-value benefits due to the above limitations. Moreover, the conventional method only allows the user to select one of a plurality of processors to execute the multimedia stream, and cannot integrate several processors to perform heavy compression and decompression. As for the selected processor, such as the central processor, it will be in a state of full load and busy with the task of dispatching, while other processors, such as processors on the MPEG card, are always idle. It is a waste of resources. Therefore, there is a need for a more efficient way to utilize the central processing unit and the compression card to process the data stream. SUMMARY OF THE INVENTION In view of the above problems, the present invention provides a method for processing a data stream by using a plurality of processors installed in a computer, by which a user can fully utilize each available processor to perform compression. / Decompression work, thus reducing the processing time by optimally configuring the processing power of each processor. It is an object of the present invention to provide a method of processing a data stream using a plurality of processors, first dividing the data stream into segments and confirming the state of the central processor and at least one of the compression processors. Subsequently, based on confirmation

1280486 ,五、發明說明(3) 狀態來將這些區段分派予中央處理器或壓縮處理器兩者之 一,且中央處理器或壓縮處理器將依上述之分派來處理經 分派而得之區段來產生壓縮過後之區段。最後,將這些壓 维過後之區段合併,以產生壓縮過後之資料流。 本發明之另一目的在於提供一種具有可執行指令之儲存媒 體,此儲存媒體包含數個功能模組,用以透過執行下列步 驟以利用多個處理器來處理資料流:將資料流分為數個區 段;確認中央處理器以及至少一個壓縮處理器之狀態;根 據此一狀態將區段分派予中央處理器或者壓縮處理器兩者 g —,其中此中央處理器或壓縮處理器將依上述之分派來 處理所分派之區段來產生壓縮過後之區段;以及合併上述 壓縮過後之區段以產生壓縮過後之資料流。 【實施方式】 本發明將配合其較佳實施例與隨附之圖示詳述於下,應理 解者為本發明中所有之較佳實施例僅為例示之用,因此除 文中之較佳實施例外,本發明亦可廣泛地應用在其他實施 例中。且本發明並不受限於任何實施例,應以隨附之申請 專利範圍及其同等領域而定。 _照圖一,其中呈現資料流來源的一個實施例,其中結果 帶1 3係代表本實施例中之資料流。使用者可藉由某種編輯 應用程式來產生此一資料流,並將其壓縮為特定之格式, 例如MPEG- 1等。根據圖一所呈現之實施例,資料流係以結 合三個視訊檔案所形成,分別為視訊A、視訊B以及視訊1280486, V. Description of the invention (3) state to assign these segments to either the central processor or the compression processor, and the central processor or compression processor will process the dispatched regions according to the above dispatch The segment produces a compressed segment. Finally, the segments after these pressures are merged to produce a compressed data stream. Another object of the present invention is to provide a storage medium having executable instructions, the storage medium comprising a plurality of function modules for processing data streams by using a plurality of processors by dividing the data stream into a plurality of data streams. a segment; confirming a state of the central processor and the at least one compression processor; assigning a segment to the central processor or the compression processor according to the state, wherein the central processor or the compression processor is Dispatched to process the dispatched section to produce a compressed section; and merge the above-described compressed section to produce a compressed data stream. The present invention will be described in detail with reference to the preferred embodiments and the accompanying drawings, and it is understood that the preferred embodiments of the present invention are merely illustrative, and therefore preferred embodiments Exceptionally, the invention may also be applied broadly to other embodiments. The invention is not limited to any embodiment, but should be determined by the scope of the appended claims and its equivalents. In the first embodiment, an embodiment of the source of the data stream is presented, wherein the result band 13 represents the data stream in the present embodiment. The user can generate this data stream by some sort of editing application and compress it into a specific format, such as MPEG-1. According to the embodiment presented in Figure 1, the data stream is formed by combining three video files, namely video A, video B and video.

1280486 ,五、.發明說明(4) C’並且於重豐之部分添力口轉場效果(transition effec· )。應可理解者為檔案之種類並不侷限於視訊資料,亦可 包含聲音、影像、文字或其他可能之多媒體資料,而視訊 檔案1 0至1 2在此僅作為本發明之範例。 此外’視訊檔案1 0至1 2之來源與種類乃各式各樣,於本發 明的一個實施例中,視訊A係由數位攝影機攝影機(DV) 所捕捉’視訊B則來自DVD (數位視訊光碟),而視訊c則 為儲存於電腦之硬碟内的MPEG- 1檔案。如圖所示,視訊a 1 0以及視訊C 1 2部分重疊,並且其重疊之區域1 〇 1與1 〇 2 •併為Seg-3)將添加某種轉場效果。同樣地,視訊c 12 與視訊B 1 1亦部分重疊,並且其重疊之區域1 1 1與1 2 2 (併 為Seg-6)將添加某種轉場效過。於編輯完成之後,接著 進一部處理其結果,以產生壓縮過後之檔案。 蒼照圖二’其中呈現簡化之電腦架構,電腦20乃由CPU (中央處理器;central processing unit) 201、 RAM (尸边截1存取記憶體;random-access memory) 202、顯示 介面2 0 3以及輪出入介面2 〇 4所組成。於本發明之較佳實施 例中,電腦2〇更包含具有壓縮處理器之MPEG卡,能夠壓縮 或解壓縮MPEG〜2格式之稽案。應可理解者為此一 MPEG卡可 鲁任何其他可能且等效之壓縮卡所取代,因此所支援之壓 縮格式的種類將隨採用之壓縮卡的不同而有所改變。再 者,電腦20中亦可能安裝數張壓縮卡。如上所$ ’壓縮格 式之支援種類乃基於壓縮卡之能力而$ ’所以I、、、但卡便可 能僅支援某種特定之壓縮格式,包含但不限於mpeg-卜1280486, V. Inventive Note (4) C' and add the transition effect (transition effec·) to the part of Chongfeng. It should be understood that the type of file is not limited to video material, but may also include sound, video, text or other possible multimedia material, and video files 10 to 12 are merely examples of the present invention. In addition, the sources and types of video files 10 to 12 are various. In one embodiment of the present invention, video A is captured by a digital camera (DV), and video B is from a DVD (digital video disc). ), and video c is an MPEG-1 file stored on a hard disk of the computer. As shown, the video a 1 0 and the video C 1 2 partially overlap, and the overlapping regions 1 〇 1 and 1 〇 2 • and Seg-3) will add some kind of transition effect. Similarly, video c 12 and video B 1 1 also partially overlap, and the overlapping regions 1 1 1 and 1 2 2 (and Seg-6) will add some kind of transition effect. After the editing is completed, the results are processed further to produce a compressed file. In the picture 2, which presents a simplified computer architecture, the computer 20 is composed of a CPU (central processing unit) 201, a RAM (random-access memory) 202, and a display interface 2 0 3 and the round-in and out interface 2 〇4. In a preferred embodiment of the present invention, the computer 2 further includes an MPEG card having a compression processor capable of compressing or decompressing the MPEG~2 format. It should be understood that the MPEG card can be replaced by any other possible and equivalent compression card, so the type of compression format supported will vary depending on the compression card used. Furthermore, several compression cards may be installed in the computer 20. The support type of the above $' compression format is based on the ability of the compression card. Therefore, I,,, but the card can only support a specific compression format, including but not limited to mpeg-b

第10頁 1280486 ,五、.發明說明(5) MPEG-2與MPEG-4等,此時使用者可視其需要安壯— :之壓縮卡。在本實施例中,安裝於電腦::張或更 支援MPEG-1之壓縮格式。 之®縮卡係 上述之兀件均以習知之系統匯流排2 〇 6所連 當然可能尚包含其他元件或裳置,以執行特定而腦20 此並非為本發明之主要重點,因此其細節將予。然而 =介面2 0 3可柄合至顯示器20 7,而輸出人介面二二,。顯 ,碟208或CD/DVD光碟機2 0 9。於本發明之較佳f y耗合至 以讀取儲存於圖五之儲存媒體5。:之V7 ’ !參^存媒體50之細節將詳敘於下文之中。根 貝枓, 佳貫施例,視訊Β丨丨係由光碟機2〇9内之dvd所取^明之較 讯c乃儲存於硬碟2 0 8之中,然二,且視 換與排列。 j j 3谀為任何可能之置 料流之編輯後,需要將其進一步處理,此 ^王序即為所謂之「建構(rendering)」。太& Λ /:散式系統之概念導入建構之程序之中 '然 *月二 式系統係同時運用數台電腦來完成苹此 〇 7刀散 愛祜m 凡々乂示二連异,但本發明僅 部電腦便可達成可觀之結果與功效,目而增加系 圖三,其中呈現根據本發明之建構程序的流程圖,首 叙步驟30中接收資料流,隨後於步驟31中將此資料流 來麥ί區'^ ’此分割可麥照貧料流之資料類型與編輯狀態 ς =。再次參照圖一,結果帶13係代表分為八個區段之 、’+机’分別為Seg-l至Seg-8。區段Seg—以 Seg — 8最好具Page 10 1280486, five, invention description (5) MPEG-2 and MPEG-4, etc., at this time the user can see the need to secure - compression card. In this embodiment, it is installed on a computer:: Zhang or a compression format supporting MPEG-1. The above-mentioned components are all connected to the conventional system bus 2 〇6. Of course, other components or skirts may be included to perform specific brains. This is not the main focus of the invention, so the details will be Give. However, the interface 2 0 3 can be slid to the display 20 7 and the output interface is 22. Display, disc 208 or CD/DVD player 2 0 9. The preferred f y of the present invention is consuming to read the storage medium 5 stored in FIG. : The V7 ’! The details of the participating media 50 will be detailed below. Genbe, the best example, the video is taken from the dvd in the CD player 2〇9. The comparison c is stored in the hard disk 2 0 8 , and the video is switched and arranged. j j 3谀 is the edit of any possible stream, and it needs to be further processed. This is the so-called “rendering”. Too & Λ /: The concept of the distributed system is introduced into the construction process. 'Ran* month two system system uses several computers at the same time to complete the 〇7 刀 散Inventing only a computer can achieve considerable results and effects, and the purpose is to add a third diagram in which a flowchart of the construction procedure according to the present invention is presented. In the first step 30, the data stream is received, and then the data stream is flowed in step 31. Come to Maiyu District '^' This segmentation can be used as the data type and editing status of the illuminating stream. Referring again to Fig. 1, the result band 13 is represented by eight segments, and the '+ machine' is Seg-1 to Seg-8, respectively. Section Seg - Seg - 8 is best

第11頁 1280486 五、.發明說明(6) 有相同之時間長度,但仍可根據其資料類型及編輯狀態而 有所調整,舉例而言,如圖一所示,最好將取自不同來源 之部分(通常為不同之檔案類型)分開,此外最好亦將具 有不同編輯狀態之部分分開。於圖一所示之實施例中,區 段Seg-3與Seg-6之編輯狀態乃異於其他區段,因為其具有 重疊之作用並添加有轉場效果,此類區段通常需要更多之 處理時間。 接著,將於步驟3 2中確認每一個處理器之狀態,此處理器 包含CPU 2 01以及MPEG卡2 0 5内之壓縮處理器,其中處理器 態之資訊可包含其可用性以及所支援之壓縮格式。隨 f,便將區段分派予可用並且支援來源資料與目標資料之 壓縮格式的處理器,如步驟3 3所示,分派程序的細節將說 明於下文之中。最後,將處理過後並壓縮過後之區段合併 以產生欲得之壓縮完成的檔案,例如MPEG-1格式之檔案。 上述資料流之分割、狀態之確認以及區段之分派最好均由 CPU 201來執行。 參照圖四,呈現分派程序之較佳實施例的細節,在此程序 中,CPU 2 0 1將確認區段是否經過編輯,如確認編輯狀態 之步驟40與41所示。舉例來說,區段Seg-3與Seg-6為編輯 _之區段,而其他區段並未經過編輯。 若確認之結果表示區段並未經過編輯,將接著於步驟4 3中 確認其壓縮格式。隨後,將執行步驟4 5以辨識區段之壓縮 格式是否實質上等同於結果之壓縮格式,亦即本實施例之 MPEG-1,並具有相同之參數,例如晝格大小、晝格速率、Page 11 1280486 V. Invention Description (6) It has the same length of time, but it can still be adjusted according to its data type and editing status. For example, as shown in Figure 1, it is best to take it from different sources. The parts (usually different file types) are separated, and it is better to separate the parts with different editing states. In the embodiment shown in FIG. 1, the editing states of the segments Seg-3 and Seg-6 are different from the other segments, because they have overlapping effects and are added with transition effects, such segments usually require more Processing time. Next, the status of each processor will be confirmed in step 32. The processor includes a CPU 2 01 and a compression processor in the MPEG card 205, wherein the information of the processor state can include its availability and the supported compression. format. With f, the segment is dispatched to a processor that is available and supports the compressed format of the source and target data. As shown in step 33, the details of the dispatching procedure are explained below. Finally, the processed and compressed segments are combined to produce a compressed archive, such as an MPEG-1 format file. The division of the above data stream, the confirmation of the status, and the assignment of the segments are preferably performed by the CPU 201. Referring to Figure 4, the details of a preferred embodiment of the dispatch procedure are presented, in which the CPU 203 will confirm whether the section has been edited, as indicated by steps 40 and 41 of the Confirm Edit Status. For example, segments Seg-3 and Seg-6 are edited segments, while other segments are not edited. If the result of the confirmation indicates that the section has not been edited, it will then confirm its compression format in step 43. Subsequently, step 45 will be performed to identify whether the compressed format of the segment is substantially equivalent to the resulting compressed format, i.e., MPEG-1 of the present embodiment, and has the same parameters, such as the size of the grid, the frame rate,

1280486 .五、.發明說明(7) 位元速率、顯示寬高比以及晝格類型(漸進式或者交錯式 )。若兩者之壓縮格式確貫相同’此區段將略過處理(包 含建構)與壓縮之步驟’並在其他區段完成壓縮後直接與 4合併。例如,區段S e g - 4與S e g - 5並未經過編輯,且具有 與結果相同之壓縮格式,因此可將這兩個區段稱為不變之 區段,此類區段將省略耗時之建構與壓縮程序。若區段之 壓縮格式與結果並不相同,將需針對此類區段進行轉碼 (transcode)。例如,區段Seg-7與Seg -8為DVD視訊資 料,所以必須先解壓縮後,再屋縮為Μ P E G - 1之格式。在另 f實施例中’區段S e g - 7與S e g - 8可為Μ P E G - 1格式之視訊資 ,而結果之壓縮格式則為MPEG-2之格式。應可理解者 為,本發明能夠涵蓋所有種類之壓縮格式,並且上述之範 例僅為例示之用,而非作為本發明之限制◦在此情形下, 程序將進行至步驟4 4,其内容將說明於下文之中。 回到步驟4 1,若步驟4 1之判定表示區段已經過編輯,亦即 區段Seg-3與Seg-6,將於步驟42將其建構(rendering )。一般而言,建構之程序可單由CPU 201來執行,但假 使其他處理器亦具有建構之能力,此建構之工作亦可分派 予其他可用之處理器。在使情形下,多個處理器之概念亦 籲應用於建構之程序中。 由於編輯過之區段的建構需要解壓縮之步驟,所以被分派 之處理器必須支援此區段原來之壓縮格式,此將於步驟4 4 中確認。於步驟4 4中,亦將區段之來源納入考量,因為壓 縮卡可能僅支援特定之來源,例如來自DV或硬碟之資料。1280486 . V. Description of invention (7) Bit rate, display aspect ratio, and grid type (progressive or interlaced). If the compression format of the two is the same, 'this section will skip processing (including construction) and compression steps' and merge directly with 4 after the other sections have finished compressing. For example, the sections S eg - 4 and S eg - 5 are not edited and have the same compression format as the result, so these two sections can be called invariant sections, and such sections will omit consumption. Time construction and compression procedures. If the compression format of the segment is not the same as the result, transcoding will be required for such segment. For example, the segments Seg-7 and Seg-8 are DVD video data, so they must be decompressed and then reduced to the format of E P E G - 1. In another embodiment, the segments S e g - 7 and S e g - 8 may be video packets in the Μ P E G - 1 format, and the resulting compressed format is in the MPEG-2 format. It should be understood that the present invention is capable of covering all types of compression formats, and that the above examples are for illustrative purposes only and are not intended to be limiting of the invention. In this case, the program will proceed to step 4 4, the content of which will The description is below. Returning to step 4 1, if the decision in step 41 indicates that the segment has been edited, i.e., segments Seg-3 and Seg-6, it will be rendered in step 42. In general, the constructed program can be executed by the CPU 201 alone, but if other processors have the ability to construct, the construction work can be distributed to other available processors. In this case, the concept of multiple processors is also applied to the construction process. Since the construction of the edited section requires a decompression step, the dispatched processor must support the original compression format of this section, which will be confirmed in step 4 4. In step 44, the source of the segment is also taken into account, as the compression card may only support specific sources, such as data from DV or hard disk.

第13頁 1280486 .五、發明說明(8) 於確認時,若區段之壓縮格式與來源均被每一個處理器所 支援,便可將此區段依序分派予任何可用之處理器,包 含CPU 2 0 1以及壓縮處理器2 0 5,如步驟4 7所示。否則,因 為這些區段僅能由CPU 2 01來處理,所以僅在CPU 2 01可用 時才能夠將其依序分配,如步驟4 6所示。 最後,於步驟4 8中將經過處理與壓縮過後之區段合併,以 產生欲得之壓縮格式的檔案,亦即本實施例之MPEG-卜 參照圖五,呈現本發明較佳實施例中的儲存媒體5 0,其可 為一張光碟片(CD/DVD)、軟碟片、硬碟或記憶體等,然 #應可理解者為,本發明並非侷限於上述種類之儲存媒 I。儲存媒體5 0具有可執行之指令,用以執行上述之各個 步驟以利用多個處理器。這些指令乃集合為數個模組,各 別為分割模組5 0 1、確認模組5 0 2、分派模組5 0 3以及合併 模組5 0 4。一般而言,模組之種類可包含程式、軟體或甚 至一組指令。儲存媒體5 0能夠為電腦或其他運算裝置所運 用來執行上述之功能與運作,為避免累贅重覆之敘述,在 此將省略類似之說明。此一儲存媒體非但具有可執行之指 令,並可藉由執行下列步驟以利用多個處理器來處理資料 流之儲存媒體:將資料流分為數個區段;確認中央處理器 籲及至少一個壓縮處理器之狀態;根據此一狀態將區段分 派予中央處理器或者壓縮處理器兩者之一,其中此中央處 理器或壓縮處理器將處理所分派之區段來產生壓縮過後之 區段;以及合併上述壓縮過後之區段以產生壓縮過後之資 料流。Page 13 1280486 . V. Description of Invention (8) At the time of confirmation, if the compression format and source of the segment are supported by each processor, this segment can be sequentially assigned to any available processor, including CPU 2 0 1 and compression processor 2 0 5 are as shown in step 47. Otherwise, since these sections can only be processed by the CPU 201, they can only be assigned sequentially when the CPU 2 01 is available, as shown in step 46. Finally, in step 48, the processed and compressed segments are combined to generate a file in a compressed format, that is, the MPEG-b in the embodiment is shown in FIG. 5, which is a preferred embodiment of the present invention. The storage medium 50 may be a compact disc (CD/DVD), a floppy disc, a hard disc, or a memory. However, it should be understood that the present invention is not limited to the above-described storage medium 1. The storage medium 50 has executable instructions for performing the various steps described above to utilize multiple processors. These instructions are grouped into a number of modules, each of which is a split module 5 0 1 , a confirmation module 5 0 2, a dispatch module 5 0 3 , and a merge module 5 0 4 . In general, the types of modules can include programs, software, or even a set of instructions. The storage medium 50 can be used by a computer or other computing device to perform the functions and operations described above, and similar descriptions will be omitted herein to avoid cumbersome repetition. The storage medium not only has executable instructions, but also can process the storage medium of the data stream by using multiple processors by performing the following steps: dividing the data stream into several sections; confirming that the central processing unit calls at least one compression a state of the processor; according to the state, the segment is dispatched to either the central processor or the compression processor, wherein the central processor or the compression processor processes the allocated segment to generate the compressed segment; And merging the compressed segments to generate a compressed data stream.

第14頁 1280486 五、.發明說明(9) 對熟悉此領域技藝者,本發明雖以較佳實例闡明如上,然 其並非用以限定本發明之精神。在不脫離本發明之精神與 範圍内所作之修改與類似的配置,均應包含在下述之申請 專利範圍内,此範圍應覆蓋所有類似修改與類似結構,且 應做最寬廣的詮釋。</ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; Modifications and similar configurations made within the spirit and scope of the invention are intended to be included within the scope of the appended claims.

第15頁 1280486 ,圖式.簡單說明 【圖式簡單說明】 圖一呈現資料流之編輯程序。 圖二為一方塊圖,呈現電腦之硬體架構。 圖三為一流程圖,呈現處理之步驟。 圖四為一流程圖,呈現分派之步驟。 圖五為一方塊圖,呈現本發明之儲存媒體。Page 15 1280486, Schematic. Brief Description [Simplified Schematic] Figure 1 shows the editing process of the data stream. Figure 2 is a block diagram showing the hardware architecture of the computer. Figure 3 is a flow chart showing the steps of processing. Figure 4 is a flow chart showing the steps of dispatching. Figure 5 is a block diagram showing the storage medium of the present invention.

明 說 tgu # 符 件 元 要 主 第16頁Ming said tgu #符元元要主第16页

Claims (1)

1280486 .六、.申請專利範圍 1 . 一種利用多個處理器(p r 〇 c e s s 〇 r)處理一資料流 (data stream)之方法,其步驟包含: 解該貢料流分為數個區段, 確認一中央處理器(central processing unit)以及至 少一 #1壓、缩處理器 (compression processor)之狀態; 根據該狀悲將該區段分派予該中央處理為或該堡縮處理為、 兩者之一,其中該中央處理器或該壓縮處理器依據該分派 處理該區段以產生壓縮過後之區段;以及 合併該壓縮過後之區段以產生一壓縮過後之資料流。 如申請專利範圍第1項之方法,其中所述之資料流包含 具有壓縮資料或未壓縮資料之多媒體資料。 3. 如申請專利範圍第1項之方法,其中所述之資料流係根 據其資料類型以及編輯狀態來分為數個該區段。 4. 如申請專利範圍第3項之方法,其中所述之資料類型包 含該資料流之壓縮格式或者來源種類。 籲如申請專利範圍第3項之方法,其中所述之編輯狀態係 指不該貢料流中編幸耳過之部分。 6.如申請專利範圍第1項之方法,其中所述之狀態包含該 中央處理器以及該壓縮處理器之可用性(a v a i 1 a b i 1 i t y)1280486. VI. Patent application scope 1. A method for processing a data stream by using a plurality of processors (pr 〇cess 〇r), the steps comprising: decoding the tributary stream into a plurality of segments, confirming a central processing unit and a state of at least one #1 compression and reduction processor; assigning the segment to the central processing according to the sorrow or the forging process, and both First, wherein the central processing unit or the compression processor processes the segment according to the dispatch to generate a compressed segment; and merges the compressed segment to generate a compressed data stream. The method of claim 1, wherein the data stream comprises multimedia material having compressed data or uncompressed data. 3. The method of claim 1, wherein the data stream is divided into several segments according to its data type and editing status. 4. The method of claim 3, wherein the type of data includes a compressed format or source type of the data stream. The method of claim 3, wherein the edited state refers to a portion of the tributary stream that has not been edited. 6. The method of claim 1, wherein the state comprises the central processor and availability of the compression processor (a v a i 1 a b i 1 i t y) 第17頁Page 17 1280486 六、.申請專利範圍 以及所支援之壓縮格式。 7. 如申請專利範圍第1項之方法,其中所述之壓縮處理器 包含一壓縮卡上之處理器,並且該壓縮卡乃安裝在一部具 有該中央處理器之電腦中。 8. 如申請專利範圍第1項之方法,其中當該狀態表示該中 央處理器以及該壓縮處理器兩者中之一個為可用時,將依 序分派該區段。1280486 VI. The scope of application for patents and the supported compression format. 7. The method of claim 1, wherein the compression processor comprises a processor on a compression card and the compression card is installed in a computer having the central processing unit. 8. The method of claim 1, wherein the segment is dispatched sequentially when the state indicates that one of the central processor and the compression processor is available. 9.如申請專利範圍第1項之方法,其中所述之區段包含至 少一個不變之區段,其中該不變之區段將直接進行合併, 而無須經該中央處理器或該壓縮處理器進行壓縮。 1 0 .如申請專利範圍第9項之方法,其中所述之不變之區段 並未被編輯,且該不變之區段的壓縮格式係與該壓縮過後 之貢料流相同。 1 1.如申請專利範圍第1項之方法,其步驟更包含: _分派之前將具有至少一個編輯過之部分的該區段進行建 構(rendering) 〇 1 2. —種具有可執行之指令的儲存媒體,用以透過執行數 個步驟來利用多個處理器處理一資料流,該步驟包含:9. The method of claim 1, wherein the section comprises at least one invariant section, wherein the invariant section is directly merged without the central processor or the compression process The device is compressed. 10. The method of claim 9, wherein the unchanged section is not edited, and the compressed section of the unchanged section is the same as the compressed tributary stream. 1 1. The method of claim 1, wherein the method further comprises: _preparing the segment having at least one edited portion before dispatching 〇1 2. - having executable instructions A storage medium for processing a data stream by using a plurality of processors by performing a plurality of steps, the steps comprising: 第18頁 1280486 .六、.申請專利範圍 將該貢料流分為數個區段, 確認一中央處理器以及至少一個壓縮處理器之狀態; 根據該狀態將該區段分派予該中央處理器或該壓縮處理器 兩者之一,其中該中央處理器或該壓縮處理器依據該分派 處理該區段以產生壓縮過後之區段;以及 合併該壓縮過後之區段以產生'^壓縮過後之資料流。 1 3 .如申請專利範圍第1 2項之儲存媒體,其中所述之資料 流包含具有壓縮資料或未壓縮資料之多媒體資料。 H .如申請專利範圍第1 2項之儲存媒體,其中所述之資料 流係根據其資料類型以及編輯狀態來分為數個該區段。 1 5 .如申請專利範圍第1 4項之儲存媒體,其中所述之資料 類型包含該資料流之壓縮格式或者來源種類。 1 6 .如申請專利範圍第1 4項之儲存媒體,其中所述之編輯 狀態係指示該資料流中編輯過之部分。 #7 .如申請專利範圍第1 2項之儲存媒體,其中所述之狀態 包含該中央處理器以及該壓縮處理器之可用性以及所支援 之壓縮格式。 1 8 .如申請專利範圍第1 2項之儲存媒體,其中所述之壓縮Page 18 1280486. The patent application scope divides the tributary stream into a plurality of segments, confirms the state of a central processing unit and at least one compression processor; assigns the segment to the central processing unit according to the state or One of the compression processors, wherein the central processor or the compression processor processes the segment according to the dispatch to generate a compressed segment; and merges the compressed segment to generate a '^-compressed data flow. 1 3 . The storage medium of claim 12, wherein the data stream comprises multimedia material having compressed data or uncompressed data. H. The storage medium of claim 12, wherein the data stream is divided into a plurality of sections according to its data type and editing status. 1 5. The storage medium of claim 14 of the patent application, wherein the data type includes a compressed format or a source type of the data stream. 16. The storage medium of claim 14, wherein the editing status indicates an edited portion of the data stream. #7. The storage medium of claim 12, wherein the state includes the central processor and the availability of the compression processor and the supported compression format. 1 8 . The storage medium of claim 12, wherein the compression is 第19頁 1280486 ,六、.申請專利範圍 處理器包含一壓縮卡上之處理器,並且該壓縮卡乃安裝在 一部具有該中央處理器之電腦中。 .1 9 .如申請專利範圍第1 2項之儲存媒體,其中當該狀態表 示該中央處理器以及該壓縮處理器兩者中之一個為可用 時,將依序分派該區段。 2 0 .如申請專利範圍第1 2項之儲存媒體,其中所述之區段 包含至少一個不變之區段,其中該不變之區段將直接進行 |併,而無須經該中央處理器或該壓縮處理器進行壓縮。 2 1 .如申請專利範圍第2 0項之儲存媒體,其中所述之不變 之區段並未被編輯’且該不變之區段的壓縮格式係與該壓 縮過後之貧料流相同。 2 2 .如申請專利範圍第1 2項之儲存媒體,其中所述之步驟 更包含: 於分派之前將具有至少一個編輯過之部分的該區段進行建 構(rendering)。Page 19 1280486, VI. Patent Application Scope The processor includes a processor on a compression card, and the compression card is installed in a computer having the central processing unit. The storage medium of claim 12, wherein when the status indicates that one of the central processing unit and the compression processor is available, the section is sequentially allocated. 20. The storage medium of claim 12, wherein the section comprises at least one unchanged section, wherein the unchanged section is directly performed | and without the central processor Or the compression processor performs compression. 2 1. The storage medium of claim 20, wherein the unchanged section is not edited&apos; and the compressed section of the unchanged section is the same as the compressed lean stream. 2 2. The storage medium of claim 12, wherein the step further comprises: rendering the section having at least one edited portion prior to dispatching. 第20頁Page 20
TW94116925A 2005-05-24 2005-05-24 Method for processing a data stream by utilizing multi-processor TWI280486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW94116925A TWI280486B (en) 2005-05-24 2005-05-24 Method for processing a data stream by utilizing multi-processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW94116925A TWI280486B (en) 2005-05-24 2005-05-24 Method for processing a data stream by utilizing multi-processor

Publications (2)

Publication Number Publication Date
TW200641632A TW200641632A (en) 2006-12-01
TWI280486B true TWI280486B (en) 2007-05-01

Family

ID=38742513

Family Applications (1)

Application Number Title Priority Date Filing Date
TW94116925A TWI280486B (en) 2005-05-24 2005-05-24 Method for processing a data stream by utilizing multi-processor

Country Status (1)

Country Link
TW (1) TWI280486B (en)

Also Published As

Publication number Publication date
TW200641632A (en) 2006-12-01

Similar Documents

Publication Publication Date Title
JP7191240B2 (en) Video stream decoding method, device, terminal equipment and program
JP4919743B2 (en) Method and apparatus for generating thumbnails with digital images
US7529848B2 (en) Methods and systems for efficiently processing compressed and uncompressed media content
JP4664406B2 (en) Moving picture decoding apparatus, semiconductor device, video equipment, and moving picture decoding method
JP2004040794A (en) Method and system for processing digital data rate change and directional reproduction change
JP2004194338A (en) Method and system for producing slide show
TWI399938B (en) Method and system for switching elementary streams on a decoder with zero delay
JP2002533012A (en) Web-based video editing method and system using high performance multimedia software library
JP2007221323A (en) Method for processing information, method for displaying thumbnail of moving picture, decoding device, and information processor
CN111147926B (en) Data transcoding method and device
EP1407611A2 (en) Track for improved video compression
JP2004514353A (en) Scalable MPEG-2 video system
US20040264383A1 (en) Media foundation topology
CN1921610A (en) Client-based video stream interactive processing method and processing system
US7848610B2 (en) Data processing system, reproduction apparatus, computer, reproduction method, program, and storage medium
US20060253857A1 (en) Method for processing a data stream by utilizing multi-processor
US20080052261A1 (en) Method for block level file joining and splitting for efficient multimedia data processing
TWI280486B (en) Method for processing a data stream by utilizing multi-processor
US20060088285A1 (en) Reproduction apparatus, data processing system, reproduction method, program, and storage medium
JP2008301208A (en) Video recorder
JP5954489B2 (en) Movie data editing device, movie data editing method, playback device, playback method, and program
JP4331488B2 (en) Integrated circuit and electronic device using the same
EP1505501A1 (en) Demultiplexer application programming interface
CN107426611B (en) multi-path output method and system based on video transcoding
KR101484101B1 (en) Moving Picture Tranformation Device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees