CN102340635A - Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment - Google Patents

Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment Download PDF

Info

Publication number
CN102340635A
CN102340635A CN201010227693XA CN201010227693A CN102340635A CN 102340635 A CN102340635 A CN 102340635A CN 201010227693X A CN201010227693X A CN 201010227693XA CN 201010227693 A CN201010227693 A CN 201010227693A CN 102340635 A CN102340635 A CN 102340635A
Authority
CN
China
Prior art keywords
font
color
character
data bitmap
character contour
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
CN201010227693XA
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.)
TCL Corp
Original Assignee
TCL 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 TCL Corp filed Critical TCL Corp
Priority to CN201010227693XA priority Critical patent/CN102340635A/en
Publication of CN102340635A publication Critical patent/CN102340635A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention belongs to the technical field of multimedia playing, which discloses multimedia playing equipment and a method and device for displaying texts in a file of the multimedia playing equipment. The method comprises the following steps of: acquiring bitmap data of fonts to be played; acquiring colors of font outlines according to colors corresponding to the bitmap data, wherein the colors of the font outlines are different from the colors corresponding to the bitmap data; drawing the font outlines of the fonts to be displayed according to the colors of the font outlines; drawing the fonts to be displayed according to colors corresponding to the bitmap data; and displaying the drawn fonts. According to the invention, the problem that external store subtitle is indistinct because a main color of a video is similar or the same as the display color of the external store subtitle is better solved; and the great convenience for watch of a user is realized.

Description

The character displaying method of a kind of multimedia play equipment and file thereof and device
Technical field
The invention belongs to multimedia technology field, be specifically related to the character displaying method and the device of a kind of multimedia play equipment and file thereof.
Background technology
Along with the continuous development of Play Technique for Multimedia, the user is also increasingly high to the requirement of multimedia quality.
In the multimedia process, be example with the film, literal is play and is played important effect, is especially playing the part of the literal of interpret role, and plug-in captions are exactly a kind of literal broadcast mode wherein.
Plug-in captions are exactly that the caption information in the film is separated, and form a subtitle file separately, in movie, import subtitle file, and the literal in the subtitle file will show with film synchronously.The benefit of plug-in captions is to revise the literal of film easily, revises literal wherein according to the language form that the user needs.
Because plug-in captions are independent of the film video file, plug-in captions itself are the texts of writing according to srt captions standard, therefore in high definition player, depend on the literal Presentation Function of player for the demonstration of plug-in captions.
When movie; Plug-in captions are superimposed upon on the video file and manifest; Because various variations take place in color in the video file playing process and brightness meeting; Especially when the Show Color of the main color of video and captions is close or identical, will cause captions unintelligible, influence user's viewing.
How to solve because the main color of video is close or identical with the Show Color of plug-in captions, the unsharp problem of plug-in captions that causes is one of direction of Play Technique for Multimedia area research.
Summary of the invention
The object of the present invention is to provide a kind of character displaying method of multimedia file, be intended to solve because the main color of video is close or identical with the Show Color of plug-in captions the unsharp problem of plug-in captions that causes.
The embodiment of the invention is achieved in that a kind of character displaying method of multimedia file, said method comprising the steps of:
Obtain the data bitmap of font to be shown;
Obtain the color of character contour according to the corresponding color of said data bitmap, wherein, the color that the color of said character contour and said data bitmap are corresponding is different;
Color according to said character contour is drawn the character contour of said font to be shown;
Color according to said data bitmap is corresponding is drawn said font to be shown;
Font after drawing is shown.
Another purpose of the embodiment of the invention is to provide a kind of character display apparatus of multimedia file, and said device comprises:
The data bitmap acquisition module is used to obtain the data bitmap of font to be shown;
Profile color acquisition module is used for obtaining according to the corresponding color of said data bitmap the color of character contour, and wherein, the color that the color of said character contour and said data bitmap are corresponding is different;
Profile color drafting module is used for according to the color of said character contour the character contour of said font to be shown being drawn;
The font drafting module is used for according to the corresponding color of said data bitmap said font to be shown being drawn;
The font display module is used for the font after drawing is shown.
An also purpose of the embodiment of the invention is to provide a kind of multimedia play equipment, and said equipment comprises the character display apparatus of the multimedia file that the embodiment of the invention provides.
The embodiment of the invention is through obtaining the color of character contour; Wherein, The color of said character contour is different with the color of font data bitmap to be shown, according to the color of character contour the character contour of said font to be shown is drawn, afterwards; According to the corresponding color of font data bitmap to be shown said font to be shown being drawn the back shows; Well solve because the main color of video is close or identical with the Show Color of plug-in captions, the unsharp problem of plug-in captions that causes brings great convenience to user's viewing.
Description of drawings
The flow chart of the character displaying method of the multimedia file that Fig. 1 provides for the embodiment of the invention;
The upper left sketch map of character contour to be shown that Fig. 2 provides for the embodiment of the invention;
The top-right sketch map of character contour to be shown that Fig. 3 provides for the embodiment of the invention;
The sketch map of the character contour to be shown lower left that Fig. 4 provides for the embodiment of the invention;
The bottom-right sketch map of character contour to be shown that Fig. 5 provides for the embodiment of the invention;
The design sketch that font to be shown that Fig. 6 provides for the embodiment of the invention and profile thereof are drawn;
Fig. 7 treats the design sketch that display font is retouched the limit for what the embodiment of the invention provided;
The structure chart of the character display apparatus of the multimedia file that Fig. 8 provides for the embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Fig. 1 shows the flow process of the character displaying method of the multimedia file that the embodiment of the invention provides.
In step S101, obtain the data bitmap of font to be shown.
The embodiment of the invention is through the font drawing engine; Freetype2 for example obtains the data bitmap of font to be shown, wherein; Each pixel in the data bitmap is formed, and is indicated the transparency of this pixel through the α value of each pixel by r, g, three kinds of colors of b.
In step S102, obtain the color of character contour according to the corresponding color of said data bitmap, wherein, the color that the color of said character contour and said data bitmap are corresponding is different;
Preferably, the color of the said character contour color corresponding with said data bitmap is opposite, certainly, also other different modes can be arranged, if make color that data bitmap is corresponding and character contour colouring discrimination obviously, do not enumerate one by one here.
Wherein, according to data bitmap corresponding color negate to obtain the algorithm of color of character contour following:
The r value of the r value=0xff-data bitmap of character contour;
The g value of the g value=0xff-data bitmap of character contour;
The b value of the b value=0xff-data bitmap of character contour;
The α value of the α value=0xff-data bitmap of character contour.
In step S103, the character contour of said font to be shown is drawn according to the color of said character contour.
When drawing, the embodiment of the invention is also drawn said font to be shown according to the color of said character contour, promptly whole font to be shown and profile thereof is drawn.
Wherein, the character contour of said font to be shown is: on the upper left side of said font display position to be shown, and the upper right side, lower left, lower right are drawn font to be shown respectively and are formed.
After getting access to the color of character contour, replace the corresponding color of data bitmap of font to be shown with the color of character contour, the character contour of said font to be shown is drawn.
The coordinate that font pixel for example to be shown is drawn be A (x, y), then:
It is that (x-1 y+1), sees also Fig. 2 to B that the position is drawn on the upper left side;
It is that (x+1 y+1), sees also Fig. 3 to C that the position is drawn in the upper right side;
It is that (x-1 y-1), sees also Fig. 4 to D that the position is drawn in the lower left;
It is that (x+1 y-1), sees also Fig. 5 to E that the position is drawn in the lower right;
The effect that whole font to be shown and profile thereof are drawn sees also Fig. 6;
In step S104, said font to be shown is drawn according to the color that said data bitmap is corresponding.
(x y) draws literal, is combined in the drafting of treating the display text profile among the step S103, promptly obtains retouching the limit effect, sees also Fig. 7 at former font coordinate to be shown with the color of data bitmap.
In step S105, the font after drawing is shown.
Fig. 8 shows the structure of the character display apparatus of the multimedia file that the embodiment of the invention provides.Wherein, said device comprises data bitmap acquisition module 81, profile color acquisition module 82, profile color drafting module 83, font drafting module 84 and font display module 85.
Wherein, data bitmap acquisition module 81 obtains the data bitmap of font to be shown.
In the embodiment of the invention, data bitmap acquisition module 81 obtains the data bitmap of font to be shown through connective word volume drawing engine through the font drawing engine.
Profile color acquisition module 82 obtains the color of character contour according to the corresponding color of said data bitmap, and wherein, the color that the color of said character contour and said data bitmap are corresponding is different.
In the embodiment of the invention, for outstanding font display effect, the color of the character contour that the is obtained color corresponding with said data bitmap is opposite.
Profile color drafting module 83 is drawn the character contour of said font to be shown according to the color of said character contour;
Wherein, the character contour of said font to be shown is: on the upper left side of said font display position to be shown, and the upper right side, lower left, lower right are drawn font to be shown respectively and are formed.
Simultaneously, font drafting module 84 is drawn said font to be shown according to the color of said character contour.
Afterwards, font drafting module 84 is drawn said font to be shown according to the corresponding color of said data bitmap.
At last, the font after font display module 85 will be drawn shows.
The embodiment of the invention also provides a kind of multimedia play equipment, and said equipment comprises the character display apparatus of the multimedia file that the embodiment of the invention provides, and in view of this device has detailed description at preceding text, repeats no more here.
The embodiment of the invention is through obtaining the color of character contour; Wherein, The color of said character contour is different with the color of font data bitmap to be shown, according to the color of character contour the character contour of said font to be shown is drawn, afterwards; According to the corresponding color of font data bitmap to be shown said font to be shown being drawn the back shows; Well solve because the main color of video is close or identical with the Show Color of plug-in captions, the unsharp problem of plug-in captions that causes brings great convenience to user's viewing.
Should be understood that, concerning those of ordinary skills, can improve or conversion, and these improvement and conversion all should belong to the protection range of accompanying claims of the present invention according to above-mentioned explanation.

