CN100514992C - Method for processing mobile-terminal frame carboon - Google Patents

Method for processing mobile-terminal frame carboon Download PDF

Info

Publication number
CN100514992C
CN100514992C CNB2007100650226A CN200710065022A CN100514992C CN 100514992 C CN100514992 C CN 100514992C CN B2007100650226 A CNB2007100650226 A CN B2007100650226A CN 200710065022 A CN200710065022 A CN 200710065022A CN 100514992 C CN100514992 C CN 100514992C
Authority
CN
China
Prior art keywords
data
frame
image
carboon
mobile
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.)
Active
Application number
CNB2007100650226A
Other languages
Chinese (zh)
Other versions
CN101031085A (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 United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co 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 United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CNB2007100650226A priority Critical patent/CN100514992C/en
Publication of CN101031085A publication Critical patent/CN101031085A/en
Application granted granted Critical
Publication of CN100514992C publication Critical patent/CN100514992C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The method comprises: 1) sequentially comparing the image pixel data in adjacent original image frames; setting the identical pixel portions in the next image frame and in the previous image frame as transparent; encoding the image frame data processed with transparency into the frame animation file of mobile terminal, and sending it to the server; 2) the mobile terminal downloads new frame animation file of mobile terminal, and decodes it to get image frame data; sequentially overlapping the next image frame on its adjacent previous image, and displaying the image of previous image frame in the transparent portion, and displaying the image of the next image frame in the non-transparency portion so as to render the frame animation image on the screen of mobile terminal.

Description

