TWI448152B - Subtitle display method and embedded system - Google Patents
Subtitle display method and embedded system Download PDFInfo
- Publication number
- TWI448152B TWI448152B TW099120700A TW99120700A TWI448152B TW I448152 B TWI448152 B TW I448152B TW 099120700 A TW099120700 A TW 099120700A TW 99120700 A TW99120700 A TW 99120700A TW I448152 B TWI448152 B TW I448152B
- Authority
- TW
- Taiwan
- Prior art keywords
- color
- color index
- image file
- subtitle image
- index table
- Prior art date
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
- Studio Circuits (AREA)
- Processing Of Color Television Signals (AREA)
Description
本案係為一種字幕顯示方法與嵌入式系統,尤指應用於數位電視技術中之字幕顯示方法與嵌入式系統。The present invention is a subtitle display method and an embedded system, especially a subtitle display method and an embedded system used in digital television technology.
隨著全球電視節目數位化的趨勢,數位電視的需求也日益增高。而目前數位電視的標準主要是分為兩大主流:歐規數位電視標準(DVB)以及美規數位電視標準(ATSC)。而在歐規數位電視標準(DVB)中,可於影像信號中夾帶了字幕流(subtitle stream),.用以顯示人物之對話內容,進而幫助觀賞者能更進一步了解劇情。With the trend of digital TV programs around the world, the demand for digital TV is also increasing. At present, the standards of digital TV are mainly divided into two major mainstreams: the European Digital Television Standard (DVB) and the American Digital Television Standard (ATSC). In the European Digital Television Standard (DVB), a subtitle stream can be entrained in the video signal to display the dialogue content of the character, thereby helping the viewer to further understand the story.
由數位電視之頭端系統(Head-end)送出或是由數位影音光碟機讀取具有字幕流(subtitle stream)之數位影音光碟後所輸出之影像信號,伴隨有上述數位電視字幕流,而透過一般歐規的數位電視所內建之字幕解碼裝置,可以在顯示畫面上顯示出字幕。隨著數位電視中包含有微處理器與圖形引擎之電視晶片的功能日益強大,上述解碼動作已可改由電視晶片所執行之軟體來完成。An image signal output by a digital television head system (Head-end) or a digital video disc player that reads a digital video disc with a subtitle stream, accompanied by the digital television subtitle stream The subtitle decoding device built in the general European digital TV can display subtitles on the display screen. As the capabilities of television chips containing microprocessors and graphics engines in digital televisions are becoming increasingly powerful, the above decoding operations can be accomplished by software implemented by television chips.
歐規數位電視之字幕規格可以利用色彩索引(color index)表來定義出字幕中圖像的顏色,其技術主要是利用較少的位元數來代表字幕中圖像的顏色並進行傳送,例如利用2個位元代表4個顏色、4個位元代表16個顏色等等,因此數位電視之頭端系統(Head-end)送出之一個字幕影像檔中,每個圖像之色彩值僅為2個位元或4個位元,而不需傳送原本可能高達16位元至32位元之色彩資料,頭端系統(Head-end)僅需對應每個字幕影像檔另外伴隨傳送一個色彩索引表(color index table)至數位電視,便可讓數位電視利用字幕影像檔與色彩索引表來顯示指定的顏色。The subtitle specification of the European standard digital TV can use the color index table to define the color of the image in the subtitle. The technique is mainly to use less number of bits to represent the color of the image in the subtitle and transmit it, for example. Using 2 bits to represent 4 colors, 4 bits to represent 16 colors, etc., therefore, in a subtitle image file sent by the head-end system of the digital television, the color value of each image is only 2 bits or 4 bits, without the need to transmit color data that may be as high as 16 bits to 32 bits, the head-end system only needs to correspond to each subtitle image file to additionally transmit a color index. A color index table to a digital TV allows a digital TV to display a specified color using a subtitle image file and a color index table.
由於數位電視系統內大多是利用ARGB(Alpha,Red,Green,Blue)色彩模式來進行影像顯示,因此對於頭端系統傳送過來之字幕影像檔,數位電視系統必須利用色彩索引表來進行資料格式轉換,進而將色彩索引資料轉為ARGB資料後再進行顯示。但是ARGB資料之資料量顯然比色彩索引資料大上許多,因此在整個資料處理過程中,過早進行轉換將造成數位電視系統之系統記憶體之需求劇增,因此數位電視系統大多到最後影像輸出階段才會進行上述色彩索引資料轉ARGB資料之格式轉換動作。Since most of the digital television systems use the ARGB (Alpha, Red, Green, Blue) color mode for image display, the digital television system must use the color index table for data format conversion for the subtitle image files transmitted from the head end system. Then, the color index data is converted into ARGB data and then displayed. However, the amount of data in ARGB data is obviously much larger than that of color index data. Therefore, in the whole data processing process, premature conversion will cause the demand for system memory of digital TV system to increase sharply. Therefore, digital TV systems mostly go to the final image output. At the stage, the format conversion operation of the above color index data to ARGB data is performed.
歐規數位電視規格的設計可以根據說話者的人數與語氣的不同而有不同的字幕顯示,以供聽障者完全瞭解劇情。頭端系統19可同時分別送出兩個字幕影像檔(第一字幕影像檔110與第二字幕影像檔120)與其相對應兩個色彩索引表(第一色彩索引表111與第二色彩索引表121),用以讓數位電視18可如第一圖之所示,同時於顯示幕的不同位置上顯示出第一字幕影像11與第二字幕影像12。但由於頭端系統19送出之第一色彩索引表111與第二色彩索引表121之內容可能不同,例如,第一色彩索引表111中色彩索引值”15”對應到之ARGB資料與第二色彩索引表121中色彩索引值”15”對應到之ARGB資料並不相同,如此將導致數位電視18同時顯示第一字幕影像11與第二字幕影像12時,因無法參考到正確的色彩索引表而產生顏色顯示錯誤之狀況。因此如何改善上述先前技術之諸多缺失,係為發展本案之最主要的目的。The design of the Eurovision digital TV specification can be displayed with different subtitles depending on the number of speakers and the tone of the voice, so that the hearing impaired can fully understand the story. The head end system 19 can simultaneously send two subtitle image files (the first subtitle image file 110 and the second subtitle image file 120) corresponding to the two color index tables (the first color index table 111 and the second color index table 121). ), for the digital television 18 to display the first subtitle image 11 and the second subtitle image 12 at different positions of the display screen as shown in the first figure. However, since the content of the first color index table 111 and the second color index table 121 sent by the head end system 19 may be different, for example, the color index value "15" in the first color index table 111 corresponds to the ARGB data and the second color. The ARGB data corresponding to the color index value "15" in the index table 121 is not the same, which will cause the digital television 18 to simultaneously display the first subtitle image 11 and the second subtitle image 12, because the correct color index table cannot be referred to. Produces a color display error condition. Therefore, how to improve many of the above-mentioned prior art is the most important purpose of the development of this case.
本案揭示一種字幕顯示方法,應用於一嵌入式系統與一頭端系統間,該方法包含:該嵌入式系統接收該頭端系統產生之具有一第一色彩數量之一第一字幕影像檔與一第一色彩索引表;該嵌入式系統暫存該第一字幕影像檔與該第一色彩索引表;該嵌入式系統接收該頭端系統產生之一第二字幕影像檔與一第二色彩索引表後,根據該第一色彩數量對該第二字幕影像檔進行一偏移值處理後儲存成一經過該偏移值處理之第二字幕影像檔;該嵌入式系統根據該第一色彩數量對該第二色彩索引表進行一位址平移處理後儲存成一經過該位址平移處理之第二色彩索引表;以及該嵌入式系統根據該第一色彩索引表與該第二色彩索引表來對該第一字幕影像檔與經過該偏移值處理之該第二字幕影像檔進行顯示。The present invention discloses a subtitle display method for application between an embedded system and a head end system, the method comprising: the embedded system receiving the first subtitle image file generated by the head end system and having a first color number and a first a color index table; the embedded system temporarily stores the first subtitle image file and the first color index table; the embedded system receives the second subtitle image file and a second color index table generated by the head end system And performing an offset value processing on the second subtitle image file according to the first color quantity, and storing the second subtitle image file as a second subtitle image file processed by the offset value; the embedded system is configured to the second color according to the first color number. The color index table is subjected to a bit translation processing and stored as a second color index table subjected to the address translation processing; and the embedded system determines the first subtitle according to the first color index table and the second color index table. The image file is displayed with the second subtitle image file processed by the offset value.
本案另揭示一種數位電視嵌入式系統,接收包含有第一字幕影像檔、第一色彩索引表、第二字幕影像檔以及第二色彩索引表之信號來進行顯示,第一色彩索引表具有一色彩數量,嵌入式系統包含:一圖形引擎,具有一偏移值處理單元,該偏移值處理單元用以接收該第二字幕影像檔,並根據該色彩數量對該第二字幕影像檔進行一偏移值處理以產生一經過該偏移值處理之第二字幕影像檔;一記憶體介面單元,耦接於圖形引擎;一系統記憶體,耦接於圖形引擎,用以儲存該第一字幕影像檔與該經過該偏移值處理之第二字幕影像檔;以及一圖形輸出處理器,信號連接於該圖形引擎,其中包含有一調色盤暫存器,該調色盤暫存器用以儲存該第一色彩索引表以及根據該色彩數量進行一位址平移處理後形成之一經過該位址平移處理之第二色彩索引表,該圖形輸出處理器根據該第一色彩索引表與經過該位址平移處理之第二色彩索引表來對圖形引擎讀出之第一字幕影像檔與經過該偏移值處理之第二字幕影像檔進行顯示。The present disclosure further discloses a digital television embedded system, which receives a signal including a first subtitle image file, a first color index table, a second subtitle image file, and a second color index table for displaying. The first color index table has a color. The quantity, the embedded system includes: a graphics engine having an offset value processing unit, the offset value processing unit is configured to receive the second subtitle image file, and perform a bias on the second subtitle image file according to the number of colors The value-shifting process is performed to generate a second subtitle image file processed by the offset value; a memory interface unit coupled to the graphics engine; and a system memory coupled to the graphics engine for storing the first subtitle image a file and a second subtitle image file processed by the offset value; and a graphics output processor coupled to the graphics engine, wherein the graphics engine includes a color palette register, the color palette register for storing the file a first color index table and a second color index table formed by the address translation processing after performing address translation processing according to the number of colors, the graphic output Processor for reading out the graphic engine according to the first color and the second color index table index table after the address translation process of the first image file and the subtitle is displayed via the second subtitle processing of the image file offset value.
根據上述技術,其中該第一字幕影像檔與該經過該偏移值處理之第二字幕影像檔係暫存於該嵌入式系統中之一系統記憶體,而該第一色彩索引表與該第二色彩索引表係暫存於該嵌入式系統中之一調色盤暫存器。According to the above technique, the first subtitle image file and the second subtitle image file processed by the offset value are temporarily stored in a system memory in the embedded system, and the first color index table and the first The two color index table is temporarily stored in one of the color system registers in the embedded system.
根據上述技術,其中根據該第一色彩數量對該第二字幕影像檔進行之該偏移值處理係為將該第二字幕影像檔中每個圖像之色彩索引值加上該第一色彩數量。According to the above technique, the offset value processing performed on the second subtitle image file according to the first color number is to add the color index value of each image in the second subtitle image file to the first color quantity. .
根據上述技術,其中根據該第一色彩數量對該第二色彩索引表進行之該位址平移處理係為將該第二色彩索引表之儲存位址平移該第一色彩數量後進行儲存。According to the above technique, the address translation processing performed on the second color index table according to the first color quantity is performed by shifting the storage address of the second color index table by the first color quantity.
根據上述技術,其中根據該第一色彩索引表來顯示該第一字幕影像檔係為根據第一字幕影像檔中圖像之色彩索引值來於該調色盤暫存器之相對應位址中讀出色彩值資料來進行顯示輸出,而根據該第二色彩索引表來顯示經過該偏移值處理之該第二字幕影像檔係為根據經過該偏移值處理之該第二字幕影像檔中圖像之色彩索引值來於該調色盤暫存器之相對應位址中讀出色彩值資料來進行顯示輸出。According to the above technique, the first subtitle image file is displayed according to the first color index table in the corresponding address of the color palette register according to the color index value of the image in the first subtitle image file. Reading the color value data for display output, and displaying the second subtitle image file processed by the offset value according to the second color index table is according to the second subtitle image file processed by the offset value The color index value of the image is used to read out the color value data in the corresponding address of the palette register for display output.
本發明亦揭示一種字幕顯示方法,應用於一數位電視嵌入式系統,包含接收複數個字幕影像檔與複數個色彩索引表,該些色彩索引表分別具有複數個色彩數量;根據該些色彩數量選擇性地偏移值處理字幕影像檔並儲存至記憶體,較佳地,根據該些色彩數量中至少一先前的色彩數量,將該些字幕影像檔之目前字幕影像檔進行偏移值處理,例如對目前字幕影像檔中每個圖像之色彩索引值加上先前色彩數量之累計總和;根據該些色彩數量對該些色彩索引表進行選擇性地位址平移並儲存至調色盤暫存器,較佳地,根據該些色彩數量中至少一先前的色彩數量,將該些色彩索引表之目前色彩索引表進行位址平移並儲存至調色盤暫存器,較佳地,根據該些色彩數量依序將該些色彩索引表儲存至調色盤暫存器,當調色盤暫存器已滿時,則將新的色彩索引表覆蓋至調色盤暫存器中最前端之位置;以及根據該些色彩索引表對經選擇性地偏移值處理之字幕影像檔進行顯示。The invention also discloses a caption display method, which is applied to a digital television embedded system, which comprises receiving a plurality of subtitle image files and a plurality of color index tables, wherein the color index tables respectively have a plurality of color numbers; and selecting according to the number of colors The subtitle image file is processed by the offset value and stored in the memory. Preferably, the current subtitle image file of the subtitle image file is subjected to an offset value according to at least one previous color quantity of the color quantity, for example, And a cumulative sum of the color index values of each image in the current subtitle image file plus the previous color number; the color index table is selectively positionally translated according to the color quantity and stored in the color palette register, Preferably, the current color index table of the color index tables is address translated and stored to the palette register according to at least one previous color quantity of the color quantities, preferably, according to the colors The quantity sequentially stores the color index tables to the palette register, and when the palette register is full, the new color index table is overlaid to the tone The disc of the most distal location register; and a display by selective processing of the offset value of the subtitle according to the plurality of color image file index table.
為能改善上述缺失,本案遂提出如第二圖所示之一字幕顯示方法流程示意圖,其可應用於電視或數位機上盒等如第三圖所示之數位電視嵌入式系統,其中該嵌入式系統主要包含有一系統晶片30以及一系統記憶體31。該系統晶片30中包含有微控制器301、圖形引擎302、偏移值處理單元303、記憶體介面單元304及圖形輸出處理器305。系統記憶體31可用動態隨機存取記憶體來完成。而字幕顯示方法則包含下列步驟:In order to improve the above-mentioned deficiencies, the present invention proposes a flow chart of a caption display method as shown in the second figure, which can be applied to a digital television embedded system such as the third figure shown in the third figure of the television or the digital box, wherein the embedding The system mainly includes a system wafer 30 and a system memory 31. The system chip 30 includes a microcontroller 301, a graphics engine 302, an offset value processing unit 303, a memory interface unit 304, and a graphics output processor 305. System memory 31 can be implemented with dynamic random access memory. The subtitle display method includes the following steps:
步驟21:嵌入式系統接收頭端系統產生之電視信號,其中具有一第一色彩數量之一第一字幕影像檔與一第一色彩索引表。舉例來說,該第一字幕影像檔可為點陣圖檔(Bitmap),包含複數個圖像,但每個圖像僅用4位元之色彩索引值來定義出16個顏色,因此會有第一色彩數量為16之第一字幕影像檔與內容具有相對應16個色彩索引值之16筆ARGB色彩值之第一色彩索引表,至於ARGB色彩值之位元長度則可以是16位元甚至32位元。Step 21: The embedded system receives the television signal generated by the head end system, and has a first subtitle image file and a first color index table. For example, the first subtitle image file may be a bitmap (Bitmap), and includes a plurality of images, but each image uses only a 4-bit color index value to define 16 colors, so there will be The first color index of the first subtitle image file of 16 and the content has a first color index table of 16 ARGB color values corresponding to 16 color index values, and the bit length of the ARGB color value may be 16 bits or even 32-bit.
步驟22:系統晶片30對接收到該第一字幕影像檔與該第一色彩索引表進行暫存。第一字幕影像檔係可儲存於嵌入式系統中之系統記憶體31,而第一色彩索引表則可儲存於嵌入式系統之系統晶片中圖形輸出處理器305內以靜態隨機存取記憶體所實現之調色盤暫存器3050。其儲存位址可如下列表格所示。Step 22: The system chip 30 temporarily stores the first subtitle image file and the first color index table. The first subtitle image file can be stored in the system memory 31 in the embedded system, and the first color index table can be stored in the system output chip of the embedded system in the graphics output processor 305 as a static random access memory. The palette register 3050 is implemented. The storage address can be as shown in the following table.
步驟23:嵌入式系統接收該頭端系統產生之第二字幕影像檔與第二色彩索引表。第二字幕影像檔也可為點陣圖檔(Bitmap),而其中每個圖像也可以是僅用4位元之色彩索引值來定義出16個顏色,因此會有第二色彩數量為16之第二字幕影像檔與內容具有相對應16個色彩索引值之16筆ARGB色彩值之第二色彩索引表。當然,頭端系統產生之第二字幕影像檔的第二色彩數量可以相異於第一字幕影像檔的第一色彩數量,同樣地,頭端系統產生之第二色彩索引表之尺寸與內容可以相異於第一色彩索引表。Step 23: The embedded system receives the second subtitle image file and the second color index table generated by the head end system. The second subtitle image file can also be a bitmap (Bitmap), and each of the images can also define 16 colors using only the 4-bit color index value, so there will be a second color number of 16 The second subtitle image file and the content have a second color index table of 16 ARGB color values corresponding to 16 color index values. Certainly, the second color quantity of the second subtitle image file generated by the head end system may be different from the first color quantity of the first subtitle image file. Similarly, the size and content of the second color index table generated by the head end system may be Different from the first color index table.
步驟24:利用偏移值處理單元303來對第二字幕影像檔根據第一色彩數量來進行一偏移值處理後再儲存於嵌入式系統中之系統記憶體中。以上述第一色彩數量”16”為例,該第二字幕影像檔中每一圖像之色彩索引值皆加上16後再進行儲存。Step 24: The offset value processing unit 303 is used to perform an offset value processing on the second subtitle image file according to the first color quantity, and then stored in the system memory in the embedded system. Taking the first color quantity "16" as an example, the color index value of each image in the second subtitle image file is added to 16 and then stored.
步驟25:根據該第一色彩數量對該第二色彩索引表進行位址平移處理後儲存成一經過該位址平移處理之第二色彩索引表。也就是將該第二色彩索引表之儲存位址平移該第一色彩數量後緊接著第一色彩索引表後之位址,依序將第二色彩索引表儲存至調色盤暫存器3050中,其儲存位址經過平移後內容可如下列表格所示。Step 25: Perform address translation processing on the second color index table according to the first color quantity, and store the second color index table as a second color index table subjected to the address translation processing. That is, the storage address of the second color index table is translated into the first color number and then the address after the first color index table, and the second color index table is sequentially stored in the palette register 3050. The contents of the storage address after translation can be as shown in the following table.
步驟26:分別根據該第一色彩索引表與該第二色彩索引表來顯示該第一字幕影像檔與經過該偏移值處理之該第二字幕影像檔。Step 26: Display the first subtitle image file and the second subtitle image file processed by the offset value according to the first color index table and the second color index table, respectively.
第一字幕影像檔係可由圖形引擎302透過記憶體介面單元304將其從系統記憶體31中讀出,然後輸出至圖形輸出處理器305,而圖形輸出處理器305參考調色盤暫存器3050中之該第一色彩索引表來進行字幕顯示,也就是根據字幕影像檔中圖像上之色彩索引值來於調色盤暫存器3050之相對應位址中讀出色彩值資料來進行顯示輸出。至於經過該偏移值處理之該第二字幕影像檔也是由圖形引擎302透過記憶體介面單元304將其從系統記憶體31中讀出並輸出至圖形輸出處理器305,而由於其索引值已經過偏移值處理,因此將可正確地參考到調色盤暫存器3050中該儲存位址經過平移後之第二色彩索引表。例如,原本索引值為1之圖像,經過偏移值處理後將改變為17,因此將可正確地參考到第二色彩索引表中第二筆ARGB色彩值來進行顯示。The first subtitle image file can be read from the system memory 31 by the graphics engine 302 through the memory interface unit 304, and then output to the graphics output processor 305, and the graphics output processor 305 refers to the palette register 3050. The first color index table is used for subtitle display, that is, reading the color value data in the corresponding address of the palette register 3050 according to the color index value on the image in the subtitle image file for display. Output. The second subtitle image file processed by the offset value is also read out from the system memory 31 by the graphics engine 302 through the memory interface unit 304 and output to the graphics output processor 305, because the index value thereof has been After the offset value processing, the second color index table after the translation of the storage address in the palette register 3050 will be correctly referenced. For example, an image with an index value of 1 will be changed to 17 after the offset value processing, so that the second ARGB color value in the second color index table will be correctly referenced for display.
較佳地,系統可被設計成支援8個字幕影像檔同時顯示,因此若有第三字幕影像檔與第三色彩索引表被接收,偏移值處理單元303將對該第三字幕影像檔根據該第一色彩數量與第二色彩數量之總和來進行偏移值處理後,再儲存於嵌入式系統中之系統記憶體31中,並將第三色彩索引表之儲存位址平移至第二色彩索引表之後來進行儲存。依此類推,第四字幕影像檔與第四色彩索引表,而第八字幕影像檔與第八色彩索引表也是類似地安排其儲存。至於第九字幕影像檔與第九色彩索引表則可用回第一字幕影像檔與第一色彩索引表之設定,如此可以滿足數位電視規格之規範,又可降低實施之成本。較佳地,若第三字幕影像檔與第三色彩索引表被接收時,第一字幕影像檔已結束顯示,也就是調色盤暫存器3050中儲存第一色彩索引表之空間已被釋放出來時,偏移值處理單元303則可將該第三字幕影像檔不進行偏移值處理便儲存於嵌入式系統中之系統記憶體中,並將第三色彩索引表直接覆蓋掉原本第一色彩索引表。Preferably, the system can be designed to support simultaneous display of 8 subtitle image files, so if the third subtitle image file and the third color index table are received, the offset value processing unit 303 will The sum of the first color quantity and the second color quantity is subjected to the offset value processing, and then stored in the system memory 31 in the embedded system, and the storage address of the third color index table is translated to the second color. The index table is followed by storage. And so on, the fourth subtitle image file and the fourth color index table, and the eighth subtitle image file and the eighth color index table are similarly arranged for storage. As for the ninth subtitle image file and the ninth color index table, the settings of the first subtitle image file and the first color index table can be used, so that the specification of the digital television specification can be satisfied, and the implementation cost can be reduced. Preferably, if the third subtitle image file and the third color index table are received, the first subtitle image file has been displayed, that is, the space in the palette register 3050 storing the first color index table has been released. When exiting, the offset value processing unit 303 can store the third subtitle image file in the system memory in the embedded system without performing the offset value processing, and directly cover the third color index table. Color index table.
於另一具體實施例中,可視靜態隨機存取記憶體所完成之調色盤暫存器3050之尺寸來決定色彩索引表之儲存位置,也就是將第n個色彩索引表之儲存位址平移至第n-1個色彩索引表之後來進行儲存,直到該色彩索引表平移後儲存位址將超出調色盤暫存器3050之最大位址時,才將該色彩索引表直接覆蓋掉原本第一色彩索引表,如此將可避免正在使用之色彩索引表被不當覆蓋所造成之困擾,以確保顏色之正確顯示。In another embodiment, the size of the color palette table 3050 is determined by the size of the palette register 3050 performed by the static random access memory, that is, the storage address of the nth color index table is translated. After the n-1th color index table is stored, until the color index table is translated and the storage address will exceed the maximum address of the palette register 3050, the color index table is directly overwritten by the original A color index table, which will avoid the trouble caused by improper coverage of the color index table being used to ensure the correct display of colors.
如此一來,本案之數位電視系統可到最後影像輸出階段才進行色彩索引資料轉ARGB資料之格式轉換動作,因此不會佔用過多的系統記憶體資源,而且透過偏移值處理與位址平移處理後,系統將可參考到正確的色彩索引表而改善顏色顯示錯誤之狀況。In this way, the digital television system of the present case can perform the format conversion operation of the color index data to the ARGB data until the final image output stage, so that it does not occupy excessive system memory resources, and the offset value processing and the address translation processing are adopted. After that, the system will refer to the correct color index table to improve the color display error.
綜上所述,本發明一種字幕顯示方法,應用於一數位電視嵌入式系統,包含接收複數個字幕影像檔與複數個色彩索引表,該些色彩索引表分別具有複數個色彩數量;根據該些色彩數量選擇性地偏移值處理字幕影像檔並儲存至記憶體,較佳地,根據該些色彩數量中至少一先前的色彩數量,將該些字幕影像檔之目前字幕影像檔進行偏移值處理,例如對目前字幕影像檔中每個圖像之色彩索引值加上先前色彩數量之累計總和;根據該些色彩數量對該些色彩索引表進行選擇性地位址平移並儲存至調色盤暫存器,較佳地,根據該些色彩數量中至少一先前的色彩數量,將該些色彩索引表之目前色彩索引表進行位址平移並儲存至調色盤暫存器,較佳地,根據該些色彩數量依序將該些色彩索引表儲存至調色盤暫存器,當調色盤暫存器已滿時,則將新的色彩索引表覆蓋至調色盤暫存器中最前端之位置;以及根據該些色彩索引表對經選擇性地偏移值處理之字幕影像檔進行顯示。In summary, the present invention provides a caption display method for a digital television embedded system, comprising receiving a plurality of subtitle image files and a plurality of color index tables, wherein the color index tables respectively have a plurality of color numbers; The number of colors selectively shifts the value to process the subtitle image file and stores it in the memory. Preferably, the current subtitle image file of the subtitle image files is offset according to at least one previous color quantity of the color quantities. Processing, for example, adding a color sum index value of each image in the current subtitle image file to a cumulative sum of the previous color numbers; performing selective positional translation on the color index tables according to the color quantities and storing the color index to the color palette Preferably, the current color index table of the color index tables is address translated and stored to the palette register according to at least one previous color quantity of the color quantities, preferably, according to The color quantities sequentially store the color index tables to the palette register, and when the palette register is full, the new color index table is overwritten. Palette register in the most distal position; and a display by selective processing of the offset value of the subtitle according to the plurality of color image file index table.
綜上所述,本發明有效改善上述先前技術之諸多缺失,達成發展本案之主要目的。而本案可廣泛應用於電視或數位機上盒等嵌入式系統與發送電視信號之頭端系統間,故本發明得由熟習此技藝之人士任施匠思而為諸般修飾,皆不脫如附申請專利範圍所欲保護者。In summary, the present invention effectively improves the many shortcomings of the prior art described above and achieves the main purpose of developing the present case. The present invention can be widely applied between an embedded system such as a television or a digital set-top box and a head-end system for transmitting a television signal. Therefore, the present invention can be modified by various people who are familiar with the art. Those who wish to protect the scope of the patent application.
18...數位電視18. . . Digital TV
19...頭端系統19. . . Headend system
110...第一字幕影像檔110. . . First subtitle image file
120...第二字幕影像檔120. . . Second subtitle image file
111...第一色彩索引表111. . . First color index table
121...第二色彩索引表121. . . Second color index table
11...第一字幕影像11. . . First subtitle image
12...第二字幕影像12. . . Second subtitle image
30...系統晶片30. . . System chip
31...系統記憶體31. . . System memory
301...微控制器301. . . Microcontroller
302...圖形引擎302. . . Graphics engine
303...偏移值處理單元303. . . Offset value processing unit
304...記憶體介面單元304. . . Memory interface unit
305...圖形輸出處理器305. . . Graphics output processor
3050...調色盤暫存器3050. . . Palette register
本案得藉由下列圖式及說明,俾得一更深入之了解:This case can be obtained through a more in-depth understanding of the following diagrams and descriptions:
第一圖係習用數位電視之字幕顯示方法示意圖。The first picture is a schematic diagram of a subtitle display method for a conventional digital television.
第二圖係本案發展出來之一字幕顯示方法流程示意圖。The second picture is a schematic diagram of the flow of a subtitle display method developed in this case.
第三圖係本案發展出來之數位電視嵌入式系統功能方塊示意圖。The third picture is a functional block diagram of the digital TV embedded system developed in this case.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW099120700A TWI448152B (en) | 2010-06-24 | 2010-06-24 | Subtitle display method and embedded system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW099120700A TWI448152B (en) | 2010-06-24 | 2010-06-24 | Subtitle display method and embedded system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TW201201574A TW201201574A (en) | 2012-01-01 |
| TWI448152B true TWI448152B (en) | 2014-08-01 |
Family
ID=46755856
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW099120700A TWI448152B (en) | 2010-06-24 | 2010-06-24 | Subtitle display method and embedded system |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI448152B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6853385B1 (en) * | 1999-11-09 | 2005-02-08 | Broadcom Corporation | Video, audio and graphics decode, composite and display system |
| US20070071411A1 (en) * | 2004-01-06 | 2007-03-29 | Seo Kang S | Recording medium and recording and reproducing methods and apparatuses |
| US7647620B2 (en) * | 1994-12-14 | 2010-01-12 | Koninklijke Philips Electronics N.V. | Subtitling transmission system |
-
2010
- 2010-06-24 TW TW099120700A patent/TWI448152B/en not_active IP Right Cessation
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7647620B2 (en) * | 1994-12-14 | 2010-01-12 | Koninklijke Philips Electronics N.V. | Subtitling transmission system |
| US6853385B1 (en) * | 1999-11-09 | 2005-02-08 | Broadcom Corporation | Video, audio and graphics decode, composite and display system |
| US20070071411A1 (en) * | 2004-01-06 | 2007-03-29 | Seo Kang S | Recording medium and recording and reproducing methods and apparatuses |
Non-Patent Citations (1)
| Title |
|---|
| 本案先前技術 * |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201201574A (en) | 2012-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101043600B (en) | Playback apparatus and playback method using the playback apparatus | |
| TWI469637B (en) | Multiple format video display | |
| US20060204092A1 (en) | Reproduction device and program | |
| US8237741B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| CN1890961A (en) | Controlling the overlay of multiple video signals | |
| JP4263190B2 (en) | Video composition circuit | |
| CN1747558B (en) | Apparatus and method for generating graphic data | |
| JP5828489B2 (en) | Deep color video conversion and processing within a single clock domain | |
| CN101448108A (en) | Image processing apparatus and related method | |
| JP2005033741A (en) | Television character information display device and television character information display method | |
| CN100435570C (en) | Video display control device and video display control method | |
| TWI222831B (en) | Video playback system to generate both progressive and interlace video signals | |
| US6980223B2 (en) | Method and apparatus for converting a color space of OSD | |
| TWI448152B (en) | Subtitle display method and embedded system | |
| US8130317B2 (en) | Method and system for performing interleaved to planar transformation operations in a mobile terminal having a video display | |
| TWI391907B (en) | Method for setting caption window attributes and associated tv system | |
| CN102333194B (en) | Subtitle display method and embedded type system | |
| CN101105928A (en) | Multimedia playing system, multimedia data reproducing apparatus and method thereof | |
| US7688334B2 (en) | Method and system for video format transformation in a mobile terminal having a video display | |
| WO2019096189A1 (en) | Image display method, device for same, and storage medium | |
| CN1520155B (en) | Electronic apparatus of generating video signal and method of generating video signal | |
| JP5026731B2 (en) | On-screen display translucent realization apparatus, realization system and realization method | |
| JP3611815B2 (en) | Video device | |
| Li et al. | Introduction of HDR Media Analysis for Digital Forensics | |
| KR100747582B1 (en) | Method and apparatus for processing image data in digital multimedia broadcasting system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees | ||
| MM4A | Annulment or lapse of patent due to non-payment of fees |