CN101086834A - A method for controlling display effect of caption and control device - Google Patents

A method for controlling display effect of caption and control device Download PDF

Info

Publication number
CN101086834A
CN101086834A CN 200610083908 CN200610083908A CN101086834A CN 101086834 A CN101086834 A CN 101086834A CN 200610083908 CN200610083908 CN 200610083908 CN 200610083908 A CN200610083908 A CN 200610083908A CN 101086834 A CN101086834 A CN 101086834A
Authority
CN
China
Prior art keywords
font
color
module
value
modify
Prior art date
Application number
CN 200610083908
Other languages
Chinese (zh)
Inventor
颜俊贤
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN 200610083908 priority Critical patent/CN101086834A/en
Publication of CN101086834A publication Critical patent/CN101086834A/en

Links

Abstract

The invention relates to an effective way controlling the caption display. It gets the decoded caption data from the buffer and changes the feature of the data to generate caption image represented in pixels and displayed by display equipment. Through the application of this invention, it can autonomously controlling the display effect of the caption.

Description

一种控制字幕显示效果的方法及控制设备 A method of controlling a caption display and control apparatus

技术领域 FIELD

本发明涉及数字电视画面展现领域,特别是涉及一种控制字幕显示效果的方法及控制设备。 The present invention relates to the field of digital television screen to show, in particular, to a method and a subtitle display control device controls.

背景技术 Background technique

与传统模拟电视相比较,数字电视最大的优势在其具有强大的交互性,使用户可控制观看效果。 Compared with traditional analog television, the biggest advantage of digital TV has a powerful interactive in that the user can control the viewing.

字幕在用户观看节目时起到了很大的辅助作用,但不同的用户对字幕的需求不尽相同。 Subtitle played a significant supporting role while the user views the program, but the different needs of users of different subtitles. 例如:视力不好的用户可能要求字体大点,有的用户想将字幕变为自己喜欢的字体,有的用户想将字幕变为自己喜欢的颜色。 For example: people with low vision may require large point font, some users want to become their favorite caption font, some users will want subtitles become their favorite color. 而内容提供商不可能为每位用户对应提供一种字幕。 The content provider can not provide a caption corresponding to each user.

在数字电视中,最终呈现在用户面前的画面实际上是由四层画面重叠合成的结果。 In digital television, the final screen presented to the user is actually the result of synthesis by the overlapping four screens. 参见图1所示,所述四层画面分别为背景层、视频层、字幕层和图象层。 Referring to FIG. 1, the four pictures are a background layer, video layer, picture layer, and subtitle layer. 内容提供商发出的传输流所承载的数据会按照数据特性分流到对应的层中,这四层是个抽象的概念,表现在实际应用中分别对应了一段内存的存储单元。 Data transport stream emitted from a content provider will be routed according to carried data to the corresponding characteristic of the layer, four layers is an abstract concept, and in the practical application of the corresponding memory section of a memory cell.

其中,所述字幕层用来承载字幕信息。 Wherein the subtitle layer for carrying subtitle information. 在数字视频广播DVB的字幕规范中,字幕以文本形式传送,所述文本中携带有字幕的各种信息,其中包括:字体的颜色,字幕的背景颜色。 In the digital video broadcast DVB subtitle specification, the subtitle transmission in text form, the various information text captions carries, including: font color, background color of subtitles. 字体大小虽然不直接包括在字幕信息中,但可通过调整字体所占区域的大小,来达到调整字体大小的目的,即字幕层被划分成多个方形区域,字幕在这些方形区域中呈现,当调整区域的长度和宽度时,里面的字幕字体大小也会相应的变化。 While not directly font size information included in the subtitle, but the font size by adjusting the occupied area, adjust the font size to achieve the object, i.e. the subtitle layer is divided into a plurality of rectangular regions, the rendering of subtitles in the square region, when adjusting the length and width of the area, which the subtitle font size will change accordingly. 字体类型储存在字幕信息的对象字段里面。 Font type is stored in the object field caption information inside. 字体颜色储存在字幕信息中的CLUT表中,以前景颜色存在,字幕背景颜色也存储在字幕信息中的CLUT表中,以背景颜色存在。 CLUT table stored in the subtitle font color information in the foreground color to exist, the marquee background color CLUT table stored in the subtitle information, the background color to exist. 每个区域都会有特定的CLUT表与之相联系。 Each region will have a specific CLUT table associated with it.

综上所述,目前在数字电视DTV和网络电视IPTV中,字幕均在内容提供商处被固定了显示形式,包括:字体大小,字体颜色和字体类型。 In summary, the current digital television DTV and IPTV network television, the subtitles are displayed in the form of a fixed content providers, including: font size, font color and font type. 内容提供商在字幕流中只提供有限的几种字幕。 Content providers only provide a limited number of subtitles in the subtitle stream.

但是,用户的需求是多样的,而内容提供商所提供的几种字幕无法满足用户的需求;另外,如果让内容提供商提供足以满足绝大多数用户需求的字幕种类,则增大了内容提供商的工作量,并且在传输字幕流时,对于网络带宽、服务器和机顶盒的性能要求也会提高,目前难以达到。 However, the user's needs are diverse, and several content providers can not meet the needs of users subtitles; In addition, if the content providers make enough to meet the needs of most users subtitles species, increasing the content provider 's workload, and in the transmission of subtitle streams for network bandwidth, servers and set-top box performance requirements will improve the current difficult to achieve.

发明内容 SUMMARY

本发明提供一种控制字幕显示效果的方法及控制设备,用以解决目前内容提供商提供的字幕种类不能满足用户需求的问题。 The present invention provides a control method and a subtitle display control apparatus to address the current species caption contents provider can not meet user needs.

本发明方法包括下列步骤:A、设备从其缓存中获取解码后的字幕数据;B、按照收到的控制信号修改获取的字幕数据的属性值;C、将修改后的字幕数据生成以象素表示的字幕图像,并由显示设备显示。 The method of the present invention includes the following steps: A, its cache apparatus acquires the decoded subtitle data; B, according to the acquired attribute value modification control signal received subtitle data; C, the subtitle data to generate modified pixel subtitle image represented by the display device displays.

其中,所述步骤B中还包括:将修改后的字幕数据重新写入缓存中。 Wherein said step B further comprising: subtitle writing the modified data to the cache again.

其中,所述设备收到控制信号后,进行下列判断,以确定待修改的字幕数据属性:判断是否指示修改字体大小;判断是否指示修改字体颜色;判断是否指示修改字幕背景颜色。 Wherein, after the device receives the control signal, the following judgment, to determine the properties of the subtitle data to be modified: determining whether instructions to modify the font size; determines whether instructions to modify font color; determines whether instructions to modify the background color of the subtitles.

所述字幕数据的属性分别对应不同的标识符。 The subtitle data attributes corresponding to different identifiers.

进一步,所述步骤B中,若对字体大小进行修改,则以字体大小对应的标识符为索引,分别查找到字体所占区域的长度值和宽度值,并根据收到的控制信号修改所述长度值和宽度值。 Further, the step B, if the font size be modified, as the font size corresponding to the identifier as an index to find the font are occupied length and width of the area, and modifying a control signal based on said received the length and width of.

若对字体大小进行修改,则判定收到的控制信号指示放大字体或缩小字体,并相应缩放所述长度值和宽度值。 If the font size to be modified, it is determined that the received control signal indicative of an enlarged or reduced font font, and the corresponding length and width of the scaling values.

进一步,所述步骤B中,若对字体颜色进行修改,则以字体颜色对应的标识符为索引,查找到前景对象的颜色值,并根据收到的控制信号修改所述前景对象的颜色值。 Further, the step B, if the font color be modified, as the font identifier corresponding to the color index, to find the foreground object color values ​​and color values ​​in accordance with the received control signal to modify the foreground object.

进一步,所述步骤B中,若对字幕背景颜色进行修改,则以字幕背景颜色对应的标识符为索引,查找到背景对象的颜色值,并根据收到的控制信号修改所述背景对象的颜色值。 Further, the step B, if the background color for subtitle modified, as corresponding to the background color of caption identifier as an index to find the value of the background color of the object and the background object according to the modification of the color control signal received value.

所述字幕数据的属性值以预设的最大值和/或最小值为限。 Attribute value of the subtitle data with a preset maximum and / or minimum limit.

本发明的控制设备,包括:用户接口模块,用于将收到的控制信号转换为相应的事件信息;字幕数据缓存,用于缓存解码后的字幕数据;转换模块,用于将字幕数据生成以象素表示的字幕图像,并输出;所述控制设备还包括:字幕控制模块,用于从所述字幕数据缓存中获取字幕数据,并按照所述用户接口模块发来的事件信息修改获取的字幕数据的属性值。 The control device according to the present invention, comprising: a user interface module for converting the control signal corresponding to the received event information; subtitle data buffer, the buffer for subtitle data decoding; conversion module configured to generate the subtitle data subtitle image represented by pixel, and outputs; said control apparatus further comprising: a control module of subtitles, the subtitle data for acquiring data from the subtitle buffer, and modify the subtitles acquired according to the user interface event information sent by the module value of the attribute data.

其中,所述字幕控制模块将修改后的字幕数据重新写入字幕数据缓存中,以备所述转换模块转换。 Wherein said control module subtitle subtitle data re-write the modified cache subtitle data, the conversion module to prepare for conversion.

其中,所述字幕控制模块中包括下列子模块:输入处理模块,用于判定接收到的事件信息指示修改字体大小和/或指示修改颜色;字体大小控制模块,用于在收到所述输入处理模块的触发信号时,判断所述事件信息指示放大字体或指示缩小字体;字体放大执行模块,用于在收到所述字体大小控制模块的触发信号时,放大字体;字体缩小执行模块,用于在收到所述字体大小控制模块的触发信号时,缩小字体;颜色控制模块,用于在收到所述输入处理模块的触发信号时,判断所述事件信息指示修改字体颜色和/或指示修改字幕背景颜色;字体颜色修改执行模块,用于在收到所述颜色控制模块的触发信号时,修改字体颜色;字幕背景颜色修改执行模块,用于在收到所述颜色控制模块的触发信号时,修改字幕背景颜色。 Wherein said control module caption sub-modules include the following: an input processing module, for determining whether the received event information indicating modify the font size and / or color modification indication; font size control module for receipt in said input process when the trigger module, determines the event information indicates an enlarged font or font indicates reduced; font size execution module configured to, when receiving the trigger signal control module of the font size, font enlarged; Font to narrow the module, for upon receipt of the trigger signal control module of the font size, the font reduced; color control module for receiving the trigger signal when the input processing module, determine whether the event information indicates a font color modification and / or instructions to modify subtitles background color; when receiving a trigger signal to the color control module changes the background color of the caption execution module configured; font color modification execution module configured to, when receiving the trigger signal control module of the color, font color modification , modify the caption background color.

进一步,所述字体放大执行模块以字体大小对应的标识符为索引,分别查找到字体所占区域的长度值和宽度值,并按照原长宽比例关系,递增所述长度值和宽度值。 Further, the execution module enlarged font size in the font identifier corresponding to the index, respectively, to find the font length and width of occupied area, and according to the original aspect ratio relationship, incrementing the value of the length and width.

进一步,所述字体缩小执行模块以字体大小对应的标识符为索引,分别查找到字体所占区域的长度值和宽度值,并按照原长宽比例关系,递减所述长度值和宽度值。 Further, the execution module to reduce the font size of the font identifier corresponding to the index, respectively, to find the font length and width of occupied area, and the relationship according to the original aspect ratio, decreasing the length and width of.