A kind of processing method of mobile-terminal frame carboon
Technical field
The present invention relates to portable terminal value-added service field, particularly relevant for a kind of processing method of mobile-terminal frame carboon.
Background technology
On existing cordless communication network platform, the animation that lacks is truly play, and most mobile terminal cartoon is that a few width of cloth pictures simply splice in fact, is similar to lantern slide and plays.
For example, at existing BREW (Binary Runtime Environment for Wireless, BREW) realize the animation broadcast on the platform, maximum technological difficulties are the restriction of portable terminal operational capability, and producing two technical problems therefrom needs to solve:
1. playback rate.Traditional animation all is a vector animation, needs CPU to do a large amount of calculation process, is adapted at smooth playing on the PC.And most of BREW portable terminals are to finish such operand.
2. play quality.Can do a simplification processing to vector animation in order to improve playback rate, reduce operand, but can sacrifice play quality like this, can't obtain better user experience.
Existing mobile terminal cartoon play-back technology is done to such an extent that have preferably: WIVG (Wireless InteractiveVector Graphics, wireless interaction vector graphics) technology and FlashShow technology.
These two kinds of technology all are to adopt the vector animation scheme, in theory can adaptive various mobile terminal screens, reduce the cost that animated content is made.
The WIVG technology is the vector animation technology that derives from Flash.Its broadcasting speed and play quality are all good, but to having relatively high expectations of terminal, only support two kinds of mobile terminal operating systems of Symbian and WindowMobile now, this means that it can only be used for high-end intelligent mobile terminal, can't on most of CDMA terminals, use.
The FlashShow technology is a kind of vector animation technology of simplification based on binary runtime environment for wireless.As mentioned above, it adapts to portable terminal by reducing image quality.
In addition, on PC, there is the video coding and decoding technology (as MPEG, Motion Picture Experts Group, Moving Picture Experts Group) that is similar to frame animation.It can realize bigger compression ratio and image definition.But it is a large amount of and the complex calculations process makes it not be adapted at realizing on most of portable terminals.
Summary of the invention
The objective of the invention is to propose a kind of processing method of mobile-terminal frame carboon.To solve the problem that on portable terminal cordless communication network platform, realizes online broadcast frame animation.
For achieving the above object, the present invention proposes a kind of processing method of mobile-terminal frame carboon, wherein, may further comprise the steps:
Step 1, successively the image pixel data in the original image frame adjacent in the mobile-terminal frame carboon is compared, image pixel data identical in a back picture frame and the previous picture frame partly is set to Transparent color, and the mobile-terminal frame carboon file that the image frame data after transparence is handled is encoded into new also is uploaded to described server;
Step 2, described portable terminal is downloaded described new mobile-terminal frame carboon file, decode described image frame data, on the image by successively that the image overlay of a back picture frame is extremely adjacent previous picture frame, the image that shows the previous image frame in the part that Transparent color is arranged, show the image of back one picture frame in the part that does not have Transparent color, thereby described frame animation image is played up on the screen of described portable terminal.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 1 further comprises:
With the image pixel number in each picture frame according to this 8 * 8 pixels be an image block, be divided into a plurality of image blocks, successively the image block that shows same position in the adjacent picture frame is compared, and described image block is carried out the step that transparence is handled.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 1 further comprises:
After the transparence of finishing described image pixel data is handled, to the step of the further compression of described image pixel data; With
Described step 2 further comprises:
After described portable terminal decomposites described image frame data from described new mobile-terminal frame carboon file, the step that the image pixel data in the described picture frame is decompressed earlier.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 1 further comprises:
An identical common image data in each original image frame in the extraction mobile-terminal frame carboon, only in picture frame, keep described image pixel data, and with a described common image data as encode step in the into described new mobile-terminal frame carboon file of data block independently; With
Described step 2 further comprises:
Described portable terminal decodes described image frame data and independently after the common image data from described new mobile-terminal frame carboon file, a described common image data are added step in each picture frame into.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 1 further comprises:
Step 51 is judged the image pixel data relevant audio whether in each picture frame, if there is related audio, the index value of related audio blocks of data is set in the data head of the picture frame that has related audio then;
Step 52 is with the described audio blocks of data into described new mobile-terminal frame carboon file of encoding, in the into described new mobile-terminal frame carboon file of then image pixel data in the described picture frame being encoded.
The processing method of above-mentioned mobile-terminal frame carboon wherein, further comprises before the described step 51:
Source audio data in the described mobile terminal cartoon are carried out segmentation, generate a plurality of audio segment datas, described audio segment data is compressed into the step of described audio blocks of data.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 2 further comprises:
Whether each picture frame of circular test exists the index value of described related audio blocks of data, judge whether described picture frame exists related audio, if there is related audio, read described index value, described audio blocks of data obtains and decompresses from described new mobile-terminal frame carboon file, restore described audio segment data, and the step of on described portable terminal, playing.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 2 specifically comprises:
Step 81, the described new mobile-terminal frame carboon file of decoding obtains a described common image data;
Step 82, whether each picture frame of circular test exists the index value of described related audio blocks of data, judge whether described picture frame exists related audio, if there is related audio, read described index value, the described audio blocks of data that obtains and decompress from described new mobile-terminal frame carboon file enters step 83 then, if there is not related audio, then directly enter step 83;
Step 83, the described new mobile-terminal frame carboon file of decoding obtains the image pixel data of each picture frame;
Whether step 84, the image pixel data of judging described every frame and related audio blocks of data, then decompress if through overcompression through overcompression, enter step 85 then, if not through overcompression, then directly do not enter step 85;
Step 85 is added a described common image data in each picture frame;
Step 86 on the image by successively that the image overlay of a back picture frame is extremely adjacent previous picture frame, is played up described mobile-terminal frame carboon image on the screen of described portable terminal, and is play described related audio.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, the coded format of view data is streaming network graphic form or bitmap format in the described mobile-terminal frame carboon file;
The acoustic coding form of audio data is MIDI, QCP or MMF in the described mobile-terminal frame carboon file.
The processing method of above-mentioned mobile-terminal frame carboon, wherein, described step 2 further comprises:
The described portable terminal described new mobile-terminal frame carboon file of decoding judges that the data of obtaining are audio data or view data, then with described audio data and view data respectively by independently playing the step that passage and spatial cache are handled.
The present invention replaces the vector animation technology with frame animation, preserves animation data with the file format of higher compression ratio, has greatly reduced document size, has improved playing efficiency, and has supported online playing function.
Description of drawings
Fig. 1 is the workflow schematic diagram of image encoding of the present invention;
Fig. 2 is the workflow schematic diagram that compresses between picture frame of the present invention;
Fig. 3 is the workflow schematic diagram of compression in the picture frame of the present invention;
Fig. 4 is the workflow schematic diagram of audio compression of the present invention;
Fig. 5 is the audio of the present invention workflow schematic diagram related with image;
Fig. 6 is the workflow schematic diagram of UFO document No. of the present invention;
Fig. 7 is the workflow schematic diagram of picture decoding of the present invention;
Fig. 8 is the workflow schematic diagram of audio reduction of the present invention;
Fig. 9 is the workflow schematic diagram of picture frame reduction of the present invention;
Figure 10 is the workflow schematic diagram of the online broadcast of the present invention.
Embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is elaborated.
The invention provides the processing method of a mobile-terminal frame carboon.Adopt the frame animation technology generation for vector animation technology playing animation on portable terminal, the present invention specifically can be divided into the Code And Decode two large divisions.
Fig. 1 is the workflow schematic diagram of image encoding of the present invention.As shown in the figure, the process of coding specifically may further comprise the steps:
Step S101 carries out the interframe compression to image;
Step S102 carries out compressing in the frame to image;
Step S103 judges whether relevant audio of image, if relevant audio then enters step S104, if do not have, then enters step S106;
Step S104 writes the index of related audio in the image head of picture frame, enter step S106 again;
Step S105 compresses the audio data;
Step S106 writes UFO (UniFrame Object, UNI frame object) animation file with audio data and view data after the compression.
Each concrete steps among Fig. 1 are described in detail in detail below:
Fig. 2 is the workflow schematic diagram that compresses between picture frame of the present invention.The present invention supports PNG (PortableNetwork Graphic Format, streaming network graphic form), two kinds of coding format of BMP (Bitmap, bitmap).Two characteristics that we need utilize PNG/BMP to have:
It is transparent that characteristic one: PNG/BMP can support that all the part is provided with;
Characteristic two: two color of image of same area are can reduce on the file volume much than color complexity simply.
Consider that animation is a continually varying, the similarity of its consecutive frame image is very high, and the present invention handles the elimination of the repeating data that realizes adjacent two two field pictures with local transparence.For example, successive image frame A-B-C-D is arranged, the difference that compares the second frame B image and the first frame A image, because the size of two two field pictures is the same, can be from the upper left corner of image, the color of two figure at same locational pixel compared in pointwise, illustrates that if color is identical this point is repetition, can eliminate.So we replace current color with self-defining Transparent color, the color relation of this point is replaced by Transparent color like this, that is to say that this point " transparence ".Travel through complete image and just can obtain a new B two field picture (wherein the color with respect to the repetition pixel of A frame all replaces with Transparent color), i.e. B ' two field picture.
In fact, if we compare in pointwise, not only processing speed is slower, and too scattered brocken spectrum can not really improve the compression ratio of image, according to the characteristic two of PNG/BMP, the file size that reduce image should have large-area monochrome (Transparent color) that good effect just can be arranged.So we compare as a processing unit (image block) with 8 * 8 pixels, in one 8 * 8 square, not to repeat a little promptly as long as a point is arranged, then all think current entire image piece (8 * 8 pixels) unduplicated.Have only also must 8 * 8 pixels all identically, just the pixel with this image block all replaces to Transparent color.
Can restore B according to A image that has obtained and the merging of B ' process at portable terminal, promptly play up the A image earlier, simply B ' is superimposed upon on the A then, because B ' has been replaced by Transparent color with the pixel of A same section, portable terminal can be ignored these pixels with Transparent color, so pixel on same position of the A image under just demonstrating, and B ' goes up and the pixel of the part that A is inequality, owing to do not replaced, so still show the pixel of B ' image in this position by Transparent color.Final whole structure is exactly to have shown original B image on screen.
The present invention utilizes Transparent color to replace and realizes image " hollow out ", compare with " hollow out " technology among the documents CN1035797C, be by only deriving (non-blank-white) inequality parts of images pixel data in the documents, the method that the same section image pixel data abandons fully realizes, the pixel data (the data incompleteness must could be recovered through computing) that has only parts of images inequality among the B '.The present invention still is retained in (data integrity, simple superposition can be recovered) in B ' image after same section image slices vegetarian refreshments is replaced with Transparent color.Briefly, the difference that is exactly the present invention and documents is, documents is not that the color of pixel is operated but the binary data of direct control image file, needs deleted data during hollow out, need calculate the data of recovering deleted during reduction.And the present invention is on the contrary, is the binary data of the color of the pixel of image being operated rather than operated image file, need replace color during hollow out, does not need to do any processing during reduction.
Same, the MPEG technology has also adopted the interframe compression in the known technology, but it is based on the realization of motion compensated prediction technology, need carry out a large amount of calculation process.And, in order to obtain maximum compression ratio, the interframe compression of MPEG also is repeating data to be deleted (being that B ' is the data block of an incompleteness) from two field picture, the color that the present invention utilizes the characteristic of Transparent color to carry out whole pixels in the identical image piece is replaced the forward direction/bi-directional predicted technology that replaces MPEG, and guarantee complete (just the color of partial pixel point is replaced by another kind of color) of the middle data of B ', simplified the calculating process when reduction so to greatest extent.In the present invention, because B ' also is an effective picture frame (just having partial pixel to be replaced by another kind of color in the image), can directly show, just can obtain original B image on the A image (this reduction process is not to restore real B image by computing as long as its stack is presented at, just showing the B image on mobile terminal screen gets final product, in fact the present invention does not obtain a real B image, and just shows the B image on the screen).Compare MPEG and documents CN1035797C, they all are to restore real B image in internal memory by computing, then the B image are rendered on the screen.
Therefore, the present invention and MPEG and documents compare, and the method for employing is simple relatively, have the reduction characteristics that operand is little, image fault is little, are more suitable for realizing on portable terminal.
Whether following table has been described through transparence and has been handled influence to final animation file size:
As shown in Figure 2, compression specifically may further comprise the steps between picture frame:
Step S201 opens the two continuous frames image;
Step S202 is divided into the 8x8 image block with every two field picture;
Step S203, the pixel of the image block of the correspondence of two picture frames that recycle ratio is more adjacent, judge whether two image pixels in the image block are identical, if all pixels of two image blocks are all identical, think that then these two image blocks are identical, enter step S204,, then enter step S205 if all inequality;
Step S204 carries out transparence with the picture block identical with former frame in one frame of back and handles (promptly replacing with specific Transparent color), enters step S205 again;
Step S205, with the back one frame the complete image pixel data write in the corresponding UFO file data blocks.
Fig. 3 is the workflow schematic diagram of compression in the picture frame of the present invention.The present invention selects to support two kinds of coding format of PNG, BMP.Because animation is made up of a plurality of static map picture frames, and including image head, every static frames image (writes down the type of this image, color depth, palette, width, data such as height) and concrete image pixel data, for one section animation, the image head data of every static images that it comprised are just the same, therefore, if the data of in each frame, not preserving these file headers, (the BMP animation with 100 frames is an example can to save bigger space, its image head accounts for 54 bytes, so just can reduce by 5400 bytes), the data in each frame are only preserved concrete image pixel data (being the specifying information of each pixel of two field picture).As mentioned above, the present invention extracts the data of the file header of each two field picture, is encoded into the data of 8+X form, writes final animation file (specific coding form and performing step are described in detail in " Fig. 6-UFO document No. ").Simultaneously, GZIP (the GeneralPublic License ZIP) compression method by standard compresses processing with the image pixel data of each two field picture, has also reduced the data volume size in the frame.By above dual mode, can obtain littler frame data.Contrast MPEG technology, that MPEG adopts is complicated discrete cosine transform (Discrete Cosine Transform, DCT) compression (being the compress technique of similar JPEG) in the achieve frame, yet the present invention pieces together the complicated DCT technology of having abandoned, adopt the compression in the method achieve frame of cutting down the image common data simply, and can decode quickly and play up, be adapted at realizing on the portable terminal.
As shown in Figure 3, compression specifically may further comprise the steps in the picture frame:
Step S301, extracting goes out the image head data of this image from each static map picture frame;
Step S302 judges whether this static map picture frame is first frame of animation file, if, then enter step S303, if not, step S304 then entered;
Step S303, with the image head data (essential information that comprises current frame image in this static map picture frame, as information such as length and width, color depths, in all two field pictures, the content of image head data all is the same, therefore the image head data that only need preservation first frame) be encoded into a common image data (8+X form) and write in the UFO animation file, enter step S304 again;
Step S304 extracts the image pixel data in each static map picture frame;
Step S305 carries out the GZIP compression to the image pixel data of extracting;
Step S306 writes the image pixel data after the compression in the UFO animation file.
Fig. 4 is the workflow schematic diagram of audio compression of the present invention.The present invention supports MIDI (MusicalInstrument Digital Interface, a kind of audio format of standard), QCP (Qualcomm ' sPurevoice, the audio format of Qualcomm's definition), three kinds of audio coded formats of MMF (APP Mind Messagement File, the audio format of Yamaha company definition).
Wherein, the audio compression step comprises: at first, animation source audio is carried out segmentation, obtain a plurality of audio segment files (still keeping original audio coded format), the audio sequence that promptly complete animation comprised.Then, read each audio segment file respectively, carry out standard GZIP compression and handle, the audio segment data after obtaining compressing, coding advances UFO animation file (if be provided with related audio, then need carry out the operation associated of audio and image earlier when coding).
Compare MEPG, audio coding among the MPEG is to adopt own MP3 (Moving PictureExperts Group Audio Layer III, a kind of audio compression techniques)/and AAC (advanced acoustic coding technology) scheme, can not be supported by most of portable terminal.And audio and the image processing of MPEG are similar, also be with (being a series of continuous audio frames) of dividing frame to realize, and the present invention adopt the audio segmentation." audio section " is thicker than " audio frame " granularity, and the processing when decoding is play is also simpler, relatively is adapted at realizing on the portable terminal.And, consider most of portable terminals built-in to the decoding technique of GZIP packed data, therefore, use the GZIP compress technique can utilize the operational capability of portable terminal self more fully.
The present invention also supports the broadcast of background music, compares with audio, and background music is a complete music data, does not need to carry out segment processing.So the present invention handles the audio section that background music is regarded a specific type as, does not have special treatment step in cataloged procedure.
As shown in Figure 4, the audio compression specifically may further comprise the steps:
Step S401 is cut into a plurality of audio sections (maintenance original coding) with the segmentation of animation audio initial data;
Step S402 opens each audio segment file respectively;
Step S403 reads the data in each audio segment file, it is carried out the GZIP compression handle, and is compressed into the audio blocks of data in the UFO file;
Step S404 judges whether this audio segment file has specified the audio association, if, then enter step S405, if not, step S406 then entered;
Step S405 is provided with the association (the related audio piece index of record in the image frame data head) between this audio blocks of data (coming from current audio segment file) and the corresponding view data, enters step S406 again;
Step S406 will write the UFO animation file through the audio blocks of data that top step obtains.
Fig. 5 is the audio of the present invention workflow schematic diagram related with image.The present invention has set some special frames (key frame) in sequence of image frames, preserve the index of the audio piece of an association in the data head of key frame, to reach the effect that audio is related with respective image.This step mainly is exactly to preserve the index value of an audio blocks of data associated therewith at image key frame data head.And guarantee that this audio blocks of data because playing up in this key frame images, should guarantee that its associated audio was decoded in advance and can play before the position of UFO animation file is arranged in this key frame view data.For example: preserve the related audio piece 01 of a byte 01 this picture frame of expression, play sound effect section 01 when showing this picture frame in front at picture frame; If being 00 this two field picture of expression, this byte do not have related audio.MPEG is because audio also is the branch frame, so do not need to carry out such processing.
As shown in Figure 5, audio is related with image specifically may further comprise the steps:
Step S501 reads the index value of audio blocks of data;
Step S502 reads the single-frame images data index value;
Step S503 carries out the UFO coding to the audio blocks of data;
Step S504 carries out the digital coding of UFO single-frame images.
Fig. 6 is the workflow schematic diagram of UFO document No. of the present invention.Compress the data of each picture frame that obtains after handling in the process frame, and compress the data of handling the audio frame that obtains through audio, in our the final animation file of encoding successively, this file designation is the UFO file.Each UFO file comprises a plurality of data, and each data is made up of the build of 8 bytes and the block of X byte again.Wherein, the form of each data 8 byte build is similar substantially, as shown in the table:
Figure C200710065022D00141
Wherein two byte ' Q ' in " background music data " and " audio data ", ' this section of C ' expression audio preserves with the QCP form, if be ' MF ' expression is with the preservation of MMF form, if be ' MD ' expression preserves with midi format.
Music identification is the sign that " background music data " and " audio data " are distinguished, and identifies according to this when decoding and carries out different processing.
The audio index is effectively quoting the audio numbering.For example, the audio numbering: 1,2,3, expression has three sections audios.And audio index 2 these two field pictures of expression are quoted second section audio (being audio 2).The audio numbering is unique, and the audio index is recursive, and for example: two different two field pictures can be quoted same section audio, and their audio index is the same so.
And as follows by a plurality of UFO animation file forms of forming:
The UFO file header The common image head Background music data Audio data (N) View data (N)
8+X 8+X 8+X N *(8+X) N *(8+X)
At first, write the public documents head (information that has comprised the UFO file of UFO animation file, as version number etc.), then write a common image data (this is the public head of image frame data in the whole animation file, will restore complete view data according to this public head in the future).Then, travel through data after the compression of each picture frame, judge whether that this image is a key frame, if key frame, the audio segment data (also being after compression) with association writes animation file earlier, then writes this image frame data again.If not key frame, this image frame data of then writing direct.As shown in Figure 6, coding UFO file specifically may further comprise the steps:
Step S601 writes UFO file header information;
Step S602 writes UFO common image information (comprising the common image header) in the UFO file;
Step S603 begins circulation every frame image data is carried out the UFO coding;
Step S604 judges the view data relevant audio whether in every frame, if having, then enters step S605, if do not have, then enters step S606;
Step S605, if relevant audio, then the audio blocks of data with association writes the UFO file, enters step S606 again;
Step S606 writes the single-frame images data in the UFO file.
Fig. 7 is the workflow schematic diagram of image data decoding of the present invention.Decoding is the inverse process of coding, is the process that specific animation file form (UFO) is illustrated in portable terminal.Because when coding UFO file, taken into full account the simplicity requirement of decoding, so whole decoding scheme relative coding scheme is simply many, specifically comprised: audio reduction step and picture frame reduction step.As shown in Figure 7:
Step S701, decoding UFO file reads the UFO original data stream;
Step S702 judges whether relevant audio of this UFO original data stream, and whether the index of audio piece of the association of preservation is promptly arranged in the sequence of image frames, if having, then enters step S703, if do not have, then enters step S704;
Step S703, if relevant, then elder generation reduces to the audio blocks of data of association, enters step S704 again;
Step S704 reduces to the view data in the UFO file.
Wherein, the audio reduction step is the inverse process of audio compression step.Fig. 8 is the workflow schematic diagram of audio reduction of the present invention.As shown in the figure, may further comprise the steps:
Step S801 reads the data block in the current UFO file, if the audio blocks of data, then this audio blocks of data is obtained in decoding;
Step S802 judges that this audio blocks of data whether through the GZIP compression, if through overcompression, then enters step S803, if uncompressed then enters step S804;
Step S803 to use the decompression operation of GZIP through the audio blocks of data of overcompression, restores the audio initial data;
Step S804 plays the initial data of audio by the playback interface that mobile-terminal platform provides.
The picture frame reduction is the inverse process of picture frame compression.Comprise: reduction step and interframe reduction step in the frame, wherein, reduction step specifically comprises in the frame:
At first, decoding UFO file (stream), the data format (8+X) of definition during according to coding, read the data (head part of data) of 8 bytes earlier, then according to the information that comprises in these 8 bytes (type of data, the length of data etc.), read the data (body portions of data) of respective length again, constitute complete data, the data that read are kept at a buffering area (chained lists of the in store a plurality of data structures of this buffering area), and this buffering area also comprises public information and the common image head part of UFO.
Then, read the content of this buffering area, judge, if image block, judge whether compression,, then use the decompression operation of GZIP if GZIP compresses the back data through GZIP, restore the preceding image pixel data of GZIP compression, if compression then directly obtains image pixel data.With the public picture header information of image pixel data combination that obtains, play up on mobile terminal screen by the display interface that mobile-terminal platform provides.
The interframe reduction step comprises: during rendering image, simply by image overlay, restore the image display effect before transparence is handled on portable terminal.Be that image A and B are two continuous frames, when coding with the transparent B of changing into ' of B (only remain with image pixel data different with A among the B, same section has been coated with Transparent color and has erased), when playing up, show A earlier, and then stack B ', final like this display effect and B are just the same.
Fig. 9 is the workflow schematic diagram of picture frame reduction of the present invention.As shown in the figure, may further comprise the steps:
Step S901, the data in the traversal UFO file.At first decomposite public information part and common image head part in the UFO file;
Step S902, each picture frame of circular test, reading images blocks of data head part;
Whether step S903 judges in each picture frame the index value of relevant audio, thereby judges whether this picture frame exists related audio, if exist, then enters step S904, if do not exist, then enters step S905;
Step S904, decoding UFO animation file obtains related audio blocks of data, and this audio blocks of data that decompresses enters step S905 then;
Step S905, decoding UFO animation file obtains the view data of each picture frame;
Step S906, if whether the view data of judging every frame if GZIP compression back data then enter step S907, without overcompression, then enters step S908 through the GZIP compression;
Step S907 carries out GZIP and decompresses, and restores the view data of original image frame, enters step S908 then;
Step S908 adds the common image header in each picture frame;
Step S909, the display interface that provides by portable terminal, the mobile terminal cartoon image is played up on mobile terminal screen, when playing up, pass through image overlay, on the image of the previous image frame that the image overlay of back one picture frame is extremely adjacent, restore the image display effect before transparence is handled between picture frame, the audio data are synchronous playing also.
Wherein, image restoring and audio reduction are synchronous, are main flow with the image restoring, in the process of implementation, can according to circumstances enter the audio reduction.So the decompression audio triggers in image restoring in the audio reduction.
Online streaming broadcast is the CDMA 1X network at high-quality, and the playing function while downloading of UFO file is provided.It is embodied in has increased the binary channels Synchronous Processing of application layer mechanism in the common decode procedure.As shown in figure 10,, set up two and independently play passage, handle the broadcast of audio and image respectively, and respectively spatial cache is set for it at portable terminal.At first, the UFO packet that from network, obtains, its build can be distinguished audio data or view data by analysis, decomposite view data and audio data through first decoding, and then the view data and the audio data of compression are carried out secondary decoding, restore initial data, enter corresponding passage respectively, play up on mobile terminal screen.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; being familiar with those of ordinary skill in the art ought can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (9)

1. the processing method of a mobile-terminal frame carboon is characterized in that, may further comprise the steps:
Step 1, image pixel data with same position in the original image frame adjacent in the mobile-terminal frame carboon compares successively, same position in a back picture frame and the previous picture frame and identical image pixel data partly are set to Transparent color, and the mobile-terminal frame carboon file that the image frame data after transparence is handled is encoded into new also uploads onto the server; The coded format of the view data in the original mobile-terminal frame carboon is PNG form or BMP form;
Step 2, portable terminal is downloaded described new mobile-terminal frame carboon file, decode described image frame data, on the image by successively that the image overlay of a back picture frame is extremely adjacent previous picture frame, the image that shows the previous image frame in the part that Transparent color is arranged, show the image of back one picture frame in the part that does not have Transparent color, thereby the mobile-terminal frame carboon image is played up on the screen of described portable terminal.
2. the processing method of mobile-terminal frame carboon according to claim 1 is characterized in that, in the described step 1, the image pixel data of same position in the original image frame adjacent in the mobile-terminal frame carboon is compared comprise successively:
With the image pixel number in each picture frame according to this 8 * 8 pixels be an image block, be divided into a plurality of image blocks, the image block to same position in the adjacent picture frame compares successively;
In the described step 1, same position in a back picture frame and the previous picture frame and identical image pixel data partly are set to Transparent color comprise: described image block is carried out transparence handle.
3. the processing method of mobile-terminal frame carboon according to claim 1 and 2 is characterized in that, described step 1 further comprises:
After the transparence of finishing image pixel data is handled, the image pixel data after the transparence processing is further utilized the step of GZIP compression method compression; With
In the described step 2, decode described image frame data and comprise:
After described portable terminal decomposites described image frame data from described new mobile-terminal frame carboon file, the step that the image pixel data in the described picture frame is decompressed earlier.
4. the processing method of mobile-terminal frame carboon according to claim 3 is characterized in that, described step 1 further comprises:
An identical common image data in each original image frame in the extraction mobile-terminal frame carboon, only in picture frame, keep image pixel data, and with a described common image data as encode step in the into described new mobile-terminal frame carboon file of data block independently; With
In the described step 2, portable terminal is downloaded described new mobile-terminal frame carboon file, decodes described image frame data and further comprises:
Described portable terminal decodes image frame data and independently after the common image data from described new mobile-terminal frame carboon file, a described common image data are added in each picture frame.
5. the processing method of mobile-terminal frame carboon according to claim 4 is characterized in that, described step 1 further comprises:
Step 51 is judged the image pixel data relevant audio whether in each picture frame, if there is related audio, the index value of related audio blocks of data is set in the data head of the picture frame that has related audio then; The acoustic coding form of audio data is MIDI, QCP or MMF in the original mobile-terminal frame carboon file;
Step 52, with the described related audio blocks of data into described new mobile-terminal frame carboon file of encoding, image pixel data in the image frame data after then transparence being handled is encoded in the into described new mobile-terminal frame carboon file, and data head is encoded in the into described new mobile-terminal frame carboon file.
6. the processing method of mobile-terminal frame carboon according to claim 5 is characterized in that, further comprises before the described step 51:
Source audio data in the described mobile-terminal frame carboon are carried out segmentation, generate a plurality of audio segment datas, utilize the GZIP compression method to be compressed into the step of described related audio blocks of data described audio segment data.
7. the processing method of mobile-terminal frame carboon according to claim 6 is characterized in that, described step 2 further comprises:
Whether each picture frame of circular test exists the index value of described related audio blocks of data, judge whether described picture frame exists related audio, if there is related audio, read described index value, described related audio blocks of data obtains from described new mobile-terminal frame carboon file and decompresses, restore described audio segment data, and the step of on described portable terminal, playing.
8. the processing method of mobile-terminal frame carboon according to claim 7 is characterized in that, described step 2 specifically comprises:
Step 81, the described new mobile-terminal frame carboon file of decoding obtains a described common image data;
Step 82, whether each picture frame of circular test exists the index value of described related audio blocks of data, judge whether described picture frame exists related audio, if there is related audio, read described index value, described related audio blocks of data obtains from described new mobile-terminal frame carboon file and decompresses, restore described audio segment data, enter step 83 then,, then directly enter step 83 if there is not related audio;
Step 83, the described new mobile-terminal frame carboon file of decoding obtains the image pixel data of each picture frame;
Whether step 84, the image pixel data of judging described each picture frame, then decompress if through overcompression through overcompression, enter step 85 then, if not through overcompression, then directly enter step 85;
Step 85 is added a described common image data in each picture frame;
Step 86 on the image by successively that the image overlay of a back picture frame is extremely adjacent previous picture frame, is played up described mobile-terminal frame carboon image on the screen of described portable terminal, and is play described related audio.
9. the processing method of mobile-terminal frame carboon according to claim 8 is characterized in that, described step 2 further comprises:
The described portable terminal described new mobile-terminal frame carboon file of decoding judges that the data of obtaining are audio data or view data, then with described audio data and view data respectively by independently playing the step that passage and spatial cache are handled.
CNB2007100650226A 2007-03-30 2007-03-30 Method for processing mobile-terminal frame carboon Active CN100514992C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100650226A CN100514992C (en) 2007-03-30 2007-03-30 Method for processing mobile-terminal frame carboon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100650226A CN100514992C (en) 2007-03-30 2007-03-30 Method for processing mobile-terminal frame carboon

Publications (2)

Publication Number Publication Date
CN101031085A CN101031085A (en) 2007-09-05
CN100514992C true CN100514992C (en) 2009-07-15

Family

ID=38716105

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100650226A Active CN100514992C (en) 2007-03-30 2007-03-30 Method for processing mobile-terminal frame carboon

Country Status (1)

Country Link
CN (1) CN100514992C (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656878B (en) * 2008-08-19 2013-02-20 新奥特(北京)视频技术有限公司 Improved method for interframe compression
CN101656877A (en) * 2008-08-19 2010-02-24 新奥特(北京)视频技术有限公司 Improved method for generating animation file by using picture sequence
CA2786812C (en) * 2010-01-18 2018-03-20 Telefonaktiebolaget L M Ericsson (Publ) Method and arrangement for supporting playout of content
CN101930367B (en) 2010-08-25 2014-04-30 中兴通讯股份有限公司 Implementation method of switching images and mobile terminal
CN102186110B (en) * 2011-05-11 2012-08-22 深圳市茁壮网络股份有限公司 Method for processing pictures and STB (set top box)
CN102215428B (en) * 2011-06-23 2012-12-26 深圳市茁壮网络股份有限公司 Picture processing method and STB (Set Top Box)
CN103634587A (en) * 2012-08-22 2014-03-12 联想(北京)有限公司 Image processing method and device, and electronic equipment
US9894421B2 (en) 2012-10-22 2018-02-13 Huawei Technologies Co., Ltd. Systems and methods for data representation and transportation
CN103971391A (en) * 2013-02-01 2014-08-06 腾讯科技(深圳)有限公司 Animation method and device
CN104142924A (en) * 2013-05-06 2014-11-12 中国移动通信集团福建有限公司 Method and device for compressing flash picture format
CN105917651B (en) * 2014-05-30 2019-05-14 富士通株式会社 Image encoding method, device and image processing equipment
CN104008388A (en) * 2014-06-06 2014-08-27 杨军辉 Method and system for obtaining merchant business data by recognizing product identification
US9774793B2 (en) * 2014-08-01 2017-09-26 Adobe Systems Incorporated Image segmentation for a live camera feed
CN104732574B (en) * 2014-12-30 2017-12-12 北京像素软件科技股份有限公司 The compression method and device of a kind of role play
CN107852523B (en) 2015-09-30 2021-01-19 苹果公司 Method, terminal and equipment for synchronizing media rendering between terminals
CN105469361B (en) * 2015-12-24 2018-12-04 努比亚技术有限公司 A kind of topography's treating method and apparatus
CN105760238B (en) 2016-01-29 2018-10-19 腾讯科技(深圳)有限公司 The treating method and apparatus and system of graphics instructional data
CN108364338B (en) * 2018-02-06 2022-03-15 创新先进技术有限公司 Image data processing method and device and electronic equipment
CN110473275B (en) * 2018-05-09 2023-05-30 鸿合科技股份有限公司 Frame animation realization method and device under android system and electronic equipment
CN108810622B (en) * 2018-07-09 2020-01-24 腾讯科技(深圳)有限公司 Video frame extraction method and device, computer readable medium and electronic equipment
CN109559270B (en) * 2018-11-06 2021-12-24 华为技术有限公司 Image processing method and electronic equipment
CN112070867A (en) 2019-06-11 2020-12-11 腾讯科技(深圳)有限公司 Animation file processing method and device, computer readable storage medium and computer equipment
CN113034653B (en) * 2019-12-24 2023-08-08 腾讯科技(深圳)有限公司 Animation rendering method and device
CN111603771B (en) * 2020-05-22 2023-06-23 腾讯科技(深圳)有限公司 Animation generation method, device, equipment and medium
CN113556575A (en) * 2021-07-19 2021-10-26 北京百度网讯科技有限公司 Method, apparatus, device, medium and product for compressing data

Also Published As

Publication number Publication date
CN101031085A (en) 2007-09-05

Similar Documents

Publication Publication Date Title
CN100514992C (en) Method for processing mobile-terminal frame carboon
CN103703779B (en) Use the image compression of Sub-reso image
US10325172B2 (en) Transmitting video and sharing content via a network
CN101242531B (en) Video coding system providing separate coding chains for dynamically selected small-size or full-size playback
CN102395029B (en) Video encoding and decoding method and device supporting retractable video browse
WO2006119051A1 (en) Compression and decompression of media data
CN116233445B (en) Video encoding and decoding processing method and device, computer equipment and storage medium
KR100708180B1 (en) Apparatus and method for compressing color or gray scale documents
CN101883284A (en) Video encoding/decoding method and system based on background modeling and optional differential mode
CN111901603A (en) Encoding method and decoding method for static background video
US20230276063A1 (en) Npu for encoding or decoding videostream format for machine analisys
CN111193928B (en) Method and apparatus for delivering region of interest information in video
CN105704489A (en) Adaptive video motion vector steganographic method based on macro-block complexity
CN1852403A (en) Film converting edition apparatus and method
CN100576913C (en) A kind of processing method of mobile terminal cartoon
CN101511025A (en) Method and apparatus for compressing and decompressing image
JPH09331536A (en) Error correction decoder and error correction decoding method
CN102656884A (en) Video coding using pixel-streams
TW567729B (en) Method and system for compressing motion image information
CN114257818A (en) Video encoding and decoding method, device, equipment and storage medium
CN111212322A (en) Video compression method based on multi-video de-duplication splicing
TW201338553A (en) Methods, systems, and computer program products for assessing a macroblock candidate for conversion to a skipped macroblock
CN111279694A (en) GDR code stream encoding method, terminal device and machine readable storage medium
Rizzo et al. LZ-based image compression
GB2610397A (en) Encoding and decoding video data

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