Claims (10)

1. the character displaying method of a multimedia file is characterized in that, said method comprising the steps of:
Obtain the data bitmap of font to be shown;
Obtain the color of character contour according to the corresponding color of said data bitmap, wherein, the color that the color of said character contour and said data bitmap are corresponding is different;
Color according to said character contour is drawn the character contour of said font to be shown;
Color according to said data bitmap is corresponding is drawn said font to be shown;
Font after drawing is shown.
2. the character displaying method of multimedia file as claimed in claim 1 is characterized in that,
The color of the said character contour color corresponding with said data bitmap is opposite.
3. the character displaying method of multimedia file as claimed in claim 1 is characterized in that,
The character contour of said font to be shown is: on the upper left side of said font display position to be shown, and the upper right side, lower left, lower right are drawn font to be shown respectively and are formed.
4. the character displaying method of multimedia file as claimed in claim 1 is characterized in that, when carrying out the step of the said data bitmap that obtains font to be shown, obtains the data bitmap of font to be shown through the font drawing engine.
5. the character displaying method of multimedia file as claimed in claim 1 is characterized in that, when according to the color of said character contour the character contour of said font to be shown being drawn, comprising:
Color according to said character contour is drawn said font to be shown.
6. the character display apparatus of a multimedia file is characterized in that, said device comprises:
The data bitmap acquisition module is used to obtain the data bitmap of font to be shown;
Profile color acquisition module is used for obtaining according to the corresponding color of said data bitmap the color of character contour, and wherein, the color that the color of said character contour and said data bitmap are corresponding is different;
Profile color drafting module is used for according to the color of said character contour the character contour of said font to be shown being drawn;
The font drafting module is used for according to the corresponding color of said data bitmap said font to be shown being drawn;
The font display module is used for the font after drawing is shown.
7. the character display apparatus of multimedia file as claimed in claim 6 is characterized in that,
The color of the said character contour color corresponding with said data bitmap is opposite.
8. the character display apparatus of multimedia file as claimed in claim 6 is characterized in that,
The character contour of said font to be shown is: on the upper left side of said font display position to be shown, and the upper right side, lower left, lower right are drawn font to be shown respectively and are formed.
9. the character display apparatus of multimedia file as claimed in claim 6 is characterized in that, said font drafting module also is used for according to the color of said character contour said font to be shown being drawn.
10. a multimedia play equipment is characterized in that, said equipment comprises the character display apparatus of each described multimedia file of claim 6 to 9.
CN201010227693XA 2010-07-14 2010-07-14 Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment Pending CN102340635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010227693XA CN102340635A (en) 2010-07-14 2010-07-14 Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010227693XA CN102340635A (en) 2010-07-14 2010-07-14 Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment

Publications (1)

Publication Number Publication Date
CN102340635A true CN102340635A (en) 2012-02-01

Family

ID=45516117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010227693XA Pending CN102340635A (en) 2010-07-14 2010-07-14 Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment

