一种字幕数据处理的方法技术

技术编号:4171764 阅读:185 留言:0更新日期:2012-04-11 18:40
本发明专利技术公开了一种字幕数据处理的方法,其特征在于,包括以下步骤:程序中自定义一种数据结构,增加一个成员变量,用所述成员变量记录页码;随后调用API函数得到原始数据;然后将原始数据转换成自定义的数据结构。本发明专利技术通过一个成员变量记录页码,不转换成浮点型数据,使得图形信息的数据类型不发生改变、精度不变,也就不会出现因为数值失真造成的渲染错误。而且,所有数据都是整型,运算效率高,可以直接进行相等性的判断。

Subtitle data processing method

The invention discloses a method for processing caption data, which is characterized in that the process comprises the following steps: a custom data structure, add a member variable for the member variable record number; then call the API function to get the original data; then the raw data into a custom data structure. The invention by a member variable record number, not converted to floating-point data, the graphical information data type does not change, the same precision, it does not appear because numerical distortion caused by rendering errors. Moreover, all data are integer, efficient, and can be directly judged by equality.

【技术实现步骤摘要】

【技术保护点】
一种字幕数据处理的方法,其特征在于,包括以下步骤: 程序自定义一种数据结构,增加一个成员变量,用所述成员变量记录页码; 所述程序调用API函数得到原始数据; 所述程序将原始数据转换成自定义的数据结构。

【技术特征摘要】

【专利技术属性】
技术研发人员:袁慧晶
申请(专利权)人:新奥特北京视频技术有限公司
类型:发明
国别省市:11[中国|北京]

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1
相关领域技术
  • 暂无相关专利