CN1950903B - Method and device for reproducing text subtitle data - Google Patents
Method and device for reproducing text subtitle data Download PDFInfo
- Publication number
- CN1950903B CN1950903B CN2005800140788A CN200580014078A CN1950903B CN 1950903 B CN1950903 B CN 1950903B CN 2005800140788 A CN2005800140788 A CN 2005800140788A CN 200580014078 A CN200580014078 A CN 200580014078A CN 1950903 B CN1950903 B CN 1950903B
- Authority
- CN
- China
- Prior art keywords
- information
- text
- style
- region
- data
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
技术领域 technical field
本发明涉及记录介质以及对记录介质进行记录和再现的方法和装置。 The present invention relates to a recording medium and a method and apparatus for recording and reproducing the recording medium. the
背景技术Background technique
光盘已被广泛地用作记录大量数据的光记录介质。最近,引入了蓝光(blu-ray)光盘(BD)用作高密度数字视盘(HD-DVD),用来记录长达许多小时的高清晰度视频数据和优质声音质量的音频数据。 Optical discs have been widely used as optical recording media for recording large amounts of data. Recently, a blu-ray disc (BD) has been introduced as a high-density digital video disc (HD-DVD) for recording many hours of high-definition video data and audio data of excellent sound quality. the
BD已经成为下一代HD-DVD的关注焦点,作为下一代光记录解决方案,用来存储比传统DVD更多的数据。BD的标准化技术规范正在发展。 BD has become the focus of next-generation HD-DVD as a next-generation optical recording solution to store more data than traditional DVD. BD's standardized technical specifications are under development. the
因此,基于BD的技术规范,已经发展了一种用于BD的光记录装置。然而在发展用于BD的光记录装置中有许多困难,因为BD的技术规范还没有完全标准化。 Therefore, based on the specification of the BD, an optical recording apparatus for the BD has been developed. However, there are many difficulties in developing optical recording apparatuses for BDs because the technical specifications of BDs have not been completely standardized. the
为了有效地再现记录在BD中的数据和/或为了方便用户,许多诸如文本字幕信息的辅助数据(AUX数据)可伴随主AV数据同时被提供。同样,必须有效地管理信息来再现主AV数据和次要或辅助数据。 In order to efficiently reproduce data recorded in the BD and/or for user convenience, a lot of auxiliary data (AUX data) such as text subtitle information may be simultaneously provided along with the main AV data. Also, information must be efficiently managed to reproduce main AV data and sub or auxiliary data. the
然而,诸如文本字幕的辅助数据的统一标准还没有被完全提供。因此,在发展用于BD的光记录装置中有许多障碍。 However, a unified standard of auxiliary data such as text subtitles has not been fully provided. Therefore, there are many obstacles in developing an optical recording device for BD. the
发明内容Contents of the invention
本发明部分涉及具有用于管理文本字幕数据再现的数据结构的记录介质。 The present invention relates in part to a recording medium having a data structure for managing reproduction of text subtitle data. the
在一个实施例中,示例性记录介质的记录区域存储文本字幕流,文本字幕流包括对话样式片段及至少一个和对话样式片段关联的对话显像片段。所述对话样式片段包括最少一组样式信息。每组样式信息提供了用于在图像中定位区域的区域定位信息以及用于在区域中定位文本框的文本框定位信息。所述对话显像片段包括至少一个区域字幕信息。区域字幕信息包括文本字幕数据(例如,样式数据和/或文本串数据)和区域样式标识符,而区域样式标识符识别对话样式片段中的样式信息组中的一组,以应用于文本字幕数据。 In one embodiment, a recording area of an exemplary recording medium stores a text subtitle stream, and the text subtitle stream includes dialogue style segments and at least one dialogue display segment associated with the dialogue style segments. The dialog style fragment includes a minimum set of style information. Each set of style information provides region positioning information for positioning a region in the image and text box positioning information for positioning a text box in the region. The dialog display segment includes at least one region subtitle information. The region subtitle information includes text subtitle data (e.g., style data and/or text string data) and a region style identifier, and the region style identifier identifies one of the groups of style information in the dialog style segment to be applied to the text subtitle data . the
区域定位信息可提供图像中的区域的左上角的水平位置和垂直位置。 The region positioning information may provide the horizontal position and the vertical position of the upper left corner of the region in the image. the
在一个实施例中,每组样式信息可进一步包括区域尺寸信息(指出区域的高度和区域的宽度)或区域背景色的指示符。 In one embodiment, each set of style information may further include area size information (indicating the height of the area and the width of the area) or an indicator of the background color of the area. the
在一个实施例中,每组样式信息包括用户可改变信息,指出用户可移动区域的水平方向、以及用户可移动区域的垂直方向。 In one embodiment, each set of style information includes user changeable information indicating the horizontal direction of the user movable area and the vertical direction of the user movable area. the
在另一个实施例中,文本框定位信息提供了区域中的文本框的左上角的水平位置和垂直位置。 In another embodiment, the text box positioning information provides the horizontal position and the vertical position of the upper left corner of the text box in the region. the
同样,在进一步的实施例中,每组样式信息可进一步包括指出文本框的高度和文本框的宽度的文本框尺寸信息、指出文本框中采用的文本字幕数据的字符行进的文本滚动信息、指出如何在文本框中排列文本字幕数据的文本排列信息、指出文本框中文本字幕数据行之间的间距的行间距信息、标识记录在记录介质上用于在文本框中再现文本字幕数据的字体文件的字体标识符、指出用于文本框中的文本字幕数据的字体字形的字体字形指示符、指出用于文本框中的文本字幕数据的字体尺寸的字体尺寸信息,指出用于文本框中的文本字幕数据的颜色的字体颜色信息。 Likewise, in a further embodiment, each set of style information may further include text box size information indicating the height of the text box and the width of the text box, text scrolling information indicating the character progression of the text subtitle data used in the text box, indicating Text arrangement information how to arrange text subtitle data in a text box, line spacing information indicating a space between lines of text subtitle data in a text box, identification of a font file recorded on a recording medium for reproducing text subtitle data in a text box font identifier for the text subtitle data in the text box, font glyph indicator indicating the font glyph used for the text subtitle data in the text box, font size information indicating the font size for the text subtitle data in the text box, indicating the text used in the text box Font color information of the color of subtitle data. the
在此实施例中,每组样式信息可包括用户可改变信息,指出用户可移动区域的水平方向、用户可移动区域的垂直方向、用户是否可增大或减小字体尺寸、用户可移动文本框的水平方向、用户可移动文本框的垂直方向、用户是否可增大或减小文本框的高度、用户是否可增大或减小文本框的宽度、或用户是否可增大或减小文本框中文本字幕数据行之间的间距。 In this embodiment, each set of style information may include user changeable information indicating the horizontal direction of the user movable area, the vertical direction of the user movable area, whether the user can increase or decrease the font size, the user movable text box the horizontal direction of the text box, the vertical direction the user can move the text box, whether the user can increase or decrease the height of the text box, the user can increase or decrease the width of the text box, or the user can increase or decrease the text box Spacing between rows of Chinese subtitle data. the
在本发明的又一个实施例中,记录介质的记录区存储文本字幕流,文本字幕流包括至少一组样式信息以及和多组样式信息之一相关的文本字幕数据。每组样式信息提供了用于在图像中定位区域的区域定位信息、以及区域背景颜色指示符。 In yet another embodiment of the present invention, the recording area of the recording medium stores a text subtitle stream, and the text subtitle stream includes at least one set of style information and text subtitle data related to one of the plurality of sets of style information. Each set of style information provides region positioning information for locating a region in an image, and a region background color indicator. the
本发明还部分涉及与所述记录介质相关的方法和装置。 The invention also relates in part to methods and apparatus related to said recording medium. the
在根据本发明的用于在记录介质上记录用于管理文本字幕数据的数据结 构的方法的一个实施例中,文本字幕流被记录在记录介质上。文本字幕流包括对话样式片段以及至少一个与该对话样式片段关联的对话显像片段。对话样式片段包括至少一组样式信息。每组样式信息提供了用于在图像中定位区域的区域定位信息以及用于在区域中定位文本框的文本框定位信息。对话显像片段包括至少一个区域字幕信息。区域字幕信息包括文本字幕数据(例如,样式数据和/或文本串数据)和区域样式标识符,而区域样式标识符标识了用于文本字幕数据的对话样式片段中的多组样式信息之一。 In one embodiment of the method for recording a data structure for managing text subtitle data on a recording medium according to the present invention, a text subtitle stream is recorded on the recording medium. The text subtitle stream includes a dialogue style segment and at least one dialogue visualization segment associated with the dialogue style segment. A dialog style segment includes at least one set of style information. Each set of style information provides region positioning information for positioning a region in the image and text box positioning information for positioning a text box in the region. The dialog display segment includes at least one region subtitle information. The region subtitle information includes text subtitle data (eg, style data and/or text string data) and a region style identifier that identifies one of sets of style information for a dialogue style section of the text subtitle data. the
在另一个实施例中,用于解码文本字幕数据的装置包括解码文本字幕流的字幕解码单元,而相关方法包括解码文本字幕流。文本字幕流包括对话样式片段以及至少一个与该对话样式片段关联的对话显像片段。对话样式片段包括至少一组样式信息。每组样式信息提供了用于在图像中定位区域的区域定位信息以及用于在区域中定位文本框的文本框定位信息。对话显像片段包括至少一个区域字幕信息。区域字幕信息包括文本字幕数据(例如,样式数据和/或文本串数据)和区域样式标识符,而区域样式标识符标识了用于文本字幕数据的对话样式片段中的多组样式信息之一。 In another embodiment, the apparatus for decoding text subtitle data includes a subtitle decoding unit that decodes a text subtitle stream, and the related method includes decoding the text subtitle stream. The text subtitle stream includes a dialogue style segment and at least one dialogue visualization segment associated with the dialogue style segment. A dialog style segment includes at least one set of style information. Each set of style information provides region positioning information for positioning a region in the image and text box positioning information for positioning a text box in the region. The dialog display segment includes at least one region subtitle information. The region subtitle information includes text subtitle data (eg, style data and/or text string data) and a region style identifier that identifies one of sets of style information for a dialogue style section of the text subtitle data. the
在又一个实施例中,用于解码文本字幕数据的装置包括解码文本字幕流的字幕解码单元,而相关方法包括解码文本字幕流。文本字幕流包括至少一组样式信息以及和多组样式信息之一关联的文本字幕数据。每组样式信息提供了用于在图像中定位区域的区域定位信息和用于在区域中定位文本框的文本框定位信息、以及区域背景颜色指示符。 In yet another embodiment, the apparatus for decoding text subtitle data includes a subtitle decoding unit that decodes a text subtitle stream, and the related method includes decoding the text subtitle stream. The text subtitle stream includes at least one set of style information and text subtitle data associated with one of the plurality of sets of style information. Each set of style information provides area positioning information for positioning the area in the image and text box positioning information for positioning the text box in the area, and an area background color indicator. the
附图说明 Description of drawings
附图,提供了对于本发明的进一步理解,被结合作为本申请的一部分,示出了本发明的实施例,并和说明书一起阐述了本发明的原理。在图中: The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description explain the principles of the invention. In the picture:
图1示出了根据本发明的一个示例性实施例的高密度光盘的文件结构; Fig. 1 shows the file structure of the high-density optical disc according to an exemplary embodiment of the present invention;
图2示出了根据本发明的一个示例性实施例记录在高密度光盘中的文件结构以及相关信息的构成; Fig. 2 shows the composition of the file structure and related information recorded in the high-density optical disc according to an exemplary embodiment of the present invention;
图3示出了在单个视频帧中和主AV流同时显示的文本字幕流; Figure 3 shows the text subtitle stream displayed simultaneously with the main AV stream in a single video frame;
图4是示出具有文件信息的文件结构的视图,用于阐明根据本发明的一个 示例性实施例的管理文本字幕再现的方法; Fig. 4 is the view showing the file structure with file information, is used to clarify the method for managing text subtitle reproduction according to an exemplary embodiment of the present invention;
图5A到5C示出了显示在显示器上的带有相关字幕的再现主AV流,用于阐述记录在文本字幕流中的管理信息; Figures 5A to 5C show the reproduced main AV stream with relevant subtitles displayed on the display, for explaining the management information recorded in the text subtitle stream;
图6示出了根据本发明的一个示例性实施例的文本字幕流文件结构; Fig. 6 shows the text subtitle stream file structure according to an exemplary embodiment of the present invention;
图7示出了根据本发明的一个示例性实施例包含在文本字幕流中的对话样式单元(DSU)以及对话显像单元(DPU); Fig. 7 shows a dialog style unit (DSU) and a dialog display unit (DPU) included in a text subtitle stream according to an exemplary embodiment of the present invention;
图8和图9示出了根据本发明的一个示例性实施例的文本字幕流的句法; Fig. 8 and Fig. 9 have shown the syntax of the text subtitle stream according to an exemplary embodiment of the present invention;
图10A到12C示出了根据本发明的第一实施例的文本字幕流中的对话样式单元的句法; 10A to 12C show the syntax of the dialog style unit in the text subtitle stream according to the first embodiment of the present invention;
图13A和13B示出了根据本发明的第二实施例的文本字幕流中的对话样式单元的句法; Fig. 13 A and 13B have shown the syntax of the dialog style unit in the text subtitle stream according to the second embodiment of the present invention;
图14A到14G示出了根据本发明的第一实施例的文本字幕流中的对话样式单元的句法; 14A to 14G show the syntax of the dialog style unit in the text subtitle stream according to the first embodiment of the present invention;
图15示出了根据本发明的一个示例性实施例记录在文本字幕流中的数据结构; Figure 15 shows the data structure recorded in the text subtitle stream according to an exemplary embodiment of the present invention;
图16示出了根据本发明的一个示例性实施例具有文本字幕流的光盘再现装置的解码单元; Fig. 16 shows the decoding unit of the optical disc reproducing device with text subtitle stream according to an exemplary embodiment of the present invention;
图17示出了根据本发明的一个示例性实施例的文本字幕流解码器;以及 Figure 17 shows a text subtitle stream decoder according to an exemplary embodiment of the present invention; and
图18示出了根据本发明的一个示例性实施例再现文本字幕流的方法。 FIG. 18 illustrates a method of reproducing a text subtitle stream according to an exemplary embodiment of the present invention. the
具体实施方式 Detailed ways
现在详细参考附图所示的本发明的示例性实施例。在所有的附图中,将尽可能使用相同的附图标记表示同样或类似的部分。 Reference will now be made in detail to the exemplary embodiments of the invention illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts. the
在本发明中,主数据是记录在光盘中的标题信息,包括视频和音频数据,由盘的作者提供给用户。通常,视频和音频数据是基于MPEG2格式记录的,并被称为主AV流或主数据。 In the present invention, main data is title information recorded in an optical disc, including video and audio data, provided to users by the author of the disc. Generally, video and audio data are recorded based on the MPEG2 format, and are called main AV stream or main data. the
辅助数据代表和主数据相关的数据,提供给用户以便方便地再现主数据。辅助数据包括字幕信息、交互式图形流、显像图形流、声音信息和具有可浏览的幻灯播放的附加音频数据。根据辅助数据的特征,辅助数据基于MPEG2格式通 过和主AV流多路复用而被录制,或者辅助数据作为独立于主AV流的流文件基于MPEG2或其它合适的格式而被录制。 The auxiliary data represents data related to the main data, and is provided to the user to reproduce the main data conveniently. Ancillary data includes subtitle information, interactive graphics streams, visual graphics streams, sound information and additional audio data with browsable slide shows. According to the characteristics of the auxiliary data, the auxiliary data is recorded based on the MPEG2 format by multiplexing with the main AV stream, or the auxiliary data is recorded based on MPEG2 or other suitable formats as a stream file independent of the main AV stream. the
字幕作为辅助数据通常是和再现主AV数据产生的视频图像一起显示在显示器的预定区域的闭合标题。当用户希望用所需语言的字幕再现主AV数据时,通过在光盘提供的多种语言的字幕中选择字幕的语言,将字幕的语言和视频图像一起显示在显示器的一个区域。因此,可能以多种格式提供字幕。特别地,以文本数据记录的字幕为文本字幕。 Subtitles as auxiliary data are usually closed titles displayed on a predetermined area of a display together with video images produced by reproducing main AV data. When the user wishes to reproduce the main AV data with subtitles in a desired language, the language of the subtitles is displayed together with the video image in an area of the display by selecting the language of the subtitles among the subtitles in multiple languages provided by the optical disc. Therefore, it is possible to provide subtitles in various formats. In particular, subtitles recorded as text data are text subtitles. the
接下来,结合图1和2,详细阐述光盘中记录的主数据和包括文本字幕数据的辅助数据的记录格式,以及用于管理主数据和辅助数据的文件结构。 Next, with reference to FIGS. 1 and 2, the recording format of main data and auxiliary data including text subtitle data recorded in the optical disc, and the file structure for managing the main data and auxiliary data will be explained in detail. the
图1示出了根据本发明的一个示例性实施例管理盘上的各种数据的文件结构。如所示,至少一个BD目录BDMV存在于一个根目录下。在BD目录BDMV中,包含了作为通用文件(上部文件)信息以确保和用户互动的索引文件index.bdmv和对象文件MovieObject.bdmv。此外,BD目录BDMV中包含播放列表目录PLAYLIST、剪辑信息目录CLIPINF、流目录STREAM、以及辅助数据目录AUXDATA。 FIG. 1 shows a file structure for managing various data on a disc according to an exemplary embodiment of the present invention. As shown, at least one BD directory BDMV exists under one root directory. In the BD directory BDMV, an index file index.bdmv and an object file MovieObject.bdmv are included as general file (upper file) information to ensure interaction with the user. Also, the BD directory BDMV includes a playlist directory PLAYLIST, a clip information directory CLIPINF, a stream directory STREAM, and an auxiliary data directory AUXDATA. the
用于被称为“主AV流”的视频和音频流的文件按照特定格式记录在盘中,而诸如文本字幕(下面称为文本字幕流)的辅助流独立存在于流目录STREAM中。由于文本字幕流文件和AV流文件以MPEG2格式(如MPEG2传输信息包)记录,‘*.m2ts’用作为每个流文件的扩展名(例如,01000.m2ts、02000.m2ts和10001.m2ts)。可替代地,例如,在文本字幕流文件的情况下,‘*.txtst’可被用作扩展名,因为文本字幕流具有和主AV流不同的辅助数据特征。 Files for video and audio streams called "main AV streams" are recorded in a disc in a specific format, while auxiliary streams such as text subtitles (hereinafter referred to as text subtitle streams) exist independently in the stream directory STREAM. Since text subtitle stream files and AV stream files are recorded in MPEG2 format (such as MPEG2 transport packets), '*.m2ts' is used as the extension of each stream file (for example, 01000.m2ts, 02000.m2ts, and 10001.m2ts) . Alternatively, for example, in the case of a text subtitle stream file, '*.txtst' may be used as the extension because the text subtitle stream has auxiliary data characteristics different from the main AV stream. the
在BD规范中,AV流可被称作剪辑流文件。涉及本发明,文本字幕数据将以和AV流文件分开的文件的形式存在。例如在图1中,文本字幕数据作为文本字幕流文件10001.m2ts或10001.txtst存在。 In the BD specification, an AV stream may be called a clip stream file. In relation to the present invention, the text subtitle data will exist in the form of a file separate from the AV stream file. For example, in FIG. 1, text subtitle data exists as a text subtitle stream file 10001.m2ts or 10001.txtst. the
剪辑信息目录CLIPINF包括剪辑信息文件*.clpi,每个剪辑信息文件和流文件一一对应。剪辑信息文件*.clpi具有所对应的流文件的属性信息和定时信息,并用作管理文件。更明确地,剪辑信息文件中的信息包括映射信息,使显像时间戳(PTS)映射到对应流文件中的源信息包的源信息包号(SPN)。该映射被称为入口点映射或“EP_MAP”。 The clip information directory CLIPINF includes clip information files *.clpi, and each clip information file corresponds to a stream file one by one. The clip information file *.clpi has attribute information and timing information of a corresponding stream file, and is used as a management file. More specifically, the information in the ClipInfo file includes mapping information such that the presentation time stamp (PTS) is mapped to the Source Packet Number (SPN) of the source packet in the corresponding Stream file. This map is called an entry point map or "EP_MAP". the
流文件和对应的剪辑信息文件可被共同称作“剪辑”。因此,在剪辑信息 目录CLIPINF中的文件“01000.clpi”具有流目录STREAM中的文件“01000.m2ts”的属性信息和定时信息,“01000.clpi”和“01000.m2ts”构成一个剪辑。 Stream files and corresponding clip information files may be collectively referred to as "clips." Therefore, the file "01000.clpi" in the clip information directory CLIPINF has the attribute information and timing information of the file "01000.m2ts" in the stream directory STREAM, and "01000.clpi" and "01000.m2ts" constitute one clip. the
播放列表目录PLAYLIST包括播放列表文件*.mpls,每个播放列表文件具有至少一个播放项目PlayItem,指出某一剪辑的播放间隔。播放项目PlayItem包括关于用于回放的某一剪辑的播放开始时间In-Time和播放结束时间Out-Time的定时信息,并通过在剪辑信息文件名字段中提供剪辑信息文件名标识剪辑。利用在In-Time和0ut-Time信息中的PTS信息,指定的剪辑信息文件的EP映射允许搜索并获得对应流文件的特定流地址或位置(例如,SPN),使得对播放项目的再现导致了剪辑的再现。 The playlist directory PLAYLIST includes playlist files *.mpls, and each playlist file has at least one play item PlayItem, indicating the playing interval of a certain clip. The play item PlayItem includes timing information on the playback start time In-Time and the playback end time Out-Time of a certain clip for playback, and identifies the clip by providing the clip information file name in the clip information file name field. Using the PTS information in the In-Time and Out-Time information, the EP mapping of the specified clip information file allows searching and obtaining the specific stream address or position (for example, SPN) of the corresponding stream file, so that the reproduction of the play item results in clip reproduction. the
播放列表文件*.mpls用作基础管理文件,通过提供至少一个播放项目PlayItem来播放希望的剪辑。此外,播放列表文件*.mpls也可提供子播放项目SubPlayItem用来管理例如补充数据的再现,所述补充数据可与播放项目PlayItem同步或不同步(例如,可浏览的幻灯播放)地再现。例如,在包含子播放项目用于回放文本字幕的情况下,对应的子播放项目和播放项目同步回放数据。然而,在包含子播放项目用于回放可浏览的幻灯播放的音频数据的情况下,对应的子播放项目和播放项目不同步。 The playlist file *.mpls is used as a base management file to play a desired clip by providing at least one play item PlayItem. Furthermore, the playlist file *.mpls may also provide a sub play item SubPlayItem for managing, for example, reproduction of supplementary data which may be reproduced synchronously or asynchronously (eg, a browsable slide show) with the play item PlayItem. For example, in the case of including a sub-play item for playing back text subtitles, the corresponding sub-play item and play item synchronously play back data. However, in case sub-playitems are included for playback of audio data of a browsable slideshow, the corresponding sub-playitems and playitems are not synchronized. the
在本发明的一个实施例中,包括文本字幕在内的辅助数据是通过例如子播放项目SubPlayItems管理的,下面将详细阐述。 In one embodiment of the present invention, auxiliary data including text subtitles are managed through, for example, SubPlayItems, which will be described in detail below. the
辅助数据目录AUXDATA是用于单独记录用于回放的辅助数据文件的区域。例如,为了支持用户更友好的回放,在其中记录了用于提供点击声的声音文件Sound.bmdv、和文本字幕回放一起使用的字体文件*.font或*.otf等等。 The auxiliary data directory AUXDATA is an area for separately recording auxiliary data files for playback. For example, to support more user-friendly playback, a sound file Sound.bmdv for providing a click sound, a font file *.font or *.otf used with text subtitle playback, etc. are recorded therein. the
因此,文本字幕流10001.m2ts,作为一种辅助数据,可被记录在辅助数据目录AUXDATA中。 Therefore, the text subtitle stream 10001.m2ts, as a kind of auxiliary data, can be recorded in the auxiliary data directory AUXDATA. the
此外,上述BD目录BDMV中,索引文件index.bdmv以及对象文件MovieObject.bdmv作为通用文件而存在,以确保和用户互动。索引文件index.bdmv具有索引表,提供用户可选择的菜单信息和标题信息。MovieObject.bdmv提供导航命令,例如,执行播放列表,并可通过索引表中做出的选择被调用。 In addition, in the above-mentioned BD directory BDMV, the index file index.bdmv and the object file MovieObject.bdmv exist as common files to ensure interaction with users. The index file index.bdmv has an index table that provides user-selectable menu information and title information. MovieObject.bdmv provides navigation commands, eg, executes a playlist, and can be invoked through selections made in the index table. the
图2示出了记录在光盘中的文件结构以及相关信息的格式。光盘包括文件系统信息区、数据库区和流区。用于管理文件的系统信息记录在文件系统信息 区中。在数据库区中,记录了用于再现记录的流文件(*m2ts)的播放列表文件(*.m2ts)以及剪辑信息文件(*.clpi)、索引文件(index.bdmv)、和对象文件(MovieObject.bdmv)。同样,主数据和辅助数据记录在流区中。如前所述,主数据包括音频、视频和图形数据,而辅助数据包括文本字幕。同样,辅助数据在流区中作为独立文件和主数据分开记录。即,辅助数据记录在流区中而不和主数据多路复用。相应地,用户决定基于存储在数据库区和流区中的信息再现主数据和辅助数据的方法。 Fig. 2 shows the file structure recorded in the optical disc and the format of related information. The optical disc includes a file system information area, a database area and a stream area. System information for managing files is recorded in the file system information area. In the database area, playlist files (*.m2ts) for reproducing recorded stream files (*m2ts), clip information files (*.clpi), index files (index.bdmv), and object files (MovieObject .bdmv). Also, main data and auxiliary data are recorded in the stream area. As mentioned earlier, primary data includes audio, video, and graphics data, while auxiliary data includes text subtitles. Also, auxiliary data is recorded separately from main data in the stream area as an independent file. That is, auxiliary data is recorded in the stream area without being multiplexed with main data. Accordingly, the user decides a method of reproducing the main data and the auxiliary data based on the information stored in the database area and the stream area. the
接下来,将详细描述文本字幕流文件的文件结构。此外,将详细描述定义用于再现文本字幕的管理信息的方法、用于构建包括定义的管理信息的文本字幕流文件的文件结构的方法、以及用于再现流文件的方法和装置。 Next, the file structure of the text subtitle stream file will be described in detail. Also, a method of defining management information for reproducing text subtitles, a method of constructing a file structure of a text subtitle stream file including the defined management information, and a method and apparatus for reproducing a stream file will be described in detail. the
图3示出了一个显示器,将文本字幕流和主AV流在一个视频帧上同时显示。即,它示出了文本字幕随通过再现主AV流产生的单个视频帧而显示,并在时间上将文本字幕和所产生的视频帧适时同步。 Fig. 3 shows a display that simultaneously displays the text subtitle stream and the main AV stream on one video frame. That is, it shows that text subtitles are displayed along with a single video frame generated by reproducing the main AV stream, and the text subtitles and the generated video frames are timely synchronized in time. the
图4是根据本发明的一个示例性实施例的具有文件信息的文件结构的视图,用于阐明管理文本字幕的再现的方法。文本字幕由播放列表中的子播放项目管理,并且一个子播放项目管理多个文本字幕剪辑的再现。 FIG. 4 is a view of a file structure with file information for explaining a method of managing reproduction of text subtitles according to an exemplary embodiment of the present invention. Text subtitles are managed by subplayitems in a playlist, and one subplayitem manages reproduction of a plurality of text subtitle clips. the
如所示,播放列表文件包括至少一个或多个管理主AV剪辑的再现的播放项目。在有一个或多个文本字幕与主AV数据相关联的情况下,文本字幕按照子播放项目被管理。例如,图4示出了在播放列表文件中的英语文本字幕剪辑1和韩语字幕剪辑2,并示出了字幕剪辑1和字幕剪辑2是和主AV数据在时间上同步的。即,字幕剪辑和主AV数据在目标显像时间一起显示。
As shown, a playlist file includes at least one or more playitems that manage reproduction of a main AV clip. In the case where one or more text subtitles are associated with the main AV data, the text subtitles are managed as subplayitems. For example, FIG. 4 shows English
因此,提供关于目标显像时间、字幕的位置和尺寸的管理信息用来再现文本字幕。接下来,详细阐述用来再现文本字幕的管理信息。 Therefore, management information on target presentation time, position and size of subtitles is provided for reproducing text subtitles. Next, management information used to reproduce text subtitles is explained in detail. the
图5A到5C示出了显示在显示器上的带有相关文本字幕的再现的主AV流,用于阐述记录在文本字幕流中的管理信息。图5A示出了对话信息,图5B示出了区域信息以及图5C示出了样式信息。 5A to 5C show a reproduced main AV stream displayed on a display with associated text subtitles for explaining management information recorded in the text subtitle stream. FIG. 5A shows dialog information, FIG. 5B shows region information, and FIG. 5C shows style information. the
图5A示出了用于管理文本字幕的再现的管理信息的对话信息。对话信息是用于在显像时间管理至少一个或多个文本数据。 FIG. 5A shows dialog information of management information for managing reproduction of text subtitles. The dialog information is used to manage at least one or more text data at the time of presentation. the
即,显像时间是再现相应字幕的时间,被表述为PTS。通过将在PTS显示的 文本字幕限定为对话,方便地管理字幕再现。 That is, the presentation time is the time at which the corresponding subtitle is reproduced, expressed as PTS. Easily manage subtitle reproduction by limiting text subtitles displayed on the PTS to dialogue. the
例如,如果文本字幕在PTS(k)和PTS(k+1)显示为两行,文本字幕限定为同一个对话。在一个实施例中,在一个对话中的文本字幕数据少于100个字符码。 For example, if text subtitles are displayed as two lines at PTS(k) and PTS(k+1), the text subtitles are limited to the same dialogue. In one embodiment, the text subtitle data in a dialog is less than 100 character codes. the
图5B示出了管理信息中的区域信息。该区域为关于在显像时间构造对话的信息。同样,该区域表示单个视频帧中同样地应用了全局样式信息的区域。在一个实施例中,单个对话有至多两个区域。即,在这个实施例中,对话可用单个或两个区域构建。 Fig. 5B shows area information in the management information. This field contains information about constructing dialogs at visualization time. Again, this region represents a region in a single video frame to which global style information is likewise applied. In one embodiment, a single dialog has at most two regions. That is, in this embodiment, dialogs can be constructed with a single or two regions. the
在单个对话中限定至多两个区域的理由是当文本字幕再现时调节解码的工作负荷。然而,在其它实施例中区域的数量可以被限定为最大n(n>=2)。 The reason for defining at most two regions in a single session is to adjust the decoding workload when text subtitles are reproduced. However, the number of regions may be limited to a maximum of n (n>=2) in other embodiments. the
图5C示出了管理信息的样式信息。样式信息是关于指定用于显示文本字幕的方法的信息,并包括诸如字幕的位置、尺寸和背景颜色之类的样式信息。文本排列或文本滚动可以作为样式信息。 Fig. 5C shows style information of management information. The style information is information on specifying a method for displaying text subtitles, and includes style information such as the position, size, and background color of the subtitles. Text alignment or text scrolling can be used as style information. the
在本发明的一个实施例中,样式信息被分为全局样式信息和局部样式信息用于以不同方式显示文本字幕。 In one embodiment of the present invention, style information is divided into global style information and local style information for displaying text subtitles in different ways. the
全局样式信息是同样地应用于各区域的样式信息,且它包括每个区域的位置和每个区域的尺寸。这个信息被称为区域样式(region_style)。图5C示出了两个不同的区域样式信息应用于两个区域(region#1和#2)。“位置1、尺寸1、颜色=蓝色”的区域样式应用于区域1(region#1)。“位置2、尺寸2、颜色=红色”的区域样式应用于区域2(region#2)。
The global style information is style information applied equally to each area, and it includes the position of each area and the size of each area. This information is called the region style (region_style). FIG. 5C shows that two different region style information are applied to two regions (
局部样式信息是根据区域中的每个文本数据行或每个文本数据字符而应用的样式信息。该信息可被称为内联样式“inline_style”。即,内联样式可以是当区域样式改变时为文本数据定义的样式信息。 The local style information is style information applied according to each text data line or each text data character in the region. This information may be referred to as an inline style "inline_style". That is, an inline style may be style information defined for text data when a region style is changed. the
例如,在图5C中,“内联样式信息(inline_style)”应用到区域#1,不同的内联样式应用到在文本数据中的“mountain”。
For example, in FIG. 5C, "inline style information (inline_style)" is applied to
图6示出了文本字幕流文件结构。例如,图6示出了图1的文本字幕流文件“10001.m2ts”的结构。 Fig. 6 shows the text subtitle stream file structure. For example, FIG. 6 shows the structure of the text subtitle stream file "10001.m2ts" of FIG. 1 . the
在这个实施例中,文本字幕流按照MPEG2传输流构建。该传输流包括多个传输信息包,而同一信息包标识符(PID)被分配到这些传输信息包(TP)诸如“PID=0x18xx”。因此,光盘再现方法或装置通过只提取分配有“PID=0x18xx”的 传输信息包,有效地从输入流中提取文本字幕流。 In this embodiment, the text subtitle stream is structured as an MPEG2 transport stream. The transport stream includes a plurality of transport packets, and the same packet identifier (PID) is assigned to these transport packets (TP) such as "PID=0x18xx". Therefore, the optical disk reproducing method or apparatus effectively extracts the text subtitle stream from the input stream by extracting only the transport packets assigned with "PID=0x18xx". the
单个信息包基本流(PES)包括多个传输信息包TP。在这个实施例中,每个对话形成单个PES,从而有效地再现对话。 A single packet elementary stream (PES) consists of a plurality of transport packets TP. In this embodiment, each dialog forms a single PES, effectively reproducing the dialog. the
文本字幕流中的第一个信息包基本流(PES)包括含有一组区域样式的对话样式单元DSU(可替换地称为对话样式片段DSS)。并且,第二个和随后的信息包基本流中的每以个基本流都包括含有真正的对话信息的对话显像单元DPU(可替换地称为对话显像片段DPS)。 The first Packet Elementary Stream (PES) in the Text Subtitle Stream comprises a Dialogue Style Unit DSU (alternatively called a Dialogue Style Segment DSS) containing a set of Region Patterns. Also, each of the second and subsequent elementary streams of packets includes a dialog presentation unit DPU (alternatively called a dialog presentation segment DPS) containing the actual dialog information. the
因此,图5A到5C中定义的对话信息包括DPU,以及对话信息的样式信息包括内联样式信息(内联样式)以及链接到DSU中限定的各种区域样式之一的链接信息(region_style_id)。 Therefore, the dialog information defined in FIGS. 5A to 5C includes the DPU, and the style information of the dialog information includes inline style information (inline style) and link information (region_style_id) linked to one of various region styles defined in the DSU. the
在一个实施例中,对话样式单元包括最大数量的区域样式组。例如,对话样式单元包括最多60个区域样式组,并且它们通过分配到每个区域样式组的唯一的区域样式标识(region_style_id)来区分。 In one embodiment, a dialog style unit includes a maximum number of region style groups. For example, a dialogue style unit includes a maximum of 60 region style groups, and they are distinguished by a unique region style identification (region_style_id) assigned to each region style group. the
图7示出了根据本发明的一个示例性实施例包含在文本字幕流中的对话样式单元(DSU)以及对话显像单元(DPU)。文本字幕流的句法后面将结合图8进行阐述。 FIG. 7 illustrates a dialog style unit (DSU) and a dialog presentation unit (DPU) included in a text subtitle stream according to an exemplary embodiment of the present invention. The syntax of the text subtitle stream will be described later with reference to FIG. 8 . the
在此实施例中,对话样式单元(DSU)包括最多60个区域样式组且区域样式组通过区域样式标识(region_style_id)来区分。区域样式组包括各种区域样式和户可变样式组,且区域样式组根据区域样式标识来记录。区域样式信息和用户可变样式组的句法将后面将结合图10A进行阐述。 In this embodiment, a dialogue style unit (DSU) includes a maximum of 60 region style groups and the region style groups are distinguished by region style identifiers (region_style_id). The regional style group includes various regional styles and user-variable style groups, and the regional style group is recorded according to the regional style identification. The syntax of the region style information and the user variable style group will be explained later with reference to FIG. 10A . the
对话显像单元(DPU)包括文本数据和PTS组,是文本数据的一组显像时间。DPU还包括应用于每个区域的样式信息。因此,DSU包括用于将区域样式信息链接到对应区域的region_style_id。 The dialog display unit (DPU) includes text data and a PTS group, which is a group of display times for text data. The DPU also includes style information applied to each region. Therefore, the DSU includes region_style_id for linking region style information to a corresponding region. the
如图7所示,DPU#1包括单个区域的对话显像信息。因为DPU#1包括用于将DPU#1链接到对应区域样式组的region_style_id=k,所以应用于文本数据#1的区域样式是DPU中的区域样式组#k。DPU#2包括两个区域。文本数据#1的第一个区域指向区域样式组#k(Region_style_id=k)。又,因为DPU#2的区域2的区域样式链接信息是Region_style_id=n,所以区域样式#n应用于第二区域的文本数据#2。类似地,区域样式组#n和区域样式组#m分别应用于DPU#3和DPU#4。
As shown in FIG. 7,
由region_style_id链接的样式信息作为全局样式信息被同样地应用于相应区域中的文本数据。在文本数据中的文本串根据特定样式信息改变的情况下,局部样式信息应用于相应的文本串。 The style information linked by region_style_id is similarly applied to text data in the corresponding region as global style information. In case a text string in text data is changed according to specific style information, partial style information is applied to the corresponding text string. the
接下来,将阐述DSU和DPU的句法。 Next, the syntax of DSU and DPU will be explained. the
图8示出了根据一个示例性实施例的文本字幕流(Text_Subtitle_stream())的句法。如图8所示,该文本字幕流(Text_Subtitle_stream())包括定义了样式信息组的单个DSU(dialog_style_unit())以及包含了对话信息的多个DPU(dialog_presentation_unit())。即,函数Text_Subtitle_stream()包括了函数dialog_style_unit()和函数 dialog_presentation_unit()。文本字幕流用函数Text_Subtitle_stream()记录,且记录的文本字幕流利用由函数dialog_style_unit()定义的单个DSU和由函数dialog_presentation_unit()定义的多个DPU构建。 FIG. 8 shows the syntax of a text subtitle stream (Text_Subtitle_stream()) according to an exemplary embodiment. As shown in FIG. 8, the text subtitle stream (Text_Subtitle_stream()) includes a single DSU (dialog_style_unit()) defining a set of style information and a plurality of DPUs (dialog_presentation_unit()) including dialogue information. That is, the function Text_Subtitle_stream() includes the function dialog_style_unit() and the function dialog_presentation_unit(). A text subtitle stream is recorded with the function Text_Subtitle_stream( ), and the recorded text subtitle stream is constructed using a single DSU defined by the function dialog_style_unit( ) and a plurality of DPUs defined by the function dialog_presentation_unit( ). the
图9示出了对话样式单元(DSU)的句法。如前所述,DSU由函数dialog_style_unit()定义,而图9示出了函数dialog_style_unit()的详细结构。如图9所示,该dialog_style_unit()包括函数dialog_styleset()。函数dialog_styleset()定义了与对话相对应的样式信息组。因此,DSU包括具有用于相应对话的各种样式信息的样式信息组。 Fig. 9 shows the syntax of a dialogue style unit (DSU). As mentioned earlier, the DSU is defined by the function dialog_style_unit(), and Figure 9 shows the detailed structure of the function dialog_style_unit(). As shown in FIG. 9, the dialog_style_unit() includes the function dialog_styleset(). The function dialog_styleset() defines the set of style information corresponding to the dialog. Therefore, the DSU includes a style information group having various style information for a corresponding dialog. the
接下来,将阐述本发明定义样式信息组(dialog_styleset())的各种实施例。这些实施例根据定义文本数据的标准位置和对话尺寸的方法来划分。图10A到12C展示了描述第一实施例的函数和视图,图13A到13C示出了描述第二实施例的函数和视图,以及图14A到14G描绘了描述第三实施例的函数和视图。 Next, various embodiments of the present invention defining a style information set (dialog_styleset()) will be explained. These embodiments are divided according to the method of defining the standard location of the text data and the dialog size. 10A to 12C show functions and views describing the first embodiment, FIGS. 13A to 13C show functions and views describing the second embodiment, and FIGS. 14A to 14G depict functions and views describing the third embodiment. the
图10A到12C展示了描述了根据本发明的第一实施例用于通过函数dialog_styleset()定义对话的样式信息组的函数和视图。定义样式信息组的第一实施例,通过定义给区域中文本数据指定尺寸以及参考位置的文本框信息,来描述其特征。 10A to 12C show functions and views describing a style information set for defining a dialog by a function dialog_styleset() according to the first embodiment of the present invention. The first embodiment of the defined style information group is characterized by defining text box information specifying a size and a reference position for text data in an area. the
图10A示出了根据本发明的第一实施例,图9的函数dialog_style_unit()中定义的dialog_styleset()句法的详细结构。在函数dialog_styleset()中,除了函数区域样式region_style()之外,还提供了播放器样式标记player_style_flag、区域样式数number_of_region_styles、用户样式数number_of_user_styles、用户可变样式组函数user_changeable_styleset()以及函数palette(),用于定义对话的区域样式信息。 标记player_style_flag指出是否允许用户改变样式信息,而函数user_changeable_styleset()提供了样式信息改变范围。函数palette()提供了颜色信息。 FIG. 10A shows a detailed structure of the syntax of dialog_styleset() defined in the function dialog_style_unit() of FIG. 9 according to the first embodiment of the present invention. In the function dialog_styleset(), in addition to the function region_style(), it also provides the player style flag player_style_flag, the number of region styles number_of_region_styles, the number of user styles number_of_user_styles, the user variable style group function user_changeable_styleset() and the function palette() , which defines the area style information for the dialog. The tag player_style_flag indicates whether the user is allowed to change the style information, and the function user_changeable_styleset() provides the scope of changing the style information. The function palette() provides color information. the
如上所述,区域样式信息是根据每个区域定义的全局样式信息。唯一的标识(region_style_id)被分配到每一个区域样式信息。因此,基于与分配的标识region_style_id对应的样式信息组提供对话的区域样式信息。 As described above, the regional style information is global style information defined per region. A unique identifier (region_style_id) is assigned to each region style information. Therefore, the region style information of the dialogue is provided based on the style information group corresponding to the assigned identifier region_style_id. the
因此,通过记录应用到DPU中的对话的标识region_style_id,对话可通过应用基于创作对话时dialog_styleset()中同样的region_style_id定义的样式信息组得到再现。 Therefore, by recording the identifier region_style_id applied to the dialog in the DPU, the dialog can be reproduced by applying the set of style information defined based on the same region_style_id in dialog_styleset() when authoring the dialog. the
接下来,将阐述根据region_style_id提供的样式信息组中包含的样式信息(Style_Info)。 Next, the style information (Style_Info) contained in the style information group provided according to region_style_id will be explained. the
首先,作为用于定义图像帧相应区域的位置和尺寸的信息,提供了区域水平位置region_horizontal_position、区域垂直位置region_vertical_position、区域宽度region_width和区域高度region_height。还提供了区域背景颜色标识region_bg_color_entry_id用于定义相应区域的背景色。 First, as information for defining the position and size of a corresponding region of an image frame, a region horizontal position region_horizontal_position, a region vertical position region_vertical_position, a region width region_width, and a region height region_height are provided. The region background color identifier region_bg_color_entry_id is also provided to define the background color of the corresponding region. the
其次,提供了用于代表相应区域中的文本框尺寸的文本框信息。文本框表示相应区域中显示文本数据的区域。 Second, text box information representing the size of the text box in the corresponding area is provided. A text box indicates an area in which text data is displayed in the corresponding area. the
文本框的尺寸通过文本框宽度text_box_width和文本框高度text_box_height来表示。区域中相应文本框的原点由文本框水平位置text_box_horizontal_position和文本框垂直位置text_box_vertical_position来提供。 The size of the text box is represented by the text box width text_box_width and the text box height text_box_height. The origin of the corresponding text box in the region is provided by the text box horizontal position text_box_horizontal_position and the text box vertical position text_box_vertical_position. the
此外,定义文本滚动text_flow来定义显示文本的方向,定义文本排列text_alignment来定义排列文本的方向,诸如右、左和中间。在text_flow的情况下,当为了防止用户搞混而在对话中有多个区域时,将相应对话中的每个区域定义为具有同样的text_flow。 In addition, text scrolling text_flow is defined to define the direction in which text is displayed, and text alignment text_alignment is defined to define the direction in which text is aligned, such as right, left, and center. In the case of text_flow, when there are multiple regions in a dialog in order to prevent user confusion, each region in the corresponding dialog is defined to have the same text_flow. the
通过参见图11A到12C,下面将详细阐述根据text_flow和text_alignment的文本框信息的规定。 By referring to FIGS. 11A to 12C, the specification of text box information according to text_flow and text_alignment will be explained in detail below. the
作为包含在样式信息组中的样式信息,定义了行间距line_space用于控制相应区域中行之间的间距。又,定义字体标识font_id、字体样式font_style、字体尺寸font_size和字体色彩标识font_color_entry_id作为控制相应区域中的文本数 据的字体信息。 As style information included in the style information group, line spacing line_space is defined for controlling the spacing between lines in the corresponding area. Also, define font ID font_id, font style font_style, font size font_size and font color ID font_color_entry_id as font information for controlling text data in the corresponding area. the
在dialog_styleset()中的player_style_flag是表示再现装置的样式信息是否可用的信息。例如,如果player_style_flag被设为1b(player_style_flag=1b),则允许除了使用dialog_styleset()中定义样式信息之外,使用再现装置的样式信息来再现文本字幕。如果player_style_flag被设为0b(player_style_flag=0b),则文本字幕只通过使用由dialog_styleset()定义的样式信息再现。 player_style_flag in dialog_styleset( ) is information indicating whether the style information of the playback device is available. For example, if player_style_flag is set to 1b (player_style_flag=1b), text subtitles are allowed to be reproduced using style information of a reproducing device in addition to using style information defined in dialog_styleset(). If player_style_flag is set to 0b (player_style_flag=0b), text subtitles are reproduced only by using style information defined by dialog_styleset(). the
图10B示出了图10A中的函数“dialog_styleset()”中定义的函数“user_changeable_styleset()”。 FIG. 10B shows the function "user_changeable_styleset()" defined in the function "dialog_styleset()" in FIG. 10A. the
通过参见图10B,函数user_changeable_styleset()定义了可被用户改变的样式信息的类型和改变范围。因此,函数“user_changeable_styleset()”是用来让用户方便地改变文本字幕数据的样式信息的。 By referring to FIG. 10B , the function user_changeable_styleset() defines the type and change range of style information that can be changed by the user. Therefore, the function "user_changeable_styleset()" is used to allow the user to easily change the style information of the text subtitle data. the
然而,在这个实施例中,用户可变的样式信息限于字体尺寸和区域位置。因此,在函数user_changeable_styleset()中定义了区域水平位置方向region_horizontal_position_direction、区域水平位置增量region_horizontal_position_delta、区域垂直位置方向region_vertical_position_direction、区域垂直位置增量region_vertical_position_delta、字体大小增减font_size_inc_dec和字体大小增量font_size_delta。由于文本框位置和行间距离根据字体尺寸的增加/减少而改变,在函数user_changeable_styleset()中定义了用于定义行间距和文本框位置的变量。 In this embodiment, however, user-variable style information is limited to font size and region location. Therefore, the region horizontal position direction region_horizontal_position_direction, region horizontal position increment region_horizontal_position_delta, region vertical position direction region_vertical_position_direction, region vertical position increment region_vertical_position_delta, font size increase and decrease font_size_inc_dec and font size increment font_size_delta are defined in the function user_changeable_styleset(). Since the text box position and line spacing are changed according to the increase/decrease of the font size, variables for defining line spacing and text box positions are defined in the function user_changeable_styleset(). the
如上所述,函数user_changeable_styleset()是根据region_style_id定义的,而多个用户可变样式信息(user_style_id)是在函数user_changeable_styleset()中定义的。例如,如果函数user_changeable_styleset()根据region_style_id=k定义,在本示例性实施例中定义的函数user_changeable_styleset()中定义最多25种用户可变样式信息。 As described above, the function user_changeable_styleset() is defined according to region_style_id, and a plurality of user changeable style information (user_style_id) is defined in the function user_changeable_styleset(). For example, if the function user_changeable_styleset() is defined according to region_style_id=k, a maximum of 25 kinds of user changeable style information are defined in the function user_changeable_styleset() defined in this exemplary embodiment. the
提供region_horizontal_position_direction和region_vertical_position_direction用于定义region_horizontal_position和region_vertical_position的移动方向,可根据用户样式标识user_style_id改变。同样,提供region_horizontal_position_delta和region_vertical_position_delta用于以像素为单位的改变量定义在每个方向移动区域的一次改变。 Provide region_horizontal_position_direction and region_vertical_position_direction to define the moving direction of region_horizontal_position and region_vertical_position, which can be changed according to user_style_id. Also, region_horizontal_position_delta and region_vertical_position_delta are provided for the amount of change in pixels to define a change in each direction the region is moved. the
例如,如果region_horizontal_position_direction定义为0,相应区域向右移动。如果region_horizontal_position_direction定义为1,相应区域向左移动。又,如果region_vertical_position_direction定义为0,相应区域向下移动。如果region_vertical_position_direction定义为1,相应区域向上移动。 For example, if region_horizontal_position_direction is defined as 0, the corresponding region moves to the right. If region_horizontal_position_direction is defined as 1, the corresponding region moves to the left. Also, if region_vertical_position_direction is defined as 0, the corresponding region moves downward. If region_vertical_position_direction is defined as 1, the corresponding region is moved upwards. the
又,提供font_size_inc_dec用于定义字体尺寸的增加/减少的方向,可根据user_style_id而改变;以及提供font_size_delta用于以像素为单位指定字体尺寸font_size的一次改变量。 Also, font_size_inc_dec is provided to define the direction of increase/decrease of font size, which can be changed according to user_style_id; and font_size_delta is provided to specify the font_size change amount in units of pixels. the
例如,如果font_size_inc_dec定义为0,说明增加font_size,而如果font_size_inc_dec定义为1,说明减少font_size。 For example, if font_size_inc_dec is defined as 0, it means increase font_size, and if font_size_inc_dec is defined as 1, it means decrease font_size. the
更进一步,提供文本框水平位置text_box_horizontal_position和文本框垂直位置text_box_vertical_position,用于定义根据font_size的增加/减少而变化的文本框的参考位置。text_box_horizontal_position和text_box_vertical_position可由提供region_horizontal_position和region_vertical_position同样的方法来定义。例如,记录text_box_horizontal_position和text_box_vertical_position用于指定改变方向,以及记录文本框水平增量text_box_horizontal_delta和文本框垂直增量text_box_vertical_delta用于以像素为单位指定一次改变量。 Further, the horizontal position text_box_horizontal_position and the vertical position text_box_vertical_position of the text box are provided, which are used to define the reference position of the text box which changes according to the increase/decrease of the font_size. text_box_horizontal_position and text_box_vertical_position can be defined by the same method that provides region_horizontal_position and region_vertical_position. For example, the records text_box_horizontal_position and text_box_vertical_position are used to specify the change direction, and the records text box horizontal delta text_box_horizontal_delta and text box vertical delta text_box_vertical_delta are used to specify a change amount in units of pixels. the
又,可以和上面font_size所述的情况同样地提供根据font_size的增加/减少而改变的文本框宽度text_box_width和文本框高度text_box_height。例如,记录文本框宽度增减text_box_width_inc_dec和文本框高度增减text_box_height_inc_dec用于指定增加/减少的方向,以及文本框宽度增量text_box_width_delta和文本框高度增量text_box_height_delte用于以像素为单位指定一次改变量。 Also, the text box width text_box_width and the text box height text_box_height that change according to the increase/decrease of font_size can be provided similarly to the case described above for font_size. For example, record text box width increase and decrease text_box_width_inc_dec and text box height increase and decrease text_box_height_inc_dec are used to specify the direction of increase/decrease, and text box width increment text_box_width_delta and text box height increment text_box_height_delte are used to specify a change amount in pixels. the
此外,根据font_size的增加/减少的文本行间距(line_space)的增加/减少,可用和定义font_size的增加/减少的同样的方法来定义。即,记录行间距增减line_space_inc_dec和行间距增量line_space_delta。 In addition, the increase/decrease of text line space (line_space) according to the increase/decrease of font_size can be defined in the same way as the increase/decrease of font_size. That is, line space increase/decrease line_space_inc_dec and line space increment line_space_delta are recorded. the
图11A和11B示出了依照根据图10A所示的本发明的第一实施例定义的text_box_horizontal_position、text_box_vertical_position和text_flow显示文本框的范例。 11A and 11B show examples of displaying text boxes according to text_box_horizontal_position, text_box_vertical_position and text_flow defined according to the first embodiment of the present invention shown in FIG. 10A. the
即,图11A示出了定义text_box_horizontal_position、text_box_vertical_position和text_flow用来参照区域的原点显示文本数据(例如,离开区域原点的偏移量), 而不参照text_flow。在此情况,文本数据的原点变成文本框的左顶点(left-top)(同样也称为左上角)而无需参照文本排列或text_flow。 That is, FIG. 11A shows that text_box_horizontal_position, text_box_vertical_position, and text_flow are defined to display text data with reference to the origin of the region (for example, an offset from the origin of the region), without referring to text_flow. In this case, the origin of the text data becomes the left-top (also referred to as the upper-left corner) of the text box without referring to the text arrangement or text_flow. the
图11B示出了当text_flow是从上到下时,根据text_box_horizontal_position、text_box_vertical_position和text_flow显示文本框中的文本数据。 FIG. 11B shows that when text_flow is from top to bottom, text data in a text box is displayed according to text_box_horizontal_position, text_box_vertical_position, and text_flow. the
如图11A的前一实施例一样,文本框参照区域的原点定义。在此情况,文本数据的原点变成文本框的左顶点而无需参照文本排列。 As in the previous embodiment of Figure 11A, the text box is defined with reference to the origin of the region. In this case, the origin of the text data becomes the left vertex of the text box without referring to the text arrangement. the
图12A到12C示出了依照根据图10A的本发明的第一实施例定义的text_box_horizontal_position、text_box_vertical_position和text_flow显示文本框的另一个范例。 12A to 12C show another example of displaying text boxes according to text_box_horizontal_position, text_box_vertical_position and text_flow defined according to the first embodiment of the present invention in FIG. 10A. the
即,图12A示出了当text_flow是从左到右时,定义text_box_horizontal_position、text_box_vertical_position和text_flow用来在左顶点显示文本数据。图12B示出了当text_flow是从右到左时,定义text_box_horizontal_position、text_box_vertical_position和text_flow用来在右顶点显示文本数据。图12C示出了当text_flow是从上到下时,定义text_box_horizontal_position、text_box_vertical_position和text_flow用来在右顶点显示文本数据。 That is, FIG. 12A shows that when text_flow is from left to right, text_box_horizontal_position, text_box_vertical_position, and text_flow are defined to display text data at the left vertex. FIG. 12B shows that when text_flow is from right to left, text_box_horizontal_position, text_box_vertical_position, and text_flow are defined to display text data at the right vertex. FIG. 12C shows that when text_flow is from top to bottom, define text_box_horizontal_position, text_box_vertical_position, and text_flow to display text data at the right vertex. the
如图12A到12C所示,文本数据的原点根据text_flow而从左顶点变到右顶点,无需参照文本排列。 As shown in FIGS. 12A to 12C , the origin of text data changes from the left vertex to the right vertex according to text_flow without referring to the text arrangement. the
图13A示出了根据本发明的第二实施例在函数dialog_style_unit()中定义的函数dialog_styleset()。dialog_style_unit()的第二实施例记录了文本填充信息而不是文本框信息。即,为了定义区域中文本数据的尺寸,记录文本填充信息作为区域样式信息。文本填充信息包括填充顶部padding_top、填充底部padding_bottom、填充左端padding_left,以及填充右端padding_right。通过文本填充信息,可确定区域中的文本数据的总尺寸。 FIG. 13A shows a function dialog_styleset() defined in a function dialog_style_unit() according to the second embodiment of the present invention. The second embodiment of dialog_style_unit() records text padding information instead of text box information. That is, in order to define the size of text data in an area, text padding information is recorded as area style information. Text padding information includes padding_top, padding_bottom, padding_left, and padding_right. Through the text padding information, the total size of the text data in the area can be determined. the
除了文本填充信息以外的信息和第一实施例中的相同。因此,省略详细描述。 Information other than text padding information is the same as in the first embodiment. Therefore, detailed description is omitted. the
图13B示出了区域中具有文本填充信息的文本数据的位置。根据第二实施例中的dialog_styleset()定义的padding_top、padding_bottom、padding_left,以及padding_right确定区域中文本数据的位置。 FIG. 13B shows the location of text data with text padding information in an area. The position of the text data in the area is determined according to padding_top, padding_bottom, padding_left, and padding_right defined by dialog_styleset() in the second embodiment. the
图14A示出了根据本发明的第三实施例在函数dialog_style_unit()中定义的 函数dialog_styleset()。dialog_styleset()的第三实施例记录了文本水平位置text_horizontal_position和文本垂直位置text_vertical_position而不是文本框信息和文本填充信息,且text_horizontal_position和text_vertical_position根据文本排列text_alignment而改变。 FIG. 14A shows the function dialog_styleset() defined in the function dialog_style_unit() according to the third embodiment of the present invention. The third embodiment of dialog_styleset() records text horizontal position text_horizontal_position and text vertical position text_vertical_position instead of text box information and text padding information, and text_horizontal_position and text_vertical_position are changed according to text alignment text_alignment. the
即,记录text_horizontal_position和text_vertical_position用来代表区域中文本数据的参照位置。参照位置被定义成根据text_alignment而改变,诸如左、中和右。 That is, the records text_horizontal_position and text_vertical_position are used to represent the reference position of text data in the area. The reference position is defined to change according to text_alignment, such as left, center and right. the
除了text_horizontal_position和text_vertical_position以外的信息和第一实施例中的相同。因此,省略详细描述。 Information other than text_horizontal_position and text_vertical_position is the same as in the first embodiment. Therefore, detailed description is omitted. the
图14B到14D示出了如果文本滚动是左到右或右到左,且text_alignment被定义为左(图14B)、中(图14C)或右(图14D),文本数据的位置。 14B to 14D show the position of text data if text scrolling is left to right or right to left, and text_alignment is defined as left (FIG. 14B), center (FIG. 14C) or right (FIG. 14D). the
即,如果text_alignment被定义为如图14B所示的左,则把text_horizontal_position和text_vertical_position定义为指定文本数据的第一行开始处位于左端位置。如果text_alignment被定义为如图14C所示的中,则把text_horizontal_position和text_vertical_position定义成指定文本数据的第一行开始处位于中间位置。如果text_alignment被定义为如图14D所示的右,则把text_horizontal_position和text_vertical_position定义成指定文本数据的第一行结束处位于右端位置。 That is, if text_alignment is defined as left as shown in FIG. 14B, text_horizontal_position and text_vertical_position are defined to specify that the beginning of the first line of text data is at the left end position. If text_alignment is defined to be centered as shown in FIG. 14C, text_horizontal_position and text_vertical_position are defined to specify that the beginning of the first line of text data is in the middle. If text_alignment is defined as right as shown in FIG. 14D, text_horizontal_position and text_vertical_position are defined to specify that the end of the first line of text data is at the right end position. the
图14E到14G示出了,如果文本滚动是上到下,且text_alignment被定义为上(图14E)、中(图14F)或下(图14G)时,文本数据的位置。 14E to 14G show the position of the text data if the text scrolling is top to bottom and text_alignment is defined as top (FIG. 14E), middle (FIG. 14F) or bottom (FIG. 14G). the
如果text_alignment被定义为如图14E所示的上,则把text_horizontal_position和text_vertical_position定义成指定文本数据的第一行开始处位于上部位置。如果text_alignment被定义为如图14F所示的中,则把text_horizontal_position和text_vertical_position定义成指定文本数据的第一行开始处位于中间位置。如果text_alignment被定义为如图14G所示的下,则把text_horizontal_position和text_vertical_position定义成指定文本数据的第一行结束处位于下部位置。 If text_alignment is defined to be upper as shown in FIG. 14E, text_horizontal_position and text_vertical_position are defined to specify that the first line of text data starts at the upper position. If text_alignment is defined to be centered as shown in FIG. 14F, text_horizontal_position and text_vertical_position are defined to specify that the beginning of the first line of text data is in the middle. If text_alignment is defined to be lower as shown in FIG. 14G, text_horizontal_position and text_vertical_position are defined to specify that the end of the first line of text data is at the lower position. the
如上所述,根据第一、第二和第三实施例之一,通过定义记录文本数据框或文本数据的参照位置来将文本数据与主AV流一起显示。 As described above, according to one of the first, second, and third embodiments, text data is displayed together with the main AV stream by defining a frame of recording text data or a reference position of text data. the
接下来,参照图15到18,阐述再现上述文本字幕流文件和显示再现的文 本字幕流文件的方法。 Next, with reference to Figures 15 to 18, the method for reproducing the above-mentioned text subtitle stream file and displaying the reproduced text subtitle stream file is explained. the
图15是示出了包括在对话显像单元(DPU)和对话样式信息单元(DSU)中的信息的视图。如上所述,DSU包括了一组用于每个对话中的每个区域的区域样式信息,而DPU包括了对话文本信息及显像信息。 FIG. 15 is a view showing information included in a dialog presentation unit (DPU) and a dialog style information unit (DSU). As mentioned above, the DSU includes a set of region style information for each region in each session, while the DPU includes dialog text information and presentation information. the
所述对话文本信息包括区域样式标识符,定义了用于每个区域的样式信息、文本串以及用于文本串的内联样式信息。区域样式标识符是用于将相应区域链接到对话样式信息单元(DSU)中的区域样式信息的信息。 The dialog text information includes a region style identifier, defining style information for each region, text strings, and inline style information for the text strings. The area style identifier is information for linking a corresponding area to area style information in a dialogue style information unit (DSU). the
DPU中的显像信息包括用于显示每个对话的显像时间戳(PTS)开始时间(PTS_start)和显像时间戳结束时间(PTS_end)、用于在对话显示过程中改变所用颜色的调色板更新信息(palette_update_flag)、以及当有颜色改变时的改变的调色板信息(用来更新的调色板)。 The presentation information in the DPU includes the presentation time stamp (PTS) start time (PTS_start) and presentation time stamp end time (PTS_end) for displaying each dialog, the color palette for changing the color used during the dialog display Palette update information (palette_update_flag), and changed palette information (palette for update) when there is a color change. the
即,文本字幕流由DSU中的对话样式信息和DPU中的对话显像信息来构建。并且,DSU和DPU中包含的信息根据信息的功能被分为三类信息。换句话说,信息被分为包括文本串的对话文本信息;包括用于显示的时间、对话位置和颜色改变的合成信息;以及将文本信息转换为图形信息的渲染信息。 That is, the text subtitle stream is constructed from dialogue style information in the DSU and dialogue presentation information in the DPU. And, the information contained in the DSU and the DPU is classified into three types of information according to the function of the information. In other words, the information is divided into dialogue text information including text strings; synthesis information including time for display, dialogue position, and color change; and rendering information converting text information into graphic information. the
如上所述,DSU中的信息被用作合成信息及渲染信息。如图15所示,信息“区域水平位置”和“区域垂直位置”被用作合成信息,因为“区域水平位置”和“区域垂直位置”代表了显示图像中的区域的位置。同样,信息“区域宽度和高度”、“字体和背景色”、“文本滚动和排列”,以及“字体名称、样式和尺寸”被用作渲染信息,因为这些信息用来根据每个对话的每个区域表达文本。同样,信息“文本位置”,诸如文本框信息、文本填充信息和文本水平/垂直参考位置信息都包括在渲染信息中。 As described above, the information in the DSU is used as compositing information and rendering information. As shown in FIG. 15, the information "area horizontal position" and "area vertical position" are used as composite information because the "area horizontal position" and "area vertical position" represent the position of the area in the display image. Also, the information "area width and height", "font and background color", "text scrolling and alignment", and "font name, style, and size" are used as rendering information because they are used to A region expresses the text. Also, information "text position", such as text box information, text padding information, and text horizontal/vertical reference position information are included in the rendering information. the
接下来,将阐述用于再现包含再现管理信息的文本字幕的方法和装置。 Next, a method and apparatus for reproducing text subtitles containing reproduction management information will be explained. the
图16是示出根据本发明的一个示例性实施例的用于再现文本字幕的包含解码单元40的光盘再现装置的视图。
FIG. 16 is a view illustrating an optical disc reproducing apparatus including a
如图16所示,光盘再现装置包括微型计算机3、系统解码器4、PID过滤器5、音频解码单元10、视频解码单元20、图形解码单元30、字幕解码单元40、选择单元6和混合单元50。系统解码器4在微型计算机3的控制下将从光盘再现的信号解码为AV流(例如,MPEG流)。虽然为了清楚起见没有示出,但 是微型计算机3还根据从用户(例如,通过装置上的控制按钮或遥控器)接收到的输入以及如上所述从光盘再现的管理信息,来控制装置的其它元件。PID过滤器5接收AV流,并根据如MPEG流的传输信息包中的信息包标识符(PID)从系统解码器4提取出存在的分离流,如视频流、音频流、图形流和文本字幕流。视频解码单元20从PID过滤器5接收提取出的视频流,并解码该提取出的视频流用来再现该提取出的视频流。音频解码单元10从PID过滤器5接收提取出的音频流,并解码该提取出的音频流用来再现该提取出的音频流。图形解码单元30从PID过滤器5接收提取出的图形流,并解码该提取出的图形流用来再现该提取出的图形流。同样,文本字幕解码单元40从PID过滤器5接收提取出的文本字幕流,并解码该提取出的文本字幕流用来再现该提取出的文本字幕流。
As shown in Figure 16, the optical disc reproduction device includes a microcomputer 3, a system decoder 4, a
光盘再现装置还可以或另外从外部源接收文本字幕。因此本实施例的光盘再现装置可进一步包括选择单元6,用于为文本字幕解码单元40选择输入源。
The optical disc reproduction device may also or additionally receive text subtitles from an external source. Therefore, the optical disc reproducing device of this embodiment may further include a selection unit 6 for selecting an input source for the text
如果文本字幕和主数据一起基于MPEG格式记录,输入源就是PID过滤器5。因此选择单元6选择PID过滤器5作为文本字幕流的输入源,且选择单元6将提取自PID过滤器5的文本字幕流传递到文本字幕解码单元40,如图16的A所示。如果光盘再现装置从外部源接收文本字幕,选择单元6将外部源选择作为文本字幕流的输入源,且选择单元6将来自外部源的文本字幕流传递到文本字幕解码单元40,如图l6的B所示。
If text subtitles are recorded based on MPEG format together with main data, the input source is
视频解码单元20、音频解码单元10和图形解码单元30,每个分别包含传输缓冲器11、21、31,用于缓冲视频、音频和图形流。视频解码单元20还包括视频解码器22和视频平面23用于读取传输缓冲器21中存储的提取出的视频流、解码提取出的视频流并基于解码的视频数据产生视频平面,即显示在显示器上的单个视频图像帧。图形解码单元30还包括图形解码器32和图形平面33用于解码存储在传输缓冲器31中的提取出的图形流并基于解码的图形数据产生图形平面,即和产生的视频平面一起显示的单个图形图像帧。图形解码单元30还进一步包括颜色查询表(CLUT)34。CLUT 34包括用于控制颜色的槽(vale)以及产生的图形平面的透明度,用于将图形平面和视频平面重叠。
The
文本字幕解码单元40包括预载缓冲器41、TXT-ST解码器42、图形平面(GP) 43和CLUT 44。文本字幕解码单元40从选择单元6接收文本字幕数据,且所接收到的文本字幕数据被预载到预载缓冲器41中。通常,包括再现管理信息在内的单个文本字幕数据的大小为0.5M字节。因此,预载缓冲器41的容量应大于0.5M字节。为了提供无缝再现,预载缓冲器41的容量应比0.5M字节大得多。例如,预载缓冲器41的大小可以通过考虑文本字幕数据的尺寸而标准化。
The text
文本字幕数据被预载到预载缓冲器41是基于以下原因。由于整个文本字幕的尺寸相对比较小,文本字幕数据可以被记录在单独的文件中。通过提供文本字幕的单独文件,它可以被容易地读取并有效地用于再现文本字幕。另外,通过将整个字幕数据预载到预载缓冲器41,控制缓冲器更加方便。
The text subtitle data is preloaded into the
文本字幕(TXT-ST)解码器42读取存储在预载缓冲器41中的文本字幕数据并解码该文本字幕数据。图形平面43通过使用解码的文本字幕数据,产生字幕图形平面,即和图形平面及视频平面一起显示的单个字幕图像帧。字幕图形平面的颜色和透明度根据CLUT 44中的值控制,用于将字幕图形平面和图形平面及视频平面重叠。
The text subtitle (TXT-ST)
光盘再现装置的混合单元50包括两个加法器52和53,用于将来自视频解码单元20、图形解码单元30和文本字幕解码单元40的信号混合,并用于产生具有相应图形平面和字幕的视频图像帧。即,混合单元50接收视频解码单元20产生的图像平面,图形解码单元30产生的图形平面和文本字幕解码单元40产生的字幕平面,并通过重叠视频平面、图形平面和字幕图形平面,产生带有相应字幕的单个视频图像帧。基本上,视频平面成为单个视频图像帧的背景。图形平面和字幕图形平面重叠在视频平面上。重叠的顺序是根据图形平面和字幕图形平面的特征来决定的。例如,如果图形平面是显像图形,图形平面首先由混合单元50中的加法器52重叠在视频平面上。由文本字幕解码单元40产生的字幕图形平面由混合单元50中的加法器53重叠在加法器52的输出上。反过来,如果来自图形解码单元30的图形平面是交互式图形,字幕图形平面首先由混合单元50中的加法器52重叠在视频平面上,然后图形平面由混合单元50中的加法器53重叠在加法器52的输出上。
The mixing
接下来,将详细阐述通过利用基于文本字幕解码器42的文本字幕解码单元40再现文本字幕的方法。
Next, a method of reproducing text subtitles by using the text
图17是示出了根据本发明的一个示例性实施例的文本字幕解码单元40的视图。图16和17的相同附图标记代表同样的功能块。
FIG. 17 is a view showing a text
接下来,结合图1到16以及图17,详细阐述根据本发明的一个实施例再现一个标题。 Next, with reference to FIGS. 1 to 16 and FIG. 17, reproduction of a title according to an embodiment of the present invention will be described in detail. the
当光盘载入后,光盘再现装置读取并存储用于再现和管理信息的再现的文件信息。当用户请求再现光盘中记录的一个标题时,光盘再现装置再现与该标题相关的播放列表。例如,如果再现了如图4所示的播放列表,该光盘再现装置通过使用视频和音频解码单元10和20再现由播放项目管理的主AV数据。由子播放项目管理的文本字幕流存储在预载缓冲器41中,且根据文本字幕流所指定的字体信息,将字体文件从光盘中提取出来。已提取的字体文件存储在字体预载缓冲器410中。例如,如果用户从由子播放项目管理的文本字幕流中选择韩语字幕,“文本字幕剪辑2”存储在预载缓冲器41中。同时,根据“文本字幕剪辑2”的剪辑信息中指定的字体信息提取字体文件aaaaa.font,且把aaaaa.font存储于字体预载缓冲器410中。在提取并存储相应文本字幕流后,文本字幕解码单元40解码文本字幕流用于产生字幕图形平面,并将此字幕图形平面传送到混合单元50,用于和由处理播放项目管理的主视频数据而产生的视频图像帧一起显示该字幕。
When the optical disc is loaded, the optical disc reproduction apparatus reads and stores file information for reproduction and reproduction of management information. When a user requests reproduction of a title recorded in an optical disc, the optical disc reproducing apparatus reproduces a playlist associated with the title. For example, if a playlist as shown in FIG. 4 is reproduced, the optical disc reproducing apparatus reproduces main AV data managed by playitems by using the video and
文本字幕流的解码分为三步。第一步,根据目的将文本字幕流拆分。即,从文本字幕流中拆分出合成信息、渲染信息和对话文本信息。拆分数据的动作通常称为解析。 The decoding of the text subtitle stream is divided into three steps. The first step is to split the text subtitle stream according to the purpose. That is, the synthesis information, rendering information and dialogue text information are split from the text subtitle stream. The act of splitting data is often called parsing. the
第二步,通过使用渲染信息将对话文本信息中包含的文本数据渲染为位图数据。这叫做渲染。 In the second step, the text data included in the dialogue text information is rendered into bitmap data by using the rendering information. This is called rendering. the
第三步,基于合成信息将渲染的文本数据加入图形平面。即,位图数据加入图形平面,用于再现文本字幕。这叫做合成。 In the third step, the rendered text data is added to the graphics plane based on the compositing information. That is, bitmap data is added to the graphics plane for reproducing text subtitles. This is called compositing. the
为了执行解析步骤,文本字幕解码器42包括了文本字幕(TXT_ST)处理器421,文本字幕处理器421在对话合成缓冲器(DCB)425中存储拆分了的合成信息和渲染信息,以及在对话缓冲器(DB)422中存储拆分了的对话文本信息。
In order to perform the parsing step, the
为了执行渲染步骤,文本字幕解码器42包括了文本渲染器423和对话显像控制器(DP)426。如前面所讨论的,在这一步,拆分了的对话文本信息中的 文本数据被渲染为位图数据。文本渲染器423从字体预载缓冲器410中接收用于文本数据的字体信息,以及从DP控制器426中接收用于文本数据的渲染信息。然后,文本渲染器423通过使用用于文本数据的每个文本串的内联样式信息将文本数据渲染为位图数据。渲染后,位图数据存储于位图对象缓冲器(BOB)424中。
To perform the rendering step, the
存储在BOB 426中的“对象”是已被转换成位图的对话中的每个区域的文本数据。
The "objects" stored in the
又,渲染步骤可以用至少两种方法执行。作为第一种方法,文本数据可在确认原点后渲染,原点就是根据图10A到14G所示的用于确定文本数据在区域中的位置的第一、第二和第三实施例之一要显示文本数据的位置。作为第二种方法,文本数据首先被渲染,然后渲染的文本数据相对于根据图10A到14G所示的第一、第二和第三实施例之一的区域的原点排列。 Also, the rendering step can be performed in at least two ways. As a first method, the text data can be rendered after confirming the origin, which is to be displayed according to one of the first, second and third embodiments for determining the position of the text data in the area shown in FIGS. 10A to 14G The location of the text data. As the second method, text data is first rendered, and then the rendered text data is arranged with respect to the origin of the area according to one of the first, second, and third embodiments shown in FIGS. 10A to 14G. the
对于合成步骤,包括DP控制器426的文本字幕解码器42根据合成信息,将BOB 424中存储的位图对象排列在图形平面43中。合成信息中的调色板信息输入CLUT 44中并用于控制颜色和透明度的改变。接着,产生的字幕图形平面被传送到图16中的混合单元50,用于将字幕图形平面和视频平面混合产生带有字幕的视频图像帧。
For the composition step, the
如前所述,用户可以在渲染步骤和合成步骤中改变样式信息。在此情况,DP控制器426接收用户输入并根据用户输入执行渲染和合成。然而,最好限制要由用户改变的样式信息,因为如果用户改变了所有的样式信息,文本字幕可能不能正确再现。即,要由用户改变的样式信息可限于区域位置和字体尺寸。
As mentioned before, the user can change the style information during the rendering step and compositing step. In this case, the
图18示出了根据本发明的一个示例性实施例,通过解析步骤、渲染步骤和合成步骤解码文本字幕的视图。 FIG. 18 shows a view of decoding a text subtitle through a parsing step, a rendering step, and a compositing step according to an exemplary embodiment of the present invention. the
即,渲染步骤是通过使用解析步骤中拆分出的渲染信息和对话文本信息来执行的,而执行合成步骤用于通过使用解析步骤中拆分出的合成信息来排列由渲染步骤产生的位图对象。 That is, the rendering step is performed by using the rendering information and dialog text information split out in the parsing step, and the compositing step is performed for arranging the bitmap produced by the rendering step by using the compositing information split out in the parsing step object. the
如上所述,文本字幕流文件依据在本发明的高密度光盘中构建文本字幕流文件的方法,以标准化信息的方式记录在光盘中。又,记录在光盘中的文本字幕根据本发明再现文本字幕的方法和装置有效地被再现。 As mentioned above, the text subtitle stream file is recorded in the optical disc in the form of standardized information according to the method for constructing the text subtitle stream file in the high-density optical disc of the present invention. Also, text subtitles recorded in an optical disc are efficiently reproduced according to the method and apparatus for reproducing text subtitles of the present invention. the
虽然本发明通过有限数量的实施例来揭示,本领域技术人员,得益于此揭示,将理解大量的以此为基础的改变和变化。例如,当在若干情况下,考虑蓝光ROM光盘进行描述,本发明不限于此标准光盘或光盘。所有这些改变和变化都落入本发明的精神和范围中。 While the invention has been disclosed in terms of a limited number of embodiments, those skilled in the art, having the benefit of this disclosure, will appreciate numerous modifications and variations based thereon. For example, while the description is made in consideration of a Blu-ray ROM disc in several cases, the present invention is not limited to this standard or optical disc. All such modifications and variations are within the spirit and scope of the invention. the
Claims (42)
Applications Claiming Priority (6)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US56692304P | 2004-05-03 | 2004-05-03 | |
| US60/566,923 | 2004-05-03 | ||
| KR1020040035188 | 2004-05-18 | ||
| KR20040035188 | 2004-05-18 | ||
| KR10-2004-0035188 | 2004-05-18 | ||
| PCT/KR2005/001260 WO2005104666A2 (en) | 2004-05-03 | 2005-05-02 | Recording medium having a data structure for managing reproduction of text subtitle data and methods and apparatuses associated therewith |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2007101427201A Division CN101114498B (en) | 2004-05-03 | 2005-05-02 | Recording medium of data structure for managing reproduction of text subtitle data and related methods and apparatuses |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1950903A CN1950903A (en) | 2007-04-18 |
| CN1950903B true CN1950903B (en) | 2012-04-25 |
Family
ID=38019401
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2005800140788A Expired - Fee Related CN1950903B (en) | 2004-05-03 | 2005-05-02 | Method and device for reproducing text subtitle data |
| CN2007101427201A Expired - Lifetime CN101114498B (en) | 2004-05-03 | 2005-05-02 | Recording medium of data structure for managing reproduction of text subtitle data and related methods and apparatuses |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2007101427201A Expired - Lifetime CN101114498B (en) | 2004-05-03 | 2005-05-02 | Recording medium of data structure for managing reproduction of text subtitle data and related methods and apparatuses |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN1950903B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102202165B (en) * | 2010-03-23 | 2016-05-04 | 新奥特(北京)视频技术有限公司 | A kind of serial data method of reseptance and receiving terminal of real-time caption broadcasting system |
| CN108696767B (en) * | 2018-05-15 | 2021-05-25 | 北京字节跳动网络技术有限公司 | Barrage playing method and device, computer readable storage medium and terminal |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1359521A (en) * | 1999-12-27 | 2002-07-17 | Dvd技术株式会社 | Method for setting captions of DVD |
| CN1864220A (en) * | 2003-10-04 | 2006-11-15 | 三星电子株式会社 | Information storage medium storing text-based subtitle, and apparatus and method for processing text-based subtitle |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1178691A1 (en) * | 2000-07-17 | 2002-02-06 | Deutsche Thomson-Brandt Gmbh | Method and device for recording digital supplementary data |
| KR100457512B1 (en) * | 2001-11-29 | 2004-11-17 | 삼성전자주식회사 | Optical recording medium, apparatus and method for playing the optical recoding medium |
-
2005
- 2005-05-02 CN CN2005800140788A patent/CN1950903B/en not_active Expired - Fee Related
- 2005-05-02 CN CN2007101427201A patent/CN101114498B/en not_active Expired - Lifetime
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1359521A (en) * | 1999-12-27 | 2002-07-17 | Dvd技术株式会社 | Method for setting captions of DVD |
| CN1864220A (en) * | 2003-10-04 | 2006-11-15 | 三星电子株式会社 | Information storage medium storing text-based subtitle, and apparatus and method for processing text-based subtitle |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101114498A (en) | 2008-01-30 |
| CN101114498B (en) | 2011-06-15 |
| CN1950903A (en) | 2007-04-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8498515B2 (en) | Recording medium and recording and reproducing method and apparatuses | |
| US8429532B2 (en) | Methods and apparatuses for managing reproduction of text subtitle data | |
| KR101053622B1 (en) | Method and apparatus for playing recording media and text subtitle streams | |
| KR20060136441A (en) | Recording medium and method and apparatus for reproducing and recording text subtitle streams | |
| JP2007522595A (en) | Recording medium and method and apparatus for decoding text subtitle stream | |
| KR101067778B1 (en) | Method and apparatus for playing recording media and text subtitle streams | |
| JP2007522596A (en) | Recording medium and method and apparatus for decoding text subtitle stream | |
| CN100555438C (en) | Recording medium having data structure for managing text subtitles, and recording and reproducing method and apparatus | |
| TW200534244A (en) | Recording medium, method, and apparatus for reproducing text subtitle streams | |
| US20050198053A1 (en) | Recording medium having a data structure for managing text subtitles and recording and reproducing methods and apparatuses | |
| US20070110400A1 (en) | Apparatus for reproducing data and method thereof | |
| CN1950903B (en) | Method and device for reproducing text subtitle data | |
| CN1934625B (en) | Method and apparatus for recording medium for reproducing and recording text subtitle streams | |
| EP1751757B1 (en) | Recording medium having a data structure for managing reproduction of text subtitle data and methods and apparatuses associated therewith | |
| RU2367036C2 (en) | Recording medium with data structure for managing text subtitles, and recording and displaying methods and devices | |
| RU2380768C2 (en) | Record medium, method and device for text caption streams decoding | |
| KR20050094566A (en) | Apparatus and method for reproducing a text subtitle stream of high density optical disc | |
| KR20050092836A (en) | Apparatus and method for reproducing a text subtitle stream of high density optical disc | |
| KR20050091228A (en) | Apparatus and method for reproducing a text subtitle stream of high density optical disc | |
| KR20070032289A (en) | Method and apparatus for decoding record carrier and text subtitle streams |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120425 Termination date: 20170502 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |