[go: up one dir, main page]

CN101998064A - Subtitle generating system and method thereof - Google Patents

Subtitle generating system and method thereof Download PDF

Info

Publication number
CN101998064A
CN101998064A CN2009100603258A CN200910060325A CN101998064A CN 101998064 A CN101998064 A CN 101998064A CN 2009100603258 A CN2009100603258 A CN 2009100603258A CN 200910060325 A CN200910060325 A CN 200910060325A CN 101998064 A CN101998064 A CN 101998064A
Authority
CN
China
Prior art keywords
captions
base map
transparent base
character data
drawn
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
Application number
CN2009100603258A
Other languages
Chinese (zh)
Inventor
周红伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU MIO TECHNOLOGY Ltd
Mitac International Corp
Original Assignee
CHENGDU MIO TECHNOLOGY Ltd
Mitac International Corp
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 CHENGDU MIO TECHNOLOGY Ltd, Mitac International Corp filed Critical CHENGDU MIO TECHNOLOGY Ltd
Priority to CN2009100603258A priority Critical patent/CN101998064A/en
Publication of CN101998064A publication Critical patent/CN101998064A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Systems (AREA)

Abstract

The invention discloses a subtitle generating system and method thereof. The subtitle generating method comprises the following steps of: firstly, creating a transparent base map; subsequently, judging the format of subtitle initial data; and using a direct memory access mode if the format of the subtitle initial data is bitmap, drawing the bitmap on the transparent base map to generate subtitles. The subtitle generating system and the method thereof can reduce the calculation amount of subtitle generation and quickly generate subtitles through the direct memory access mode, and can be applied to a device with weak calculation capability or lack of hardware acceleration function so as to achieve the requirement for real-time subtitle generation.

Description

