Summary of the invention
The problem that the present invention solves is that vision signal, the audio signal generation packet loss of TV signal in the prior art influences result of broadcast.
For addressing the above problem, the invention provides a kind of data transmission system, comprise transmitting terminal and receiving terminal, described transmitting terminal comprises: the packet generation unit, be used for TV signal waiting for transmission is divided into a plurality of data blocks, in described data block, add the feature sequence number forming a plurality of packets, described feature sequence number comprise the data type of packet, affiliated frame and/or and corresponding data block affiliated frame and/or in the information of position; Receiving terminal comprises: data packet detecting unit unit, be used to detect the packet that receives, and according to the feature sequence number in the packet, determine the packet of losing; The data packet recovery unit is used to utilize the correlation between the packet, uses the packet adjacent with the feature sequence number of the packet of losing to substitute the described packet of losing.
Alternatively, described TV signal is anolog TV signals, comprises vision signal and audio signal.
Alternatively, described packet is by sampling in regular turn on time shaft obtains to TV signal.
Specifically be included in the packet at the same position place in the packet on the adjacent display position in same frame and/or the field picture or consecutive frame and/or the image when alternatively, described adjacent packet is vision signal.
Alternatively, described receiving terminal also comprises: temporary storage location, and the packet that is used to receive is kept in; Packet arrangement unit is used for resequencing to the packet that receives or through the recovered data bag according to the feature sequence number; The packet reduction unit is used for all packets after recovering processing are reduced to original data block, to form TV signal.
The present invention provides the receiving terminal in a kind of data transmission system in addition, comprising: data packet detecting unit unit, be used to detect the packet that receives, and according to the feature sequence number in the packet, determine the packet of losing; The data packet recovery unit is used to utilize the correlation between the packet, uses the packet adjacent with the feature sequence number of the packet of losing to substitute the described packet of losing.
Specifically be included in the packet at the same position place in the packet on the adjacent display position in same frame and/or the field picture or consecutive frame and/or the image when alternatively, described adjacent packet is vision signal.
Alternatively, also comprise: temporary storage location, the packet that is used to receive is kept in; Packet arrangement unit is used for resequencing to the packet that receives or through the recovered data bag according to the feature sequence number; The packet reduction unit is used for all packets after recovering processing are reduced to original data block, to form TV signal.
The present invention provides a kind of data packet recovery method in addition, be applied to comprise in the television transmission system of transmitting terminal and receiving terminal, described data packet recovery method comprises: transmitting terminal is divided into a plurality of data blocks with TV signal waiting for transmission, in described data block, add the feature sequence number forming a plurality of packets, described feature sequence number comprise the data type of packet, affiliated frame and/or and corresponding data block affiliated frame and/or in the information of position; Receiving terminal detects the packet that receives, and according to the feature sequence number in the packet, determines the packet of losing; Receiving terminal utilizes the correlation between the packet, uses the packet adjacent with the feature sequence number of the packet of losing to substitute the described packet of losing.
Alternatively, described TV signal is anolog TV signals, comprises vision signal and audio signal.
Alternatively, described packet is by sampling in regular turn on time shaft obtains to TV signal.
Specifically be included in the packet at the same position place in the packet on the adjacent display position in same frame and/or the field picture or consecutive frame and/or the image when alternatively, described adjacent packet is vision signal.
Alternatively, also comprise at described receiving terminal: the packet that receives is kept in; Resequence to the packet that receives or through the recovered data bag according to the feature sequence number; To be reduced to original data block through all packets after recovering processing, to form TV signal.
Compared with prior art, technique scheme is to add the feature sequence number in the packet of TV signal, described feature sequence number comprises the data type of packet, affiliated frame and/or field, and the information of the position of corresponding data block in affiliated frame and/or field, like this, just can so that receiving terminal according to described feature sequence number, substitute the described packet of losing with the packet adjacent with the feature sequence number of the packet of losing, nationality is to restore TV signal, the present invention can not only satisfy the requirement of restore data, more the low complex degree of feasible system and the load that alleviates transmission channel.
Embodiment
The inventor finds, in the transmission technology of existing TV signal, the redundant correcting methods that adopt are come recovery data packets more, but the redundant data packets that increases can produce the efficiency of transmission that reduces data, increase the load of transmission channel, and to the system complexity of transmitting terminal and receiving terminal problem such as have relatively high expectations.
The present invention provides the recovery technology of a kind of transfer of data and packet thereof, mainly is that transmitting terminal adds the feature sequence number with multi-level identification information in each packet; Receiving terminal utilizes the correlation between the packet, uses the packet adjacent with the feature sequence number of the packet of losing to substitute the described packet of losing, and with the data that simple alternative recovery is lost, improves TV signal, promotes audio-visual result of broadcast.
Below in conjunction with accompanying drawing content of the present invention is elaborated.
Fig. 1 has shown data transmission system of the present invention structural representation in one embodiment.As shown in Figure 1, described data transmission system comprises transmitting terminal 10 and receiving terminal 12.
Transmitting terminal 10 further comprises packet generation unit 100.Packet generation unit 100 is to be used for TV signal waiting for transmission is divided into a plurality of data blocks, and in each data block, add the feature sequence number to form a plurality of packets, wherein, described TV signal is anolog TV signals, includes vision signal and audio signal.Described feature sequence number comprise the data type of packet, affiliated frame and/or and corresponding data block affiliated frame and/or in the information of position.
With the vision signal is example, in the analog television transmission system, with a two field picture be divided into very, the idol two scan, and with each frame and/or image segmentation be several data blocks, be a base unit for example with pixel 16 * 16 or 25 * 25, and in each data block, insert the feature sequence number, form the packet of vision signal.In the present embodiment, described feature sequence number can be set at the structure of AA-BB-CC, and wherein AA can be used for representing the data type of packet, for example represents vision signal with V, in like manner, represents audio signal with A; BB can be used for representing frame and/or the field that packet is affiliated; And CC can represent the position of data block in aforesaid frame and/or field of described packet correspondence, and in fact, CC adopts coordinate form to represent, also can adopt serial number to represent.By way of example, in one embodiment, be initial point with the upper left corner of image, the width of image is as abscissa, the height of image is as ordinate, and like this, the position of the data block of described packet correspondence in aforesaid frame and/or field promptly can coordinate form be represented.In another embodiment, the a plurality of data block serial numbers that image in one frame and/or the field can be cut apart, for example with the data block open numbering in the upper left corner of image, for example be numbered 0, and according to from left to right, serial number from up to down, be numbered 1,2 ..., the data block until the lower right corner of image.Because described feature sequence number has multi-level structural design, make the layout science more of packet, its location is more accurate.
What need to specify is, the structure of AA-BB-CC only is an exemplary illustration in the above-mentioned feature sequence number, and for example AA does not wherein represent only to comprise two or be at most two, and is not to be defined in English alphabet.In fact, the AA part according to concrete situation, can include (many) positions arbitrarily, and to comprise the multiple expression way of numeral, letter or spcial character etc.Other BB part or CC part also should be applicable to the explanations of above-mentioned AA part.
Correspondingly, for audio signal, its packet also can adopt the feature sequence number with same characteristic features.But, need to prove, under some situation, for example in the TV signal of synchronization, may have only vision signal and do not have audio signal, this, in the present embodiment, in order to make the packet of vision signal and the packet of audio signal on the feature sequence number, keep consistency, be still by TV signal is taken a sample on time shaft in regular turn and obtain the packet of audio signal, and the packet of described audio signal is added the feature sequence number.Therefore, the data in the packet of some audio signal just may be sky.
Receiving terminal 12 further comprises temporary storage location 120, packet arrangement unit 122, data packet detecting unit unit 124, data packet recovery unit 126 and packet reduction unit 128.
Temporary storage location 120 is used for the packet that receives is kept in, for to handling with that part of image that is reduced and is presented at before the display unit after being received.In the present embodiment, temporary storage location 120 can be that (Random Access Memory, RAM), minimum memory capacity is 720 * 576 bytes to general random access memory.In fact, its memory capacity can be expanded, can be according to practical situation, for example data type, size and do different changes for example are the integral multiple of 720 * 576 bytes, or even several million, the size of hundreds of Mbytes.
Packet arrangement unit 122 is used for according to the feature sequence number packet of temporary storage location 120 being resequenced.In the present embodiment, be exactly according to feature sequence number AA-BB-CC, the BB order of CC again behind the promptly first AA successively time is carried out in regular turn.Because of the technology of resequencing is well known to those skilled in the art, so do not give unnecessary details at this.
Data packet detecting unit unit 124 is used to detect the packet that receives, and according to the feature sequence number in the packet, determines the packet of losing; Owing to carried out serial number at 10 pairs of original packets of transmitting terminal, added the feature sequence number, if data packet detecting unit unit 124 finds after testing: in the middle of the packet that receiving terminal 12 receives is found by 122 rearrangement backs, packet arrangement unit discontinuous situation is arranged, perhaps total number of the packet of total number of the packet received of receiving terminal 12 and transmitting terminal 10 transmissions is inconsistent.At this moment, can decision data wrap in and taken place in the transmission course to lose, and can to determine to lose be the packet of which feature sequence number.
Data packet recovery unit 126 is used to utilize the correlation between the packet, uses the packet adjacent with the feature sequence number of the packet of losing to substitute the described packet of losing.Packet with vision signal is an example, utilizes the strong correlation between adjacent image, by the packet of the adjacent data bag place of lost of strong correlation.Specifically comprise: in one embodiment, be will the packet on the adjacent display position substitutes the described packet of losing in same frame and/or the field picture being in the described packet of losing, for example, the periphery (packet of the locational data block correspondence in for example adjacent upper and lower, left and right) that is positioned at the data block position of described packet correspondence of losing can be substituted.In another embodiment, be to substitute the described packet of losing with the packet that the described packet of losing is in the same position place in consecutive frame and/or the field picture, for example, the packet identical with described packet position of losing substitutes in former frame that can the frame at described packet place of losing and/or field picture is adjacent and/or field picture or back one frame and/or the field picture.
Packet reduction unit 128 be used for data packet recovery unit 126 data recovered bags and before packet together put in order and resequence after all packets be reduced to original data block, and then form TV signal and on display unit, shown.In the present embodiment, described reduction can specifically comprise removes the feature sequence number separately of all packets after the rearrangement, again with all data blocks according to certain mode, for example with order before and after time order and function order or the position, sort and be combined into whole frame and/or image.Because the visual characteristic of human eye, common beholder can not perceive those alternative back data blocks to be had on display effect unusually, and display effect can satisfy watches requirement.
Fig. 2 has shown data packet recovery method of the present invention schematic flow sheet in one embodiment.As shown in Figure 2, described data packet recovery method comprises the steps:
In step S200, receiving terminal is divided into a plurality of data blocks with TV signal waiting for transmission, in described data block, add the feature sequence number forming a plurality of packets, described feature sequence number comprise the data type of packet, affiliated frame and/or and corresponding data block affiliated frame and/or in the information of position.
With the vision signal is example, in the analog television transmission system, with a two field picture be divided into very, the idol two scan, and with each frame and/or image segmentation be several data blocks, and in each data block, insert the feature sequence number, form the packet of vision signal.In the present embodiment, described feature sequence number can be set at the structure of AA-BB-CC, and wherein AA can be used for representing the data type of packet, for example represents vision signal with V, in like manner, represents audio signal with A; BB can be used for representing frame and/or the field that packet is affiliated; And CC can represent the position of data block in aforesaid frame and/or field of described packet correspondence.
Like this, these packets that have a feature sequence number just by transmitting terminal by transmission channel, for example on-air radio channel or cable channel, broadcasting is gone out.
In step S202, receiving terminal detects the packet that receives, and according to the feature sequence number in the packet, determines the packet of losing.
In fact, can also be before packet is detected earlier to these packet rearrangements, described ordering is to carry out according to the feature sequence number of described packet.
In the present embodiment, carry out in the testing process finding if detect: in the middle of the packet that receiving terminal receives is found by 122 rearrangement backs, packet arrangement unit discontinuous situation is arranged, perhaps total number of the packet received of receiving terminal is inconsistent with total number of the packet of transmitting terminal transmission.At this moment, can decision data wrap in and taken place in the transmission course to lose, and can to determine to lose be the packet of which feature sequence number.
In step S204, receiving terminal utilizes the correlation between the packet, uses the packet adjacent with the feature sequence number of the packet of losing to substitute the described packet of losing.
Packet with vision signal is an example, utilizes the strong correlation between adjacent image, by the packet of the adjacent data bag place of lost of strong correlation.Specifically comprise: in one embodiment, be the packet on the adjacent display position substitutes the described packet of losing in same frame and/or the field picture being in the described packet of losing.In another embodiment, be that the packet that will be in the same position place in consecutive frame and/or the field picture with the described packet of losing substitutes the described packet of losing.
By above steps, the packet that those can be lost is recovered.
Follow-up, for the demonstration of image, can also comprise data recovered bag and before packet together put in order and resequence after all packets be reduced to original data block, and then form TV signal and on display unit, shown.
Come the data packet recovery of the vision signal in a certain specific embodiment is described in detail below in conjunction with data transmission system provided by the present invention and data packet recovery method.
Continuous two two field picture a and the b that transmission is arranged in the TV signal as shown in Figure 3.At first, described two two field picture a and b are divided into a plurality of data blocks, in described data block, add the feature sequence number to form a plurality of packets at transmitting terminal.For example each two field picture can be divided into 8 * 6 little data blocks, in each data block, add the feature sequence number and form packet.Like this, for image a, the feature sequence number of the packet of its each data block correspondence is respectively V-a-1, V-a-2 ..., V-a-48; For image b, the feature sequence number of the packet of its each data block correspondence is respectively V-b-1, V-b-2 ..., V-b-48.In fact, also can adopt coordinate form to represent, for example, adopt coordinate form can be expressed as V-a-5:4, represent that it is in the 5th row the 4th row for the packet of V-a-29 for the serial number of packet in image.In following narration, for embodying advantage of the present invention, we will describe with the characteristic sequence of coordinate mode.
Like this, these packets that have a feature sequence number just by transmitting terminal by transmission channel, for example on-air radio channel or cable channel, broadcasting is gone out.
At receiving terminal, at first receive these packets and it is kept in, and to these packets rearrangements.Suppose that the packet after the rearrangement is V-a-5:2, V-a-5:3, V-a-5:5, V-a-5:6, the packet V-a-5:4 in the middle of finding no after testing at this moment, can take place to lose by specified data bag V-a-5:4.
Utilize the strong correlation between adjacent image, by the packet of the adjacent data bag place of lost of strong correlation.For the packet V-a-5:4 that loses, in one embodiment, can substituting with the packet on the adjacent display position in the same two field picture, is V-a-5:3 with the feature sequence number promptly, V-a-6:4, the packet of V-a-5:5 or V-a-4:4 substitutes, but not as limit, also can substitute with other contiguous packets, for example, the V-a-4:3 of packet V-a-5:4 edge, V-a-6:3, V-a-6:5 or V-a-4:5 substitute.In another embodiment, also can be that the packet that will be in the same position place in consecutive frame and/or the field picture with the described packet of losing substitutes the described packet of losing, promptly come alternate data bag V-a-5:4 for the V-b-5:4 packet with feature sequence number in one two field picture of back, equally can recovery data packets.
Follow-up, for the demonstration of image, can also comprise data recovered bag and before packet together put in order and resequence after all packets be reduced to original data block, and then form TV signal and on display unit, shown.
In sum, technique scheme is that transmitting terminal adds the feature sequence number in the packet of TV signal, described feature sequence number comprise the data type of packet, affiliated frame and/or and corresponding data block affiliated frame and/or in the information of position; Then, receiving terminal can be according to the definite packet of losing of described feature sequence number, and use the packet adjacent to substitute the described packet of losing with the feature sequence number of the packet of losing, nationality is to restore TV signal, satisfy the requirement of restore data, improve TV signal, promote audio-visual result of broadcast.
Also it should be noted that, use data transmission system provided by the present invention and data packet recovery method, also can be in order to solve vision signal and the nonsynchronous problem of audio signal in the TV signal.For example, receiving terminal is worked as a plurality of continuous data bag V-b-1 that detect received vision signal in a period of time, V-b-2, V-b-3 and V-b-4, and the packet of the audio signal that receives is continuous A-b-1 and A-b-2, and do not detect the packet A-b-3 and the A-b-4 of follow-up audio signal, the feature sequence number of vision signal and audio signal is all continuous, but the quantity of the two is inconsistent, and at this moment, promptly decidable vision signal and audio signal have taken place asynchronous.For asynchronous, receiving terminal can be handled packet V-b-1, the V-b-2 of paid-in vision signal and packet A-b-1, the A-b-2 of audio signal earlier earlier, after treating that the packet A-b-3 of audio signal and A-b-4 receive, packet V-b-3 and the V-b-4 with before vision signal handles again.So just can solve nonsynchronous problem.
In addition, since the feature sequence number that in the technical program, adopts comprise the data type of packet, affiliated frame and/or and corresponding data block affiliated frame and/or in the information of position, make detection, the location of packet reach alternative very facility, come recovery data packets according to the feature sequence number by alternative, needing in the existing redundant correcting technology can avoid a large amount of redundant data (bag) of transmission to cause that data transmission efficiency is low, transmission channel is congested and require transmitting terminal and receiving terminal has problems such as high integration degree.
Though oneself discloses the present invention as above with preferred embodiment, the present invention is defined in this.Any those skilled in the art without departing from the spirit and scope of the present invention, all can do various changes and modification, so protection scope of the present invention should be as the criterion with claim institute restricted portion.