Country Status (1)

Country Link
CN (1) CN102340635A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067774A (en) * 2012-12-28 2013-04-24 四川九洲电器集团有限责任公司 Method and system capable of enabling set top box to display add-on subtitles
CN105898517A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Caption display control method and device
CN106126140A (en) * 2016-06-16 2016-11-16 北京金山安全软件有限公司 Method and device for rendering characters and electronic equipment
CN106802800A (en) * 2016-12-30 2017-06-06 深圳芯智汇科技有限公司 The generation method and display device of graphical interfaces
CN107086027A (en) * 2017-06-23 2017-08-22 青岛海信移动通信技术股份有限公司 Character displaying method and device, mobile terminal and storage medium
CN107124666A (en) * 2017-04-21 2017-09-01 深圳市普天宜通技术股份有限公司 A kind of yuv video captions retouch side method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980035081U (en) * 1996-12-12 1998-09-15 김영환 How to display outlines of OSD characters
CN1497525A (en) * 2002-10-04 2004-05-19 国际商业机器公司 Technique for setting printing width of outline character
CN1848929A (en) * 2005-04-15 2006-10-18 三星电子株式会社 AV (audio/video) system and method for forming bitmap font outline of the AV system
CN101625848A (en) * 2009-07-28 2010-01-13 宁波新然电子信息科技发展有限公司 Realization method of vector font library oriented to embedded platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980035081U (en) * 1996-12-12 1998-09-15 김영환 How to display outlines of OSD characters
CN1497525A (en) * 2002-10-04 2004-05-19 国际商业机器公司 Technique for setting printing width of outline character
CN1848929A (en) * 2005-04-15 2006-10-18 三星电子株式会社 AV (audio/video) system and method for forming bitmap font outline of the AV system
CN101625848A (en) * 2009-07-28 2010-01-13 宁波新然电子信息科技发展有限公司 Realization method of vector font library oriented to embedded platform

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067774A (en) * 2012-12-28 2013-04-24 四川九洲电器集团有限责任公司 Method and system capable of enabling set top box to display add-on subtitles
CN105898517A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Caption display control method and device
CN106126140A (en) * 2016-06-16 2016-11-16 北京金山安全软件有限公司 Method and device for rendering characters and electronic equipment
CN106126140B (en) * 2016-06-16 2019-07-23 珠海豹趣科技有限公司 A kind of method, apparatus and electronic equipment of rendering type
CN106802800A (en) * 2016-12-30 2017-06-06 深圳芯智汇科技有限公司 The generation method and display device of graphical interfaces
CN107124666A (en) * 2017-04-21 2017-09-01 深圳市普天宜通技术股份有限公司 A kind of yuv video captions retouch side method and system
CN107086027A (en) * 2017-06-23 2017-08-22 青岛海信移动通信技术股份有限公司 Character displaying method and device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
Smith-Gratto et al. Gestalt theory: a foundation for instructional screen design
CN102340635A (en) Multimedia playing equipment and method and device for displaying texts in file of multimedia playing equipment
CN102833625B (en) The device and method of dynamic product placement in video
US20060232602A1 (en) Font generation system
CN101620502B (en) Method and system for displaying information in handwriting area
CN103731615B (en) Display method and display device
CN103530594A (en) Method, system and terminal for providing augmented reality
CN105843646A (en) Application starting method and device, and electronic equipment
CN106027485A (en) Rich media display method and system based on voice interaction
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN109388725A (en) The method and device scanned for by video content
CN101964110A (en) Method and system for creating an image
CN108961361B (en) Method and system for generating special effect text image and computer equipment
CN105956133B (en) Method and device for displaying file on intelligent terminal
CN111126083A (en) Terminal picture real-time translation method and system
CN104754397A (en) Hidden caption displaying method and system for digital TV
CN106937103A (en) A kind of image processing method and device
CN104424174B (en) Document processing system and document processing method
CN112528596A (en) Rendering method and device for special effect of characters, electronic equipment and storage medium
CN113986407A (en) Cover generation method and device and computer storage medium
CN103491416A (en) Single-layer displaying method and device of subtitle data
CN115063800B (en) Text recognition method and electronic equipment
Vy et al. Using placement and name for speaker identification in captioning
CN110968804A (en) Museum electronic tag propaganda system based on intelligent Internet of things
KR100944755B1 (en) Language training contents providing system and the media

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120201