Captions produce system and method thereof
[technical field]
The invention relates to a kind of Play Technique for Multimedia, particularly produce system and method thereof relevant for a kind of captions.
[background technology]
For supporting the captions of multiple different language, in the existing multimedia video play-back technology, adopt the mode of realtime graphic computing mostly, captions are presented in the broadcasting pictures.
(the European Telecommunications Standards Institute of ETSI European Telecommunications Standards Institute, ETSI) in Digital Television Terrestrial Broadcasting (the Digital Video Broadcasting for Terrestrial of formal promulgation in 1997, DVB-T) be since the European ground digital visual radio transmission technical standard, most countries has adopted its ground digital visual radio network of digital tv ground broadcasting arrangement.And in the relevant criterion of Digital Television Terrestrial Broadcasting relevant for captions (Subtitle), the initial data of captions can encode for sweep length (Run-Length Coding, bitmap RLC) or character data format.Wherein, the output of captions, mostly use Graphics Device Interface (Graphics Device Interface, GDI), open figure chained library (Open Graphics Library, OpenGL), DirectDraw software systems or Direct3D Application Program Interface handle.
Owing to have faster central processing unit (CPU), independently graphic operation processor (GPU) and jumbo internal memory on the personal computer, therefore, on personal computer, use aforementioned manner output captions, can not produce the not enough problem of usefulness.
But for handheld apparatus, for example: intelligent mobile phone (smart phone), PDA(Personal Digital Assistant), portable multimedia player (portable multimedia player, PMP) etc., because operational capability is more weak and lack hardware-accelerated function, when any mode is exported captions on adopt, under most of situations, be difficult to reach the requirement of real-time generation captions.
In view of this, be necessary to propose a kind of captions in fact and produce system and method thereof, utilize this captions generation system and method thereof to realize: (1) can reduce the operand that produces captions, and produce captions fast by the mode of direct memory access; (2) it is more weak or lack on the device of function of hardware acceleration to be used in operational capability, to reach the requirement of real-time generation captions.
[summary of the invention]
Because above-mentioned prior art problems, a wherein purpose of the present invention is exactly to provide a kind of captions to produce system and method thereof, to solve the problem of real-time output captions on the lower device of hardware usefulness.
According to another object of the present invention, a kind of captions production method is proposed, it comprises the following step: at first, set up transparent base map; Then, judge the form of captions initial data; If the form of captions initial data is a bitmap, then use the direct memory access mode, bitmap is drawn on the transparent base map, to produce captions.
Wherein, bitmap can (Run-Length Coding RLC) encodes by the sweep length compiling method.
Wherein, if the form of captions initial data is a character data, then can be with character data to use Graphics Device Interface (Graphics Device Interface, GDI), open figure chained library (Open Graphics Library, OpenGL), mode such as DirectDraw software systems or Direct3D Application Program Interface, be drawn on the transparent base map, to produce captions.
According to a further object of the present invention, propose a kind of captions and produce system, it comprises: base map generation module, judge module and captions generation module, the base map generation module can be in order to set up transparent base map, and judge module is judged the form of captions initial data, and produce judged result, when the captions generation module is bitmap in judged result, use the direct memory access mode, bitmap is drawn on the transparent base map, to produce captions.
Wherein, bitmap can (Run-Length Coding RLC) encodes by the sweep length compiling method.
Wherein, if the form of captions initial data is a character data, the captions generation module then can be with character data by using Graphics Device Interface (Graphics Device Interface, GDI), open figure chained library (Open Graphics Library, OpenGL), mode such as DirectDraw software systems or Direct3D Application Program Interface, be drawn on the transparent base map, to produce captions.
As mentioned above, produce system and method thereof according to captions of the present invention, it can have one or more following advantage:
(1), can reduce the operand that produces captions, and produce captions fast by the mode of direct memory access.
(2) it is more weak or lack on the device of function of hardware acceleration to be used in operational capability, to reach the requirement of real-time generation captions.
[description of drawings]
Fig. 1 illustrates the flow chart into captions production method of the present invention.
Fig. 2 illustrates the schematic diagram of the system that produces into captions of the present invention.
Fig. 3 illustrates first schematic diagram that produces the embodiment of system and method thereof into captions of the present invention.
Fig. 4 illustrates second schematic diagram that produces the embodiment of system and method thereof into captions of the present invention.
Fig. 5 illustrates the 3rd schematic diagram that produces the embodiment of system and method thereof into captions of the present invention.
Fig. 6 illustrates the 4th schematic diagram that produces the embodiment of system and method thereof into captions of the present invention.
[embodiment]
See also Fig. 1, it is the flow chart of captions production method of the present invention.Among the figure, the captions production method comprises the following step: in step S110, set up transparent base map; In step S120, judge the form of captions initial data.If the form of captions initial data is a bitmap, then carry out step S130, use the direct memory access mode, bitmap is drawn on the transparent base map, with the generation captions, and, then carry out step S140 if the form of captions initial data is a character data, character data is drawn on the transparent base map, to produce captions.
Wherein, in step S140, can be by using Graphics Device Interface (Graphics Device Interface, GDI), open figure chained library (Open Graphics Library, OpenGL), modes such as DirectDraw software systems or Direct3D Application Program Interface carry out the drafting of captions.
Method of the present invention is applicable to multimedia play system, also applicable to adopting Digital TV broadcasting standard for terrestrial (Digital Video Broadcasting for Terrestrial, electronic installation DVB-T).
Then, see also Fig. 3, the flow process of captions production method of the present invention is described, please consult Fig. 1 simultaneously to shown in Figure 6.
At first, set up a transparent base map, as shown in Figure 3.Then, judge the captions raw data format.Because the form of the initial data of captions is a bitmap, as shown in Figure 4, then uses the direct memory access mode, the bit map file among Fig. 4 is drawn on the transparent base map of Fig. 3.Result after the drafting sees also Fig. 5.
When the form of the initial data of captions is a character data, for example: " test Test ", at this moment, then directly with this character data, by using Graphics Device Interface (Graphics Device Interface, GDI), open figure chained library (Open Graphics Library, OpenGL), modes such as DirectDraw software systems or Direct3D Application Program Interface are drawn on the transparent base map shown in Figure 3.Result after the drafting sees also Fig. 6.
See also Fig. 2, it is the schematic diagram that captions of the present invention produce system.Among the figure, captions produce system 2 and comprise base map generation module 21, judge module 22 and captions generation module 23, and base map generation module 21 can be in order to set up transparent base map, and judge module 22 is judged the form of captions initial data, and produces judged result.When captions generation module 23 is bitmap in judged result, use the direct memory access mode, bitmap is drawn on the transparent base map, to produce captions.
Wherein, if the form of captions initial data is a character data, 23 of captions generation modules can be with character data by using Graphics Device Interface (Graphics Device Interface, GDI), open figure chained library (Open Graphics Library, OpenGL), mode such as DirectDraw software systems or Direct3D Application Program Interface, be drawn on the transparent base map, to produce captions.
System of the present invention is applicable to multimedia play system, also applicable to adopting Digital TV broadcasting standard for terrestrial (Digital Video Broadcasting for Terrestrial, electronic installation DVB-T).
Then, see also Fig. 3, illustrate that captions of the present invention produce the running of system, please consult Fig. 2 simultaneously to shown in Figure 6.
At first base map generation module 21 is set up a transparent base map, as shown in Figure 3.Then, judge module 22 is judged the captions raw data format and is produced judged result; Next, because the raw data format of captions is a bitmap, as shown in Figure 4, captions generation module 23 uses the direct memory access mode, and just the bit map file among Fig. 4 is drawn on the transparent base map of Fig. 3, and the result after the drafting sees also Fig. 5.
When the form of the initial data of captions is a character data, for example: " test Test ", at this moment, 23 of captions generation modules are directly with this character data, by using Graphics Device Interface (Graphics Device Interface, GDI), (Open Graphics Library, OpenGL), modes such as DirectDraw software systems or Direct3D Application Program Interface are drawn on the transparent base map shown in Figure 3, the result after the drafting sees also Fig. 6 to open figure chained library.
Above-mentioned captions produce among system and method and the embodiment, the related data that is adopted, and bitmap can (Run-Length Coding RLC) encodes with the sweep length compiling method.Character data then can adopt the representation of character code (character encoding), for example: BIG5, Unicode, HKSCS, ISO/IEC 646, ISO/IEC 8859, EBCDIC, GB 18030 and GB 2312 etc.
In order to further specify the enhancing efficiency that captions of the present invention produce system and method thereof, below will adopt and use Graphics Device Interface (Graphics Device Interface, GDI), DirectDraw software systems and direct memory access mode of the present invention, carry out efficiency ratio that captions produce under the same conditions.The method of test is with same subtitle bitmap, use above-mentioned three kinds of methods, the captions that carry out ten times respectively produce, and will produce each time that captions get the time started and the concluding time is noted respectively and (adopts system function the GetTickCount () time of carrying out to note down, and the time unit of getting be the millisecond (ms)), its comparative result please refer to table 1.
As shown in table 1, adopt the direct memory access mode to produce captions, can finish with interior at 30 milliseconds.And if adopt Graphics Device Interface or DirectDraw mode to produce captions, then need to surpass and can finish more than 900 milliseconds.
The usefulness comparison sheet that table 1 captions produce
Figure B2009100603258D0000041
In sum, captions of the present invention produce system and method thereof, it has the characteristic of low operand, it is more weak and lack the device of hardware-accelerated function to apply to operational capability, for example: intelligent mobile phone (smart phone), PDA(Personal Digital Assistant), portable multimedia player (portable mult imedia player, PMP) etc., to reach the requirement of real-time generation captions.

