Method for processing caption data

A technology for data processing and subtitles, applied to color TV parts, TV system parts, TVs, etc., can solve the problems of floating-point number errors, the inability to explicitly judge the equality and inequality of floating-point numbers, etc., and achieve calculation high efficiency effect

Inactive Publication Date: 2009-12-02
CHINA DIGITAL VIDEO BEIJING
View PDF2 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the double data structure requires twice the storage space of float and FIXED
Moreover, the floating-point number does not have a value of 0, which is an error problem of floating-point numbers, and the equality and inequality of floating-point numbers cannot be explicitly judged when the program is implemented.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for processing caption data
  • Method for processing caption data
  • Method for processing caption data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0030] The invention provides a method for subtitle data processing, such as figure 1 shown, including the following steps:

[0031] Step S101, the program defines a data structure and adds a member variable for recording page numbers;

[0032] Step S102, the program calls the API function to obtain the original data;

[0033] Step S103, the program converts the original data into a self-defined data structure.

[0034] A kind of subtitle data processing method provided by the present invention, such as figure 2 shown, including the following steps:

[0035] Step S201, obtain the original data of the points of the character outline curve by calling the API function, the data structure of the points is:

[0036] typedef struct tagPOINTFX{

[0037] FIXED x;

[0038] FIXED y;

[0039]}, where the POINTFX data point uses the fixed-poi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for processing caption data, which is characterized by comprising the following steps: self-defining a data structure in a program, adding a member variable and recording page numbers with the member variable; later on, calling an API function to obtain initial data; converting the initial data to the self-defined data structure. In the method, the member variableis used for recording the page numbers and is not converted into float data, so that the data type and precision of graphical information are not changed, thereby avoiding rendering errors caused by number value distortion. Besides, all the data are integers, feature high operating efficiency and can directly undergo equality testing.

Description

technical field [0001] The invention relates to the field of broadcasting and television, in particular to a method for processing subtitle data. Background technique [0002] Graphics and image processing technology can be used to render subtitles with rich special effects, such as bump, gloss, etc., or the rendering of three-dimensional characters often requires the graphic vector information of the characters. For the Win32 system, the DLL (Dynamic Link Library, dynamic link library) of the system provides a related API (Application Programming Interface, application programming interface). By calling the GetGlyphOutline function, the glyph of the specified character can be obtained, and the graphic data of the displayed character can be obtained. The graphic data of a character is a collection of a series of points describing the outline curve of the character. [0003] The point data structure is defined as: [0004] typedef struct tagPOINTFX{ [0005] FIXED x; ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N5/278G06F9/44
Inventor 袁慧晶
Owner CHINA DIGITAL VIDEO BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products