进一步,其特征在于,所述字体颜色修改执行模块以字体颜色对应的标识符为索引,查找到前景对象的颜色值,并以预设的颜色值之一修改前景对象的颜色值。 Further, characterized in that the execution module to modify font color corresponding to the color of the font identifier as an index to find the foreground object color values ​​and color values ​​to a predetermined one of the color values ​​of the foreground object is modified.

进一步,其特征在于,所述字幕背景颜色修改执行模块以字幕背景颜色对应的标识符为索引,查找到背景对象的颜色值,并以预设的颜色值之一修改背景对象的颜色值。 Further, wherein the execution module of subtitles changes the background color corresponding to the background color of a caption identifier as an index to find the value of the background color of the object, and to modify the value of one of the preset color value of the background color of the object.

所述字幕数据的属性值以预设的最大值和/或最小值为限。 Attribute value of the subtitle data with a preset maximum and / or minimum limit.

本发明有益效果如下:本发明不直接对解码后的字幕数据进行转换,并输出到显示设备,而是从其缓存中获取解码后的字幕数据,并按照收到的控制信号(由用户发出)修改获取的字幕数据的属性值,之后将修改后的字幕数据重新写入缓存中,再将修改后的字幕数据生成以象素表示的字幕图像,并由显示设备显示。 Advantageous effects of the present invention are as follows: The present invention is not directly decoded subtitle data to be converted and output to the display device, but acquires the decoded subtitle data from its cache, and (issued by the user) according to the received control signal modify the acquired attribute value of the subtitle data, the subtitle data after re-writing the modified cache, then the modified data to generate the subtitle caption image expressed in pixels, the display by the display device.

本发明方法流程中加入了用户发出控制信号,以修改字幕数据属性值的步骤,并通过获取字幕数据,修改属性值,重新写入缓存等操作,对用户的修改意图加以实施,从而实现由用户自主控制字幕的显示效果,显然本发明可以满足每一用户对字幕显示效果的需求。 The method of the present invention is added to the flow control signal issued by the user to modify the property value in step subtitle data, the subtitle data and retrieve, modify an attribute value, operations such as re-write cache, implemented modifications are intended to the user, enabling the user independent control of subtitle display, that the invention can satisfy the needs of each user subtitle display effect.

为了支撑本发明方法,本发明还提供了一种控制设备,其包括现有机顶盒中的用户接口模块、字幕数据缓存、转换模块,本发明还添加了字幕控制模块,用于从所述字幕数据缓存中获取字幕数据,并按照所述用户接口模块发来的事件信息修改获取的字幕数据的属性值。 In order to support the method of the present invention, the present invention also provides a control apparatus which comprises a conventional set-top box user interface module, subtitle data buffer, conversion module, the present invention also adds subtitles control module for data from the subtitle cache acquires caption data, and modify the attribute value of the subtitle data acquired according to the user interface event information sent by the module.

附图说明 BRIEF DESCRIPTION

图1为数字电视画面结构示意图;图2为本发明的控制设备结构示意图;图3为本发明控制设备中的字幕控制模块的内部结构示意图;图4为本发明方法步骤流程图;图5为本发明方法实例流程图。 1 is a schematic structure of a digital television screen; controlling a schematic configuration diagram of apparatus 2 of the present invention; schematic internal structure of the control device of the control module of subtitles in the present invention. FIG. 3; FIG. 4 is a flowchart of the method steps of the invention; FIG. 5 is a The method of the present invention, examples of a flowchart.

具体实施方式 Detailed ways

为了满足用户对字幕显示效果的不同需求,使字幕提供更加人性化,本发明提供了一种控制设备,所述控制设备包括但不限于机顶盒,还可为其他视频接入控制设备,参见图2所示,其包括:通过UdUi接口与用户交互设备1相连的用户接口模块2,通过UiCm接口与用户接口模块2相连的字幕控制模块3,通过CmSb接口与字幕控制模块3相连的字幕数据缓存4,通过SbTm接口与字幕数据缓存4相连的转换模块5,所述转换模块5还通过TmDd接口与显示设备6相连。 In order to meet the different needs of the user subtitle display effects of subtitles so provide more humane, the present invention provides a control apparatus, said control apparatus including but not limited to a set top box, but also for other video access control device, see FIG. 2 shown, comprising: an interface connected via UdUi user interaction device 1 with the user interface module 2, connected to the subtitle UiCm interface user interface module 2 control module 3, the control module 3 subtitle data buffer 4 is connected through an interface subtitle CmSb by SbTm subtitle data buffer interface conversion module coupled to 5 4, 5 is also connected to the conversion module 6 with the display device via the interface TmDd.

所述用户交互设备1包括:键盘、鼠标、遥控器。 The user interaction device 1 comprises: a keyboard, a mouse, a remote controller. 用户通过这些设备向本发明的控制设备发送控制信号。 User sends a control signal to the control device of the present invention by these devices.

所述用户接口模块2,用于接收用户通过键盘、鼠标、遥控器发送的控制信号,并将收到的信号转换成相应的事件信息,通过消息或者非消息的机制传给字幕控制模块3来处理。 The user interface module 2, for receiving a control signal sent by a user through a keyboard, mouse, remote control, and converts the received signal into the corresponding event information through the mechanism of message or message passed to the non-subtitle control module. 3 deal with.

所述字幕控制模块3,用于接收用户接口模块2传来的事件信息,并对事件信息进行更加细致的判断,分为字体变大事件,字体变小事件,修改字体颜色事件,修改字幕背景颜色事件。 The subtitle control module 3, for receiving the event information transmitted from the user interface module 2, a more detailed information and event determination, into the font larger event, the event becomes small font, font color modification event, modify the subtitles BACKGROUND color event. 根据相应的事件,启用字幕控制模块3中的子功能模块,读取保存在字幕数据缓存4中的解码后的字幕数据,找到其中与所述事件相应的属性标识符,并修改其值。 The corresponding event, to enable the control module 3 subtitle sub-function blocks to read the data stored in the subtitle decoded subtitle data buffer 4, wherein to find the event corresponding to the attribute identifier, and change its value. 之后,还实时以该值修改字幕数据缓存4新收到的字幕数据的该项属性值。 After further modified in real time caption data buffer 4 The new property value received subtitle data to the value.

