CN103067774A - Method and system capable of enabling set top box to display add-on subtitles - Google Patents
Method and system capable of enabling set top box to display add-on subtitles Download PDFInfo
- Publication number
- CN103067774A CN103067774A CN2012105789043A CN201210578904A CN103067774A CN 103067774 A CN103067774 A CN 103067774A CN 2012105789043 A CN2012105789043 A CN 2012105789043A CN 201210578904 A CN201210578904 A CN 201210578904A CN 103067774 A CN103067774 A CN 103067774A
- Authority
- CN
- China
- Prior art keywords
- captions
- top box
- literal
- data
- module
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Abstract
The invention relates to the field of set top boxes, and discloses a method and a system capable of enabling a set top box to display add-on subtitles. The method and the system capable of enabling the set top box to display the add-on subtitles specifically comprises a reading module, a converting module and a displaying module, wherein the reading module is used for reading words of corresponding time in subtitles according to the current play time; the converting module is used for converting the reading words to corresponding UNICODE, then calling FreeType bank to obtain RGB (red, green, blue) formatted data of words, converting RGB formatted data to ARGB (alpha, red, green, blue) formatted data, storing to word displaying area, and finally informing displaying progress; the displaying module is used for reading ARGB formatted data when the subtitles need to be displayed, and copying the ARGB formatted data onto framebuffer to display. According to the method and the system capable of enabling the set top box to display the add-on subtitles, adopting assigning way to visit and protection of shared memory, and achieving data caching by means of the shared memory, so that copy of data is greatly reduced, and system efficiency is improved.
Description
Technical field
The present invention relates to field of set-top, relate in particular to the method and system that a kind of set-top box shows plug-in captions.
Background technology
IPTV is IPTV, is a kind of broadband cabled television network that utilizes, and integrates the multiple technologies such as the Internet, multimedia, communication, and the new technology of the multiple interactive services that comprises Digital Television is provided to the domestic consumer.The user can have dual mode to enjoy the IPTV service at home: (1) computer, (2) network machine top box+general television set.The trend that it can adapt to current network develop rapidly well fully effectively utilizes Internet resources.Along with the growth of IPTV industry, the user is also more and more higher to the application requirements of IPTV network machine top box, and local playing function has become the function that must have.
The local broadcast needs generally to support to show plug-in captions that plug-in captions are that video file separates with subtitle file, will import subtitle file when playing, and will need to import captions during such as DVD playing back.The benefit of plug-in captions is: the language that can import own country.Set-top box of the prior art does not show the ability of plug-in letter, has therefore limited the range of application of set-top box.
Summary of the invention
The objective of the invention is to show for set-top box of the prior art the technical problem of plug-in captions, provide a kind of set-top box to show the method for plug-in captions.The invention also discloses the system that realizes this method.
Purpose of the present invention realizes by following technical proposals:
A kind of set-top box shows the method for plug-in captions, it specifically comprises following steps: 1. read and conversion process reads the literal of corresponding time in the caption character according to current reproduction time, and the literal that reads changed into corresponding UNICODE code, then call the rgb format data that the FreeType storehouse obtains literal, and the rgb format data are changed into the ARGB formatted data and be stored in the literal viewing area, notify at last show process; 2. when needs showed captions, show process read the ARGB formatted data, copies on the framebuffer to show.
Further, the literal viewing area in the above-mentioned steps 1 is shared drive, in the step 1 read and conversion process is stored in the ARGB formatted data in the shared drive, the reading out data from shared drive of the show process in the step 2.
Further, said method is stored in the ARGB formatted data in the shared drive after also being included in and reading last literal and finish, and then adds one section clear data.
Further, said method also comprises when not needing to show captions, empties the literal viewing area.
Further, the mode of the data segmentation in the above-mentioned shared drive is stored.
Further, the appointment mode is adopted in the access of above-mentioned shared drive and protection.
The invention also discloses a kind of set-top box that realizes and show the system of plug-in captions, it specifically comprises read module, conversion module, display module, and described read module is used for reading the literal of corresponding time of caption character according to current reproduction time; Described conversion module changes into corresponding UNICODE code with the literal that reads, and then calls the rgb format data that the FreeType storehouse obtains literal, and the rgb format data are changed into the ARGB formatted data and are stored in the literal viewing area, notifies at last show process; Described display module is used for reading the ARGB formatted data when needs show captions, copies on the framebuffer to show.
Further, above-mentioned literal viewing area is shared drive, and conversion module is stored in the ARGB formatted data in the shared drive, reading out data in the display module shared drive.
Further, said system also comprises blank module, and described blank module is used for after reading last literal and finishing the ARGB formatted data being stored in the shared drive, then adds one section clear data.
Further, said system also comprises the removing module, and described removing module is used for emptying the literal viewing area when not needing to show captions.
By adopting technique scheme, beneficial effect of the present invention: so that set-top box can show plug-in captions, enlarged the range of application of set-top box, convenient for users to use.By multi-process Sharing Memory Realization data buffer storage, the fragmented storage corresponding data reduces taking of internal memory simultaneously; the appointment mode is adopted in access and protection to shared drive; utilize the Sharing Memory Realization data buffer storage, so that greatly reduced the copy of data, improved system effectiveness.
Description of drawings
Fig. 1 is the method flow diagram that a kind of set-top box of the present invention shows plug-in captions.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with Figure of description and specific embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
For convenience of description, do following explanation.
UNICODE code (Unicode, ten thousand country codes, single code) is a kind of character code that uses on computers, it be in every kind of language each character setting unified and unique binary coding, stride language, the cross-platform requirement of carrying out text-converted, processing to satisfy.
The FreeType storehouse be one increase income fully, high-quality and transplantable font engine, it provides unified interface to visit the multiple fonts formatted file, it supports playing up of monochrome bitmap, anti-aliasing bitmap.The FreeType storehouse is the program library of high modularization, and the user of FreeType can carry out cutting to it neatly.
Framebuffer refers to drive video display apparatus with picture output device from a buffering area that comprises complete frame data.Mark has comprised the color-values of each pixel on the screen in core buffer, and color-values is the ARGB pattern.
ARGB is a kind of color mode, namely rgb color pattern affix Alpha(transparency) passage, be common in the storage organization of 32 bitmaps.
The rgb color pattern is a kind of color standard of industrial quarters, be to obtain color miscellaneous by variation and their stacks each other to red (R), green (G), blue (B) three Color Channels, RGB namely is the color that represents three passages of red, green, blue.
Set-top box of the present invention as shown in Figure 1 shows the method flow diagram of plug-in captions.It specifically comprises following steps: 1. read and conversion process reads the literal of corresponding time in the caption character according to current reproduction time, and the literal that reads changed into corresponding UNICODE code, then call the rgb format data that the FreeType storehouse obtains literal, and the rgb format data are changed into the ARGB formatted data and be stored in the literal viewing area, notify at last show process; 2. when needs showed captions, show process read the ARGB formatted data, copies on the framebuffer to show.By said method, so that set-top box can show plug-in captions, enlarged the range of application of set-top box, convenient for users to use.
Further, the literal viewing area in the step 1 is shared drive, in the step 1 read and conversion process is stored in the ARGB formatted data in the shared drive, the reading out data from shared drive of the show process in the step 2.Read and conversion process and the shared internal memory of two processes of show process, multi-process Sharing Memory Realization data buffer storage has reduced taking of internal memory, reduces data copy, has improved the efficient that system realizes.In the prior art, generally be step 1 read and conversion process leaves the ARGB formatted data in the buffer memory that process sets in, the another one process is after the buffer memory copies data, show process in the step 2 copies again, having increased so undoubtedly the number of times of data copy, is great test for the hardware of the such CPU disposal ability of set-top box deficiency, and the technical scheme that adopts above-mentioned internal memory to share, so that greatly reduced the copy of data, improved system effectiveness.
Further, said method is stored in the ARGB formatted data in the shared drive after also being included in and reading last literal and finish, and then adds one section clear data.So that literal has the interval between showing, made things convenient for reading of user.
Further, said method also comprises when not needing to show captions, empties the literal viewing area.By technique scheme, when the user does not need to show captions, can directly empty the literal viewing area, do not show captions, so that the user can select neatly, convenient for users to use.Such as, the button that a correspondence is set at remote controller corresponding to set-top box realizes, after the user presses this button, show process just can not be from shared drive reading out data, so that the user can control whether show captions very neatly, be very easy to user's use.
Further, the mode of the data segmentation in the above-mentioned shared drive is stored.Adopt the mode of segmentation to store corresponding data, reduce taking of internal memory, improved the efficient of system.
Further, the appointment mode is adopted in the access of above-mentioned shared drive and protection.The appointment mode is adopted in access and protection to shared drive, reduces data copy, raises the efficiency.
The invention also discloses and realize that this set-top box shows the system of plug-in captions method, it specifically comprises read module, conversion module, display module, and described read module is used for reading the literal of corresponding time of caption character according to current reproduction time; Described conversion module changes into corresponding UNICODE code with the literal that reads, and then calls the rgb format data that the FreeType storehouse obtains literal, and the rgb format data are changed into the ARGB formatted data and are stored in the literal viewing area, notifies at last show process; Described display module is used for reading the ARGB formatted data when needs show captions, copies on the framebuffer to show.By said system, so that set-top box can show plug-in captions, enlarged the range of application of set-top box, convenient for users to use.
Further, above-mentioned literal viewing area is shared drive, and conversion module is stored in the ARGB formatted data in the shared drive, reading out data in the display module shared drive.Two modules of conversion module and display module share an internal memory, and a plurality of module Sharing Memory Realization data buffer storages have reduced taking of internal memory, reduce data copy, have improved the efficient that system realizes.The technical scheme that adopts above-mentioned internal memory to share so that greatly reduced the copy of data, has improved system effectiveness.
Further, said system also comprises blank module, and described blank module is used for after reading last literal and finishing the ARGB formatted data being stored in the shared drive, then adds one section clear data.Blank module has made things convenient for reading of user so that literal has the interval between showing.
Further, said system also comprises the removing module, and described removing module is used for emptying the literal viewing area when not needing to show captions.By technique scheme, when the user does not need to show captions, can directly empty the literal viewing area, do not show captions, so that the user can select neatly, convenient for users to use.Such as, the button that a correspondence is set at remote controller corresponding to set-top box realizes, after the user presses this button, show process just can not be from shared drive reading out data, so that the user can control whether show captions very neatly, be very easy to user's use.
Further, the mode of the data segmentation in the above-mentioned shared drive is stored.Adopt the mode of segmentation to store corresponding data, reduce taking of internal memory, improved the efficient of system.
Further, the appointment mode is adopted in the access of above-mentioned shared drive and protection.The appointment mode is adopted in access and protection to shared drive, reduces data copy, raises the efficiency.
Given coefficient and parameter in the above embodiments; provide to those skilled in the art and realize or use of the present invention; the present invention does not limit and only gets aforementioned disclosed numerical value; in the situation that does not break away from invention thought of the present invention; those skilled in the art can make various modifications or adjustment to above-described embodiment; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.
Claims (10)
1. a set-top box shows the method for plug-in captions, it specifically comprises following steps: 1. read and conversion process reads the literal of corresponding time in the caption character according to current reproduction time, and the literal that reads changed into corresponding UNICODE code, then call the rgb format data that the FreeType storehouse obtains literal, and the rgb format data are changed into the ARGB formatted data and be stored in the literal viewing area, notify at last show process; 2. when needs showed captions, show process read the ARGB formatted data, copies on the framebuffer to show.
2. set-top box as claimed in claim 1 shows the method for plug-in captions, it is characterized in that the literal viewing area in the described step 1 is shared drive, in the step 1 read and conversion process is stored in the ARGB formatted data in the shared drive, the reading out data from shared drive of the show process in the step 2.
3. set-top box as claimed in claim 2 shows the method for plug-in captions, it is characterized in that described method also be included in read last literal and finish after, the ARGB formatted data is stored in the shared drive, then add one section clear data.
4. set-top box as claimed in claim 3 shows the method for plug-in captions, it is characterized in that described method also comprises when not needing to show captions, empties the literal viewing area.
5. set-top box as claimed in claim 4 shows the method for plug-in captions, it is characterized in that the mode of the data segmentation in the described shared drive is stored.
6. set-top box as claimed in claim 5 shows the method for plug-in captions, it is characterized in that access and the protection employing appointment mode of described shared drive.
7. realize that set-top box shows the system of plug-in captions for one kind, it is characterized in that specifically comprising read module, conversion module, display module, described read module is used for reading the literal of corresponding time of caption character according to current reproduction time; Described conversion module changes into corresponding UNICODE code with the literal that reads, and then calls the rgb format data that the FreeType storehouse obtains literal, and the rgb format data are changed into the ARGB formatted data and are stored in the literal viewing area, notifies at last show process; Described display module is used for reading the ARGB formatted data when needs show captions, copies on the framebuffer to show.
8. realization set-top box as claimed in claim 7 shows the system of plug-in captions, it is characterized in that described literal viewing area is shared drive, and conversion module is stored in the ARGB formatted data in the shared drive, reading out data in the display module shared drive.
9. realization set-top box as claimed in claim 8 shows the system of plug-in captions, it is characterized in that described system also comprises blank module, described blank module is used for after reading last literal and finishing the ARGB formatted data being stored in the shared drive, then adds one section clear data.
10. realization set-top box as claimed in claim 9 shows the system of plug-in captions, it is characterized in that described system also comprises the removing module, and described removing module is used for emptying the literal viewing area when not needing to show captions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105789043A CN103067774A (en) | 2012-12-28 | 2012-12-28 | Method and system capable of enabling set top box to display add-on subtitles |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105789043A CN103067774A (en) | 2012-12-28 | 2012-12-28 | Method and system capable of enabling set top box to display add-on subtitles |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103067774A true CN103067774A (en) | 2013-04-24 |
Family
ID=48110207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105789043A Pending CN103067774A (en) | 2012-12-28 | 2012-12-28 | Method and system capable of enabling set top box to display add-on subtitles |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103067774A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104780416A (en) * | 2015-03-18 | 2015-07-15 | 福建新大陆通信科技股份有限公司 | A set top box subtitle display system |
CN105657540A (en) * | 2016-01-05 | 2016-06-08 | 珠海全志科技股份有限公司 | Video decoding method adapted to Android system and device thereof |
CN107086027A (en) * | 2017-06-23 | 2017-08-22 | 青岛海信移动通信技术股份有限公司 | Character displaying method and device, mobile terminal and storage medium |
CN108600856A (en) * | 2018-03-20 | 2018-09-28 | 青岛海信电器股份有限公司 | The recognition methods of plug-in subtitle language and device in video file |
CN108781218A (en) * | 2017-11-07 | 2018-11-09 | 深圳市大疆创新科技有限公司 | Data processing method, data sending terminal, receiving terminal and communication system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340635A (en) * | 2010-07-14 | 2012-02-01 | Tcl集团股份有限公司 | Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment |
CN202231825U (en) * | 2011-07-20 | 2012-05-23 | 苏州工业职业技术学院 | IPTV system realizing personalized interface display |
CN102522103A (en) * | 2011-11-15 | 2012-06-27 | 四川九洲电器集团有限责任公司 | MP3 streaming media sound mixing method of set top box |
-
2012
- 2012-12-28 CN CN2012105789043A patent/CN103067774A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340635A (en) * | 2010-07-14 | 2012-02-01 | Tcl集团股份有限公司 | Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment |
CN202231825U (en) * | 2011-07-20 | 2012-05-23 | 苏州工业职业技术学院 | IPTV system realizing personalized interface display |
CN102522103A (en) * | 2011-11-15 | 2012-06-27 | 四川九洲电器集团有限责任公司 | MP3 streaming media sound mixing method of set top box |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104780416A (en) * | 2015-03-18 | 2015-07-15 | 福建新大陆通信科技股份有限公司 | A set top box subtitle display system |
CN104780416B (en) * | 2015-03-18 | 2017-09-08 | 福建新大陆通信科技股份有限公司 | A kind of set top box caption display system |
CN105657540A (en) * | 2016-01-05 | 2016-06-08 | 珠海全志科技股份有限公司 | Video decoding method adapted to Android system and device thereof |
CN105657540B (en) * | 2016-01-05 | 2019-02-22 | 珠海全志科技股份有限公司 | A kind of video encoding/decoding method and its device being adapted to Android system |
CN107086027A (en) * | 2017-06-23 | 2017-08-22 | 青岛海信移动通信技术股份有限公司 | Character displaying method and device, mobile terminal and storage medium |
CN108781218A (en) * | 2017-11-07 | 2018-11-09 | 深圳市大疆创新科技有限公司 | Data processing method, data sending terminal, receiving terminal and communication system |
WO2019090471A1 (en) * | 2017-11-07 | 2019-05-16 | 深圳市大疆创新科技有限公司 | Data processing method, data sending end, data receiving end, and communication system |
CN108600856A (en) * | 2018-03-20 | 2018-09-28 | 青岛海信电器股份有限公司 | The recognition methods of plug-in subtitle language and device in video file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905744B (en) | One kind renders synthetic method and system | |
CN1095276C (en) | Transmission of an electronic database of information | |
CN1095277C (en) | Transmission of menus to receiver | |
CN101930337B (en) | Method for processing on-screen display and associated embedded system | |
CN103067774A (en) | Method and system capable of enabling set top box to display add-on subtitles | |
US8830300B2 (en) | Multiscalar stereo video format conversion | |
EP2559270B1 (en) | Method and apparatus for generating and playing animation message | |
CN101340587A (en) | Method for encoding input image, method and apparatus for displaying an encoded image | |
CN101702242A (en) | Method and terminal for automatically filling in document with fixed format | |
US11755271B2 (en) | Stitching display system and image processing method of the same | |
CN103702054A (en) | Visualization method and visualization device for multi-channel signal source and television | |
CN1937779A (en) | Method for improving television terminal device digital caption data processing efficiency | |
CN102215428B (en) | Picture processing method and STB (Set Top Box) | |
CN108769806B (en) | Media content display method and device | |
US8884983B2 (en) | Time-synchronized graphics composition in a 2.5-dimensional user interface environment | |
CN101778287B (en) | Digital television navigation method, system and device | |
US8159613B2 (en) | Method for setting caption window attributes and associated television system | |
CN101105928A (en) | Multimedia playback system, multimedia data reproduction apparatus, and method thereof | |
CN101291402B (en) | Method and device for combined using functional interface images | |
CN101237543A (en) | Setting method for caption window attribute and related TV system | |
US7889915B2 (en) | Image processing device and method thereof | |
CN104021579A (en) | Method and device for changing colors of image | |
CN108933955A (en) | A kind of method for drafting and device | |
US8421919B2 (en) | Method for displaying captions and associated embedded system | |
CN113014834B (en) | Picture subtitle display method and device and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130424 |