Background technology
Because the progress of network technology now, many data can see through borderless network, are shared with the kith and kin in a distant place.For example so-called network photo album promptly is with the photo desiring to share, is uploaded to the webserver, watches or downloads by the interesting person of this photo is clicked photo again.And in the network photo album, play the mode of photo, can be divided into and click photo individually and play or play continuously the selected modes such as photo of a group separately.When the user browses the photo that leaves the webserver in the mode of continuous broadcast, playing photo with a fixing time distance can make the viewer be browsed impression preferably, for example, changed the broadcast mode of a photo in per 5 seconds, yet, see through mode that network plays photo sometimes can be because of the archives of photo own factors such as too big or decoding is too consuming time and produce the phenomenon of playout-delay.
Generally speaking, influence the broadcast of image on the image playing system, two big factors are arranged, one is the disposed of in its entirety time T total of image, another is the quality of image, this two factor system itself is the relation of balance each other, also even to require the disposed of in its entirety time T total of image to need within some scopes (for example playing video of distance fixedly the time), then (for example the image archives are carried out the destructiveness compression with regard to the quality that may therefore must reduce image, reduce image resolution, or the parameter of the reduction quality of image), and therefore the quality that will require image then just may must prolong the disposed of in its entirety time T total (for example causing the prolongation of disposed of in its entirety time T total because of the image archives too greatly) of image on certain level.The disposed of in its entirety time T total of image comprises the transmission time Tt of image, the decoding time Td of image and the demonstration time T r of image.The transmission time Tt of image mean from send transmit image requirement to the time that receives image, mainly comprise the time of the image request that transmits via network and the time that image is replied, wherein consuming time with the delivery time of image answer again, if the variable quantity of the frequency range of a network in one period short time is very little, or this network is one to have service quality (Quality of Service, Qos) network, the main factor of then dominating image transmission time Tt length promptly is the size of image archives.And the decoding time Td of image be carry out image show before decoding time of handling and the archives size of image, the parameter of image, for example the form of image, resolution and compression parameters or the like are relevant.The demonstration time T r of image means that image decoding is intact to the time that is shown, and when calculating disposed of in its entirety time T total, compared to transmission time Tt and decoding time Td, shows that the size of time T r is very little comparatively speaking, therefore can be left in the basket.
Tradition implementation method apart from playing video with fixedly the time has two kinds, shown in the sequential chart of Fig. 1, Fig. 2.Fig. 1 is the practice of single buffer, and Fig. 2 description is the practice of two buffers.Tdn represents that n opens the decoding time of image among Fig. 1, and Ttn represents that n opens the transmission time of image, and tn represents that n opens the play time of image.Be " play time of play time=last the image of image adds a distance fixedly the time at present " with fixedly the time apart from the meaning of playing.As shown in Figure 1, the decoding time that (Tt1+Td1) distance less than fixedly time the, that is the transmission time of the 1st image adds the 1st image is less than default distance fixedly the time, and then the 1st image can be play in the play time of the 1st default image.And on the contrary, (Tt2+Td2) distance greater than fixedly time the, that is the transmission time of the 2nd the image decoding time that adds the 2nd image is greater than default distance fixedly the time, then the 2nd image exceeded the play time of the 2nd default image when decoding finishes.The situation of Fig. 2 then is to utilize two buffers to carry out the transmission and the decoding of image simultaneously, utilizes the overlapping of transmission time of image and decoding time to increase the efficient of image playing system.The symbology Tdn of Fig. 2, Ttn and tn are all identical with Fig. 1, so repeat no more in this.As shown in Figure 2, when on numbering 0 buffer when carrying out the decoding of the 0th image, while is in the transmission of carrying out the 1st image on the buffer of numbering 1, similarly, when carrying out the decoding of the 1st image, the while is in the transmission of carrying out the 2nd image on the buffer of numbering 0 on the buffer of numbering 1.Though it is many that the method among Fig. 2 saves time than the method for Fig. 1, it need add a buffer.And, no matter be the method for Fig. 1 or Fig. 2, when the image archives transmitted for a long time or decoding when too consuming time, the situation of default play time still can take place to have exceeded when image is play.Therefore, design an energy with fixedly the time apart from playing video, real be an important problem in current image broadcast field.
Summary of the invention
Technical problem to be solved by this invention provides a kind of processing method and image playing system of image, can reach with fixedly the time purpose apart from playing video.
In order to solve above technical problem, the invention provides following technical scheme:
The invention provides a kind of processing method of image, be applied to an image playing system, this image playing system comprises an image receiving terminal and an image transmission end, and this image receiving terminal and this image transmission end form online via a network.Method of the present invention comprises according to the transmission time that at least one image is sent to this image receiving terminal from this image transmission end and in the processing time that this image receiving terminal is play this at least one image, to produce a statistical number certificate; According to one when default apart from and this statistics, produce a parameter data; This supplemental characteristic is sent to this image transmission end by this image receiving terminal; And specify image to produce one according to this supplemental characteristic adjustment one and adjust back appointment image, and should adjust the back and specify image to be sent to this image receiving terminal by this image transmission end.
The present invention more provides a kind of image playing system, comprises an image receiving terminal, and an image transmission end.The image receiving terminal comprises a control module, in order to according to one when default apart from and a statistics data, produce a parameter data.The image transmission end comprises an image adjusting module, adjust appointment image in back in order to specify image according to this supplemental characteristic adjustment one to produce one, and image transmission end system forms via a network and image receiving terminal online.
The present invention also provides a kind of processing method of image, is applied to an image playing system.This image playing system comprises an image receiving terminal and an image transmission end, and this image receiving terminal and this image transmission end form online via a network.Method of the present invention comprises: according to the transmission time that at least one image is sent to this image receiving terminal from this image transmission end and in the processing time that this image receiving terminal is play this at least one image, to produce a statistical number certificate; According to one when default apart from and this statistics, produce a parameter data; This supplemental characteristic is sent to this image transmission end by this image receiving terminal, adjusts back appointment image so that this image transmission end can specify image to produce one according to this supplemental characteristic adjustment one; And receive from appointment image after this adjustment of this image transmission end.
The processing method and the image playing system of the image that the present invention adopts, by statistics (the archives size that comprises image of collecting the complex image, image parameter, transmission time, and decoding time), and during the broadcast of setting according to this statistics and user apart from producing supplemental characteristic, make the image transmission end adjust next Zhang Zhiding image then according to supplemental characteristic, because distance when the production process of supplemental characteristic has been considered broadcast that the user sets, the factor of Network Transmission, and the needed time of decoding, therefore, can reach with fixedly the time purpose apart from playing video.
Embodiment
Known seeing through in the image playing system of netcast image (photograph), the image that deposit the image transmission end (photograph) cording has different archives size and image parameter, and the needed processing time of image (comprising transmission time and decoding time) with different archives sizes and image parameter is widely different, makes the frequent generation of image receiving terminal (being that image is play end) can't finish the situation of broadcast in the distance when user's setting.Therefore, the present invention proposes a kind of image playing system and image playing method at this: the statistics (the archives size, image format, image parameter, transmission time and the decoding time that comprise image) of collecting the complex image earlier, and during the broadcast of setting according to this statistics and user apart from producing a supplemental characteristic, then this supplemental characteristic is offered the image transmission end, so that image can be specified according to this supplemental characteristic adjustment in the image transmission end, make that transmission time of adjusted appointment image adds that decoding time drops on that the user sets the time apart from.
Please refer to Fig. 3, Fig. 3 is the structural representation of image playing system 300 of the present invention.Image playing system 300 of the present invention comprises an image receiving terminal (client) 320 and an image transmission end (server) 350.Image receiving terminal 320 and image transmission end 350 form online via a network 380, carry out the transmission of image and data.Image receiving terminal 320 comprises a control module 322, one display unit 324, one image decoding modules 326, one delivery modules 328, and a receiver module 330.Control module 322 be according to a user default fixedly the time apart from and a statistics data, produce a parameter data.Display unit 324 is in order to the show image picture.Image decoding module 326 is to handle in order to the decoding of carrying out before image shows.Delivery module 328 is in order to the transmission data, for example transmits the image request signal of an appointment image, or the image information request signal of an appointment image information.Receiver module 330 is in order to receive an image or data that send from image transmission end 350.Image transmission end 350 comprises a receiver module 358, one image storage modules 351, one image adjusting modules 359, and a delivery module 360.The request that receiver module 358 transmits in order to the delivery module 328 that receives image receiving terminal 320.Delivery module 360 is in order to transmit data, for example to transmit image or image information and give image receiving terminal 320.Image storage module 351 is in order to deposit image (comprising its image information).Image adjusting module 359 is adjusted appointment image in back in order to specify image according to supplemental characteristic adjustment one to produce one.In one embodiment, the receiver module 330 of image receiving terminal 320 and delivery module 328 are the reception and the delivery module of general networking, and the receiver module 358 of image receiving terminal 350 and delivery module 360 also are the reception and the delivery module of general networking.
Please refer to Fig. 4, Fig. 4 is the flow chart of steps of first embodiment of the image treatment method of distance fixedly time the of the present invention.Comprise among Fig. 4:
Step 400: according to the transmission time that at least one image is sent to the image receiving terminal from the image transmission end and in the processing time that the image receiving terminal is play at least one image, to produce a statistical number certificate;
Step 402: image receiving terminal 320 requires image transmission end 350 to transmit the image information of an appointment image;
Step 404: the image information of the appointment image that image receiving terminal 320 reception image transmission ends 350 send;
Step 406: distance, the image information of specifying image and above-mentioned statistics when the control module 322 of image receiving terminal 320 is play according to the default image of user, calculate and produce one in order to adjust the supplemental characteristic of appointment image;
Step 408: image receiving terminal 320 is sent to image transmission end 350 with this supplemental characteristic;
Step 410: image transmission end 350 is specified image to produce one according to this supplemental characteristic adjustment one and is adjusted back appointment image;
Step 412: should adjust the back and specify image to be sent to image receiving terminal 320;
Step 414: 320 decodings of image receiving terminal are also play this adjustment back and are specified image;
Step 416; The control module 322 of image receiving terminal 320 is specified the original statistics of Data Update that image produced according to adjusting the back.
Below will by Fig. 3 and Fig. 4 the present invention be described simultaneously.At first the receiver module 330 of image receiving terminal 320 receives at least one the image that the delivery module 360 by image transmission end 350 sends, it preferably is the complex image, 20 images for example, and these 20 images are deciphered processing in the image decoding module 326 via image receiving terminal 320, on the display unit 324 of image receiving terminal 320, show then.And the control module 322 of image receiving terminal 320 is collected the data of these 20 images, produces a statistical number according to (step 400).Statistics comprise the archives size of each image of 20 images and image parameter, with each image be sent to the required transmission time of image receiving terminal 320 from image transmission end 350, each is opened the decoding time of image and each image is shown in the demonstration time required on the display unit 324.At this, the demonstration time is meant behind the image decoding that to finishing the time that demonstration spends, generally speaking, demonstration time compared to transmission time and decoding time are very little, therefore it can be ignored on the implementation.In one embodiment, control module 322 comprises a central processing unit or microprocessor, by carrying out pre-designed software or program to reach the purpose of collecting statistics, for example, the request signal that control module 322 record transmits images to the time point of image transmission end 350 and image receiving terminal 320 received the time point to image archives that should request signal, obtain the transmission time of image by this, because of the request signal that transmits image to the image transmission end 350 required times very short, so this transmission time can be considered as be image is sent to the image receiving terminal from image transmission end 350 time; In addition, control module 322 also writes down time point that each image begins to decipher and the time point of finishing decoding, and then obtains the decoding time of each image.
Then the control module 322 of image receiving terminal 320 requires image transmission end 350 to transmit the image information of an appointment image to image receiving terminal 320 (step 402), this image information comprises the source file size and the image parameter of image, and image parameter comprises File Format, resolution and compression parameters of image or the like.In one embodiment, control module 322 is to produce the image information request signal of corresponding appointment image and by delivery module 328 and network 380 this image information request signal is sent to image transmission end 350, in order to specify the image information of images to 350 requests of image transmission end.
After image transmission end 350 receives the image information request signal by receiver module 358, promptly from image storage module 351, search the image information of specifying image, for example the source file size and the image parameter of image, the delivery module 360 that sees through image transmission end 350 then is sent to image receiving terminal 320 (step 404) with image information.
Next, distance, the image information of specifying image and above-mentioned statistics when the control module 322 of image receiving terminal 320 is play according to the default image of user are calculated and are produced one in order to adjust the supplemental characteristic (step 406) of appointment image.This supplemental characteristic comprises adjusts the image parameter of specifying image, and then makes adjusted appointment image reach the archives size and the image format of expection.
Then control module 322 will specify the supplemental characteristic of image to be sent to image transmission end 350 (step 408) by image receiving terminal 320 in order to adjust.The image adjusting module 359 of image transmission end 350 receives behind the supplemental characteristic promptly according to this supplemental characteristic adjustment and is stored in appointment image in the image storage module 351, and then produces one and adjust the back and specify image (step 410).In one embodiment, image adjusting module 359 has an image transcoding device (image transcoder), in order to the foundation supplemental characteristic transcoding of specifying image to change resolution, image format or compression parameters or the like is handled.And control module 322 is to produce an image request signal earlier to transmit adjusted appointment image to 350 requests of image transmission end, this image request signal can be sent to image transmission end 350 via delivery module 328 and network 380 together with supplemental characteristic, perhaps, this image request signal and supplemental characteristic system is transferred into image transmission end 350 respectively.Next, image transmission end 350 will be adjusted the back by delivery module 360 and network 380 and specify image to be sent to image receiving terminal 320 (step 412) by image transmission end 350.
After image receiving terminal 320 received that adjusting the back specifies image, control module 322 specified image to carry out the image decoding processing after promptly controlling 326 pairs of adjustment of image decoding module, shows on the display unit 324 of image receiving terminal 320 then (step 414).In one embodiment, image decoding module 326 is for having the hardware of specific decoding function, for example specific image decoding device; Yet in another embodiment, image decoding module 326 also can be carried out pre-designed software or program by central processing unit or microprocessor and be constituted.
At last, control module 322 is specified the original statistics of Data Update that image produced according to adjusting the back again, for example will adjust the back and specify archives size and image parameter, the transmission time of image, reaches decoding time and be updated in original statistics (step 416).In one embodiment, the mode of upgrading statistics for example only keeps 20 up-to-date data for only to keep up-to-date complex data, just deletes a document the oldest in original statistics when adding a new data to statistics.
In first embodiment of image treatment method of the present invention, image receiving terminal 320 is collected the previous image data of complex, to produce a statistical number certificate, then require image transmission end 350 to transmit the image information that next opens the image that will be transmitted, image information and this statistics of distance, next image are calculated and are produced a supplemental characteristic when playing according to the user is default again.Then supplemental characteristic is sent to image transmission end 350 by image receiving terminal 320, adjustment is stored in the image that next will be transmitted in the image storage module 351 according to supplemental characteristic in image transmission end 350, and adjusted image is sent to image receiving terminal 320 to decipher and to show.The present invention provides one second embodiment in addition, similarly collect the previous image data of complex by image receiving terminal 320, to produce a statistics data, and during according to this statistics and the default broadcast of a user apart from calculating a supplemental characteristic, this supplemental characteristic comprises the higher limit of the adjusted archives size of an image and the higher limit of image parameter, can allow image transmission end 350 know every higher limit of following the image that will transmit, for example higher limit of archives size, image resolution, compression parameters or the like by this supplemental characteristic.By above stated specification as can be known, in second embodiment of image treatment method of the present invention, not according to image information (being archives size, image format and resolution etc.) the calculating parameter data of a following image, so need not before the calculating parameter data, obtain down the image information of an image.Then, supplemental characteristic is sent to image transmission end 350, the image that next image transmission end 350 will transmit according to those limiting value adjustment in the supplemental characteristic is sent to adjusted image image receiving terminal 320 again to decipher and to show.
How control module 322 as for image receiving terminal 320 produces above-mentioned supplemental characteristic, and the present invention also provides an execution mode.Please refer to Fig. 5, Fig. 5 is the flow chart of steps that control module 322 of the present invention produces supplemental characteristic, comprises:
Step 500: the archives size of prediction one expectation;
Step 502:, calculate the transmission time of the archives size of this expectation according to desired archives size and statistics;
Step 504: during the broadcast that sets according to above-mentioned transmission time and user apart from calculating available decoding time;
Step 506:, calculate the image parameter of target according to the archives size of expectation, the source file size of specifying image and image parameter, available decoding time and statistics;
Step 508: judge whether this calculating restrains, if, then advance to step 510, if not, then get back to step 500;
Step 510: obtain specifying after the image adjustment image parameter and the archives size desiring to reach.
At first control module 322 is predicted the archives size (step 500) of an expectation earlier, and the archives size of this expectation is promptly adjusted the archives sizes values of specifying image to desire to reach.Then, control module 322 is calculated the required transmission time Tt (step 502) of archives size of this expectation according to the relation of archives size in desired archives size and the statistics with the transmission time.Then, during broadcast that control module 322 sets according to above-mentioned transmission time and user apart from calculating available decoding time, available decoding time Td=Ttotal-Tt-Tr, show that wherein time T r ignores it because of too little, and Ttotal when promptly not being to use the default broadcast of person apart from (step 504).Control module 322 is calculated the image parameter (step 506) of target again according to the archives size of expectation, source file size and the image parameter (being image information) of specifying image, available decoding time and statistics; In the process of calculating the target image parameter, default condition not necessarily can obtain effective image parameter, that is when broadcast that the archives size or the user of expectation sets during apart from the attainable scope of detachment system, all will cause calculating the result that dispersing appears in the image parameter of target, and can't obtain an effective image parameter.Then judge whether the image parameter that calculates restrains (step 508), if, then obtain specifying institute desires to reach after the image adjustment image parameter and archives size (step 510), if not, the archives size (getting back to step 500) that then needs prediction again to expect.Aforesaid supplemental characteristic promptly comprises one and specifies adjusted image parameter of image and adjusted archives size.
In sum, image treatment method that the present invention proposes and image playing system are by statistics (the archives size that comprises image of collecting the complex image, image parameter, transmission time, and decoding time), and during the broadcast of setting according to this statistics and user apart from producing supplemental characteristic, make the image transmission end adjust next Zhang Zhiding image then according to supplemental characteristic, because distance when the production process of supplemental characteristic has been considered broadcast that the user sets, the factor of Network Transmission, and the needed time of decoding, therefore, image treatment method of the present invention and image playing system can reach with fixedly the time purpose apart from playing video.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.