CN101594478B - Method for processing ultralong caption data - Google Patents

Method for processing ultralong caption data Download PDF

Info

Publication number
CN101594478B
CN101594478B CN 200810113848 CN200810113848A CN101594478B CN 101594478 B CN101594478 B CN 101594478B CN 200810113848 CN200810113848 CN 200810113848 CN 200810113848 A CN200810113848 A CN 200810113848A CN 101594478 B CN101594478 B CN 101594478B
Authority
CN
China
Prior art keywords
memory
memory block
captions
chained list
terminal
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
Application number
CN 200810113848
Other languages
Chinese (zh)
Other versions
CN101594478A (en
Inventor
袁慧晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN 200810113848 priority Critical patent/CN101594478B/en
Publication of CN101594478A publication Critical patent/CN101594478A/en
Application granted granted Critical
Publication of CN101594478B publication Critical patent/CN101594478B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for processing ultralong caption data, which is characterized by comprising the following steps: a terminal allocates the memory to caption images to form a memory linked list and plays the memory block caption of the memory linked list; the terminal removes a pointer of the memory block from the head of the memory linked list to the tail of the linked list; the head of the memory linked list points at the next memory block; the terminal records a blank pointer of the memory block which is the pointer which is in the unfilled area of the current memory block and is recorded when a certain character can not be completely rendered in the current memory block, and then the terminal enters the next memory block and starts rendering from the character. A plurality of memory blocks with fixed sizes are adopted to allocate memory for caption images, so that large memory needed by ultralong caption can be realized by updating memory images by the plurality of memory blocks; thus reducing the render time of the images and ensuring smooth display of the real-time dynamic caption; every character in the memory blocks can be completely rendered without flaws caused by boundary characters.

Description

A kind of method of processing ultralong caption data
Technical field
The present invention relates to field of broadcast televisions, relate in particular to a kind of method of processing ultralong caption data.
Background technology
The captions of computer and graph technology have been widely used in pbs film, TV domain.Application such as subtitle graphic relates to the every aspect that station synchronization is made, and comprises live, the studio of news, and all variety, physical culture, finance and economics, meteorology etc. comprise that also the making of movie and television play all relates to.At record and broadcast, later stage and edit field, studio and broadcasting line, subtitle graphic all is the element of commonly using the most.Along with the extensive use of captions, different according to function and effect, captions can be divided into again common captions, surtitle and roll screen captions etc.Captions are by computer letter symbol to be played up the image of certain visual effects, the size of image depend on the size of character, what etc.Therefore, need to be the image dynamic assigning memory during caption rendering.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
Character once is rendered in the internal memory following problem may occur, comprising: ultralong caption needs the internal memory of bulk, and region of memory is always limited, may cause the storehouse Buffer Overflow, causes bulk memory to distribute unsuccessfully; The larger time of playing up of image is longer, may cause caption playing not smooth for real-time dynamic title, and the sense of pause is arranged; Under the memory block of fixed size, the border character of two memory blocks can inevitably appear crossing over, and owing to reasons such as errors, flaw can appear when the same character splicing that two memory blocks are played up respectively.
Summary of the invention
The invention provides a kind of method of processing ultralong caption data, the data when playing with the realization ultralong caption are processed.
The invention provides a kind of method of processing ultralong caption data, it is characterized in that, may further comprise the steps:
Terminal to the captions image, forms the internal memory chained list, the memory block captions of the described internal memory chained list of terminal plays with Memory Allocation;
Described terminal removes the memory block pointer from described internal memory chained list gauge outfit, add the chained list tail, and described internal memory chained list gauge outfit is pointed to next memory block;
The blank content pointers of described terminal record memory block, then the pointer of fill area not in the current memory block that records when this memory block can not be played up in current memory block fully for certain character enters next memory block and begins to play up from described character;
Save as the onesize internal memory of N+1 piece in described;
Have N piece internal memory to be used for the captions image of storage screen display area size in the onesize internal memory of described N+1 piece, 1 internal memory is used for the captions image that storage will show;
When described internal memory chained list gauge outfit is pointed to next memory block, shown in terminal will upgrade former gauge outfit and now show the caption content that the tail internal memory is determined;
Terminal is determined the size of described internal memory and the value of N according to the size of view screen and the data volume of described captions, then described terminal with Memory Allocation to the captions image;
Described terminal specifically comprises Memory Allocation to the captions image: the captions image of memory is constantly updated, and just stores the captions image that will play at once;
When the memory block captions image player of described chained list gauge outfit was complete, former gauge outfit was now shown the tail memory block with synchronous renewal captions image, and terminal will be deleted the former memory image content that former gauge outfit is now shown the tail memory block, deposit the picture material that will play in;
In the blank content pointers of described terminal record memory block, what described terminal was used is the memory block of fixed size.
Compared with prior art, the present invention has the following advantages:
Among the present invention, be captions image storage allocation by the memory block that adopts a plurality of fixed sizes, the needed bulk memory of ultralong caption can be realized by a plurality of little memory block updated stored images; Image is divided into fritter to be played up step by step and is stored in successively on the memory block of internal memory chained list, reduces the image rendering time, and it is smooth that real-time dynamic title is broadcasted; Each character in the memory block is played up fully, the flaw problem that the border character causes can not occurred.
Description of drawings
Fig. 1 is the method flow diagram of a kind of processing ultralong caption data among the present invention;
Fig. 2 is another flow chart of method of a kind of processing ultralong caption data among the present invention;
Fig. 3 is the processing method schematic diagram of the appearance border character among the present invention;
Fig. 4 is the schematic diagram of the ultralong caption processing method that rolls left among the present invention;
Fig. 5 is the system schematic of a kind of processing ultralong caption data among the present invention;
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is described in detail.
The invention provides a kind of method of processing ultralong caption data, as shown in Figure 1, comprise the steps:
Step S101, terminal to the captions image, forms the internal memory chained list with Memory Allocation, then plays the memory block captions of internal memory chained list.
Step S102, terminal removes the memory block pointer from internal memory chained list gauge outfit, add the chained list tail, and internal memory chained list gauge outfit is pointed to next memory block subsequently.
Step S103, the blank content pointers of terminal record memory block, the pointer of fill area not in the current memory block that records when this memory block can not be played up in current memory block fully for certain character.
The method of another kind of processing ultralong caption data provided by the invention as shown in Figure 2, comprises the steps:
Step S201, terminal is determined the size of described internal memory and the value of N according to the size of view screen and the data volume of captions.
Step S202, terminal is that the captions image distributes the onesize internal memory of N+1 piece, forms the internal memory chained list.Wherein have N piece internal memory to be used for the captions image of storage screen display area size, 1 internal memory is used for the captions image that storage will show.
Step S203, terminal is played up the onesize caption image of N+1 piece and is stored into successively in the memory block of internal memory chained list.
Step S204, the memory block captions of broadcast internal memory chained list; The captions image of memory constantly upgrades, and just stores the captions image that will play, thereby finishes the mobile storage of described ultralong caption image at once.
Step S205, complete when the memory block Subtitle Demonstration of internal memory chained list gauge outfit, terminal removes the memory block pointer from internal memory chained list gauge outfit, adds the chained list tail.Internal memory chained list gauge outfit is pointed to next memory block, and terminal will be upgraded the caption content that former gauge outfit is now shown the tail memory block, and the former memory image content that terminal is now shown the tail internal memory with former gauge outfit is deleted, and then deposits the picture material that will play in.
Step S206 between the memory block of two fixed sizes, the border character of two memory blocks can occur crossing over, plays up respectively same character at two memory blocks, flaw can occur during splicing.In the situation that each character in guaranteeing memory block is played up fully, just need to adopt the memory block of fixed size, record the blank content pointers of memory block with terminal, the pointer of fill area not in the current memory block that records when this memory block can not be played up fully for certain character in current memory block; Then enter next memory block and from then on character begin to play up.For example, character D is between internal memory 1 and internal memory 2, and owing to reasons such as errors, when internal memory 1 and internal memory 2 were played up respectively character D, flaw will appear in splicing.At this moment just must to guarantee that each character in memory block 1 and the memory block 2 plays up fully, and the situation of border character D not occur playing up for twice.As shown in Figure 3, adopt the fixed size memory block, when character D can not play up in current memory block 1 fully, the blank content pointers of record memory block this moment entered into next memory block 2, and D begins to play up from this character.
The below is treated to example with the data of the ultralong caption that rolls left and is elaborated, as shown in Figure 4.
Gray area is the screen display captions among the figure, when the memory block Subtitle Demonstration of internal memory chained list gauge outfit complete, this memory block pointer removes from internal memory chained list gauge outfit, add the chained list tail, internal memory chained list gauge outfit is pointed to next memory block, upgrades the caption content that former gauge outfit is now shown the tail memory block, because the viewing area image has been divided into the smaller internal memory of N piece, every internal memory render time is very short, can not cause discontinuous that captions move.
The invention provides a kind of system of processing ultralong caption data, as shown in Figure 5, comprising:
Determination module 510 is used for determining the size of described internal memory and the value of N according to the size of view screen and the data volume of described captions.
Distribution module 520 is used to captions image storage allocation.Computer Memory Allocation that the N+1 piece is onesize forms the internal memory chained list to the captions image; Wherein, N piece internal memory is used for the captions image of storage screen display area size, and 1 internal memory is used for the captions image that storage will show.
Adjusting module 530 is used for adjusting the captions picture material that internal memory is stored, and makes the captions image of depositing all the time screen display area in the internal memory and the captions image that will show.
Logging modle 540 is used for the pointer of the blank content of record memory block, the pointer of fill area not in the current memory block that records when this memory block can not be played up in current memory block fully for certain character.
Concrete, distribution module 520 further comprises:
Image storage unit 521 is for the captions image of storing initial.
Image-erasing unit 522 is used for described chained list gauge outfit internal memory captions image player complete the time, deletes former gauge outfit and now shows the picture material of storing in the tail memory block.
Image deposits unit 523 in, is used for depositing in the picture material that will play.
Concrete, adjusting module 530 further comprises:
Updating block 531 when complete for former gauge outfit memory block image player, upgrades the caption content of former gauge outfit memory block synchronously.
Chained list gauge outfit updating block 532, it is complete to be used for chained list gauge outfit internal memory captions image player, and this memory block pointer removes from internal memory chained list gauge outfit, adds the chained list tail, and internal memory chained list gauge outfit is pointed to next memory block.
Concrete, logging modle 540 further comprises:
Judging unit 541, be used for judging character whether be two memory blocks of leap the border character.
Record cell 542 is for the pointer of the blank content of record memory block.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode in a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.

Claims (6)

1. the method for a processing ultralong caption data is characterized in that, may further comprise the steps:
Terminal to the captions image, forms the internal memory chained list, the memory block captions of the described internal memory chained list of described terminal plays with Memory Allocation;
Save as the onesize internal memory of N+1 piece in described;
Described N+1 piece internal memory, wherein the N piece is used for the captions of storage screen display area, and 1 is used for the captions that the storage screen will show;
Described terminal removes the memory block pointer after described internal memory chained list gauge outfit memory block Subtitle Demonstration is complete from described internal memory chained list gauge outfit, add the described internal memory chained list of chained list tail gauge outfit and point to next memory block;
The blank content pointers of described terminal record memory block, then the pointer of fill area not in the current memory block that the blank content pointers of described memory block records in the time of can not playing up fully in current memory block for certain character enters next memory block and begins to play up from described character.
2. the method for processing ultralong caption data as claimed in claim 1 is characterized in that, when described internal memory chained list gauge outfit is pointed to next memory block, shown in terminal will upgrade the caption content that former gauge outfit is now shown the tail memory block.
3. the method for processing ultralong caption data as claimed in claim 1 is characterized in that described terminal is determined the size of described internal memory and the value of N according to the size of view screen and the data volume of described captions, then described terminal with Memory Allocation to the captions image.
4. the method for processing ultralong caption data as claimed in claim 1, it is characterized in that, described terminal specifically comprises Memory Allocation to the captions image: the captions image of memory is constantly updated, and stores all the time the captions of screen display area and the captions image that will show.
5. the method for processing ultralong caption data as claimed in claim 1, it is characterized in that, when the memory block captions image player of described chained list gauge outfit is complete, former gauge outfit is now shown the tail memory block with synchronous renewal captions image, terminal will be deleted the former memory image content that former gauge outfit is now shown the tail memory block, deposit the picture material that will play in.
6. the method for processing ultralong caption data as claimed in claim 1 is characterized in that, in the blank content pointers of described terminal record memory block, described terminal uses the memory block of fixed size to be captions image storage allocation.
CN 200810113848 2008-05-30 2008-05-30 Method for processing ultralong caption data Expired - Fee Related CN101594478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810113848 CN101594478B (en) 2008-05-30 2008-05-30 Method for processing ultralong caption data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810113848 CN101594478B (en) 2008-05-30 2008-05-30 Method for processing ultralong caption data

Publications (2)

Publication Number Publication Date
CN101594478A CN101594478A (en) 2009-12-02
CN101594478B true CN101594478B (en) 2013-01-30

Family

ID=41408891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810113848 Expired - Fee Related CN101594478B (en) 2008-05-30 2008-05-30 Method for processing ultralong caption data

Country Status (1)

Country Link
CN (1) CN101594478B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1505330A (en) * 2002-12-02 2004-06-16 深圳市中兴通讯股份有限公司上海第二 A internal memory management method
CN1647050A (en) * 2002-04-03 2005-07-27 皇家飞利浦电子股份有限公司 Morphing memory pools
CN1722106A (en) * 2004-07-13 2006-01-18 中兴通讯股份有限公司 Method for internal memory allocation in the embedded real-time operation system
CN101030168A (en) * 2007-02-15 2007-09-05 华为技术有限公司 Method and apparatus for realizing high-reliability chain list

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6417888B1 (en) * 1998-10-09 2002-07-09 Matsushita Electric Industrial Co., Ltd. On screen display processor
CN1909607A (en) * 2005-08-03 2007-02-07 上海乐金广电电子有限公司 DVD image scale adjusting method in wide-screen display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647050A (en) * 2002-04-03 2005-07-27 皇家飞利浦电子股份有限公司 Morphing memory pools
CN1505330A (en) * 2002-12-02 2004-06-16 深圳市中兴通讯股份有限公司上海第二 A internal memory management method
CN1722106A (en) * 2004-07-13 2006-01-18 中兴通讯股份有限公司 Method for internal memory allocation in the embedded real-time operation system
CN101030168A (en) * 2007-02-15 2007-09-05 华为技术有限公司 Method and apparatus for realizing high-reliability chain list

Also Published As

Publication number Publication date
CN101594478A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
KR102310241B1 (en) Source device, controlling method thereof, sink device and processing method for improving image quality thereof
CN102364905B (en) Data reproducing method, device and mobile terminal
CN110868625A (en) Video playing method and device, electronic equipment and storage medium
CN103905744A (en) Rendering synthetic method and system
CN107682713B (en) Media file playing method and device
CN107690074A (en) Video coding and restoring method, audio/video player system and relevant device
CN112055254B (en) Video playing method, device, terminal and storage medium
CN102629460B (en) Method and apparatus for controlling frame frequency of liquid crystal display
CN103475927A (en) Online-video real-time speed change play method and system thereof
CN112019907A (en) Live broadcast picture distribution method, computer equipment and readable storage medium
CN108235120A (en) Live video stream method for pushing, device and electronic equipment
CN101594476A (en) A kind of processing method of ultralong caption rendering
CN108337553A (en) A kind of multi-medium data pre-download method
CN105915985A (en) Method for performing watch-back in live broadcasting and device thereof
CN101594477B (en) Processing system of ultralong caption rendering
CN105282560B (en) A kind of method and system of quick broadcasting network video
CN103618952A (en) Method for playing boot animation of intelligent television and intelligent television
CN101594479B (en) System for processing ultralong caption data
CN103428213A (en) Multi-media file generation method and multi-media device
CN107580264A (en) Multimedia resource play handling method and device
CN103188554A (en) Image coding method and image coding system
CN101594478B (en) Method for processing ultralong caption data
CN111667313A (en) Advertisement display method and device, client device and storage medium
CN112019906A (en) Live broadcast method, computer equipment and readable storage medium
CN109068156A (en) A kind of performance recording, playback method and device

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: 20130130

Termination date: 20170530

CF01 Termination of patent right due to non-payment of annual fee