所述字幕数据缓存4,其中存放解码后的字幕数据。 The subtitle data buffer 4, wherein the stored decoded subtitle data. 字幕控制模块3可以从其中读取字幕数据,进行修改后,再储存到该缓存4中。 The control module may read the subtitle subtitle data from the 3 wherein, after modification, and then stored in the cache 4.

所述转换模块5,用于根据字体文件中对字体大小、字体颜色、字幕背景颜色的描述,将点阵或者矢量字体转换成像素表示的字体。 The conversion module 5, according to a typeface font file for the font size, font color, background color of the caption is described to convert the vector font into a dot or pixel.

所述显示设备6,用于将经过转换模块5得到的用像素表示的字体在其上面呈现。 The display device 6 for converting the font module 5 through the pixels obtained are shown presented thereon.

所述UdUi接口根据用户交互设备1的不同,可为不同的接口。 The UdUi interfaces depending on the user interaction device 1, may be different interfaces. 如:遥控器与用户接口模块2间通过红外通讯。 Such as: a remote control and user interface module 2 by infrared communication. 键盘、鼠标可以通过PS/2接口或USB接口与用户接口模块2通讯。 Keyboard, mouse / 2 or USB interface communication with the user interface module 2 by PS.

所述UiCm接口,用于向字幕控制模块3传输用户接口模块2发出的事件信息。 The UiCm interface event information module 3 2 transmission sent by the user interface module for controlling the subtitles.

所述CmSb接口,字幕控制模块3通过该接口从字幕数据缓存4中读取数据,并把修改后的值通过该接口重新写入缓存4中。 The CmSb interface subtitle control module 3 reads data from the subtitle data cache 4 through the interface, and the modified value is rewritten by the cache interface 4.

所述SbTm接口,用于将修改后的字幕数据传递到转换模块5。 The SbTm interface for transferring the modified data to the caption conversion module 5.

所述TmDd接口,用于将像素表示的字幕传输给显示设备6。 The TmDd interface for transmission to the caption display device 6 in pixels.

参见图3所示,上述字幕控制模块3中又包括:与输入处理模块301相连的字体大小控制模块302和颜色控制模块303,与字体大小控制模块302相连的字体放大执行模块304和字体缩小执行模块305,以及与颜色控制模块303相连的字体颜色修改执行模块306和字幕背景颜色修改执行模块307。 Referring to Figure 3, the subtitle control module 3 also includes: a control module connected to the font size of the processing module 301 and input 302 and a color control module 303, the font and font size control module 302 coupled to module 304 performs enlargement and reduction execution Font module 305, and a color control module 303 connected to the font color and modify the execution module 306 performs a subtitle module 307 changes the background color.

所述输入处理模块301,用于判断接收到的事件信息是字体大小事件,还是颜色控制事件,并相应向字体大小控制模块302或颜色控制模块303发送触发信号。 The input processing module 301, event information for determining the received event is a font size, or a color control events, and 303 corresponding to the font size or color control module 302 sending a trigger signal control module.

所述字体大小控制模块302,用于接收输入处理模块301发来的修改字体大小信号,并进一步判断该信号是放大信号,还是缩小信号。 The font size control module 302, a processing module for receiving input signals 301 to modify the font size is sent, and the signal is further amplified signal is determined, or reduced signal. 之后,相应向字体放大执行模块304或字体缩小执行模块305发送触发信号。 Thereafter, the execution module 304 or the respective enlarged font to font reduction execution module 305 sends a trigger signal.

所述颜色控制模块303,用于接收输入处理模块301发来的修改颜色信号,并进一步判断该信号是修改字体颜色信号,还是修改字幕背景颜色信号。 The color control module 303, for receiving and processing module 301 to modify the color signals sent from the input signal and further determines whether the signal is to modify the font color, background color, or modify caption signal. 之后,相应向字体颜色修改执行模块306或字幕背景颜色修改执行模块307发送触发信号。 Thereafter, the corresponding execution module 306 to modify the font color or background color of subtitles to modify the execution module 307 sends a trigger signal.

所述字体放大执行模块304,用于在收到字体大小控制模块302发来的放大信号后,从字幕数据缓存4中获取字幕数据,并以字体大小对应的标识符(标识符为region_width和region_height)为索引,分别查找到字体所占区域的长度值和宽度值。 The Font Size execution module 304 configured to acquire the subtitle data from the subtitle data buffer 4 after receiving the font size control module 302 amplifies the signal sent, and corresponds to the font size (identifier of region_width and region_height ) as an index, were found length and width of the area occupied by the font. 之后,判断目前字体所占区域的长度值和/或宽度值是否已经达到预设的最大值,若是,则返回等待用户输入状态;否则,按照原长宽比例关系,递增所述长度值和宽度值,或者由用户直接输入待修改的数值(注:目前区域的长度范围在1~720象素,宽度在1~576象素)。 After determining the current value of the length of the area occupied by the font and / or whether the width value has reached a predetermined maximum value, if yes, return to a state waiting for user input; otherwise, according to the original aspect ratio relationship, incrementing the length and width value, or a value entered by the user directly to be modified (Note: the current length of the region 1 to 720 pixels, 576 pixels width 1). 按照现有规范字体所占区域变大,则在该区域中的字体也会相应变大。 According to the prior specification increases the area occupied by the font, the font in this region will be increased accordingly.