Claims (20)

1. a captions production method is characterized in that, this method comprises the following step:
Set up a transparent base map;
Judge the form of a captions initial data;
If the form of this captions initial data is a bitmap, then use the direct memory access mode, this bitmap is drawn on this transparent base map, to produce captions.
2. captions production method as claimed in claim 1 is characterized in that this bitmap is encoded with the sweep length compiling method.
3. captions production method as claimed in claim 1 is characterized in that, this transparent base map is by using Graphics Device Interface to be set up.
4. captions production method as claimed in claim 1 is characterized in that, this method is applicable to the electronic installation that adopts Digital TV broadcasting standard for terrestrial.
5. captions production method as claimed in claim 1 is characterized in that, this is judged is a character data if this captions initial data gets form in the step of form of this caption data, then this character data is plotted on this transparent base map, to produce captions.
6. captions production method as claimed in claim 5 is characterized in that, uses Graphics Device Interface that this character data is drawn on this transparent base map.
7. captions production method as claimed in claim 5 is characterized in that, uses open figure chained library that this character data is drawn on this transparent base map.
8. captions production method as claimed in claim 5 is characterized in that, uses the DirectDraw software systems that this character data is drawn on this transparent base map.
9. captions production method as claimed in claim 5 is characterized in that, uses the Direct3D Application Program Interface that this character data is drawn on this transparent base map.
10. as claim 5,6,7,8 or 9 described captions production methods, it is characterized in that this character data is represented with character code.
11. captions produce system, it is characterized in that this system comprises:
One base map generation module is in order to set up a transparent base map;
One judge module is judged that a captions initial data gets form, and is produced a judged result;
One captions generation module when this judged result is a bitmap, uses the direct memory access mode, this bitmap is drawn on this transparent base map, to produce captions.
12. captions as claimed in claim 11 produce system, it is characterized in that this bitmap is encoded with the sweep length compiling method.
13. captions as claimed in claim 11 produce system, it is characterized in that, this base map generation module is set up this transparent base map by using Graphics Device Interface.
14. captions as claimed in claim 11 produce system, it is characterized in that, this system is applicable to the electronic installation that adopts Digital TV broadcasting standard for terrestrial.
15. captions as claimed in claim 11 produce system, it is characterized in that, when this captions generation module is a character data at the form as if this captions initial data, then this character data are drawn on this transparent base map, to produce captions.
16. captions as claimed in claim 15 produce system, it is characterized in that, this captions generation module uses Graphics Device Interface that this character data is drawn on this transparent base map.
17. captions as claimed in claim 15 produce system, it is characterized in that, this captions generation module uses open figure chained library that this character data is drawn on this transparent base map.
18. captions as claimed in claim 15 produce system, it is characterized in that, this captions generation module uses the DirectDraw software systems that this character data is drawn on this transparent base map.
19. captions as claimed in claim 15 produce system, it is characterized in that, this captions generation module uses the Direct3D Application Program Interface that this character data is drawn on this transparent base map.
20. produce system as claim 15,16,17,18 or 19 described captions, it is characterized in that this character data is represented with character code.
CN2009100603258A 2009-08-11 2009-08-11 Subtitle generating system and method thereof Pending CN101998064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100603258A CN101998064A (en) 2009-08-11 2009-08-11 Subtitle generating system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100603258A CN101998064A (en) 2009-08-11 2009-08-11 Subtitle generating system and method thereof

