Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for processing caption data

A technology of data processing and subtitles, which is applied to parts of color TV, parts of TV system, TV, etc.

Inactive Publication Date: 2013-06-05
CHINA DIGITAL VIDEO BEIJING
View PDF2 Cites 0 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

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

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

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

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

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

[0039] 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:

[0040] typedef struct tagPOINTFX{

[0041] FIXED x;

[0042] FIXED y;

[0043]}, where the POINTFX data point uses the fixed-point real number structure to describe the x and y coordinates of the point on the two-dimensional space.

[0044] Step S202, customize a ...

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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products