所述字体缩小执行模块305,用于在收到字体大小控制模块302发来的缩小信号后,从字幕数据缓存4中获取字幕数据,并以字体大小对应的标识符(标识符为region_width和region_height)为索引,分别查找到字体所占区域的长度值和宽度值。 The font module 305 performs reduction, for obtaining the subtitle data from the subtitle data buffer 4 after receiving the font size reduction module control signal 302 sent, and corresponds to the font size (identifier of region_width and region_height ) as an index, were found length and width of the area occupied by the font. 之后,判断目前字体所占区域的长度值和/或宽度值是否已经达到预设的最小值,若是,则返回等待用户输入状态;否则,按照原长宽比例关系,递减所述长度值和宽度值,或者由用户直接输入待修改的数值(注:目前区域的长度范围在1~720象素,宽度在1~576象素)。 After determining the current value of the length of the area occupied by the font and / or whether the width value has reached the preset minimum value, if yes, return to a state waiting for user input; the length and width Otherwise, according to the original relationship between the aspect ratio, decreasing value, or a value entered by the user directly to be modified (Note: the current length of the region 1 to 720 pixels, 576 pixels width 1). 按照现有规范字体所占区域变小,则在该区域中的字体也会相应变小。 According to the prior specification small area occupied by the font, the font in this region will be correspondingly less.

所述字体颜色修改执行模块306,用于在收到颜色控制模块303发来的修改字体颜色信号后,从字幕数据缓存4中获取字幕数据,并以字体颜色对应的标识符(标识符为foreground_pixel_code)为索引,查找到前景对象的颜色值,并以预设的颜色值之一修改前景对象的颜色值(可由用户挑选)。 The font color modification executing module 306, configured to acquire the subtitle data from the subtitle data buffer after receiving 4 color control module 303 to modify the signal sent to the font color and font color corresponding to the identifier (identifier foreground_pixel_code ) for the index, find the color values ​​of the foreground object and to modify the default value of one color foreground object color values ​​(selected by the user).

所述字幕背景颜色修改执行模块307用于在收到颜色控制模块303发来的修改字幕背景颜色信号后,从字幕数据缓存4中获取字幕数据,并以字幕背景颜色对应的标识符(标识符为blackground_pixel+code)为索引,查找到背景对象的颜色值,并以预设的颜色值之一修改背景对象的颜色值(可由用户挑选)。 The subtitle execution module 307 changes the background color for the subtitle data acquired from the subtitle data buffer 4 after receiving the control module to modify the color of the background color caption signal 303 is sent, and a caption corresponding to the background color (identifier as blackground_pixel + code) for the index, find the color value of the background object, and one color at a preset value change the background color of the object values ​​(selected by the user).

应用上述控制设备,本发明提供了一种控制字幕显示效果的方法,参见图4所示,包括下列主要步骤:a、控制设备收到控制信号。 Application of the control apparatus, the present invention provides a method of controlling a caption display, as shown in Figure 4, comprises the following main steps: a, the control device receives the control signal.

用户通过遥控器、鼠标或键盘等用户交互设备发出控制信号,该控制信号被机顶盒STB上的接收装置接收后,由STB判断是否为字幕控制信号(判断过程为现有技术),若是,则进行后续步骤。 User control signals and the like via a remote controller, a mouse or keyboard user interaction device, the control signal is received by the receiving means on the set-top box STB, the STB determines whether a caption control signals (decision process of the prior art), if yes, for subsequent step.

b、从其缓存中获取解码后的字幕数据。 b, acquires the decoded subtitle data from its cache.

c、按照收到的控制信号修改获取的字幕数据的属性值。 c, modify the attribute values ​​obtained subtitle data according to the received control signal.

d、将修改后的字幕数据重新写入缓存中。 d, the subtitle data rewrite the modified cache.

e、将修改后的字幕数据生成以象素表示的字幕图像,并由显示设备显示。 E, the subtitle data to generate modified pixel representation in the caption image, displayed by the display device.

以下对上述5个主要步骤展开,并结合本发明的控制设备中的模块,详细描述本发明方法的实施流程,参见图5所示,包括下列具体步骤:S1、当用户启动STB时,字幕控制模块3随之启动,并进入等待用户输入控制信号状态。 The following five major steps of the above-described deployment, combined with a control device module according to the present invention, flow of the method embodiment of the present invention in detail, referring to FIG. 5, comprising the following specific steps: S1, when a user starts the STB, subtitle control module 3 is started up, and enters a state waiting for user input control signal.

S2、当字幕控制模块3接收到用户输入的控制信号后,将该信号交由输入处理模块301进行处理。 S2, when the subtitle control module 3 receives the control signal input by a user, referred to the input signal processing module 301 for processing.

S3、输入处理模块301判断是否是修改字体大小信号。 S3, an input processing module 301 determines whether the signal is to modify the font size. 如果是修改字体大小信号,则转到步骤S4,如果不是修改字体大小信号,则转到步骤S11。 If the signal is to modify the font size, go to step S4, if the font size of the signal is not modified, then go to step S11.

S4、调用字体大小控制模块302。 S4, call the font size control module 302.

S5、判断是否是放大信号。 S5, judging whether the amplified signal. 如果是放大信号,则转到步骤S6,如果不是,则转到步骤S8。 If the signal is amplified, then go to step S6, the If not, go to step S8.

S6、字体放大执行模块304判断目前区域的长度和宽度是否已经是最大。 S6, execution module 304 determines the font amplifying the current length and width of the area is already the greatest. 如果目前区域的长度和宽度是最大,则转到步骤S1,如果不是最大,则转到步骤S7。 If the length and width of the current area are the greatest, then go to step S1, if not the largest, go to step S7.

S7、区域的长度和宽度按原先的比例关系增加一个单位数量,并将该值作用于后来的所有字幕。 S7 length and width, the area increases as originally a ratio between the number of units, and this value is applied to all subsequent subtitles. 之后返回步骤S1。 After the processing returns to step S1.

S8、判断是否是缩小字体信号。 S8, to determine whether the signal is reduced font. 如果是缩小信号,则转到步骤S9,如果不是,则转到步骤S1。 If the signal is reduced, then go to step S9, and if not, go to step S1.

S9、字体缩小执行模块305判断目前区域的长度和宽度是否已经是最小。 S9, the execution module 305 determines the font reduced length and width of the current area is already a minimum. 如果目前区域的长度和宽度已经是最小,则转到步骤S1,如果不是最小,则转到步骤S10。 If the current region has a length and width is a minimum, then go to step S1, if not the smallest, then proceeds to step S10.

