CN107018150A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN107018150A
CN107018150A CN201710374818.3A CN201710374818A CN107018150A CN 107018150 A CN107018150 A CN 107018150A CN 201710374818 A CN201710374818 A CN 201710374818A CN 107018150 A CN107018150 A CN 107018150A
Authority
CN
China
Prior art keywords
data
stream medium
terminal
medium data
standard
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.)
Pending
Application number
CN201710374818.3A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710374818.3A priority Critical patent/CN107018150A/en
Publication of CN107018150A publication Critical patent/CN107018150A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Abstract

The embodiments of the invention provide a kind of data transmission method and device, the data transmission method is applied to first terminal, and the first terminal is provided with stream medium data storehouse, and the data transmission method includes:First stream medium data is compared the first terminal with the standard stream medium data in the stream medium data storehouse, obtain differential data, the differential data is sent to second terminal by the first terminal, and first stream medium data is obtained according to differential data reduction for the second terminal.The embodiment of the present invention can improve the efficiency of data transfer, reduce transmission cost.

Description

Data transmission method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of data transmission method and device.
Background technology
With the development and the extensive use of various electronic equipments of the communication technology, user can be by between electronic equipment Data interaction carries out communication exchanges, shared information resources etc., so as to improve the quality of living.Data are being carried out between electronic equipment In interactive process, it usually needs send or receive the stream medium data that other electronic equipments are sent to other electronic equipments, than Such as Online Video broadcasting, remote control, screen are shared, but because stream medium data generally includes view data, data volume one As it is larger, during transmission, it is also possible to limited in bandwidth and reduce efficiency of transmission, it is also possible to transport stream matchmaker can be improved The transmission cost of volume data, therefore, needs a kind of data transmission method badly.
In the prior art, on the one hand can be by higher when first terminal sends stream medium data to second terminal Bandwidth or the dedicated network of setting carry out data transmission, so as to ensure efficiency of transmission.On the other hand, relatively low band can be passed through Width transmits stream medium data, to save transmission cost.
Although carrying out data transmission by the dedicated network of higher bandwidth or setting, stream medium data ensure that Efficiency of transmission, but improve bandwidth or set dedicated network to greatly improve transmission cost, and pass through relatively low bandwidth Stream medium data is transmitted, then may reduce the efficiency of transmission of transmission stream medium data.It that is to say, prior art is difficult to saving Efficiency of transmission is improved while transmission cost.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the data transmission method and device of problem.
According to one aspect of the present invention there is provided a kind of data transmission method, applied to first terminal, described first eventually End is provided with stream medium data storehouse, and the data transmission method includes:
The first terminal carries out the standard stream medium data in the first stream medium data and the stream medium data storehouse Compare, obtain differential data;
The differential data is sent to second terminal by the first terminal, for the second terminal according to the difference number First stream medium data is obtained according to reduction.
According to another aspect of the present invention there is provided a kind of data transmission method, applied to second terminal, described second Terminal is provided with stream medium data storehouse, and the data transmission method includes:
The second terminal receives the differential data from first terminal;
Standard stream medium data of the second terminal in the differential data and the stream medium data storehouse, also Original obtains the first stream medium data.
According to another aspect of the present invention there is provided a kind of data transmission device, applied to first terminal, described first Terminal is provided with stream medium data storehouse, and the data transmission device includes:
Contrast module, for the first terminal by the normal stream in the first stream medium data and the stream medium data storehouse Media data is compared, and obtains differential data;
First sending module, is sent to second terminal, for described second for the first terminal by the differential data Terminal obtains first stream medium data according to differential data reduction.
According to another aspect of the present invention there is provided a kind of data transmission device, applied to second terminal, described second Terminal is provided with stream medium data storehouse, and the data transmission device includes:
First receiving module, the differential data from first terminal is received for the second terminal;
Recovery module, for standard of the second terminal in the differential data and the stream medium data storehouse Stream medium data, reduction obtains the first stream medium data.
According to another aspect of the present invention there is provided a kind of terminal, including:Memory, processor and it is stored in described On memory and the data distributing program that can run on the processor, the data distributing program is by the computing device The step of data transmission method described in Shi Shixian.
It is described computer-readable to deposit according to another aspect of the present invention there is provided a kind of computer-readable recording medium Be stored with data distributing program on storage media, and described transmission side data is realized when the data distributing program is executed by processor The step of method.
In embodiments of the present invention, first, first terminal can enter the first stream medium data with standard stream medium data Row contrast, obtains differential data between the first stream medium data and standard stream medium data, due to the data volume of the differential data Typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmission differential data can reduce needs The data volume of transmission, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Secondly, the difference number is given Second terminal, can make second terminal obtain the first stream medium data according to differential data reduction, i.e., in reduction data transfer Cost, improve data transfer efficiency while, it can be ensured that the reliability of data transfer.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of application scenarios schematic diagram of data transfer according to an embodiment of the invention;
Fig. 2 shows a kind of data transmission method flow chart according to an embodiment of the invention;
Fig. 3 shows another data transmission method flow chart according to an embodiment of the invention;
Fig. 4 shows another data transmission method flow chart according to an embodiment of the invention;
Fig. 5 shows a kind of first stream medium data schematic diagram according to an embodiment of the invention;
Fig. 6 shows a kind of standard stream medium data schematic diagram according to an embodiment of the invention;
Fig. 7 shows a kind of differential data schematic diagram according to an embodiment of the invention;
Fig. 8 shows a kind of data transmission device block diagram according to an embodiment of the invention;
Fig. 9 shows another data transmission device block diagram according to an embodiment of the invention;
Figure 10 shows a kind of block diagram of first terminal according to an embodiment of the invention;
Figure 11 shows the block diagram of another first terminal according to an embodiment of the invention;
Figure 12 shows a kind of block diagram of second terminal according to an embodiment of the invention;
Figure 13 shows the block diagram of another second terminal according to an embodiment of the invention.
Embodiment
Exemplary embodiment of the present is more fully described below with reference to accompanying drawings.Although showing that the present invention shows in accompanying drawing Example property embodiment, it being understood, however, that may be realized in various forms the present invention without that should be limited by embodiments set forth here System.Conversely it is able to be best understood from the present invention there is provided these embodiments, and can be complete by the scope of the present invention Convey to those skilled in the art.
Embodiment one
Reference picture 1, shows a kind of application scenarios schematic diagram of data transfer according to an embodiment of the invention, including First terminal 01 and second terminal 02, first terminal 01 and second terminal 02 can pass through network connection.
First terminal 01 or second terminal 02 can be the electronic equipments such as mobile phone, computer, i.e., when an electronic equipment needs When sending stream medium data to another electronic equipment, the electronic equipment for sending stream medium data can be as first terminal 01, the electronic equipment for receiving stream media data can be used as second terminal 02.Certainly, should for same electronic equipment Electronic equipment both can send stream medium data as first terminal 01, can also carry out receiving stream media as second terminal 02 Data.
Because the data volume of stream medium data is generally larger, therefore, in order to improve transmission while transmission cost is saved Efficiency, first terminal 01 and second terminal 02 can prestore a stream medium data storehouse, can be with the stream medium data storehouse Including standard stream medium data.For the first stream medium data waiting for transmission, if be stored with the stream medium data storehouse and the The similar standard stream medium data of one stream medium data, then first terminal 01 directly the first stream medium data can not be sent to Second terminal 02, but the first stream medium data and the standard stream medium data are compared and obtain differential data, to second Terminal 02 sends the differential data, so that second terminal 02 can be entered according to the differential data to the standard stream medium data Row reduction, obtains the first stream medium data.
Embodiment two
Reference picture 2, shows a kind of data transmission method flow chart according to an embodiment of the invention, applied to first Terminal, the first terminal is provided with stream medium data storehouse, and the data transmission method includes:
Step 201, the first terminal is by the standard Streaming Media in the first stream medium data and the stream medium data storehouse Data are compared, and obtain differential data.
In order to reduce the data volume for needing to transmit, it is to avoid directly may band to second terminal by the first transmission of flow media data Come efficiency of transmission is low or the problem of high transmission cost, can not directly by the first transmission of flow media data to second terminal, But contrasted the first Streaming Media with the standard stream medium data in stream medium data storehouse, by the first stream medium data with being somebody's turn to do The stream medium data being had differences between standard stream medium data gives second eventually as differential data, and by the differential data transmission End.
Wherein, the first stream medium data is stream medium data waiting for transmission, and the first stream medium data can include picture number According to such as, when data transmission method is applied in remote control, the first stream medium data can be the control end of first terminal Or it is used as the corresponding view data of present displayed content of the controlled terminal of first terminal.Stream medium data storehouse can be set in advance Be stored with standard stream medium data in the stream medium data storehouse put, the stream medium data storehouse, and the standard stream medium data can be used It is compared in the first stream medium data.Differential data is the first stream medium data and standard stream medium data for explanation Between difference data, further, since the differential data only need to explanation the first stream medium data and standard stream medium data it Between difference, so compared with the first stream medium data, the data volume of differential data is generally smaller.
SIFT (Scale Invariant Feature Transform, Scale invariant features transform), OPEN can be passed through CV (Open Source Computer Vision Library, computer vision of increasing income storehouse) scheduling algorithm, to the first Streaming Media Data and standard stream medium data are compared.
In embodiments of the present invention, it is preferred that in order to ensure second terminal can accurately obtain the first stream medium data, The reliability of data transfer is improved, first terminal can send in the stream medium data storehouse to second terminal, for second terminal Store the stream medium data storehouse.
In another preferred embodiment of the present invention, it is preferred that first terminal can be in advance (such as by the first Streaming Media number According to before being compared with the standard stream medium data in the stream medium data storehouse) standard is obtained from third-party server Image data base.Wherein, third-party server can be the service that data transport service is provided for first terminal and second terminal Device, it is of course also possible to be other servers.
In embodiments of the present invention, it is preferred that carry out the first stream medium data and standard stream medium data to improve The accuracy rate of contrast, and then improve the reliability of data transfer, the lattice that the first stream medium data can be with standard stream medium data Formula is identical, such as, and the first stream medium data can be JPEG (Joint with the form of standard stream medium data Photographic Experts Group, Joint Photographic Experts Group) form.In another embodiment of the invention, preferably , the form of the differential data can be identical with the form of the first stream medium data and the standard stream medium data.
Step 202, the differential data is sent to second terminal by the first terminal, for the second terminal according to institute State differential data reduction and obtain first stream medium data.
Because the differential data can illustrate the difference between the first stream medium data and standard stream medium data, so can So that the differential data is sent into second terminal, in order to which second terminal is according to the differential data, the standard Streaming Media number is reduced According to so as to obtain the first stream medium data.It that is to say, by sending a less differential data of quantity, to make second terminal The first larger stream medium data of data volume is obtained, the data volume for needing to transmit is reduced, so that data transfer can either be reduced Cost, can also improve the efficiency of data transfer.
Wherein, stream medium data storehouse is also preset in second terminal.Certainly, in embodiments of the present invention, second terminal The stream medium data storehouse that can be sent by receiving first terminal is obtained.Or, should in another preferred embodiment of the present invention Second terminal can also be in advance (before such as being reduced according to the image restoring information to the standard image data) from the 3rd Obtain the standard image data storehouse in square server, and by the standard image data library storage got to local.
In embodiments of the present invention, first, first terminal can enter the first stream medium data with standard stream medium data Row contrast, obtains differential data between the first stream medium data and standard stream medium data, due to the data volume of the differential data Typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmission differential data can reduce needs The data volume of transmission, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Secondly, the difference number is given Second terminal, can make second terminal obtain the first stream medium data according to differential data reduction, i.e., in reduction data transfer Cost, improve data transfer efficiency while, it can be ensured that output transmission reliability.
Embodiment three
Reference picture 3, shows a kind of data transmission method flow chart according to an embodiment of the invention, applied to second Terminal, the second terminal is provided with stream medium data storehouse, and the data transmission method includes:
Step 301, the second terminal receives the differential data from first terminal.
The differential data is that first stream medium data compares obtained data with the standard stream medium data, can be illustrated The data of difference between first stream medium data and the standard stream medium data, and the data volume of the differential data is typically smaller than One stream medium data, so efficiency, reduction transmission cost in order to improve data transfer, second terminal can receive the difference number According to so as to obtain the first stream medium data according to differential data reduction.
Wherein, stream medium data storehouse can be the stream medium data storehouse pre-set.Certainly, in the another preferred of the present invention In embodiment, second terminal can also receive the stream medium data storehouse from first terminal, and by the stream medium data received Storehouse is stored.Or, in another preferred embodiment of the present invention, second terminal can be obtained from third-party server in advance Take the standard image data storehouse.
Step 302, normal stream matchmaker of the second terminal in the differential data and the stream medium data storehouse Volume data, reduction obtains the first stream medium data.
Wherein it is possible to by SIFT or OPEN CV scheduling algorithms, according to the differential data, enter to the standard stream medium data Row reduction, obtains the first stream medium data.
In embodiments of the present invention, first, second terminal can receive the differential data of first terminal transmission, due to the difference The data volume of divided data is typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmit difference number The data volume for needing to transmit according to that can reduce, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Its Secondary, second terminal obtains the first stream medium data according to the differential data and the reduction of standard stream medium data, i.e., in reduction data The cost of transmission, while improve the efficiency of data transfer, it can be ensured that the reliability of data transfer.
Example IV
Reference picture 4, shows a kind of data transmission method flow chart according to an embodiment of the invention, applied to first In the interaction of terminal and second terminal, the data transmission method includes:
Step 401, the first terminal obtains stream medium data waiting for transmission and is used as first stream medium data.
Wherein, the view data that first terminal can currently be shown from the display screen for obtaining first terminal is as first Stream medium data, or from the middle stream medium data for obtaining storage is locally stored as the first stream medium data.Certainly, in reality In, first terminal can also obtain stream medium data waiting for transmission otherwise as the first stream medium data.
In embodiments of the present invention, it is preferred that in order to reduce data volume when transmitting first stream medium data, and then drop Low transmission cost, improves efficiency of transmission, the first stream medium data can be the view data of lossy compression method form.
For example, the first stream medium data can be the view data of jpeg format or meet H.26x standard, H.320 the image of the form of standard or MPEG (Moving Picture Experts Group, dynamic image expert group) standard Data.
Step 402, the first terminal judges to whether there is and the first Streaming Media number in the stream medium data storehouse It is more than the standard stream medium data of preset value according to similarity, if it is, performing step 403;Otherwise, step 405 is performed.
Because if the first stream medium data and standard stream medium data similarity are too low, i.e. the first stream medium data is with being somebody's turn to do Differing greatly between standard stream medium data, the data volume that may result in the differential data for needing to transmit is larger, so, In order to improve the efficiency of data transfer, the cost of data transfer is reduced, first terminal, which can will determine that in stream medium data storehouse, is The no standard image data including being more than the preset value with the first stream medium data similarity.
Wherein, similarity is used to illustrate the similarity degree between first stream medium data and standard stream medium data, when When similarity is more than the preset value, it may be said that bright first stream medium data is similar to standard stream medium data.First Streaming Media number It can be determined according to the similarity between standard stream medium data by SIFT or OPEN CV scheduling algorithms.
In embodiments of the present invention, it is preferred that the preset value can be determined in advance by person skilled, such as, and this is pre- If value can whether there is the normal stream for being more than preset value with the first stream medium data similarity in stream medium data storehouse is judged Before media data, the numerical value for receiving input is obtained.The preset value can be 70%, 75% or 80%, certainly, in practical application In, the preset value can also be other values.
For example, the stream medium data storehouse of first terminal storage includes standard stream medium data 1 or standard Streaming Media number According to 2, preset value is 70%.For the first stream medium data 1, determine between the first stream medium data 1 and standard stream medium data 1 Similarity be 60%, 60%<70%, the first stream medium data 1 is dissimilar with standard stream medium data 1, determines first-class Similarity between media data 1 and standard stream medium data 2 is 80%, 80%>70%, the first stream medium data 1 is with marking Quasi- stream medium data 1 is similar.
In embodiments of the present invention, it is preferred that the lattice that the form of standard stream medium data can be with the first stream medium data Formula is identical, i.e., standard stream medium data can also be the view data of lossy compression method form.
Step 403, the first terminal is by the normal stream in first stream medium data and the stream medium data storehouse Media data is compared, and obtains differential data, and the differential data is sent into second terminal.
Wherein, the mode the first stream medium data and standard stream medium data being compared, can with embodiment two Step 201 is identical with the mode that standard stream medium data is compared by the first stream medium data, no longer repeats one by one herein.
In embodiments of the present invention, it is preferred that the accuracy rate of differential data can be obtained in order to improve, it is ensured that can be effective Ground reduces the data volume for needing to transmit, and improves the efficiency of data transfer, and reduces transmission cost, and the first terminal can be by institute State the first stream medium data and carry out difference with the standard stream medium data, obtain the differential data.
Because view data generally includes the set of the value of multiple pixels, such as, the view data of a gray level image can With the set of the gray value including multiple pixels, a coloured image can include corresponding to R passages, G passages and channel B etc. respectively The set of the value of multiple pixels of three passages, and when the first stream medium data is similar to the standard stream medium data, first Stream medium data is also identical with the value of the pixel of the standard stream medium data similar area.It therefore, it can the first Streaming Media number Difference is carried out according to standard stream medium data, the difference number between first stream medium data and the standard stream medium data is obtained It can illustrate multiple pixels that the first stream medium data differs with standard stream medium data according to, the differential data and this is more Difference of the individual pixel in the first stream medium data and standard stream medium data.Because the differential data is the first stream medium data There are the data of the part of data difference between the standard stream medium data, therefore, when the first stream medium data and the standard When similarity between stream medium data is higher, the data volume of the differential data is smaller, can further reduce first terminal hair The data volume of second terminal is given, and then reduces cost, efficiency of transmission is improved.
In embodiments of the present invention, it is preferred that the cvSub () function or cvAbsDiff that can be included by OPEN CV () function, difference is carried out by the first stream medium data and the standard stream medium data.Wherein, by the first stream medium data with The standard stream medium data carries out difference, can be by the value of each pixel of standard stream medium data, subtract each pixel this It is corresponding in one stream medium data to be worth or by the value of each pixel of the first stream medium data, each pixel is subtracted in the mark Corresponding value in quasi- stream medium data.
For example, the first stream medium data 1 is as shown in table 1 below, standard stream medium data 3 is as shown in table 2 below, to first-class matchmaker Volume data 1 carries out difference with the standard stream medium data 3, obtains differential data 1 such as table 3 below or differential data 2 such as table 4 below institute Show.Wherein, differential data 1 can subtract the respective pixel of standard stream medium data 3 by the value of each pixel of the first stream medium data 1 Be worth to, differential data 2 can subtract the corresponding picture of the first stream medium data 1 by the value of each pixel of standard stream medium data 3 Plain is worth to.
Table 1
27 39 97 135
35 37 85 159
158 51 79 177
210 69 101 201
Table 2
27 39 97 183
35 99 85 159
158 51 222 177
238 69 101 201
Table 3
0 0 0 -48
0 -62 0 0
0 0 -143 0
-28 0 0 0
Table 4
0 0 0 48
0 62 0 0
0 0 143 0
28 0 0 0
The embodiment of the present invention is only with above-mentioned 4 pair of first stream medium data of table 1- tables, standard stream medium data or differential data Illustrate, above-mentioned table 1- tables 4 are not to the first stream medium data in the embodiment of the present invention, standard stream medium data or difference Data, which are constituted, to be limited.
In embodiments of the present invention, it is preferred that in order that second terminal rapidly and accurately determines that received is exactly difference Data, so as to rapidly and accurately obtain the first stream medium data according to differential data reduction, improve data transfer efficiency and can By property, first terminal also sends first data transmission mark to second terminal, and first data transmission is identified for illustrating second eventually Hold be currently received for differential data, first data transmission mark can be a character or character string (such as 0 or 1).
In embodiments of the present invention, it is preferred that due to might have stored multiple standard Streaming Media numbers in stream medium data storehouse According to therefore, the first stream medium data being obtained according to differential data reduction exactly for the ease of second terminal, first terminal can be with The Data Identification of the standard stream medium data is obtained, the first terminal sends out the Data Identification of the standard stream medium data The second terminal is given, for the second terminal according to the differential data and the Data Identification, reduction obtains described the One stream medium data.
Wherein, the image identification is used for one standard stream medium data of unique mark in the stream medium data storehouse, such as, The image identification can be ID (IDentification, identity card), title, sequence number, cryptographic Hash etc..
In embodiments of the present invention, it is preferred that due to the differential data can in first stream medium data each pixel Value subtract that each pixel is corresponding in standard stream medium data to be worth to or each pixel in standard stream medium data Value subtract that each pixel is corresponding in the first stream medium data to be worth to, so, in order to improve the reliability of data transfer, One terminal also sends reduction mark to second terminal, and the reduction is identified for illustrating that the differential data is by by the first Streaming Media The value of each pixel subtracts that each pixel is corresponding in standard stream medium data to be worth to, or, by by standard stream medium data In the value of each pixel subtract that each pixel is corresponding in the first stream medium data to be worth to.
Wherein, reduction mark can be a character or character string, such as, can represent that the differential data is logical with 0 Cross and the value of each pixel of the first Streaming Media subtracts to each pixel is corresponding in standard stream medium data to be worth to, the difference is represented with 1 Divided data is by the way that the value of each pixel in standard stream medium data is subtracted into each pixel corresponding value in the first stream medium data Obtain.
Step 404, the second terminal receives the differential data from the first terminal, according to the differential data with And the standard stream medium data in the stream medium data storehouse, reduce and obtain first stream medium data.
Wherein, standard stream medium data in the differential data and the stream medium data storehouse, reduction obtains institute The mode of the first stream medium data is stated, can be with step 302 in embodiment three according to the differential data and the stream medium data Standard stream medium data in storehouse, the mode that reduction obtains the first stream medium data is identical, no longer repeats one by one herein.
In embodiments of the present invention, it is preferred that in order to avoid being reduced to the first stream medium data that need not be reduced, So as to improve the reliability of data transfer, second terminal is receiving differential data, and when receiving first data transmission mark, The standard stream medium data is reduced according to the differential data.
In embodiments of the present invention, it is preferred that in order to avoid the mode that is reduced to standard stream medium data and obtain the difference The mode of divided data is not corresponded to, and leads to not accurately reduce the standard stream medium data and be difficult to obtain the first Streaming Media The problem of number, i.e., for the reliability for improving transmission data, second terminal can be according to reduction mark come according to differential data Standard stream medium data is reduced.Wherein, if reduction mark represents that the differential data is by by the first Streaming Media To subtract each pixel corresponding when being worth in the standard stream medium data for the value of each pixel in data, then accordingly, by the difference The corresponding value in the standard stream medium data is added the value for multiple pixels that divided data includes with the plurality of pixel, obtains first Stream medium data.If reduction mark represents that the differential data is by the way that the value of each pixel in the standard stream medium data is subtracted Go each pixel the first stream medium data is corresponding be worth to when, then accordingly, multiple pixels that the differential data includes are existed Value in the standard stream medium data, subtracts value of the plurality of pixel in the differential data, obtains the first stream medium data.
For example, differential data 1 is as shown in upper table 3, image identification is biaozhun3, and reduction is designated 1, therefore, and second eventually End gets standard stream medium data 3 according to image identification as shown in upper table 2 from the stream medium data storehouse being locally stored, by this The 3 corresponding values in the standard stream medium data are added the value of each pixel with each pixel in differential data 1, so as to normal stream matchmaker Volume data 3 is reduced, and obtains the first stream medium data 1 as shown in Table 1 above.
For example, when the data transmission method is applied in remote control, control end obtains current screen as first terminal Curtain display image as the first stream medium data 2, as shown in figure 5, and judge be locally stored in stream medium data be stored with The similarity of first stream medium data 2 is more than the standard stream medium data 4 of preset value as shown in fig. 6, therefore, to the first Streaming Media number Difference is carried out with standard stream medium data according to 2, differential data is obtained as shown in fig. 7, control end is to as the controlled of second terminal End processed sends the differential data, when controlled terminal receives the differential data, by the phase of differential data and standard stream medium data 4 Plus, reduction obtains the first stream medium data 2.Due to during remote control, control end and controlled terminal are when most of Between image shown in section it is similar, shown image change is smaller, it is possible to obtain control end or controlled terminal is shown Image store the stream matchmaker to control end and second terminal locally as standard stream medium data, and by the standard stream medium data In volume data storehouse.Afterwards, all view data for the image that control end need not show the current screen of the control end as First stream medium data sends controlled terminal to, but by first stream medium data and the differential data of standard stream medium data It is transferred to controlled terminal.Because the data volume of differential data is typically smaller than the data volume of the first stream medium data, so can be big The cost of data transfer, raising efficiency of transmission in big reduction remote control process.
In embodiments of the present invention, it is preferred that in order to improve the accuracy of the first stream medium data of reduction, and then improve number According to the accurate letter of transmission, the second terminal can receive the Data Identification from the first terminal, accordingly, and described second Terminal searches corresponding standard Streaming Media according to the Data Identification of the standard stream medium data from the stream medium data storehouse Data, the second terminal obtains first Streaming Media according to the differential data and the standard stream medium data, reduction Data.
In embodiments of the present invention, it is preferred that the second terminal, can also be to first when obtaining the first stream medium data Stream medium data carries out other feasible operations, such as display image, edit-modify etc..
Step 405, the first terminal stores first stream medium data into the stream medium data storehouse, by institute State the first stream medium data and be sent to the second terminal.
Due in the normal stream media database of first terminal, in the absence of the normal stream matchmaker similar to the first stream medium data Volume data, so, first terminal needs the first stream medium data being sent to second terminal, and in order to ensure to second terminal When the similarities for sending other and the first stream medium data are more than the stream medium data of the preset value, cost can be reduced and improved Efficiency of transmission, can be stored the first stream medium data as standard stream medium data into the stream medium data storehouse.
In embodiments of the present invention, it is preferred that in order that second terminal rapidly and accurately determines that received is the One stream medium data, so as to avoid second terminal from being gone back according to the first-class media database to standard stream medium data by mistake Original, and then the reliability of data transfer is improved, first terminal also sends the second data transfer mark, the second data to second terminal Transmission mark is used to illustrating that second terminal to be currently received for the first stream medium data, and the second data transfer mark can be one Individual character or character string, and different from first data transmission mark (such as, when first data transmission is designated 1, the second data 0) transmit mark can be.
Step 406, the second terminal receives the first stream medium data from the first terminal, will be described first-class Media data is stored into the stream medium data storehouse.
The Streaming Media number being locally stored for the first stream medium data, the i.e. second terminal received due to the second terminal According to the standard stream medium data for not being stored with similar to first-class media database in storehouse, therefore, in order to ensure needing again When transmitting the stream medium data similar to the first-class media database, it is not necessary to send substantial amounts of data to the second terminal, Also the second terminal can be made to obtain the stream medium data, so as to further reduce the cost of data transfer, improve transmission effect Rate, second terminal can store first stream medium data into the stream medium data storehouse being locally stored, i.e., by first-class matchmaker Volume data is stored as standard stream medium data.
In embodiments of the present invention, it is preferred that from above-mentioned steps 405 and 406, the embodiment of the present invention can be to first The stream medium data storehouse that terminal and second terminal are locally stored is improved and updated, so, can in order to improve data transfer By property, when the data transmission method provided by the embodiment of the present invention carries out image transmitting, first terminal and second terminal The stream medium data storehouse being locally stored can not include any standard stream medium data, and be provided by the embodiment of the present invention Data transmission method carry out data transmission during, the stream medium data storehouse that first terminal and second terminal are locally stored Improved and updated.
In embodiments of the present invention, first, first terminal can enter the first stream medium data with standard stream medium data Row contrast, obtains differential data between the first stream medium data and standard stream medium data, due to the data volume of the differential data Typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmission differential data can reduce needs The data volume of transmission, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Secondly, the difference number is given Second terminal, can make second terminal obtain the first stream medium data according to differential data reduction, i.e., in reduction data transfer Cost, improve data transfer efficiency while, it can be ensured that the reliability of data transfer.
In addition, first terminal can also obtain the Data Identification of standard stream medium data, the Data Identification is also sent to Second terminal, it can be ensured that in the case of multiple standard stream medium datas are stored in normal stream media database, second eventually End also enough can get the standard stream medium data according to the Data Identification exactly, further increase according to differential data pair The reliability that the standard stream medium data is reduced, and then improve the reliability of data transfer.
In addition, first terminal can obtain stream medium data waiting for transmission as the first stream medium data, and criterion The standard stream medium data for whether being stored with similar to the first stream medium data in stream medium data storehouse, and then can be in the standard During the standard stream medium data for not being stored with similar to the first stream medium data in stream medium data storehouse, directly by the first Streaming Media Data are sent to second terminal, it is ensured that the reliability of data transfer.
In addition, when not storing the first stream medium data in the normal stream media database, first terminal and second terminal It can be stored the first stream medium data as standard stream medium data into normal stream media database, and then ensure that first When terminal is needed to the second terminal transmission stream medium data similar to the first stream medium data again, can reduce needs transmission Data volume, with further improve data transfer reliability and efficiency, reduction transmission cost.
Embodiment five
Reference picture 8, shows a kind of data transmission device according to an embodiment of the invention, applied to first terminal, The first terminal is provided with stream medium data storehouse, and the data transmission device includes:
Contrast module 801, for the first terminal by the mark in the first stream medium data and the stream medium data storehouse Quasi- stream medium data is compared, and obtains differential data.
First sending module 802, second terminal is sent to for the first terminal by the differential data, for described Two terminals obtain first stream medium data according to differential data reduction.
Optionally, the comparing module includes:
Difference submodule, enters first stream medium data with the standard stream medium data for the first terminal Row difference, obtains the differential data.
Optionally, the data transmission device also includes:
Acquisition module, the Data Identification of the standard stream medium data is obtained for the first terminal;
The Data Identification of the standard stream medium data, is sent to described by the second sending module for the first terminal Second terminal, the first Streaming Media number is obtained for the second terminal according to the differential data and Data Identification reduction According to.
Optionally, the data transmission device also includes:
First determination module, judges exist and the first-class matchmaker in the stream medium data storehouse for the first terminal Volume data similarity is more than the standard stream medium data of preset value.
Optionally, the data transmission device also includes:
Second determination module, for the first terminal judge to be not present in the stream medium data storehouse with it is described first-class Media data similarity is more than the standard stream medium data of preset value;
3rd sending module, the second terminal is sent to for the first terminal by first stream medium data, First stream medium data is stored for the second terminal in the stream medium data storehouse into the second terminal.
Optionally, the data transmission device also includes:
Memory module, stores first stream medium data to the stream medium data storehouse for the first terminal In.
In embodiments of the present invention, first, first terminal can enter the first stream medium data with standard stream medium data Row contrast, obtains differential data between the first stream medium data and standard stream medium data, due to the data volume of the differential data Typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmission differential data can reduce needs The data volume of transmission, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Secondly, the difference number is given Second terminal, can make second terminal obtain the first stream medium data according to differential data reduction, i.e., in reduction data transfer Cost, improve data transfer efficiency while, it can be ensured that the reliability of data transfer.
Embodiment six
Reference picture 9, shows a kind of data transmission device according to an embodiment of the invention, applied to second terminal, The second terminal is provided with stream medium data storehouse, and the data transmission device includes:
First receiving module 901, the differential data from first terminal is received for the second terminal.
Recovery module 902, for the second terminal according in the differential data and the stream medium data storehouse Standard stream medium data, reduction obtains the first stream medium data.
Optionally, the data transmission device also includes:
Second receiving module, the Data Identification from the first terminal is received for the second terminal;
The recovery module includes:
Submodule is searched, for Data Identification of the second terminal according to the standard stream medium data, from the stream Corresponding standard stream medium data is searched in media database;
Submodule is reduced, for the second terminal according to the differential data and the standard stream medium data, reduction Obtain first stream medium data.
Optionally, the data transmission device also includes:
3rd receiving module, the first stream medium data from the first terminal is received for the second terminal;
Memory module, stores first stream medium data to the stream medium data storehouse for the second terminal In.
In embodiments of the present invention, first, second terminal can receive the differential data of first terminal transmission, due to the difference The data volume of divided data is typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmit difference number The data volume for needing to transmit according to that can reduce, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Its Secondary, second terminal obtains the first stream medium data according to the differential data and the reduction of standard stream medium data, i.e., in reduction data The cost of transmission, while improve the efficiency of data transfer, it can be ensured that the reliability of data transfer.
Embodiment seven
Reference picture 10, shows a kind of block diagram of first terminal according to an embodiment of the invention.Shown in Figure 10 One terminal 1000 includes:At least one processor 1001, memory 1002, at least one network interface 1004 and other users connect Mouth 1003.Each component in first terminal 1000 is coupled by bus system 1005.It is understood that bus system 1005 For realizing the connection communication between these components.Bus system 1005 in addition to including data/address bus, in addition to power bus, Controlling bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system in Fig. 10 1005。
Wherein, user interface 1003 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 1002 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memory (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connect dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 1002 be intended to include but It is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1002 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 10021 and application program 10022.
Wherein, operating system 10021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 10022, includes various application programs, such as matchmaker Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented The program of example method may be embodied in application program 10022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 1002, specifically, can be application The program stored in program 10022 or instruction, processor 1001 are used for:
First stream medium data is compared with the standard stream medium data in the stream medium data storehouse, difference is obtained Data;
The differential data is sent to second terminal, institute is obtained according to differential data reduction for the second terminal State the first stream medium data.
The method that the embodiments of the present invention are disclosed can apply in processor 1001, or real by processor 1001 It is existing.Processor 1001 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1001 or software form.Above-mentioned Processor 1001 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 1002, processor 1001 reads the information in memory 1002, the step of completing the above method with reference to its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place Manage in device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Optionally, processor 1001 is additionally operable to:
First stream medium data and the standard stream medium data are subjected to difference, the differential data is obtained.
Optionally, processor 1001 is additionally operable to:
Obtain the Data Identification of the standard stream medium data;
The Data Identification of the standard stream medium data is sent to the second terminal, for the second terminal according to institute State differential data and Data Identification reduction obtains first stream medium data.
Optionally, processor 1001 is additionally operable to:
Judge there is the standard for being more than preset value with the first stream medium data similarity in the stream medium data storehouse Stream medium data.
Optionally, processor 1001 is additionally operable to:
Judge the mark for being more than preset value with the first stream medium data similarity is not present in the stream medium data storehouse Quasi- stream medium data;
First stream medium data is sent to the second terminal, for the second terminal by first Streaming Media In stream medium data storehouse of the data storage into the second terminal.
Optionally, processor 1001 is additionally operable to:
First stream medium data is stored into the stream medium data storehouse.
First terminal 1000 can realize each process that first terminal is realized in previous embodiment, to avoid repeating, this In repeat no more.
In embodiments of the present invention, first, first terminal can enter the first stream medium data with standard stream medium data Row contrast, obtains differential data between the first stream medium data and standard stream medium data, due to the data volume of the differential data Typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmission differential data can reduce needs The data volume of transmission, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Secondly, the difference number is given Second terminal, can make second terminal obtain the first stream medium data according to differential data reduction, i.e., in reduction data transfer Cost, improve data transfer efficiency while, it can be ensured that the reliability of data transfer.
Embodiment eight
Figure 11 is the structural representation of the first terminal of another embodiment of the present invention.Specifically, first in Figure 11 is whole End 1100 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted Computer etc..
First terminal 1100 in Figure 11 include radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, Input block 1130, display unit 1140, processor 1160, voicefrequency circuit 1170, WiFi (Wireless Fidelity) module 1180 and power supply 1190.
Wherein, input block 130 can be used for the numeral or character information for receiving user's input, and produce and first terminal The signal input that 1100 user is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 1130 Contact panel 1131 can be included.Contact panel 1131, also referred to as touch-screen, collect touch behaviour of the user on or near it Make (such as user uses the operations of any suitable object or annex on contact panel 1131 such as finger, stylus), and according to Formula set in advance drives corresponding attachment means.Optionally, contact panel 1131 may include touch detecting apparatus and touch Two parts of controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give the processor 1160, and the order sent of reception processing device 1160 and can be performed.Furthermore, it is possible to adopt Contact panel 1131 is realized with polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1131, input block 1130 can also include other input equipments 1132, and other input equipments 1132 can include but is not limited to One kind or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Kind.
Wherein, display unit 1140 can be used for the information and first for showing the information inputted by user or being supplied to user The various menu interfaces of terminal 1100.Display unit 1140 may include display panel 1141, optionally, using LCD or can have The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 1141.
It should be noted that contact panel 1131 can cover display panel 1141, touch display screen is formed, when the touch display screen Detect after the touch operation on or near it, processor 1160 is sent to determine the type of touch event, with post processing Device 1160 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 1160 is the control centre of first terminal 1100, utilizes various interfaces and connection whole mobile phone Various pieces, by operation or perform and be stored in software program and/or module in first memory 1121, and call and deposit The data in second memory 1122 are stored up, the various functions and processing data of first terminal 1100 are performed, so as to first eventually End 1100 carries out integral monitoring.Optionally, processor 1160 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1121 in software program and/or module and/ Or the data in the second memory 1122, processor 1160 is used for:
The first terminal carries out the standard stream medium data in the first stream medium data and the stream medium data storehouse Compare, obtain differential data;
The differential data is sent to second terminal by the first terminal, for the second terminal according to the difference number First stream medium data is obtained according to reduction.
Optionally, processor 1160 is additionally operable to:
First stream medium data and the standard stream medium data are subjected to difference, the differential data is obtained.
Optionally, processor 1160 is additionally operable to:
Obtain the Data Identification of the standard stream medium data;
The Data Identification of the standard stream medium data is sent to the second terminal, for the second terminal according to institute State differential data and Data Identification reduction obtains first stream medium data.
Optionally, processor 1160 is additionally operable to:
Judge there is the standard for being more than preset value with the first stream medium data similarity in the stream medium data storehouse Stream medium data.
Optionally, processor 1160 is additionally operable to:
Judge the mark for being more than preset value with the first stream medium data similarity is not present in the stream medium data storehouse Quasi- stream medium data;
First stream medium data is sent to the second terminal, for the second terminal by first Streaming Media In stream medium data storehouse of the data storage into the second terminal.
Optionally, processor 1160 is additionally operable to:
First stream medium data is stored into the stream medium data storehouse.
In embodiments of the present invention, first, first terminal can enter the first stream medium data with standard stream medium data Row contrast, obtains differential data between the first stream medium data and standard stream medium data, due to the data volume of the differential data Typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmission differential data can reduce needs The data volume of transmission, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Secondly, the difference number is given Second terminal, can make second terminal obtain the first stream medium data according to differential data reduction, i.e., in reduction data transfer Cost, improve data transfer efficiency while, it can be ensured that the reliability of data transfer.
Embodiment nine
Reference picture 12, shows a kind of block diagram of second terminal according to an embodiment of the invention.Shown in Figure 12 Two terminals 1200 include:At least one processor 1201, memory 1202, at least one network interface 1204 and other users connect Mouth 1203.Each component in second terminal 1200 is coupled by bus system 1205.It is understood that bus system 1205 For realizing the connection communication between these components.Bus system 1205 in addition to including data/address bus, in addition to power bus, Controlling bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system in fig. 12 1205。
Wherein, user interface 1203 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 1202 in the embodiment of the present invention can be volatile memory or non-volatile memories Device, or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memory (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connect dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 1202 be intended to include but It is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1202 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 12021 and application program 12022.
Wherein, operating system 12021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 12022, includes various application programs, such as matchmaker Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented The program of example method may be embodied in application program 12022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 1202, specifically, can be application The program stored in program 12022 or instruction, processor 1201 are used for:
Receive the differential data from first terminal;
According to the standard stream medium data in the differential data and the stream medium data storehouse, reduction obtains first-class Media data.
The method that the embodiments of the present invention are disclosed can apply in processor 1201, or real by processor 1201 It is existing.Processor 1201 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1201 or software form.Above-mentioned Processor 1201 can be general processor, digital signal processor (Digital Signal Processor, DSP), special Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 1202, processor 1201 reads the information in memory 1202, the step of completing the above method with reference to its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or its combination are realized.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place Manage in device, controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
For software realize, can by perform the module (such as process, function) of function described in the embodiment of the present invention come Realize the technology described in the embodiment of the present invention.Software code is storable in memory and by computing device.Memory can To realize within a processor or outside processor.
Optionally, processor 1201 is additionally operable to:
Receive the Data Identification from the first terminal;
According to the standard stream medium data in the differential data and the stream medium data storehouse, reduction obtains described the One flow media data packet is included:
According to the Data Identification of the standard stream medium data, corresponding normal stream is searched from the stream medium data storehouse Media data;
According to the differential data and the standard stream medium data, reduction obtains first stream medium data.
Optionally, processor 1201 is additionally operable to:
Receive the first stream medium data from the first terminal;
First stream medium data is stored into the stream medium data storehouse.
Second terminal 1200 can realize each process that second terminal is realized in previous embodiment, to avoid repeating, this In repeat no more.
In embodiments of the present invention, first, second terminal can receive the differential data of first terminal transmission, due to the difference The data volume of divided data is typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmit difference number The data volume for needing to transmit according to that can reduce, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Its Secondary, second terminal obtains the first stream medium data according to the differential data and the reduction of standard stream medium data, i.e., in reduction data The cost of transmission, while improve the efficiency of data transfer, it can be ensured that the reliability of data transfer.
Embodiment ten
Figure 13 is the structural representation of the second terminal of another embodiment of the present invention.Specifically, second in Figure 13 is whole End 1300 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted Computer etc..
Second terminal 1300 in Figure 13 include radio frequency (Radio Frequency, RF) circuit 1310, memory 1320, Input block 1330, display unit 1340, processor 1160, voicefrequency circuit 1370, WiFi (Wireless Fidelity) module 1380 and power supply 1390.
Wherein, input block 1330 can be used for the numeral or character information for receiving user's input, and produce with second eventually The signal input that the user at end 1300 is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block 1330 can include contact panel 1331.Contact panel 1331, also referred to as touch-screen, collect user's touching on or near it Operation (such as user uses the operations of any suitable object or annex on contact panel 1331 such as finger, stylus) is touched, and Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1331 may include touch detecting apparatus and Two parts of touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the letter that touch operation is brought Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give the processor 1360, and the order sent of reception processing device 1360 and can be performed.Furthermore, it is possible to Contact panel 1331 is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1331, input block 1330 can also include other input equipments 1332, and other input equipments 1332 can include but is not limited to One kind or many in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Kind.
Wherein, display unit 1340 can be used for the information and second for showing the information inputted by user or being supplied to user The various menu interfaces of terminal 1300.Display unit 1340 may include display panel 1341, optionally, using LCD or can have The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 1341.
It should be noted that contact panel 1331 can cover display panel 1341, touch display screen is formed, when the touch display screen Detect after the touch operation on or near it, processor 1360 is sent to determine the type of touch event, with post processing Device 1360 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 1360 is the control centre of second terminal 1300, utilizes various interfaces and connection whole mobile phone Various pieces, by operation or perform and be stored in software program and/or module in first memory 1321, and call and deposit The data in second memory 1322 are stored up, the various functions and processing data of second terminal 1300 are performed, so as to second eventually End 1300 carries out integral monitoring.Optionally, processor 1360 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1321 in software program and/or module and/ Or the data in the second memory 1322, processor 1360 is used for:
The second terminal receives the differential data from first terminal;
Standard stream medium data of the second terminal in the differential data and the stream medium data storehouse, also Original obtains the first stream medium data.
Optionally, processor 1360 is additionally operable to:
Receive the Data Identification from the first terminal;
According to the standard stream medium data in the differential data and the stream medium data storehouse, reduction obtains described the One flow media data packet is included:
According to the Data Identification of the standard stream medium data, corresponding normal stream is searched from the stream medium data storehouse Media data;
According to the differential data and the standard stream medium data, reduction obtains first stream medium data.
Optionally, processor 1360 is additionally operable to:
Receive the first stream medium data from the first terminal;
First stream medium data is stored into the stream medium data storehouse.
In embodiments of the present invention, first, second terminal can receive the differential data of first terminal transmission, due to the difference The data volume of divided data is typically smaller than the first stream medium data, so, compared with transmitting the first stream medium data, transmit difference number The data volume for needing to transmit according to that can reduce, and then the cost of data transfer can be reduced, the efficiency of data transfer is improved.Its Secondary, second terminal obtains the first stream medium data according to the differential data and the reduction of standard stream medium data, i.e., in reduction data The cost of transmission, while improve the efficiency of data transfer, it can be ensured that the reliability of data transfer.
The embodiment of the present invention additionally provides a kind of terminal, including:Memory, processor and it is stored on the memory simultaneously The data distributing program that can be run on the processor, the data distributing program is realized described during the computing device Data transmission method the step of.
The embodiment of the present invention is additionally provided deposits on a kind of computer-readable recording medium, the computer-readable recording medium Data distributing program is contained, the step of realizing described data transmission method when the data distributing program is executed by processor.
Those of ordinary skill in the art it is to be appreciated that with reference to disclosed in the embodiment of the present invention embodiment description it is each The unit and algorithm steps of example, can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (20)

1. a kind of data transmission method, it is characterised in that applied to first terminal, the first terminal is provided with stream medium data Storehouse, including:
First stream medium data is compared the first terminal with the standard stream medium data in the stream medium data storehouse, Obtain differential data;
The differential data is sent to second terminal by the first terminal, for the second terminal according to the differential data also Original obtains first stream medium data.
2. data transmission method according to claim 1, it is characterised in that the first terminal is by the first stream medium data With the standard stream medium data in the stream medium data storehouse be compared including:
First stream medium data and the standard stream medium data are carried out difference by the first terminal, obtain the difference Data.
3. data transmission method according to claim 1, it is characterised in that also include:
The first terminal obtains the Data Identification of the standard stream medium data;
The Data Identification of the standard stream medium data is sent to the second terminal by the first terminal, for described second eventually End obtains first stream medium data according to the differential data and Data Identification reduction.
4. data transmission method according to claim 1, it is characterised in that also include:
The first terminal judges to exist to be more than with the first stream medium data similarity in the stream medium data storehouse to preset The standard stream medium data of value.
5. data transmission method according to claim 4, it is characterised in that also include:
The first terminal judges to be not present in the stream medium data storehouse to be more than in advance with the first stream medium data similarity If the standard stream medium data of value;
First stream medium data is sent to the second terminal by the first terminal, for the second terminal by described One stream medium data is stored in the stream medium data storehouse into the second terminal.
6. data transmission method according to claim 5, it is characterised in that also include:
The first terminal stores first stream medium data into the stream medium data storehouse.
7. a kind of data transmission method, it is characterised in that applied to second terminal, the second terminal is provided with stream medium data Storehouse, the data transmission method includes:
The second terminal receives the differential data from first terminal;
Standard stream medium data of the second terminal in the differential data and the stream medium data storehouse, is reduced To the first stream medium data.
8. data transmission method according to claim 7, it is characterised in that also include:
The second terminal receives the Data Identification from the first terminal;
Standard stream medium data of the second terminal in the differential data and the stream medium data storehouse, is reduced Included to first flow media data packet:
The second terminal searches correspondence according to the Data Identification of the standard stream medium data from the stream medium data storehouse Standard stream medium data;
The second terminal obtains the first Streaming Media number according to the differential data and the standard stream medium data, reduction According to.
9. data transmission method according to claim 7, it is characterised in that also include:
The second terminal receives the first stream medium data from the first terminal;
The second terminal stores first stream medium data into the stream medium data storehouse.
10. a kind of data transmission device, it is characterised in that applied to first terminal, the first terminal is provided with Streaming Media number According to storehouse, including:
Contrast module, for the first terminal by the standard Streaming Media in the first stream medium data and the stream medium data storehouse Data are compared, and obtain differential data;
First sending module, is sent to second terminal, for the second terminal for the first terminal by the differential data First stream medium data is obtained according to differential data reduction.
11. data transmission device according to claim 10, it is characterised in that the comparing module includes:
Difference submodule, it is poor to carry out first stream medium data and the standard stream medium data for the first terminal Point, obtain the differential data.
12. data transmission device according to claim 10, it is characterised in that the data transmission device also includes:
Acquisition module, the Data Identification of the standard stream medium data is obtained for the first terminal;
Second sending module, described second is sent to for the first terminal by the Data Identification of the standard stream medium data Terminal, first stream medium data is obtained for the second terminal according to the differential data and Data Identification reduction.
13. data transmission device according to claim 10, it is characterised in that the data transmission device also includes:
First determination module, judges exist and the first Streaming Media number in the stream medium data storehouse for the first terminal It is more than the standard stream medium data of preset value according to similarity.
14. data transmission device according to claim 13, it is characterised in that the data transmission device also includes:
Second determination module, judges to be not present and first Streaming Media in the stream medium data storehouse for the first terminal Data similarity is more than the standard stream medium data of preset value;
3rd sending module, is sent to the second terminal, for institute for the first terminal by first stream medium data State in the stream medium data storehouse that second terminal stores first stream medium data into the second terminal.
15. data transmission device according to claim 14, it is characterised in that the data transmission device also includes:
Memory module, stores first stream medium data into the stream medium data storehouse for the first terminal.
16. a kind of data transmission device, it is characterised in that applied to second terminal, the second terminal is provided with Streaming Media number According to storehouse, including:
First receiving module, the differential data from first terminal is received for the second terminal;
Recovery module, for normal stream matchmaker of the second terminal in the differential data and the stream medium data storehouse Volume data, reduction obtains the first stream medium data.
17. data transmission device according to claim 16, it is characterised in that the data transmission device also includes:
Second receiving module, the Data Identification from the first terminal is received for the second terminal;
The recovery module includes:
Submodule is searched, for Data Identification of the second terminal according to the standard stream medium data, from the Streaming Media Corresponding standard stream medium data is searched in database;
Submodule is reduced, for the second terminal according to the differential data and the standard stream medium data, reduction is obtained First stream medium data.
18. data transmission device according to claim 16, it is characterised in that the data transmission device also includes:
3rd receiving module, the first stream medium data from the first terminal is received for the second terminal;
Memory module, stores first stream medium data into the stream medium data storehouse for the second terminal.
19. a kind of terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be at the place The data distributing program run on reason device, the data distributing program is realized such as claim 1 to 9 during the computing device Any one of data transmission method the step of.
20. a kind of computer-readable recording medium, it is characterised in that the data that are stored with the computer-readable recording medium are passed Defeated program, the data distributing program realizes data transfer as claimed in any one of claims 1-9 wherein when being executed by processor The step of method.
CN201710374818.3A 2017-05-24 2017-05-24 Data transmission method and device Pending CN107018150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710374818.3A CN107018150A (en) 2017-05-24 2017-05-24 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710374818.3A CN107018150A (en) 2017-05-24 2017-05-24 Data transmission method and device

Publications (1)

Publication Number Publication Date
CN107018150A true CN107018150A (en) 2017-08-04

Family

ID=59452567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710374818.3A Pending CN107018150A (en) 2017-05-24 2017-05-24 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN107018150A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737982A (en) * 2018-05-10 2018-11-02 东北农业大学 A kind of low-power consumption poultry house wireless monitor network data fusion method
WO2022001548A1 (en) * 2020-06-30 2022-01-06 华为技术有限公司 Data transmission method, system, apparatus, device, and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1426173A (en) * 2001-12-10 2003-06-25 精工爱普生株式会社 Differential communication system, differential communication device and differential communication program and method
CN101344400A (en) * 2007-07-11 2009-01-14 株式会社日立制作所 Map data distribution system and map data updating method
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN103312743A (en) * 2012-03-09 2013-09-18 盛乐信息技术(上海)有限公司 Data synchronization device and method
CN104254001A (en) * 2013-06-28 2014-12-31 广州华多网络科技有限公司 Remote sharing method, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1426173A (en) * 2001-12-10 2003-06-25 精工爱普生株式会社 Differential communication system, differential communication device and differential communication program and method
CN101344400A (en) * 2007-07-11 2009-01-14 株式会社日立制作所 Map data distribution system and map data updating method
CN103312743A (en) * 2012-03-09 2013-09-18 盛乐信息技术(上海)有限公司 Data synchronization device and method
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN104254001A (en) * 2013-06-28 2014-12-31 广州华多网络科技有限公司 Remote sharing method, device and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737982A (en) * 2018-05-10 2018-11-02 东北农业大学 A kind of low-power consumption poultry house wireless monitor network data fusion method
WO2022001548A1 (en) * 2020-06-30 2022-01-06 华为技术有限公司 Data transmission method, system, apparatus, device, and medium

Similar Documents

Publication Publication Date Title
CN105959564B (en) A kind of photographic method and mobile terminal
CN105159532A (en) Method for sorting pages in operation interface and terminal
CN102207812B (en) Touch electronic device and multi-window management method thereof
CN107390991B (en) A kind of processing method and mobile terminal of screenshot
CN106998367A (en) A kind of document down loading method and mobile terminal
CN106201196A (en) The method for sorting of a kind of desktop icons and mobile terminal
CN106708658A (en) Data backup method, mobile terminal and storage server
CN107562345A (en) A kind of information storage means and mobile terminal
CN106326713A (en) Unlocking method for screen of mobile terminal and mobile terminal
CN106598623A (en) Picture combination template generation method and mobile terminal
CN106714162A (en) Hotspot sharing method and mobile terminals
CN108073380A (en) Electronic device, display control method and related product
CN106408628A (en) Image processing method and image processing device
CN107018150A (en) Data transmission method and device
CN104424224A (en) File index storage method and device
CN106934848A (en) A kind of image processing method and mobile terminal
CN112835497A (en) Method and device for quickly entering electronic whiteboard and storage medium
CN106775294B (en) A kind of image-erasing method and mobile terminal
CN107454267A (en) The processing method and mobile terminal of a kind of image
CN106407416A (en) An application program data integration method and a mobile terminal
CN106445319A (en) File positioning method and terminal
CN106775191A (en) A kind of application program image target adding method and terminal
CN106327430A (en) Picture display method and mobile terminal
CN106202456A (en) Send the method and device of picture
CN112989148A (en) Error correction word ordering method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170804