Publications (1)

Publication Number Publication Date
CN101998064A true CN101998064A (en) 2011-03-30

Family

ID=43787565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100603258A Pending CN101998064A (en) 2009-08-11 2009-08-11 Subtitle generating system and method thereof

Country Status (1)

Country Link
CN (1) CN101998064A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995440A (en) * 2017-12-13 2018-05-04 北京奇虎科技有限公司 Method and device for generating video subtitle texture
CN109151609A (en) * 2018-09-25 2019-01-04 青岛海信电器股份有限公司 A kind of the subtitle methods of exhibiting and its device of compatible different platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995440A (en) * 2017-12-13 2018-05-04 北京奇虎科技有限公司 Method and device for generating video subtitle texture
CN107995440B (en) * 2017-12-13 2021-03-09 北京奇虎科技有限公司 Video subtitle map generating method and device, computer readable storage medium and terminal equipment
CN109151609A (en) * 2018-09-25 2019-01-04 青岛海信电器股份有限公司 A kind of the subtitle methods of exhibiting and its device of compatible different platform
CN109151609B (en) * 2018-09-25 2021-01-26 海信视像科技股份有限公司 Subtitle display method compatible with different platforms and device thereof

Similar Documents

Publication Publication Date Title
EP3751862B1 (en) Display method and device, television set, and storage medium
CN102164167B (en) Method and system for remote-control classified transmission
RU2008136867A (en) EFFECTIVE CODING OF ALTERNATIVE GRAPHIC SETS
US20220353586A1 (en) Subtitle information display method and apparatus, and electronic device, and computer readable medium
EP1810520A1 (en) Method and system for streaming documents, e-mail attachments and maps to wireless devices
CN103152573A (en) Method and system for transmitting image frame between mobile terminal and intelligent television set
CN111432257A (en) Method for starting screen protection of display equipment and display equipment
CN111294600A (en) Compression method, decompression method and device for video sequence frame
CN112035706A (en) Encoding method, decoding method, computer device, and readable storage medium
CN1937779A (en) Method for improving television terminal device digital caption data processing efficiency
CN102523444B (en) A kind of monochrome bitmap compression method and system thereof
CN113691816A (en) Image display method, image display device, display equipment and storage medium
KR20160120128A (en) Display apparatus and control method thereof
US7580041B1 (en) Direct storage of compressed scan converted data
CN103731672A (en) Audio and video decoding method and smart television
CN101998064A (en) Subtitle generating system and method thereof
CN106416231A (en) Display interface bandwidth modulation
CN102231834A (en) Animated portable network graphics (APNG) file processing method and device for digital television system
CN102467385A (en) Method and device for adapting software interface to different resolutions
CN116170636B (en) Live video playback method and its device, equipment, and medium
CN113627363B (en) Video file processing method, device, equipment and storage medium
CN109274904A (en) A kind of combination caption signal method for previewing, server-side and system
CN105446685B (en) Document playback method and system
CN112565915A (en) Display apparatus and display method
CN113473198B (en) Control method of intelligent equipment and intelligent equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Chengdu Mio Technology Limited

Document name: Notification of Publication and of Entering the Substantive Examination Stage of the Application for Invention

DD01 Delivery of document by public notice

Addressee: Ye Naiyuan

Document name: the First Notification of an Office Action

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110330