S10、区域的长度和宽度按照原先的比例关系减少一个单位数量,并将该值作用于后来所有的字幕。 SlO length and width, the number of unit regions is reduced according to a ratio between the original, and this value is used for all subsequent subtitles. 之后返回步骤S1。 After the processing returns to step S1.

S11、颜色控制模块303判断是否是修改字体颜色信号。 S11, color control module 303 determines whether to modify the font color signal. 如果是修改字体颜色信号,则转到步骤S12,如果不是修改字体颜色信号,则转到步骤S13。 If the signal is to modify the font color, it goes to step S12, if not change the font color signal, go to step S13.

S12、字体颜色修改执行模块306找到该字幕对应的CLUT表,变化一种前景颜色组合,并将该值作用于后来所有的字幕。 S12, font color edit performing module 306 to find the corresponding subtitle CLUT table, variation of one foreground color combination, and then the value is used for all the subtitles. 之后返回步骤S1。 After the processing returns to step S1.

S13、判断是否是修改字幕背景颜色信号。 S13, it determines whether to modify the background color caption signal. 如果是修改字幕背景颜色信号,则转到步骤S14。 If the signal is to modify the marquee background color, it goes to step S14. 如果不是,则转到步骤S1。 If not, go to step S1.

S14、字幕背景颜色修改执行模块307找到该字幕对应的CLUT表,变化一种背景颜色组合,并将该值作用于后来的所有字幕,返回到步骤S1。 S14, the subtitles changes the background color of the caption execution module 307 to find the corresponding CLUT table, variation of one background color combinations, and the value is used for all subsequent subtitles, returns to step S1.

在上述流程中的部分判断步骤之间可以互换位置,例如:步骤S11与步骤S13之间的顺序可以互换,步骤S5与步骤S8之间的顺序可以互换。 Between the step portion is determined in the above scheme can be interchanged, for example: the order of step S11 and step S13 may be interchanged between the sequence between step S8 and step S5 may be interchanged.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。 Obviously, those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. 这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (18)

