201041391 六、發明說明: 【發明所屬之技術領域】 ' 树明係關於播放裝置與主機間之影像與聲音傳輸,尤指一種 利用序列雜方式(如:腦連線)來連_放裝置與线之播放系 統及播放方法。 ® 【先前技術】 -般而言,D-SUb(D-Subminiature)介面與數位視覺介面(Digitai ViSUalInterface,DVI)常被用於播放系統中以自一主機傳送影⑽號 至-榮幕,這兩種介面-般僅具備傳送影像資料的能力。然而,目 前市面上多雜產品巾常制高解射髓介面邱如麗础⑽ MultimediaInterface,HDMI),其可從主機同時傳輸未經壓縮的影像 〇與聲曰號至播放裝置(通常包含-個具有揚聲器的顯示器)丨例 如:有的遊戲機可透過HDMI介面連接高解析電視。 請參考第1圖,其係一習知的播放系統10的示意圖。主機裝置 100與一具備揚聲器130之顯示器120之間有三種可能的連接方式 ' 來同時傳輸影像與聲音訊號至顯示器120。這三種連接方式分別 為:(1) 一 D-sub連接線附帶一聲音連接線(如:一 RCA端子(如出〇201041391 VI. Description of the invention: [Technical field to which the invention belongs] 'Shu Ming is about the transmission of video and sound between the playback device and the host computer, especially a method using a serial miscellaneous method (such as a brain connection) to connect the device and the line. Play system and playback method. ® [Prior Art] - In general, the D-SUb (D-Subminiature) interface and the digital visual interface (Digitai ViSUal Interface, DVI) are often used in playback systems to transfer images (10) to the screen from a host. Both interfaces are generally only capable of transmitting image data. However, at present, many miscellaneous products on the market often produce a high-resolution interface, Qiu Ruli (10) MultimediaInterface (HDMI), which can simultaneously transmit uncompressed images and squeaks from the host to the playback device (usually including - with speakers) Display) For example, some game consoles can connect to high-resolution TV through the HDMI interface. Please refer to FIG. 1, which is a schematic diagram of a conventional playback system 10. There are three possible connections between the host device 100 and a display 120 having a speaker 130 to simultaneously transmit image and audio signals to the display 120. The three connection methods are: (1) A D-sub cable is attached with a sound cable (such as: an RCA terminal (such as the out
Ccnporation of America jack,RCA jack) 〇 ⑵ 一 DVI 連接線附帶一 4 201041391 « 鼙曰連接線。(3) - HDMI連接線。上述這些連接線以及其連接頭, 都具有相當的大小以及重量,對於使用者來說,如絲要用這些連 接方式來連接主機裝置與顯示器120,尤其是當主機裝置10〇 鋪不11 12G分別為可赋域裝置與可觀齡ϋ時(例如個人 數位助理(personal digital assistant,PDA)以及小型液晶顯示器),一直 隨身攜帶這些連接線材將成為相當令人困擾的事。 0 此外纟於傳統的連接線接頭具有相當的尺寸,因此製造商必 須在主機的背板上保留一定的面積以供設置各種連接璋,來連接各 種不同的影像以及聲音連接線,因此對主機裝置的背板大小造成相 當的限制。 【發明内容】 相較於習知的影像介面,通用序列匯流排(Uni職心加肠, 〇 USB)介面具有相對輕薄短小的連接頭與連接線,對使用者而言更方 便攜帶,而且USB介面亦已廣泛地使各種不關邊裝置與主機 間的資料傳輸。再者,於USBZ〇標準中,腦連線可在高速模式 下提供最高達480Mb/s的最大頻寬,其已足夠同時負荷 資料的資料傳輸量。 9 有鐘於此’本發明之一目的在於提供一種利用職連線來自一 主機與-播放裝置(例如:具備揚聲器的顯示器)間傳輸影像與聲音 5 ί 201041391 資料的播放系統與相關播放方法。再者,本發明亦提供一種用於該 播放系統中之一播放裝置所進行之一播放操作中以達成影音同步的 方法。 依據本發明之-實施例,其係提供-種播放系統。該播放系統 包含有-主機與-播放裝置。該主機係依據—輸人資料來產生複數 個圖像封包、視訊封包以及音訊封包,以及依據一主機端_來產 〇生複數個控制封包。接著,該主機透過—序列連接埠來傳輸該些封 包,其中該些圖像封包僅於該主機接收到一請求時才被傳輸1播 放裝置係透過該序列連接蟑來輕接該主機,並且該播放裝置用以對 自該序列連解所接收之該些封包進行解碼以產生—解碼後資料、 用以依據該些控制封包來產生一播放鱗脈以及用以依據該解碼後 為料與該播放端時脈來進行一播放操作。 依據本發明另-實施例,其係提供—相_放方法,該播放方 Ο法包含有:依據-輸入資料產生複數個圖像封包、視訊封包以及音 λ封包’依據-主機端時脈來產生複數個控制封包;透過一序列連 接槔來傳輸該些封包’其中該些圖像封包僅於該主機端接收到一請 •求時才被傳輸;解碼該些封包以產生一解碼後資料與一播放端時 」脈,其巾鋪放稱脈驗據該些控贿包喊生;以及依據該解 碼後資料與該播放端時脈來進行一播放操作。 較佳者該些控制封包係利用基於該主機端時脈所建立之同步 6 201041391 資訊係來進行編碼, 同步資tfl而產生。 並且該播放端時脈係依據該些控制封包之該些 來同步影音播放 【實施方式】 Ο 定的明2後續的申請專利範圍當中使用了某些詞彙來指稱特 所屬佩中具麵常知識者應可_,硬鮮造商可能 =用不同的名詞來射同—個元件。本說明書及後續的申請專利範 並不以名稱的差異來作為區分元件的方式,*是以元件在功能上 的差,來作為區分的準則。在通篇說明書及後續的請求項當中所提 及的「包含」係為-開放式的用語,故應轉成「包含但不限定於」。 ❹此外二_」一詞在此係包含任何直接及間接的電氣連接手段。因 若文中描述-第一裝置搞接於一第二裝置,則代表該第一裝置 可直接電氣連接於該第二裝置,或透過其他裝置或連接手段間接地 電氣連接至該第二裝置。 π參考第2圖,其係依據本發明之一實施例所繪製之播放系 、先如圖所示,播放系統2⑽包含有一主機210以及一播放裝置 220主機200包含有(但不限定於):一中央處理器(CPU)21卜-記 7 201041391 隐體212、-硬碟機213以及-通用序列匯流排⑽^㈣SedalBus, USB)連接埠耶以下簡稱為連接埠)。播放裝置⑽包含有(但 不限定於)· 一 USB連接埠215、-解碼模組222以及一輸出模組 224於本實把例中’輸出模組224包含有-顯示模組2241用以播 放圖片或轉,並且包含有—揚聲器2242用域放聲音。播放系統 200的細部操作茲說明如下。 Q 巾央處理器211執行一播放裝置驅動程式,用以將-輸入資料 進行解碼’並將該輸人冑料處理為複數個封包,最彳 1透過連接 痒215將該些封包傳送至播放裝置22〇,其中該輸入資料係由記憶 體212與硬碟213中所載入,且欲於播放裝置22〇中進行播放。(例 如:顯示影像於顯示模組2241以及/或透過揚聲器2242來播放聲音) 舉例來說,該輸入資料可能由電影權、聲音擋、或靜態圖像槽等處 理而來。為了符合主機210與播放裝置220之間所建立的USB連線 230所能提供的最大頻寬,於資料傳輸前,中央處理器211可能執 〇行該播放裝置驅動程式,並且利用該輸入資料所對應之展示時間戳 記(presentation timestamp)以對該輸入資料進行適當地編碼。於編碼 之後,該輸入資料會被解碼為複數個封包以進行傳輸。主機21〇透 • 過USB連接埠215與USB連線230,開始傳輸該些封包至播放裝 , 置220。應當特別注意的是,本實施例中所運用之USB連接埠215 與USB連線230僅為範例說明用,並非對本發明範疇之限制。舉例 來說,其它的傳輸連接埠亦可在適當的修改後,適用於如前所述的 設計之中,而這般設計變化並不背離本發明之精神。 8 201041391 於本發明之一實施例中,該播放裝置驅動程式可產生四種封 包,其中包含:音訊封包、視訊封包、圖像封包以及控制封包。前 三種封包係依據該輸入資料而產生,惟控制封包則是依據一主機端 時脈(host clock)來產生。更詳細地說,主機21〇中之中央處理器211 所執行之該播放裝置驅動程式係產生用以提供時間戳記資訊之控制 封包至播放裝置220。 首先’由於封包所攜帶之影像資料與聲音資料無法被同步傳送 (鑑於封包特性),因此為能達成影音同步,主機21〇與播放裝置22〇 間會先建立一時間關係。該些控制封包含有基於主機端時脈為基礎 而建立之主機210的本地時間戳記資訊,並且該些控制封包會先被 傳輸至播放裝置220。當播放裝置220接收到該些控制封包後,會 依據該些控制封包來產生一播放端時脈。其中該播放端時脈將與該 主機端時脈同步。此外,除了時間戳記資訊,該些控制封包亦可包 °含有其它用以控制播放裝置220來產生該播放端時脈的控制訊號。 由於這些控制訊號係為本發明相關領域之技術人士所悉知,在此不 多作贅述。 主機端210產生攜帶視覺内容(visual c〇ntent)與聲音資料之封 包。而攜帶視覺内容之封包可分為兩種,其一為圖像封包,另一為 視訊封包。本發明中所指之圖像封包係攜帶與聲音資料完全不相關 之視覺資料,且不需要與聲音資料進行同步(如:靜態圖片或者圖形 9 201041391 編碼 使用者介面㈣phiealuserinterfaee,则)_示麵。由 圖像封包並不需要_任何展科間m記來進行糾。㈣’ 所指視訊封包顧以攜帶與聲音資料關聯的視覺㈣(例如 與聲音同賴縮所產生之電賴),這絲像資__音資= 步。因此’每—影像與音訊封⑽__之展示時_記來進行 如第3圖所示,控制封包、圖像封包、視訊封包以及音訊封包 U將會被多工處理,進而透過聰連接埠215與USB連線230 輸至播放裝置220 ’並且,所有的封包會被適當地多工處理至播放 裝置220以依序同步影像與聲音資料。當播放裝置⑽接收到該些 封包後’解碼模組222會擷取該些控制封包、該些圖像封包、該: 視訊封包以及該些音訊封包所攜帶之資料,接著會對所接收之資^ 進行解碼以產生-解碼後資料,其中該解碼後資料包含有用於進行 播放之控制資料、圖像資料、影像資料與聲音資料。舉例而言,該 ❹播放裝置驅動程式依據該主機端時脈來產生該些控制封包,並且依 據該輸入資料產生該些圖像、影像以及音訊封包。該些聲音與視訊 封包係於該些控制封包被傳輸後,再被多工處理以傳輸至播放裝置 220。首先,播放裝置22〇之解碼模組222將該些控制封包解碼以產 生該播放端時脈,接著再對後續所接收之影像與音訊封包進行解 碼,進而擷取該些影像與音訊封包所對應之該些展示時間戳記。而 該些圖像封包僅於主機210接收到一請求時才會被傳輸。輸出模組 224則依據該播放端時脈以及該些影像與音訊封包之該些展示時間 201041391 戮絲進行該播玫操作以對影像與 駡用於依據购顺影儲絲進^^步。顯示模組 則用於依據解石馬後聲音資料來進行聲音播放而揚聲器2242 而於另-例巾,當使用者打算對 行播放時,主機21() ,、"資科“、、關之聲音資料進 傳送料圖』Γ 訊封包,並於接收到請求時,才 得d二圖像封包。因此,透過封包 才 Ο Ο 並不會因卿連線之頻寬限㈣到太切=㈣,播放品質 的步ΓΓΓΓ系統之操作可進一步歸納為以下之相關播放方法 ^勺入1多第4圖,其係依據本發明之—實施例而緣製之播放 圖一主機與一播放裝置)中所進行之播放方法的操作流程 立…、410中’其係依據一輸入資料來產生複數個圖像封包、 2封包以及視訊封包,並且依據—主機端時脈來產生複數個控制 次0此外該些控制封包會利用基於該主機端時脈所建立之同步 貝訊來進行編碼,而每一視訊封包與音訊封包係利用相對應之展示 時間戳記來進行編碼。舉例來說,該輸人#料可能自—電影槽、一 聲音檔、或一靜態圖片擋等所處理而得。 於步驟420中,該些封包被多工處理至一 USB連接埠,並透 過該USB連接埠被健r’射該麵像封包僅於該主機接收到—請 求時才被傳輸。 月 11 201041391 於步驟430中,從該USB連接埠所接收之該些封包將被解碼 以產生一解碼後資料以及一播放端時脈’其中該播放端時脈依據該 . 些控制封包中之該些同步資訊所產生而得。該播放端時脈可能與該 • 主機之一主機端時脈同步。 於步驟440中,依據該解碼後資料與該播放端時脈於該播放装 置中進行一播放操作以同步影音資料。亦即,該播放操作係依據該 〇些展示時間戳記以及該播放端時脈來使得聲音與影像得以同步進行 播放。熟知本發明領域之技術人士應可在閱讀第2圖所示之播放系 統的說明後,進一步了解第4圖所示之播放方法中每個步驟的細 節’為求說明書之簡要,在此不多作贅述。 於本發明之一實施例中,利用USB介面來傳輸資料,該資料 傳統上會先被轉換為影像與聲音訊號,再透過習知傳輸介面(如: HDMI介面)來傳輸。相較於習知設計,本發明利用usb連接介面 ©可提供使用者更好的彈性與更佳的方便性。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍 所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。 【圖式簡單說明】 第1圖係習知播放系統之示意圖。 12 201041391 第2圖係本發明播放系統之—實施例的功能方塊示意圖。 第3圖係-主機對封包進行多王處理之示意圖。 第4圖係本發日權放方法之-實施例的流程圖。 【主要元件符號說明】 10 100、210 〇 120 130 200 211 212 21.3 215 〇 220 222 224 2241 2242 I 230 410〜440 播放系統 主機 顯示器 揚聲器 播放系統 中央處理器 記憶體 硬碟機 通用序列匯流排連接崞 播放裝置 解碼模組 輸出模組 顯示模組 揚聲器 通用序列匯流排連線 步驟 13Ccnporation of America jack, RCA jack) 〇 (2) A DVI cable comes with a 4 201041391 « 鼙曰 connection cable. (3) - HDMI cable. The above-mentioned connecting wires and their connecting heads have considerable size and weight. For the user, the connecting means is used to connect the host device and the display 120, especially when the host device 10 is not covered by 11 12G respectively. It is quite troublesome to carry these connecting wires with them all the time, such as personal digital assistants (PDAs) and small liquid crystal displays. 0 In addition to the traditional size of the connector, the manufacturer must keep a certain area on the back panel of the main unit to set up various ports to connect various images and sound cables, so the host device The size of the backplane creates considerable limits. SUMMARY OF THE INVENTION Compared with the conventional image interface, the universal serial bus (Unicom and Intestine, 〇USB) interface has a relatively light and short connector and connecting line, which is more convenient for the user to carry, and USB The interface has also widely spread data between various non-edge devices and the host. Furthermore, in the USBZ standard, the brain connection can provide a maximum bandwidth of up to 480 Mb/s in the high speed mode, which is sufficient for the data transmission of the load data at the same time. 9 There is a clock for this. One object of the present invention is to provide a playback system and related playback method for transferring video and sound between a host and a playback device (e.g., a display having a speaker) using a subscriber line. Furthermore, the present invention also provides a method for achieving video and audio synchronization in one of the playback operations performed by one of the playback devices in the playback system. In accordance with an embodiment of the present invention, a playback system is provided. The playback system includes a -host and -player. The host generates a plurality of image packets, video packets, and audio packets based on the input data, and generates a plurality of control packets according to a host terminal. Then, the host transmits the packets through a sequence connection port, wherein the image packets are transmitted only when the host receives a request, and the playback device is connected to the host through the serial port, and the image is The playback device is configured to decode the received packets from the sequence to generate a decoded data, to generate a play scale according to the control packets, and to perform the playback according to the decoded content. The end clock is used to perform a playback operation. According to another embodiment of the present invention, the method provides a phase-discharging method, and the player method includes: generating a plurality of image packets, a video packet, and a tone λ packet according to the input data. Generating a plurality of control packets; transmitting the packets through a sequence of ports ' wherein the image packets are transmitted only when the host receives a request request; decoding the packets to generate a decoded data and When a play end is pulsed, the towel is placed on the basis of the control of the bribe package; and a playback operation is performed according to the decoded data and the clock of the play end. Preferably, the control packets are generated by using the synchronization information generated by the host-side clock, and the synchronization information is generated. And the player's clock system synchronizes the video and audio playback according to the control packets. [Embodiment] The following patent application scope is used in the following patent application scope to refer to the special knowledge Should be _, hard fresh makers may = use different nouns to shoot the same component. This specification and the subsequent patent application do not use the difference in name as the means of distinguishing the elements, and * is the difference in function of the elements as the criterion for distinguishing. The "including" mentioned in the entire specification and subsequent claims is an open-ended term and should be converted to "including but not limited to". In addition, the term "two" is used herein to include any direct and indirect electrical connection. As described herein, the first device is coupled to a second device, which means that the first device can be directly electrically connected to the second device, or indirectly connected to the second device through other devices or connection means. π refers to FIG. 2, which is a playback system according to an embodiment of the present invention. As shown in the figure, the playback system 2 (10) includes a host 210 and a playback device 220. The host 200 includes (but is not limited to): A central processing unit (CPU) 21 - note 7 201041391 hidden body 212, - hard disk drive 213 and - universal serial bus (10) ^ (four) SedalBus, USB) connection 埠 hereinafter referred to as connection 埠). The playback device (10) includes (but is not limited to) a USB port 215, a decoding module 222, and an output module 224. In the present example, the output module 224 includes a display module 2241 for playing. The picture or turn, and contains - the speaker 2242 uses the domain to put the sound. The detailed operation of the playback system 200 is explained below. The Q central processing unit 211 executes a playback device driver for decoding the input data and processes the input data into a plurality of packets, and finally transmits the packets to the playback device through the connection itch 215. 22, wherein the input data is loaded by the memory 212 and the hard disk 213, and is to be played in the playback device 22A. (For example, displaying an image on the display module 2241 and/or playing a sound through the speaker 2242) For example, the input data may be processed by a movie right, a sound block, or a still image slot. In order to meet the maximum bandwidth that the USB connection 230 established between the host 210 and the playback device 220 can provide, the central processing unit 211 may execute the playback device driver before the data transmission, and use the input data. A corresponding presentation timestamp is provided to properly encode the input material. After encoding, the input data is decoded into a plurality of packets for transmission. The host 21 passes through the USB port 215 and the USB connection 230, and starts transmitting the packets to the playback device 220. It should be particularly noted that the USB port 215 and the USB connection 230 used in this embodiment are for illustrative purposes only and are not intended to limit the scope of the invention. For example, other transmission ports may be adapted to the design as described above with appropriate modifications, and such design variations do not depart from the spirit of the invention. In an embodiment of the present invention, the playback device driver can generate four types of packets, including: an audio packet, a video packet, an image packet, and a control packet. The first three packets are generated based on the input data, but the control packet is generated based on a host clock. In more detail, the playback device driver executed by the central processing unit 211 in the host computer 21 generates a control packet for providing time stamp information to the playback device 220. First of all, since the image data and the sound data carried by the packet cannot be transmitted synchronously (in view of the packet characteristics), in order to achieve video and audio synchronization, the host 21 and the playback device 22 first establish a time relationship. The control packs contain local timestamp information of the host 210 based on the host-side clock, and the control packets are first transmitted to the playback device 220. After the playback device 220 receives the control packets, a playback terminal clock is generated according to the control packets. The playback clock will be synchronized with the host-side clock. In addition, in addition to the timestamp information, the control packets may also include other control signals for controlling the playback device 220 to generate the clock of the playback terminal. Since these control signals are known to those skilled in the art of the related art, they are not described here. The host side 210 generates a package that carries visual c〇ntent and sound data. The packets carrying the visual content can be divided into two types, one is an image packet and the other is a video packet. The image package referred to in the present invention carries visual data that is completely uncorrelated with the sound material, and does not need to be synchronized with the sound data (for example, a still picture or a graphic 9 201041391 coded user interface (4) phiealuserinterfaee, then) _ display. It is not necessary to make any corrections from the image package. (4) The visual video packet referred to as carrying the visual (4) associated with the sound material (for example, the electricity generated by the sound reduction) is like the capital. Therefore, each image and audio seal (10)__ is displayed as shown in Figure 3. The control packet, image packet, video packet, and audio packet U will be processed by multiplex processing. The USB connection 230 is input to the playback device 220' and all packets are appropriately multiplexed to the playback device 220 to sequentially synchronize the video and audio data. After the playback device (10) receives the packets, the decoding module 222 retrieves the control packets, the image packets, the video packets, and the information carried by the audio packets, and then receives the packets. ^ Decoding to generate - decoded data, wherein the decoded data includes control data, image data, image data, and sound data for playing. For example, the ❹ playback device driver generates the control packets according to the host-side clock, and generates the images, images, and audio packets according to the input data. The voice and video packets are multiplexed for transmission to the playback device 220 after the control packets are transmitted. First, the decoding module 222 of the playback device 22 decodes the control packets to generate the clock of the playback terminal, and then decodes the subsequently received video and audio packets, and then captures the corresponding images and audio packets. These show timestamps. The image packets are only transmitted when the host 210 receives a request. The output module 224 performs the sowing operation according to the clock of the playing end and the display time of the image and the audio package 201041391. The image and the image are used to purchase the film according to the purchase. The display module is used for sound playback according to the sound data of the stone, and the speaker 2242 is used for another case. When the user intends to play the line, the host 21(), " The sound data is sent to the transmission material map, and the packet is received, and when the request is received, the image packet is obtained. Therefore, the packet is not transmitted by the bandwidth (4) to too cut = (4) The operation of the playback quality step system can be further summarized into the following related playback methods, which are scooped into a multi-figure 4, which is based on the playback method of the present invention and a playback device. The operation flow of the played playback method is set, in 410, a plurality of image packets, 2 packets, and video packets are generated according to an input data, and a plurality of control times are generated according to the host-side clock. The control packets are encoded by using the synchronous beacons established by the host-side clock, and each video packet and the audio packet are encoded by using corresponding display time stamps. For example, the input # It may be processed from a movie slot, a sound file, or a static picture file. In step 420, the packets are multiplexed to a USB port and transmitted through the USB port. The image packet is transmitted only when the host receives the request - month 11 201041391 In step 430, the packets received from the USB port are decoded to generate a decoded data and a playback end. The pulse of the playback end is generated according to the synchronization information in the control packets. The playback clock may be synchronized with the host clock of the host. In step 440, according to the Decoding the data and the playing end clock to perform a playing operation on the playing device to synchronize the video and audio data. That is, the playing operation synchronizes the sound and the image according to the display time stamps and the clock of the playing end. The playing of the playback method shown in FIG. In the embodiment of the present invention, the USB interface is used to transmit data, which is traditionally converted into an image and audio signal, and then transmitted through a conventional transmission interface ( For example, the HDMI interface is used for transmission. Compared with the conventional design, the present invention utilizes the usb connection interface to provide better flexibility and better convenience for the user. The above description is only a preferred embodiment of the present invention. Equivalent changes and modifications made to the scope of the present invention should be within the scope of the present invention. [Simplified Schematic] Figure 1 is a schematic diagram of a conventional playback system. 12 201041391 Figure 2 is a playback of the present invention. System block diagram of the embodiment. Fig. 3 is a schematic diagram of the host handling the packet. Figure 4 is a flow chart of an embodiment of the present invention. [Main component symbol description] 10 100, 210 〇120 130 200 211 212 21.3 215 〇220 222 224 2241 2242 I 230 410~440 Playback system main unit display speaker playback system central processor memory hard disk drive universal serial bus connection 崞Playback device decoding module output module display module speaker universal sequence bus connection step 13