1.一种控制字幕显示效果的方法,其特征在于,包括下列步骤:A、设备从其缓存中获取解码后的字幕数据;B、按照收到的控制信号修改获取的字幕数据的属性值;C、将修改后的字幕数据生成以象素表示的字幕图像,并由显示设备显示。 A method of controlling a caption display, the method comprising the steps of: A, acquires the device data decoded from the subtitle buffer; B, according to the acquired attribute value modification control signal received caption data; C, the subtitle data to generate modified pixel representation in the caption image, displayed by the display device.
2.如权利要求1所述的方法,其特征在于,所述步骤B中还包括:将修改后的字幕数据重新写入缓存中。 2. The method according to claim 1, wherein said step B further comprising: subtitle writing the modified data to the cache again.
3.如权利要求1所述的方法,其特征在于,所述设备收到控制信号后,进行下列判断,以确定待修改的字幕数据属性:判断是否指示修改字体大小;判断是否指示修改字体颜色;判断是否指示修改字幕背景颜色。 3. The method according to claim 1, characterized in that, after the device receives the control signal, the following judgment, to determine the properties of the subtitle data to be modified: determining whether instructions to modify the font size; font color determines whether instructions to modify ; determines whether instructions to modify the background color of the subtitles.
4.如权利要求3所述的方法,其特征在于,所述字幕数据的属性分别对应不同的标识符。 4. The method according to claim 3, wherein the attribute of the subtitle data corresponding to different identifiers.
5.如权利要求4所述的方法,其特征在于,所述步骤B中,若对字体大小进行修改,则以字体大小对应的标识符为索引,分别查找到字体所占区域的长度值和宽度值,并根据收到的控制信号修改所述长度值和宽度值。 5. The method according to claim 4, wherein said step B, if modify the font size, the font size corresponding to places identifier as an index to find the length value respectively, the area occupied by the font and width value, and the received control signal to modify the length value and a width value.
6.如权利要求5所述的方法,其特征在于,若对字体大小进行修改,则判定收到的控制信号指示放大字体或缩小字体,并相应缩放所述长度值和宽度值。 6. The method according to claim 5, wherein, if the font size to be modified, it is determined that the received control signal indicative of an enlarged or reduced font font, and the corresponding length and width of the scaling values.
7.如权利要求4所述的方法,其特征在于,所述步骤B中,若对字体颜色进行修改,则以字体颜色对应的标识符为索引,查找到前景对象的颜色值,并根据收到的控制信号修改所述前景对象的颜色值。 7. The method according to claim 4, wherein said step B, if modify font color, font color identifier corresponding places as an index to find the color values ​​of the foreground object, and received in accordance with a control signal to modify color values ​​of the foreground object.
8.如权利要求4所述的方法,其特征在于,所述步骤B中,若对字幕背景颜色进行修改,则以字幕背景颜色对应的标识符为索引,查找到背景对象的颜色值,并根据收到的控制信号修改所述背景对象的颜色值。 8. The method according to claim 4, wherein said step B, if the background color of the caption modified, as corresponding to the background color of caption identifier as an index to find the color values ​​of the background object, and modifying the color value of the control signal according to a background object received.
9.如权利要求1至8任一项所述的方法,其特征在于,所述字幕数据的属性值以预设的最大值和/或最小值为限。 9. The method according to any one of claims 8, wherein the attribute value of the subtitle data with a preset maximum and / or minimum limit.
10.如权利要求9所述的方法,其特征在于,由用户输入待修改的字幕数据的属性值;或者由用户选择属性值组别,并按照预设的属性值修改。 10. The method according to claim 9, wherein the user input by the attribute value of the subtitle data to be modified; or attribute value group selected by the user, according to a preset value and to modify the properties.
11.一种控制设备,包括:用户接口模块,用于将收到的控制信号转换为相应的事件信息;字幕数据缓存,用于缓存解码后的字幕数据;转换模块,用于将字幕数据生成以象素表示的字幕图像,并输出;其特征在于,所述控制设备还包括:字幕控制模块,用于从所述字幕数据缓存中获取字幕数据,并按照所述用户接口模块发来的事件信息修改获取的字幕数据的属性值。 A control apparatus, comprising: a user interface module for converting the control signal corresponding to the received event information; subtitle data buffer, the buffer for subtitle data decoding; converting module, configured to generate the subtitle data caption image represented by pixel, and outputs; characterized in that said control apparatus further comprising: a control module of subtitles, the subtitle data for acquiring data from the subtitle buffer, and the user interface according to events sent by the module modify property value information obtained subtitle data.
12.如权利要求11所述的设备,其特征在于,所述字幕控制模块将修改后的字幕数据重新写入字幕数据缓存中,以备所述转换模块转换。 12. The apparatus of claim 11, wherein said control module subtitle subtitle data re-write the modified cache subtitle data, the conversion module to prepare for conversion.
13.如权利要求11所述的设备,其特征在于,所述字幕控制模块中包括下列子模块:输入处理模块,用于判定接收到的事件信息指示修改字体大小和/或指示修改颜色;字体大小控制模块,用于在收到所述输入处理模块的触发信号时,判断所述事件信息指示放大字体或指示缩小字体;字体放大执行模块,用于在收到所述字体大小控制模块的触发信号时,放大字体;字体缩小执行模块,用于在收到所述字体大小控制模块的触发信号时,缩小字体;颜色控制模块,用于在收到所述输入处理模块的触发信号时,判断所述事件信息指示修改字体颜色和/或指示修改字幕背景颜色;字体颜色修改执行模块,用于在收到所述颜色控制模块的触发信号时,修改字体颜色;字幕背景颜色修改执行模块,用于在收到所述颜色控制模块的触发信号时,修改字幕背景颜色。 13. The apparatus of claim 11, wherein said control module caption sub-modules include the following: an input processing module, for determining whether the received event information indicating modify the font size and / or color modification indication; Font size control module for receiving the trigger signal when the input processing module, determines the event information indicates an enlarged font or font indicates reduced; font size execution module, configured to receive the font size to trigger control module signal, amplifies the font; the font reduced execution module configured to, when receiving the trigger signal control module of the font size, the font reduced; color control module for receiving the trigger signal when the input processing module determines the event information indicates a font color modification and / or instructions to modify the background color of subtitles; font color modification execution module configured to, when receiving the trigger signal control module of the color, font color modification; execution module changes the background color of subtitles, with upon receipt of a trigger signal to the color control module, modify the background color of subtitles.
14.如权利要求13所述的设备,其特征在于,所述字体放大执行模块以字体大小对应的标识符为索引,分别查找到字体所占区域的长度值和宽度值,并按照原长宽比例关系,递增所述长度值和宽度值。 14. The apparatus according to claim 13, wherein the execution module enlarged font size in the font identifier corresponding to the index, respectively, to find the font length and width of occupied area, and according to the original length and width proportional, incrementing the value of the length and width.
15.如权利要求13所述的设备,其特征在于,所述字体缩小执行模块以字体大小对应的标识符为索引,分别查找到字体所占区域的长度值和宽度值,并按照原长宽比例关系,递减所述长度值和宽度值。 15. The apparatus according to claim 13, wherein the execution module to reduce the font size of the font identifier corresponding to the index, respectively, to find the length and width of the area occupied by the font, and in accordance with the length and width of the original proportional, decrementing the length value and a width value.
16.如权利要求13所述的设备,其特征在于,所述字体颜色修改执行模块以字体颜色对应的标识符为索引,查找到前景对象的颜色值,并以预设的颜色值之一修改前景对象的颜色值。 16. The apparatus according to claim 13, wherein said modified execution module font color corresponding to the color of the font identifier as an index to find the foreground object color values ​​and the color values ​​to one of a predetermined modified color foreground object.
17.如权利要求13所述的设备,其特征在于,所述字幕背景颜色修改执行模块以字幕背景颜色对应的标识符为索引,查找到背景对象的颜色值,并以预设的颜色值之一修改背景对象的颜色值。 17. The apparatus according to claim 13, wherein the execution module of subtitles changes the background color corresponding to the background color of a caption identifier as an index to find the value of the background color of the object, and a preset color value a modified color value of the background object.
18.如权利要求11至17任一项所述的设备,其特征在于,所述字幕数据的属性值以预设的最大值和/或最小值为限。 11 18. The apparatus according to any one of claims 17, wherein the attribute value of the subtitle data with a preset maximum and / or minimum limit.
CN 200610083908 2006-06-06 2006-06-06 A method for controlling display effect of caption and control device CN101086834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610083908 CN101086834A (en) 2006-06-06 2006-06-06 A method for controlling display effect of caption and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610083908 CN101086834A (en) 2006-06-06 2006-06-06 A method for controlling display effect of caption and control device

Publications (1)

Publication Number Publication Date
CN101086834A true CN101086834A (en) 2007-12-12

Family

ID=38937758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610083908 CN101086834A (en) 2006-06-06 2006-06-06 A method for controlling display effect of caption and control device

Country Status (1)

Country Link
CN (1) CN101086834A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764955A (en) * 2008-11-28 2010-06-30 新奥特(北京)视频技术有限公司 Fast caption-inputting method
CN101489052B (en) 2008-01-14 2010-12-01 中国网通集团宽带业务应用国家工程实验室有限公司;联合信源数字音视频技术(北京)有限公司 Subtitle data processing method and apparatus
CN102082931A (en) * 2009-11-30 2011-06-01 新奥特(北京)视频技术有限公司 Method and device for self-adaptive adjustment of title areas
CN102082932A (en) * 2009-11-30 2011-06-01 新奥特(北京)视频技术有限公司 Method and device for updating subtitle in secondary software
CN102088566A (en) * 2009-12-03 2011-06-08 新奥特(北京)视频技术有限公司 Method and device for playing television graphic and text subtitles with special effects
CN102572298A (en) * 2010-12-29 2012-07-11 新奥特(北京)视频技术有限公司 System and method for rendering subtitle in advance
CN102724417A (en) * 2011-05-09 2012-10-10 新奥特(北京)视频技术有限公司 Method and system for realizing caption special effect in louver mode
CN102724410A (en) * 2011-05-06 2012-10-10 新奥特(北京)视频技术有限公司 Method and apparatus for font correction of different caption generators
CN102984467A (en) * 2012-10-30 2013-03-20 广东威创视讯科技股份有限公司 Subtitle real-time update method and subtitle real-time update system
CN103067678A (en) * 2011-10-20 2013-04-24 四川长虹电器股份有限公司 Television subtitle display method and device
CN103414936A (en) * 2013-08-02 2013-11-27 深圳Tcl新技术有限公司 Subtitle display method and device
CN103533256A (en) * 2013-10-28 2014-01-22 广东威创视讯科技股份有限公司 Method and device for processing subtitle and subtitle display system
WO2015070761A1 (en) * 2013-11-15 2015-05-21 乐视致新电子科技(天津)有限公司 Smart tv media player and caption processing method thereof, and smart tv

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101489052B (en) 2008-01-14 2010-12-01 中国网通集团宽带业务应用国家工程实验室有限公司;联合信源数字音视频技术(北京)有限公司 Subtitle data processing method and apparatus
CN101764955A (en) * 2008-11-28 2010-06-30 新奥特(北京)视频技术有限公司 Fast caption-inputting method
CN101764955B (en) 2008-11-28 2013-05-01 新奥特(北京)视频技术有限公司 Fast caption-inputting method
CN102082932B (en) * 2009-11-30 2015-03-25 新奥特(北京)视频技术有限公司 Method and device for updating subtitle in secondary software
CN102082931A (en) * 2009-11-30 2011-06-01 新奥特(北京)视频技术有限公司 Method and device for self-adaptive adjustment of title areas
CN102082932A (en) * 2009-11-30 2011-06-01 新奥特(北京)视频技术有限公司 Method and device for updating subtitle in secondary software
CN102088566B (en) * 2009-12-03 2015-09-23 新奥特(北京)视频技术有限公司 A television broadcast teletext subtitle method and apparatus trick
CN102088566A (en) * 2009-12-03 2011-06-08 新奥特(北京)视频技术有限公司 Method and device for playing television graphic and text subtitles with special effects
CN102572298A (en) * 2010-12-29 2012-07-11 新奥特(北京)视频技术有限公司 System and method for rendering subtitle in advance
CN102724410A (en) * 2011-05-06 2012-10-10 新奥特(北京)视频技术有限公司 Method and apparatus for font correction of different caption generators
CN102724417A (en) * 2011-05-09 2012-10-10 新奥特(北京)视频技术有限公司 Method and system for realizing caption special effect in louver mode
CN102724417B (en) * 2011-05-09 2015-05-27 新奥特(北京)视频技术有限公司 Method and system for realizing caption special effect in louver mode
CN103067678A (en) * 2011-10-20 2013-04-24 四川长虹电器股份有限公司 Television subtitle display method and device
CN102984467A (en) * 2012-10-30 2013-03-20 广东威创视讯科技股份有限公司 Subtitle real-time update method and subtitle real-time update system
CN103414936A (en) * 2013-08-02 2013-11-27 深圳Tcl新技术有限公司 Subtitle display method and device
CN103414936B (en) * 2013-08-02 2017-07-25 深圳Tcl新技术有限公司 Subtitle display method and apparatus
CN103533256A (en) * 2013-10-28 2014-01-22 广东威创视讯科技股份有限公司 Method and device for processing subtitle and subtitle display system
WO2015070761A1 (en) * 2013-11-15 2015-05-21 乐视致新电子科技(天津)有限公司 Smart tv media player and caption processing method thereof, and smart tv

Similar Documents

Publication Publication Date Title
USRE39003E1 (en) Closed caption support with timewarp
US7836193B2 (en) Method and apparatus for providing graphical overlays in a multimedia system
KR100989503B1 (en) Method and apparatus for composition of subtitles
US6859236B2 (en) Image processing apparatus
US6707504B2 (en) Caption display method of digital television
US6885406B2 (en) Apparatus and method for controlling display of image information including character information, including appropriate size control of a display window
KR101446939B1 (en) System and method for remote control
US7627883B2 (en) Interactive entertainment and information system using television set-top box
US7119849B2 (en) Multi-screen synthesis apparatus, method of controlling the apparatus, and program for controlling the apparatus
EP0810580A2 (en) Data conversion apparatus for pseudo-interactive data communication system
US20020069411A1 (en) Enhanced display of world wide web pages on television
JP4711675B2 (en) Video resolution control for the web browser and video display
US20020157094A1 (en) Display control apparatus and method, receiving apparatus and recording medium
US7305698B1 (en) Data communication system, data transmitting apparatus, and data receiving apparatus
US6204842B1 (en) System and method for a user interface to input URL addresses from captured video frames
US8065614B2 (en) System for displaying video and method thereof
US7551190B2 (en) Display processing method and display processing apparatus
US20090003731A1 (en) Image data providing apparatus, image display apparatus, image display system, method for controlling image data providing apparatus, method for controlling image display apparatus, control program, and recording medium
JP5583733B2 (en) Apparatus and method for performing low bandwidth play position preview video content
JP2005110286A (en) Miniaturized video feed generation and user-interface
JP2005534368A (en) A system and method for a game based on the video-on-demand
JP4541476B2 (en) Multi-image display system and the multi-image display method
WO2001022631A1 (en) Data distribution method and apparatus, and data reception method and apparatus
US20020067428A1 (en) System and method for selecting symbols on a television display
CN1536883A (en) Apparatus and method for playback PIP on display device

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C12 Rejection of an application for a patent