WO2021102992A1 - Data transmissio method, device and system as well as storage medium - Google Patents

Data transmissio method, device and system as well as storage medium Download PDF

Info

Publication number
WO2021102992A1
WO2021102992A1 PCT/CN2019/122168 CN2019122168W WO2021102992A1 WO 2021102992 A1 WO2021102992 A1 WO 2021102992A1 CN 2019122168 W CN2019122168 W CN 2019122168W WO 2021102992 A1 WO2021102992 A1 WO 2021102992A1
Authority
WO
WIPO (PCT)
Prior art keywords
image data
switching
resolution
data
target resolution
Prior art date
Application number
PCT/CN2019/122168
Other languages
French (fr)
Chinese (zh)
Inventor
周士贞
苏文艺
赵亮
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/122168 priority Critical patent/WO2021102992A1/en
Priority to CN201980061264.9A priority patent/CN112771830A/en
Publication of WO2021102992A1 publication Critical patent/WO2021102992A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • 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/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems

Definitions

  • This application relates to the field of communication technology, and in particular to a data transmission method, device, system and storage medium.
  • I frames In a video coding sequence, there are mainly three types of coding frames: I frames, P frames, and B frames.
  • the I frame does not refer to other image frames, so usually when the code stream state is switched, such as switching the resolution, an I frame is sent first to ensure that the referenced video frame is correct and valid when the subsequent video frame is decoded.
  • the wireless channel is a complex, changeable and unstable communication condition. After the channel quality deteriorates, on the one hand, the bit stream data sent by the encoding end cannot be sent to the decoding end in a timely manner, and error packets may occur. On the other hand, a reduced-resolution transmission strategy can be adopted.
  • this application provides a data transmission method, a data transmission device, a data transmission system, and a storage medium.
  • this application provides a data transmission method, including:
  • this application provides a data transmission method, including:
  • the present application provides a data transmission device, the device includes: a memory and a processor;
  • the memory is used to store a computer program
  • the processor is used to execute the computer program and when executing the computer program, implement the following steps:
  • the present application provides a data transmission device, the device includes: a memory and a processor;
  • the memory is used to store a computer program
  • the processor is used to execute the computer program and when executing the computer program, implement the following steps:
  • the present application provides a data transmission system, which includes the data transmission device described in the third aspect and the data transmission device described in the fourth aspect.
  • the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor realizes the data described in the first aspect. Transmission method.
  • the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor realizes the data described in the second aspect above. Transmission method.
  • the embodiments of the present application provide a data transmission method, device, system and storage medium.
  • the data transmission sending end (encoding end): obtains the target resolution; obtains the first image data reconstructed by the first encoder; obtains the second code
  • the first code stream data corresponding to the target resolution after encoding by the encoder; since the encoding end first obtains the reconstructed first image data after obtaining the target resolution, it is equivalent to the image data decoded by the analog decoding end, the first image data Matching with the decoded image data at the decoding end, the first image data can be used as the basic image data of the reference image data of the subsequent image data.
  • Data transmission receiving end (decoding end): Obtain the target resolution; Obtain the third image data reconstructed by the first decoder; Obtain the second code stream data corresponding to the target resolution encoded by the third encoder; Obtain the second decoding The fourth image data after the decoder decodes the second code stream data; since the decoder first obtains the reconstructed third image data after obtaining the target resolution, the third image data can be used as reference image data for subsequent image data In this way, it can provide correct and effective reference image data support for subsequent image data in a timely manner, in particular, it can provide correct and effective reference image data for decoding the subsequent image data after the resolution is changed in time.
  • the decoding end can also obtain correct and effective reference image data in time, thereby ensuring that the decoded Image quality provides support; since the decoding end simulates the encoding process of the encoding end corresponding to the target resolution and performs decoding, in this way, technical support can be provided to ensure the seamless connection between the decoding end and the encoding end. Since the encoding end and the decoding end both obtain the reconstructed first image data and third image data, the first image data and the third image data are matched. In this way, the encoding end can only send the Provide technical support for error-corrected frames at the decoding end.
  • FIG. 1 is a schematic flowchart of an embodiment of a data transmission method according to the present application
  • FIG. 2 is a schematic flowchart of another embodiment of the data transmission method of the present application.
  • FIG. 3 is a schematic flowchart of another embodiment of the data transmission method of the present application.
  • FIG. 5 is a schematic flowchart of another embodiment of the data transmission method of the present application.
  • Fig. 6 is a flow diagram of the sending end and the receiving end of the first application of the data transmission method of this application before the resolution is switched;
  • FIG. 7 is a flowchart of the sending end and the receiving end during the switching process of the switching resolution of the application of FIG. 6;
  • Fig. 8 is a flow chart of the sending end and the receiving end of the application of Fig. 6 after the resolution switching is completed;
  • I frames In a video coding sequence, there are mainly three types of coding frames: I frames, P frames, and B frames.
  • the I frame does not refer to other image frames.
  • an I frame is sent first to ensure that the reference video frame is correct and effective when the subsequent video frame is decoded.
  • the wireless channel In the field of real-time video wireless transmission, the wireless channel is a complex, changeable and unstable communication condition. After the channel quality deteriorates, the correct and effective reference video frames of the encoder and decoder cannot be guaranteed in time.
  • the data transmission sending end (encoding end) of the embodiment of the present application obtains the target resolution; obtains the first image data reconstructed by the first encoder; obtains the first code stream data corresponding to the target resolution encoded by the second encoder; Since the encoding end first obtains the reconstructed first image data after acquiring the target resolution, which is equivalent to the image data decoded by the analog decoding end.
  • the first image data matches the decoded image data of the decoding end, and the first image data can be As the basic image data of the reference image data of the subsequent image data, in this way, it can provide correct and effective reference image data for the subsequent image data in time, especially the correct and effective image data for the subsequent image data after the resolution is changed.
  • Data transmission receiving end (decoding end): Obtain the target resolution; Obtain the third image data reconstructed by the first decoder; Obtain the second code stream data corresponding to the target resolution encoded by the third encoder; Obtain the second decoding The fourth image data after the decoder decodes the second code stream data; since the decoder first obtains the reconstructed third image data after obtaining the target resolution, the third image data can be used as reference image data for subsequent image data In this way, it can provide correct and effective reference image data support for subsequent image data in a timely manner, in particular, it can provide correct and effective reference image data support for the subsequent decoding of image data after the resolution is changed in time, In the case of poor channel quality, the encoder does not need to retransmit the complete, large-rate reference data stream data, and the decoder can also obtain correct and effective reference image data in time, thereby ensuring the decoded image Quality support; since the decoding end
  • the decoding end Since the encoding end and the decoding end both obtain the reconstructed first image data and third image data, the first image data and the third image data match, and the decoding end simulates the encoding process of the encoding end and performs decoding. In this way, It can provide technical support for the encoding end to only generate error correction frames to the decoding end when the subsequent error correction is required.
  • FIG. 1 is a schematic flowchart of an embodiment of a data transmission method according to the present application. It should be noted that the method in the embodiment of the present application is a data transmission method at the encoding end.
  • the data transmission method at the encoding end includes: step S101, step S102, and step S103.
  • Step S101 Obtain a target resolution.
  • Step S102 Obtain the first image data reconstructed by the first encoder.
  • Step S103 Obtain the first code stream data encoded by the second encoder, where the first code stream data corresponds to the target resolution.
  • the target resolution refers to the resolution of image data that currently needs to be encoded.
  • the target resolution matches the quality of the data transmission channel.
  • the quality of the data transmission channel can be current or pre-calculated. Specifically, when the quality of the data transmission channel is good, the target resolution can be increased to transmit as large an image as possible, and the size of the decoding end image can be increased as much as possible on the basis of ensuring the image quality; when the quality of the data transmission channel is poor At this time, the target resolution can be reduced to achieve the encoding reduction of the output code stream, reduce the error packet loss as much as possible, and ensure that the image quality of the decoding end is basically acceptable.
  • a list of correspondences between the quality level of the data transmission channel and the matched target resolution can be preset, and the matched target resolution can be determined according to the currently detected quality level of the data transmission channel.
  • the quality of the data transmission channel can be detected by the encoding end, so that timely feedback on changes in channel quality can be obtained.
  • the first image data refers to the reconstructed image data obtained from the first encoder according to the coding principle.
  • the first code stream data can be obtained after encoding the image data corresponding to the target resolution in the second encoder.
  • the resolution of the first image data may be the same as the target resolution, for example, before the resolution switching; the resolution of the first image data may also be different from the target resolution, for example, during the resolution switching process and the switching It can be different after completion.
  • the first encoder and the second encoder can be two independent hardware encoders, or multiplex the same hardware encoder, that is, use the same hardware encoder for time-sharing encoding: as the first
  • the encoder performs encoding, and performs encoding as a second encoder in some other periods.
  • the first code stream data can be obtained after encoding the image data corresponding to the target resolution.
  • the target resolution in the embodiment of this application, before encoding, it also obtains the first image data reconstructed by the first encoder, which is equivalent to simulating the image data decoded by the decoder.
  • the first image data can be used as the basic image data of the reference image data of the subsequent image data.
  • the reference image data of the encoding end is the same as the reference image data of the decoding end after the resolution is switched, so that it can be timely Provide correct and effective reference image data for subsequent image data, in particular, provide support for correct and effective reference image data for encoding of image data after subsequent resolution changes in time, so as to ensure correct decoding at the decoder.
  • the method may further include: S104.
  • Step S104 Obtain second image data after resampling the first image data, where the second image data is image data corresponding to the first code stream data.
  • the resolution of the second image data is the target resolution, which is image data obtained by re-sampling the first image data (that is, obtained by simulation).
  • the re-sampling module on the encoding end and the decoding end it is possible to ensure that the images output by the two ends in the resolution switching match.
  • the degree of resampling at the encoding end and the decoding end can be the same to ensure the consistency of image transmission during the resolution switching process.
  • step S103 is to encode the second image data by the second encoder to obtain the first code stream data.
  • step S104 may have the following two situations:
  • the first type if the target resolution is greater than the resolution of the first image data, the first image data is up-sampled to obtain the second image data of the target resolution.
  • Downsampling also known as reduced image or downsampling (downsampled)
  • the redundancy can be removed, and the occupied bandwidth can be reduced when the data is transmitted after encoding.
  • the redundancy can be removed by down-sampling, and the packet loss and error packet can be minimized when the data is transmitted after encoding. , As far as possible to ensure the image quality of the decoding end.
  • Down-sampling principle For an image I with a size of M*N, perform s times downsampling to obtain a resolution image of (M/s)*(N/s) size. Of course, s should be M and N The common divisor works. If you consider the image in matrix form, the image in the s*s window of the original image is turned into a pixel, and the value of this pixel is the mean value of all pixels in the window.
  • the second type if the target resolution is less than the resolution of the first image data, down-sampling the first image data to obtain the second image data of the target resolution.
  • Image magnification almost always uses interpolation methods, that is, on the basis of the original image pixels, a suitable interpolation algorithm is used to insert new elements between pixels.
  • step S103 whether the first code stream data obtained by encoding in step S103 is sent depends on the current state of the encoding end:
  • Switching the intermediate state means that the resolution switching has not been officially completed during the switching process of the resolution. Therefore, the first bit stream data at this time does not need to be sent, and the first bit stream data is discarded, which can avoid the first bit stream data. Take up storage space.
  • the switching intermediate state of the encoding end includes the state of maintaining encoding with different resolutions.
  • the switching completion state means that the resolution switching is officially completed. At this time, the first bit stream data is sent to the decoding end. On the one hand, it can ensure that the resolution switching is completed, and on the other hand, it can ensure the synchronous switching with the decoding end.
  • the switching completion state of the encoding end includes the state of maintaining the resolution encoding after switching.
  • the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data corresponds to the first bitstream data.
  • Image data if the current state includes the switching completion state, the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data corresponds to the first bitstream data.
  • the second image data is the image data corresponding to the target resolution, and is the image data corresponding to the first bitstream data; wherein, the second image data may also be the image data after the first image data is resampled.
  • the resolution of the input image data is the target resolution.
  • the second image data can be used as the new input image
  • the reference image data of the data encodes the new input image data.
  • the new input image data includes the image data of the target resolution obtained by re-sampling or the image data of the target resolution directly output by the camera device.
  • the image source input by the encoding end can have two schemes: one is that the output image of the camera device keeps the resolution A unchanged, and the image of resolution A is resampled to obtain the image of resolution B; the other is Switching the camera device, the input image is changed from the original resolution A image to the resolution B image; the purpose of these two solutions is to obtain an image of the new resolution B, but the implementation is different.
  • the method further includes: step S105.
  • Step S105 Generate and send switching information, where the switching information includes the synchronization switching identifier and the target resolution.
  • the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
  • the switching resolution state identifier includes the identifier of the state before switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
  • the synchronization identifier includes a frame number statistical information identifier at the target resolution after switching.
  • both ends will also send a synchronization switching flag in one or two directions to ensure that the output of the re-sampling module at the decoding end is consistent with the re-sampling output at the encoding end.
  • the easier ways to implement the handover information include: the handover information can be included in the communication protocol or supplemented in the Supplemental Enhancement Information (SEI), that is, the method for sending the handover information in step S105 can be easily implemented in the following two ways: Ways:
  • SEI Supplemental Enhancement Information
  • the switching information is packaged in the code stream header in the form of a communication protocol, and the first code stream data including the switching information is generated and sent.
  • step S105 is triggered to execute a switching instruction, that is, switching information is generated and sent according to the switching instruction.
  • the generation of the switching instruction may be automatically generated by the encoding end (for example, when the quality of the data transmission channel is detected to be degraded), or may be generated according to a user instruction.
  • the specific description is as follows:
  • the method further includes: step S106.
  • Step S106 When it is detected that the quality of the data transmission channel does not meet the preset condition, a switching instruction is generated, and the switching instruction includes a target resolution matching the quality of the data transmission channel.
  • Sub-step S1061 Detect and determine the magnitude of the data transmission channel quality, the first preset channel quality requirement, and the second preset channel quality requirement.
  • Sub-step S1062 When it is detected that the quality of the data transmission channel is greater than or equal to the first preset channel quality requirement, a first switching instruction is generated, wherein the target resolution of the first switching instruction is greater than the resolution of the first image data.
  • Sub-step S1063 When it is detected that the channel quality is less than the second preset channel quality requirement, a second switching instruction is generated, wherein the target resolution of the second switching instruction is less than the resolution of the first image data.
  • the first preset channel quality requirement is the same as the second preset channel quality requirement, and both are preset channel quality requirements.
  • the preset channel quality requirement includes a preset channel quality threshold T and a preset duration of t seconds.
  • the sub-step S1062 may specifically include: when it is detected that the quality of the data transmission channel is greater than or equal to the preset channel quality threshold T for t seconds, generating a first handover instruction; the sub-step S1063 may specifically include: when the quality of the data transmission channel is detected If the duration of t seconds is less than the preset channel quality threshold T, a second switching instruction is generated.
  • the first preset channel quality requirement is different from the second preset channel quality requirement, it can also be detected that the data transmission channel quality is less than the first preset channel quality requirement and greater than or equal to the second preset channel quality requirement , The resolution remains unchanged.
  • the method further includes: receiving an input user instruction, where the user instruction includes the target resolution; and generating a switching instruction according to the user instruction.
  • a suitable target resolution can be matched according to the actual needs of the user, and the user experience can be further improved.
  • FIG 3 is a schematic flow diagram of another embodiment of the data transmission method of the present application.
  • the method of the embodiment of the present application is a data transmission method of the decoding end.
  • the content associated with the encoding end please refer to the above-mentioned encoding end.
  • the part of the data transmission method will not be repeated here. The following specifically introduces the content that is not related to or different from the encoding end.
  • the data transmission method at the decoding end includes: step S201, step S202, step S203, and step S204.
  • Step S201 Obtain the target resolution.
  • Step S202 Obtain the third image data reconstructed by the first decoder.
  • Step S203 Obtain the second code stream data encoded by the third encoder, where the second code stream data corresponds to the target resolution.
  • Step S204 Obtain fourth image data after the second decoder decodes the second code stream data.
  • the first decoder and the second decoder can be two independent hardware decoders, or the same hardware decoder can be multiplexed, that is, the same hardware decoder is used for time-sharing decoding: in certain periods as the first The decoder performs decoding, and performs decoding as a second decoder in some other periods.
  • the decoder can decode the code stream data corresponding to the target resolution.
  • the third image data reconstructed by the first decoder is obtained, and the second code stream data corresponding to the target resolution encoded by the third encoder is obtained, which is equivalent to analog encoding at the encoding end.
  • the latter bitstream data is then decoded. Since the third image data can be used as the basic image data of the reference image data when decoding the bitstream data of the subsequent image data, in this way, it can provide correct and effective follow-up image data in time. In particular, it can provide correct and effective reference image data to provide support in time for the subsequent decoding of the image data after the resolution has been changed.
  • the encoder does not need to retransmit the complete, large-rate reference data stream data, and the decoder can also obtain correct and effective reference image data in time, thereby providing support for correct decoding , Provide support to ensure the image quality after decoding.
  • the decoding end simulates the encoding process of the encoding end corresponding to the target resolution and performs decoding, in this way, technical support can be provided to ensure seamless connection between the decoding end and the encoding end. Since the encoding end and the decoding end both obtain the reconstructed first image data and third image data, the first image data and the third image data match, and the decoding end simulates the encoding process of the encoding end and performs decoding. In this way, It can provide technical support for the encoding end to only generate error correction frames to the decoding end when the subsequent error correction is required.
  • the method when switching resolutions, in order to facilitate the synchronization of the encoding end and the decoding end, maintain a switching process of switching resolutions before the formal switching (that is, the intermediate state of switching), that is, through The image data corresponding to the target resolution is obtained by simulation, so as to maintain a switching process of switching resolution at the decoding end, that is, in step S202, after obtaining the third image data reconstructed by the first decoder, the method further includes: step S205 .
  • Step S205 Obtain fifth image data after resampling the third image data, where the fifth image data is image data corresponding to the second code stream data.
  • step S205 may have the following two situations:
  • the first type if the target resolution is greater than the resolution of the third image data, the third image data is up-sampled to obtain the fifth image data of the target resolution.
  • the second type if the target resolution is less than the resolution of the third image data, down-sampling the third image data to obtain the fifth image data of the target resolution.
  • the switching intermediate state means that the resolution switching has not been officially completed during the switching of the resolution. Therefore, the fourth image data does not need to be retained at this time, and the fourth image data is discarded, which can prevent the fourth image data from occupying storage space .
  • the switching intermediate state of the decoder includes maintaining the state of decoding with different resolutions.
  • the switching completion state means that the resolution switching is officially completed. At this time, the first bit stream data from the encoding end can be received. On the one hand, it can ensure the completion of the resolution switching, and on the other hand, it can ensure the synchronous switching with the encoding end.
  • the switching completion state of the decoding end includes the state of maintaining the resolution decoding after switching.
  • the fifth image data is used as the reference image data of the new code stream data of the new input image data, and the new code stream data of the new input image data is decoded.
  • Five image data is the image data corresponding to the second code stream data.
  • the fifth image data is the image data corresponding to the target resolution, and is the image data corresponding to the second bit stream data; wherein, the fifth image data may also be the image data after re-sampling the third image data.
  • the resolution of the input image data is the target resolution.
  • the fifth image data can be used as the new The reference image data of the input image data decodes other video frames other than the I frame corresponding to the new input image data.
  • the decoding end before acquiring the target resolution, the decoding end further includes: step S206.
  • Step S206 Receive switching information, where the switching information includes the synchronization switching identifier and the target resolution.
  • the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
  • the switching resolution state identifier includes the identifier of the state before switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
  • the synchronization identifier includes a frame number statistical information identifier at the target resolution after switching.
  • both ends will also send a synchronization switching flag in one or two directions to ensure that the output of the re-sampling module at the decoding end is consistent with the re-sampling output at the encoding end.
  • the easier ways to implement the switching information include: the switching information can be included in the communication protocol (together with the code stream data) or supplemented in the supplementary enhancement information SEI, that is, the switching information receiving method in step S206 can be easily implemented in the following ways Two ways:
  • One is: receiving the first code stream data including switching information.
  • the first stream data comes from the encoding end.
  • the other is: receiving supplementary enhancement information SEI including handover information.
  • Figure 6 is a flow diagram of the sending and receiving ends of the application of the data transmission method 1 of this application before switching the resolution.
  • Figure 7 is the sending and receiving ends of the application of Figure 6 during the switching of the resolution.
  • Fig. 8 is a flowchart of the sending end and the receiving end of the application of Fig. 6 after the resolution switching is completed.
  • the resolution switch When the channel quality is detected to be worse and is lower than the channel quality threshold T for t seconds, the resolution switch is started, and the input image is downsampled Encode and send in a size of 1280x720 to relieve transmission pressure. Similarly, when it is detected that the communication conditions are better, it can be up-sampled from a lower resolution to a higher resolution for encoding and sending. It is worth mentioning that the degree of resampling can be flexibly configured, but the encoding end and the decoding end must be consistent.
  • the switching process is mainly composed of two parts: the encoding end switching intermediate state maintenance and the decoding end switching intermediate state respectively maintain.
  • the function of the intermediate state maintenance part of the encoding end switching is to simulate the decoded image at the decoding end and use it as a reference frame to encode the image after the size change. In this way, it can smoothly enter the encoding transmission state after the resolution is switched.
  • the function of the switch intermediate state maintenance part of the decoding end is to simulate receiving and decoding the bit stream data after the resolution is switched.
  • the biggest advantage of this scheme is that the encoding end and the decoding end can be seamlessly connected, and it can avoid sending large-rate I frames when switching resolutions; this resolution switching scheme is channel-friendly, has short transmission delay, and effectively avoids traditional The screen resolution, jitter, flicker and other issues caused by cutting resolution.
  • the traditional cut resolution scheme usually uses I frame as the start of the new resolution. In order to achieve better subjective quality, a larger volume of I frame is usually required.
  • the code rate of I frame is positively correlated with the image quality after decoding. The higher the bit rate, the greater the transmission pressure, especially in the case of poor channel quality, the transmission delay is very large, so traditional cutting resolution usually brings bad subjective such as blurring, jitter, and flicker. Experience.
  • first encode the input image according to the pre-switching procedure As shown in Figure 7, the image data of the resolution PA is input to the first encoder, and the code stream data SA output by the first encoder is sent.
  • the reconstructed image data (that is, the first image data with a resolution of PA) is taken from the first encoder and input to the resampling module, and the matching resolution is selected according to the level of channel quality (That is, the target resolution), and update the communication protocol.
  • the communication protocol includes the resolution status, the frame number statistics information under the new resolution, and the resolution size information after switching (that is, the target resolution).
  • the reconstructed image data (that is, the first image data) is down-sampling and outputs the image data of the resolution PB' (that is, the second image data), and the image data of the resolution PB' is input to the second encoder for processing Encoding, the coded stream data SB' (that is, the first stream data) is temporarily discarded.
  • This part of the solution realizes the state of maintaining the encoding of different resolutions (PA and PB').
  • the first decoder decodes the received code stream data SA to obtain the image data of the resolution PA, and at the same time obtains the resolution switching state from the state of the communication protocol at both ends of the codec.
  • the code stream data (ie, the second code stream data) encoded by the third encoder is input to the second decoder, and the image data of the resolution PB' (ie, the fourth image data) decoded by the second decoder is temporarily Discarded, this part of the solution realizes the state of maintaining the decoding of different resolutions (PA and PB').
  • the second encoder on the encoding end corresponds to the second encoder on the encoding end in Figure 7 (switching intermediate state), and the encoding end encodes the code stream data SB (ie The first bit stream data) is sent, and the input image data of resolution PB after switching corresponds to the image data of resolution PB' input in the switching process as shown in Figure 7.
  • the resolution of the two is the same, but the image data of resolution PB It is the newly input video frame, and the image data of the resolution PB' is obtained by re-sampling the reconstructed video frame after encoding the original video frame.
  • the second decoder at the decoding end corresponds to the second decoder at the decoding end in Figure 7 (switching intermediate state), and the decoding end receives the code stream data SB (that is, the first code stream data). ) Is directly input to the second decoder for decoding and output resolution PB image data.
  • the received bit stream data SB corresponds to the bit stream data encoded and output by the third encoder at the decoding end.
  • the resolution of the two is the same, but SB is wireless
  • the received video code stream of the new resolution, and the code stream data encoded and output by the third encoder at the decoding end is the video code stream of the image after re-sampling the original resolution image.
  • the consistency of the reference frame sequence of the encoding end and the decoding end can be ensured, so when the resolution is switched, the encoding end does not need to re-encode the I frame and send it to the decoding end.
  • the encoder input image source has two schemes: one is to switch the camera (ie camera device), the input image resolution is changed from PA to PB; the other is to keep the PA of the camera output image unchanged, and resample the image data of the resolution PA Obtain image data with a resolution of PB.
  • the purpose of the two is to obtain the image data of the new resolution PB, but the realization method is different.
  • the switching information can be included in the communication protocol part and sent as bit stream data, or it can be supplemented with the SEI information part sent in the H264 coding standard.
  • Figure 9 is a schematic structural diagram of an embodiment of the data transmission device of the present application.
  • the data transmission device of this embodiment can execute the data transmission method on the encoding side.
  • the relevant content please refer to the above data transmission method on the encoding side. I won't repeat it again.
  • the device 10 includes: a memory 11 and a processor 12; the memory 11 and the processor 12 are connected by a bus 13.
  • the processor 12 may be a micro control unit, a central processing unit, or a digital signal processor, and so on.
  • the memory 11 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk, or a mobile hard disk, etc.
  • the memory 11 is used to store a computer program; the processor 12 is used to execute the computer program and when the computer program is executed, the following steps are implemented:
  • the processor when the processor executes the computer program, it implements the following steps: acquiring second image data after re-sampling the first image data, where the second image data is image data corresponding to the first code stream data.
  • the processor executes the computer program, the following steps are implemented: if the current state includes switching the intermediate state, the first code stream data is discarded.
  • the processor executes the computer program, the following steps are implemented: if the current state includes the switching completion state, the first code stream data is sent.
  • the processor executes the computer program, the following steps are implemented: if the current state includes the switching completion state, the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data It is the image data corresponding to the first code stream data.
  • the new input image data includes the image data of the target resolution obtained by re-sampling or the image data of the target resolution directly output by the camera device.
  • the processor executes the computer program, the following steps are implemented: if the target resolution is greater than the resolution of the first image data, the first image data is up-sampled to obtain the second image data of the target resolution.
  • the processor executes the computer program, the following steps are implemented: if the target resolution is less than the resolution of the first image data, the first image data is down-sampled to obtain the second image data of the target resolution.
  • the first encoder and the second encoder are the same encoder.
  • the target resolution matches the quality of the data transmission channel.
  • the processor when the processor executes the computer program, it implements the following steps: generating and sending switching information, the switching information includes a synchronous switching identifier and a target resolution.
  • the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
  • the switching resolution state identifier includes the identifier of the state before the switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
  • the switching information is packaged in the code stream header in the form of a communication protocol, and the first code stream data including the switching information is generated and sent.
  • the processor when the processor executes the computer program, it implements the following steps: generating and sending the supplementary enhancement information SEI including the switching information.
  • the processor when the processor executes the computer program, it implements the following steps: generating and sending switching information according to the switching instruction.
  • the processor executes the computer program, the following steps are implemented: when it is detected that the quality of the data transmission channel does not meet the preset condition, a switching instruction is generated, and the switching instruction includes a target resolution matching the quality of the data transmission channel.
  • the processor when the processor executes the computer program, it implements the following steps: when detecting that the quality of the data transmission channel is greater than or equal to the first preset channel quality requirement, it generates a first switching instruction, wherein the target resolution of the first switching instruction is greater than the first switching instruction. A resolution of image data; when it is detected that the channel quality is less than the second preset channel quality requirement, a second switching instruction is generated, wherein the target resolution of the second switching instruction is less than the resolution of the first image data.
  • the first preset channel quality requirement is the same as the second preset channel quality requirement.
  • the preset channel quality requirement includes a preset channel quality threshold T and a preset duration of t seconds; when the processor executes the computer program, the following steps are implemented : When it is detected that the quality of the data transmission channel for t seconds is greater than or equal to the preset channel quality threshold T, then the first switching instruction is generated; when it is detected that the quality of the data transmission channel for t seconds is less than the preset channel quality threshold T, then the second switch is generated. Switch instructions.
  • the processor executes the computer program, the following steps are implemented: receiving an input user instruction, where the user instruction includes the target resolution; and generating a switching instruction according to the user instruction.
  • This application also provides a data transmission device, which is a data transmission device on the decoding side. It should be noted that the device in this embodiment can execute the steps in the data transmission method on the decoding side as described above. For detailed descriptions of related content, please refer to The above-mentioned data transmission method at the decoding end will not be repeated here.
  • the device includes: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and when the computer program is executed, the following steps are implemented:
  • the processor when the processor executes the computer program, it implements the following steps: acquiring fifth image data after re-sampling the third image data, where the fifth image data is image data corresponding to the second code stream data.
  • the processor executes the computer program, the following steps are implemented: if the current state includes the switching intermediate state, the fourth image data is discarded.
  • the processor executes the computer program, the following steps are implemented: if the current state includes the switching completion state, the first code stream data is received.
  • the processor executes the computer program, the following steps are implemented: if the current state includes the switching completed state, the fifth image data is used as the reference image data of the new code stream data of the new input image data, and the new input image data is new The code stream data is decoded, and the fifth image data is the image data corresponding to the second code stream data.
  • the processor executes the computer program, the following steps are implemented: if the target resolution is greater than the resolution of the third image data, the third image data is up-sampled to obtain the fifth image data of the target resolution.
  • the processor executes the computer program, the following steps are implemented: if the target resolution is less than the resolution of the third image data, the third image data is down-sampled to obtain the fifth image data of the target resolution.
  • the first decoder and the second decoder are the same decoder.
  • the target resolution matches the quality of the data transmission channel.
  • the processor executes the computer program, the following steps are implemented: receiving switching information, the switching information includes a synchronous switching identifier and a target resolution.
  • the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
  • the switching resolution state identifier includes the identifier of the state before the switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
  • the synchronization identifier includes the frame number statistical information identifier at the target resolution after the switching.
  • the processor when the processor executes the computer program, it implements the following steps: receiving the first code stream data including the switching information.
  • the processor when the processor executes the computer program, it implements the following steps: receiving the supplementary enhancement information SEI including the switching information.
  • the present application also provides a data transmission system, which includes a data transmission device at any encoding end and a data transmission device at any decoding end as described above.
  • a data transmission system which includes a data transmission device at any encoding end and a data transmission device at any decoding end as described above.
  • the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor realizes the data transmission method at any one of the encoding ends.
  • a computer-readable storage medium which stores a computer program, and when the computer program is executed by a processor, the processor realizes the data transmission method at any one of the encoding ends.
  • the computer-readable storage medium may be an internal storage unit of the data transmission device at the encoding end, such as a hard disk or memory of the data transmission device at the encoding end.
  • the computer-readable storage medium may also be an external storage device of the data transmission device at the encoding end, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the data transmission device at the encoding end.
  • the computer-readable storage medium stores a computer program.
  • the processor realizes the data transmission method at any one of the decoding ends.
  • the relevant content please refer to the data transmission method section of the above-mentioned decoder, which will not be repeated here.
  • the computer-readable storage medium may be an internal storage unit of any of the foregoing data transmission devices at the decoding end, such as a hard disk or memory of the data transmission device at the decoding end.
  • the computer-readable storage medium may also be an external storage device of the data transmission device at the decoding end, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the data transmission device at the decoding end.

Abstract

A data transmission method, device, system and a storage medium, wherein the method comprises: obtaining a target resolution (S101); obtaining first image data after a first encode is reconstructed (S102); obtaining first code stream data encoded by a second encoder, wherein the first code stream data corresponds to the target resolution (S103).

Description

数据传输方法、装置、系统及存储介质Data transmission method, device, system and storage medium 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种数据传输方法、装置、系统及存储介质。This application relates to the field of communication technology, and in particular to a data transmission method, device, system and storage medium.
背景技术Background technique
在视频编码序列中,主要有三种编码帧:I帧、P帧、B帧。I帧不参考其它图像帧,因此通常在码流状态切换时如切换分辨率等,先发送一个I帧,保证后续视频帧解码时参考的视频帧是正确且有效的。In a video coding sequence, there are mainly three types of coding frames: I frames, P frames, and B frames. The I frame does not refer to other image frames, so usually when the code stream state is switched, such as switching the resolution, an I frame is sent first to ensure that the referenced video frame is correct and valid when the subsequent video frame is decoded.
在实时视频无线传输领域,无线信道是复杂多变的非稳定通信条件,在信道质量变差后,一方面编码端发送的码流数据往往不能及时保质送到解码端,可能出现错包丢包的情况,另一方面可以采用降分辨率传输的策略。In the field of real-time video wireless transmission, the wireless channel is a complex, changeable and unstable communication condition. After the channel quality deteriorates, on the one hand, the bit stream data sent by the encoding end cannot be sent to the decoding end in a timely manner, and error packets may occur. On the other hand, a reduced-resolution transmission strategy can be adopted.
目前在信道质量变差后,均不能及时保证编码端和解码端参考帧的正确有效。At present, after the channel quality deteriorates, it is impossible to guarantee the correctness and validity of the reference frames at the encoding end and the decoding end in time.
发明内容Summary of the invention
基于此,本申请提供一种数据传输方法、数据传输装置、数据传输系统及存储介质。Based on this, this application provides a data transmission method, a data transmission device, a data transmission system, and a storage medium.
第一方面,本申请提供了一种数据传输方法,包括:In the first aspect, this application provides a data transmission method, including:
获取目标分辨率;Obtain the target resolution;
获取第一编码器重建后的第一图像数据;Acquiring the first image data reconstructed by the first encoder;
获取第二编码器编码后的第一码流数据,所述第一码流数据对应目标分辨率。Obtain the first code stream data encoded by the second encoder, where the first code stream data corresponds to the target resolution.
第二方面,本申请提供了一种数据传输方法,包括:In the second aspect, this application provides a data transmission method, including:
获取目标分辨率;Obtain the target resolution;
获取第一解码器重建后的第三图像数据;Acquiring the third image data reconstructed by the first decoder;
获取第三编码器编码后的第二码流数据,所述第二码流数据对应目标分辨率;Acquiring second code stream data encoded by the third encoder, where the second code stream data corresponds to the target resolution;
获取第二解码器对所述第二码流数据解码后的第四图像数据。Obtain the fourth image data after the second decoder decodes the second code stream data.
第三方面,本申请提供了一种数据传输装置,所述装置包括:存储器和处理器;In a third aspect, the present application provides a data transmission device, the device includes: a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
获取目标分辨率;Obtain the target resolution;
获取第一编码器重建后的第一图像数据;Acquiring the first image data reconstructed by the first encoder;
获取第二编码器编码后的第一码流数据,所述第一码流数据对应目标分辨率。Obtain the first code stream data encoded by the second encoder, where the first code stream data corresponds to the target resolution.
第四方面,本申请提供了一种数据传输装置,所述装置包括:存储器和处理器;In a fourth aspect, the present application provides a data transmission device, the device includes: a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store a computer program;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
获取目标分辨率;Obtain the target resolution;
获取第一解码器重建后的第三图像数据;Acquiring the third image data reconstructed by the first decoder;
获取第三编码器编码后的第二码流数据,所述第二码流数据对应目标分辨率;Acquiring second code stream data encoded by the third encoder, where the second code stream data corresponds to the target resolution;
获取第二解码器对所述第二码流数据解码后的第四图像数据。Obtain the fourth image data after the second decoder decodes the second code stream data.
第五方面,本申请提供一种数据传输系统,所述系统包括如上第三方面所述的数据传输装置和如上第四方面所述的数据传输装置。In a fifth aspect, the present application provides a data transmission system, which includes the data transmission device described in the third aspect and the data transmission device described in the fourth aspect.
第六方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上第一方面所述的数据传输方法。In a sixth aspect, the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor realizes the data described in the first aspect. Transmission method.
第七方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介 质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如上第二方面所述的数据传输方法。In a seventh aspect, the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor realizes the data described in the second aspect above. Transmission method.
本申请实施例提供了一种数据传输方法、装置、系统及存储介质,数据传输发送端(编码端):获取目标分辨率;获取第一编码器重建后的第一图像数据;获取第二编码器编码后的对应目标分辨率的第一码流数据;由于编码端在获取目标分辨率后,先获取重建后的第一图像数据,相当于模拟解码端解码后的图像数据,第一图像数据与解码端解码后的图像数据匹配,第一图像数据能够作为后续图像数据的参考图像数据的基础图像数据,通过这种方式,能够及时为后续图像数据提供正确有效的参考图像数据,特别是能够及时为后续分辨率改变后的图像数据进行编码提供正确有效的参考图像数据提供支持。数据传输接收端(解码端):获取目标分辨率;获取第一解码器重建后的第三图像数据;获取第三编码器编码后的对应目标分辨率的第二码流数据;获取第二解码器对所述第二码流数据解码后的第四图像数据;由于解码端在获取目标分辨率后,先获取重建后的第三图像数据,第三图像数据能够作为后续图像数据的参考图像数据的基础图像数据,通过这种方式,能够及时为后续图像数据提供正确有效的参考图像数据提供支持,特别是能够及时为后续分辨率改变后的图像数据进行解码提供正确有效的参考图像数据提供支持,在信道质量变差的情况下,不需要编码端重新发送完整的、大码率的参考图像数据的码流数据,解码端也能够及时获得正确有效的参考图像数据,从而能够为保证解码后图像质量提供支持;由于解码端模拟编码端对应目标分辨率的编码过程并进行解码,通过这种方式,能够为保证解码端与编码端无缝对接提供技术支持。由于编码端和解码端均各自获取重建后的第一图像数据、第三图像数据,第一图像数据和第三图像数据匹配,通过这种方式,能够为在后续需要纠错时编码端仅向解码端发生纠错帧提供技术支持。The embodiments of the present application provide a data transmission method, device, system and storage medium. The data transmission sending end (encoding end): obtains the target resolution; obtains the first image data reconstructed by the first encoder; obtains the second code The first code stream data corresponding to the target resolution after encoding by the encoder; since the encoding end first obtains the reconstructed first image data after obtaining the target resolution, it is equivalent to the image data decoded by the analog decoding end, the first image data Matching with the decoded image data at the decoding end, the first image data can be used as the basic image data of the reference image data of the subsequent image data. In this way, correct and effective reference image data can be provided for the subsequent image data in time, especially Provide correct and effective reference image data to provide support for encoding the image data after the subsequent resolution change in time. Data transmission receiving end (decoding end): Obtain the target resolution; Obtain the third image data reconstructed by the first decoder; Obtain the second code stream data corresponding to the target resolution encoded by the third encoder; Obtain the second decoding The fourth image data after the decoder decodes the second code stream data; since the decoder first obtains the reconstructed third image data after obtaining the target resolution, the third image data can be used as reference image data for subsequent image data In this way, it can provide correct and effective reference image data support for subsequent image data in a timely manner, in particular, it can provide correct and effective reference image data for decoding the subsequent image data after the resolution is changed in time. In the case of poor channel quality, there is no need to retransmit the complete, large-rate reference image data bit stream data at the encoding end, and the decoding end can also obtain correct and effective reference image data in time, thereby ensuring that the decoded Image quality provides support; since the decoding end simulates the encoding process of the encoding end corresponding to the target resolution and performs decoding, in this way, technical support can be provided to ensure the seamless connection between the decoding end and the encoding end. Since the encoding end and the decoding end both obtain the reconstructed first image data and third image data, the first image data and the third image data are matched. In this way, the encoding end can only send the Provide technical support for error-corrected frames at the decoding end.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
附图说明Description of the drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要 使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请数据传输方法一实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a data transmission method according to the present application;
图2是本申请数据传输方法另一实施例的流程示意图;2 is a schematic flowchart of another embodiment of the data transmission method of the present application;
图3是本申请数据传输方法又一实施例的流程示意图;FIG. 3 is a schematic flowchart of another embodiment of the data transmission method of the present application;
图4是本申请数据传输方法又一实施例的流程示意图;4 is a schematic flowchart of another embodiment of the data transmission method of the present application;
图5是本申请数据传输方法又一实施例的流程示意图FIG. 5 is a schematic flowchart of another embodiment of the data transmission method of the present application
图6是本申请数据传输方法一应用在切换分辨率前发送端和接收端的流程框图;Fig. 6 is a flow diagram of the sending end and the receiving end of the first application of the data transmission method of this application before the resolution is switched;
图7是图6的应用在切换分辨率的切换过程中发送端和接收端的流程框图;FIG. 7 is a flowchart of the sending end and the receiving end during the switching process of the switching resolution of the application of FIG. 6;
图8是图6的应用在分辨率切换完成后发送端和接收端的流程框图;Fig. 8 is a flow chart of the sending end and the receiving end of the application of Fig. 6 after the resolution switching is completed;
图9是本申请数据传输装置一实施例的结构示意图。FIG. 9 is a schematic structural diagram of an embodiment of a data transmission device of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is only an example, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
在视频编码序列中,主要有三种编码帧:I帧、P帧、B帧。I帧不参考其它图像帧,通常在码流状态切换时,先发送一个I帧,保证后续视频帧解码时参考视频帧是正确且有效的。在实时视频无线传输领域,无线信道是复杂多变的非稳定通信条件,在信道质量变差后,不能及时保证编码端和解码端参考视频帧的正确有效。In a video coding sequence, there are mainly three types of coding frames: I frames, P frames, and B frames. The I frame does not refer to other image frames. Usually, when the code stream state is switched, an I frame is sent first to ensure that the reference video frame is correct and effective when the subsequent video frame is decoded. In the field of real-time video wireless transmission, the wireless channel is a complex, changeable and unstable communication condition. After the channel quality deteriorates, the correct and effective reference video frames of the encoder and decoder cannot be guaranteed in time.
本申请实施例数据传输发送端(编码端):获取目标分辨率;获取第一编 码器重建后的第一图像数据;获取第二编码器编码后的对应目标分辨率的第一码流数据;由于编码端在获取目标分辨率后,先获取重建后的第一图像数据,相当于模拟解码端解码后的图像数据,第一图像数据与解码端解码后的图像数据匹配,第一图像数据能够作为后续图像数据的参考图像数据的基础图像数据,通过这种方式,能够及时为后续图像数据提供正确有效的参考图像数据,特别是能够及时为后续分辨率改变后的图像数据进行编码提供正确有效的参考图像数据提供支持,例如在第一图像数据的基础上进行重采样。数据传输接收端(解码端):获取目标分辨率;获取第一解码器重建后的第三图像数据;获取第三编码器编码后的对应目标分辨率的第二码流数据;获取第二解码器对所述第二码流数据解码后的第四图像数据;由于解码端在获取目标分辨率后,先获取重建后的第三图像数据,第三图像数据能够作为后续图像数据的参考图像数据的基础图像,通过这种方式,能够及时为后续图像数据提供正确有效的参考图像数据提供支持,特别是能够及时为后续分辨率改变后的图像数据进行解码提供正确有效的参考图像数据提供支持,在信道质量变差的情况下,不需要编码端重新发送完整的、大码率的参考数据数据的码流数据,解码端也能够及时获得正确有效的参考图像数据,从而能够为保证解码后图像质量提供支持;由于解码端模拟编码端对应目标分辨率的编码过程并进行解码,通过这种方式,能够为保证解码端与编码端无缝对接提供技术支持。由于编码端和解码端均各自获取重建后的第一图像数据、第三图像数据,第一图像数据和第三图像数据匹配,同时解码端模拟编码端的编码过程并进行解码,通过这种方式,能够为在后续需要纠错时编码端仅向解码端发生纠错帧提供技术支持。The data transmission sending end (encoding end) of the embodiment of the present application: obtains the target resolution; obtains the first image data reconstructed by the first encoder; obtains the first code stream data corresponding to the target resolution encoded by the second encoder; Since the encoding end first obtains the reconstructed first image data after acquiring the target resolution, which is equivalent to the image data decoded by the analog decoding end. The first image data matches the decoded image data of the decoding end, and the first image data can be As the basic image data of the reference image data of the subsequent image data, in this way, it can provide correct and effective reference image data for the subsequent image data in time, especially the correct and effective image data for the subsequent image data after the resolution is changed. Provide support for the reference image data, such as resampling on the basis of the first image data. Data transmission receiving end (decoding end): Obtain the target resolution; Obtain the third image data reconstructed by the first decoder; Obtain the second code stream data corresponding to the target resolution encoded by the third encoder; Obtain the second decoding The fourth image data after the decoder decodes the second code stream data; since the decoder first obtains the reconstructed third image data after obtaining the target resolution, the third image data can be used as reference image data for subsequent image data In this way, it can provide correct and effective reference image data support for subsequent image data in a timely manner, in particular, it can provide correct and effective reference image data support for the subsequent decoding of image data after the resolution is changed in time, In the case of poor channel quality, the encoder does not need to retransmit the complete, large-rate reference data stream data, and the decoder can also obtain correct and effective reference image data in time, thereby ensuring the decoded image Quality support; since the decoding end simulates the encoding process of the encoding end corresponding to the target resolution and performs decoding, in this way, technical support can be provided to ensure the seamless connection between the decoding end and the encoding end. Since the encoding end and the decoding end both obtain the reconstructed first image data and third image data, the first image data and the third image data match, and the decoding end simulates the encoding process of the encoding end and performs decoding. In this way, It can provide technical support for the encoding end to only generate error correction frames to the decoding end when the subsequent error correction is required.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
参见图1,图1是本申请数据传输方法一实施例的流程示意图,需要说明的是,本申请实施例的方法是编码端的数据传输方法。编码端的数据传输方法包括:步骤S101、步骤S102以及步骤S103。Referring to FIG. 1, FIG. 1 is a schematic flowchart of an embodiment of a data transmission method according to the present application. It should be noted that the method in the embodiment of the present application is a data transmission method at the encoding end. The data transmission method at the encoding end includes: step S101, step S102, and step S103.
步骤S101:获取目标分辨率。Step S101: Obtain a target resolution.
步骤S102:获取第一编码器重建后的第一图像数据。Step S102: Obtain the first image data reconstructed by the first encoder.
步骤S103:获取第二编码器编码后的第一码流数据,第一码流数据对应 目标分辨率。Step S103: Obtain the first code stream data encoded by the second encoder, where the first code stream data corresponds to the target resolution.
在本实施例中,目标分辨率是指当前需要编码的图像数据的分辨率。在一应用场景中,目标分辨率与数据传输信道质量匹配。数据传输信道质量可以是当前的,或预计算的。具体地,当数据传输信道质量较好时,可以提高目标分辨率,以尽可能传输大尺寸的图像,在保证图像质量的基础上尽可能提高解码端图像的尺寸;当数据传输信道质量较差时,可以降低目标分辨率,以达到编码降低输出码流,尽可能减少错包丢包,保证解码端的图像质量基本可接受。具体应用时,可以预先设置一个数据传输信道质量等级与匹配的目标分辨率之间对应关系的列表,根据当前检测到的数据传输信道质量等级确定其匹配的目标分辨率。特别地,可由编码端检测数据传输信道质量,这样可以获得对信道质量变化的及时反馈。In this embodiment, the target resolution refers to the resolution of image data that currently needs to be encoded. In an application scenario, the target resolution matches the quality of the data transmission channel. The quality of the data transmission channel can be current or pre-calculated. Specifically, when the quality of the data transmission channel is good, the target resolution can be increased to transmit as large an image as possible, and the size of the decoding end image can be increased as much as possible on the basis of ensuring the image quality; when the quality of the data transmission channel is poor At this time, the target resolution can be reduced to achieve the encoding reduction of the output code stream, reduce the error packet loss as much as possible, and ensure that the image quality of the decoding end is basically acceptable. In a specific application, a list of correspondences between the quality level of the data transmission channel and the matched target resolution can be preset, and the matched target resolution can be determined according to the currently detected quality level of the data transmission channel. In particular, the quality of the data transmission channel can be detected by the encoding end, so that timely feedback on changes in channel quality can be obtained.
第一图像数据是指根据编码原理从第一编码器中获取的重建后的图像数据。将目标分辨率对应的图像数据在第二编码器中编码后即可获得第一码流数据。第一图像数据的分辨率与目标分辨率可以相同,例如,在分辨率切换前可以相同;第一图像数据的分辨率与目标分辨率也可以不相同,例如,在分辨率切换过程中和切换完成后可以不相同。其中,第一编码器和第二编码器可以是两个独立的硬件编码器,也可以是复用同一个硬件编码器,即利用同一个硬件编码器分时编码:在某些时段作为第一编码器进行编码,在另外某些时段作为第二编码器进行编码。The first image data refers to the reconstructed image data obtained from the first encoder according to the coding principle. The first code stream data can be obtained after encoding the image data corresponding to the target resolution in the second encoder. The resolution of the first image data may be the same as the target resolution, for example, before the resolution switching; the resolution of the first image data may also be different from the target resolution, for example, during the resolution switching process and the switching It can be different after completion. Among them, the first encoder and the second encoder can be two independent hardware encoders, or multiplex the same hardware encoder, that is, use the same hardware encoder for time-sharing encoding: as the first The encoder performs encoding, and performs encoding as a second encoder in some other periods.
正常情况下,编码端获取目标分辨率后,对目标分辨率对应的图像数据进行编码后即可获得第一码流数据。但是本申请实施例获取目标分辨率后,在编码之前,还获取第一编码器重建后的第一图像数据,这相当于模拟解码端解码后的图像数据,第一图像数据与解码端解码后的图像数据匹配,第一图像数据能够作为后续图像数据的参考图像数据的基础图像数据,通过这种方式,能够保证切换分辨率后编码端的参考图像数据与解码端的参考图像数据一样,进而能够及时为后续图像数据提供正确有效的参考图像数据,特别是能够及时为后续分辨率改变后的图像数据进行编码提供正确有效的参考图像数据提供支持,从而保证解码端解码正确。Under normal circumstances, after the encoding end obtains the target resolution, the first code stream data can be obtained after encoding the image data corresponding to the target resolution. However, after obtaining the target resolution in the embodiment of this application, before encoding, it also obtains the first image data reconstructed by the first encoder, which is equivalent to simulating the image data decoded by the decoder. The first image data can be used as the basic image data of the reference image data of the subsequent image data. In this way, it can be ensured that the reference image data of the encoding end is the same as the reference image data of the decoding end after the resolution is switched, so that it can be timely Provide correct and effective reference image data for subsequent image data, in particular, provide support for correct and effective reference image data for encoding of image data after subsequent resolution changes in time, so as to ensure correct decoding at the decoder.
参见图2,在一实施例中,在切换分辨率时,为了便于编码端和解码端能 够同步切换,在正式切换前维持一个切换分辨率的切换过程中(即切换中间状态),即预先通过模拟的方式得到目标分辨率对应的图像数据,以在编码端维持一个切换分辨率的切换过程中,即在步骤S102,获取第一编码器重建后的第一图像数据之后,还可以包括:步骤S104。Referring to Figure 2, in one embodiment, when switching resolutions, in order to facilitate the synchronization of the encoding end and the decoding end, maintain a switching process of switching resolutions before the formal switching (that is, the intermediate state of the switching), that is, through Obtain the image data corresponding to the target resolution in a simulated manner, so as to maintain a switching process of switching resolutions at the encoding end, that is, after obtaining the first image data reconstructed by the first encoder in step S102, the method may further include: S104.
步骤S104:获取对第一图像数据进行重采样后的第二图像数据,第二图像数据是第一码流数据对应的图像数据。Step S104: Obtain second image data after resampling the first image data, where the second image data is image data corresponding to the first code stream data.
在本实施例中,第二图像数据的分辨率即为目标分辨率,是通过对第一图像数据进行重采样后得到的图像数据(即模拟得到)。通过编码端和解码端的重采样模块,可以保证两端在分辨率切换中输出的图像相匹配。特别地,编码端和解码端的重采样程度可以一致,以保证分辨率切换过程中图像传输的一致性。然后步骤S103是通过第二编码器对第二图像数据进行编码,得到第一码流数据。In this embodiment, the resolution of the second image data is the target resolution, which is image data obtained by re-sampling the first image data (that is, obtained by simulation). Through the re-sampling module on the encoding end and the decoding end, it is possible to ensure that the images output by the two ends in the resolution switching match. In particular, the degree of resampling at the encoding end and the decoding end can be the same to ensure the consistency of image transmission during the resolution switching process. Then, step S103 is to encode the second image data by the second encoder to obtain the first code stream data.
具体地,步骤S104可以有如下两种情况:Specifically, step S104 may have the following two situations:
第一种:若目标分辨率大于第一图像数据的分辨率,则对第一图像数据进行上采样,得到目标分辨率的第二图像数据。The first type: if the target resolution is greater than the resolution of the first image data, the first image data is up-sampled to obtain the second image data of the target resolution.
下采样(subsampled),也称为缩小图像或降采样(downsampled),其主要目的有两个:(1)使得图像符合显示区域的大小;(2)生成对应图像的缩略图,而缩略图相比原图像,能够去除冗余,编码后传输数据时能够减少占用带宽,例如在信道质量下降时,通过下采样的方式,能够去除冗余,编码后传输数据时能够尽可能减少丢包错包,尽可能保障解码端的图像质量。Downsampling (subsampled), also known as reduced image or downsampling (downsampled), has two main purposes: (1) Make the image fit the size of the display area; (2) Generate a thumbnail of the corresponding image, and the thumbnail is relative Compared with the original image, the redundancy can be removed, and the occupied bandwidth can be reduced when the data is transmitted after encoding. For example, when the channel quality is degraded, the redundancy can be removed by down-sampling, and the packet loss and error packet can be minimized when the data is transmitted after encoding. , As far as possible to ensure the image quality of the decoding end.
下采样原理:对于一幅图像I尺寸为M*N,对其进行s倍下采样,即得到(M/s)*(N/s)尺寸的分辨率图像,当然s应该是M和N的公约数才行,如果考虑的是矩阵形式的图像,就是把原始图像s*s窗口内的图像变成一个像素,这个像素点的值就是窗口内所有像素的均值。Down-sampling principle: For an image I with a size of M*N, perform s times downsampling to obtain a resolution image of (M/s)*(N/s) size. Of course, s should be M and N The common divisor works. If you consider the image in matrix form, the image in the s*s window of the original image is turned into a pixel, and the value of this pixel is the mean value of all pixels in the window.
第二种:若目标分辨率小于第一图像数据的分辨率,则对第一图像数据进行下采样,得到目标分辨率的第二图像数据。The second type: if the target resolution is less than the resolution of the first image data, down-sampling the first image data to obtain the second image data of the target resolution.
上采样(upsampling),也称为放大图像或图像插值(interpolating),其主要目的是放大采样前的图像(被采样图像),从而可以显示在更高分辨率的显示设备上,或者得到大尺寸的图像。Upsampling (upsampling), also called enlarged image or image interpolation (interpolating), its main purpose is to enlarge the image before sampling (sampled image), so that it can be displayed on a higher resolution display device, or get a large size Image.
上采样原理:图像放大几乎都是采用内插值方法,即在原有图像像素的基础上在像素点之间采用合适的插值算法插入新的元素。Up-sampling principle: Image magnification almost always uses interpolation methods, that is, on the basis of the original image pixels, a suitable interpolation algorithm is used to insert new elements between pixels.
无论缩放图像(下采样)还是放大图像(上采样),采样方式有很多种。如最近邻插值、双线性插值、均值插值、中值插值等方法。There are many ways to sample, whether you zoom in (downsampling) or zoom in (upsampling). Such as nearest neighbor interpolation, bilinear interpolation, mean interpolation, median interpolation and other methods.
其中,步骤S103中编码得到的第一码流数据是否发送,取决于编码端当前所处状态:Wherein, whether the first code stream data obtained by encoding in step S103 is sent depends on the current state of the encoding end:
(1)若当前状态包括切换中间状态,则丢弃第一码流数据。(1) If the current state includes the switching intermediate state, discard the first code stream data.
切换中间状态是指切换分辨率的切换过程中,还没有正式完成分辨率切换,因此,此时的第一码流数据不需要发送,将第一码流数据丢弃,能够避免第一码流数据占用存储空间。在一应用中,编码端的切换中间状态包括保持不同分辨率编码的状态。Switching the intermediate state means that the resolution switching has not been officially completed during the switching process of the resolution. Therefore, the first bit stream data at this time does not need to be sent, and the first bit stream data is discarded, which can avoid the first bit stream data. Take up storage space. In an application, the switching intermediate state of the encoding end includes the state of maintaining encoding with different resolutions.
(2)若当前状态包括切换完成状态,则发送第一码流数据。(2) If the current status includes the switching completion status, send the first code stream data.
切换完成状态是指正式完成分辨率切换,此时发送第一码流数据至解码端,一方面能够保证完成分辨率切换,另一方面能够保证与解码端的同步切换。在一应用中,编码端的切换完成状态包括保持切换后的分辨率编码的状态。The switching completion state means that the resolution switching is officially completed. At this time, the first bit stream data is sent to the decoding end. On the one hand, it can ensure that the resolution switching is completed, and on the other hand, it can ensure the synchronous switching with the decoding end. In an application, the switching completion state of the encoding end includes the state of maintaining the resolution encoding after switching.
在另一实施例中,若当前状态包括切换完成状态,则将第二图像数据作为新输入图像数据的参考图像数据,对新输入图像数据进行编码,第二图像数据是第一码流数据对应的图像数据。In another embodiment, if the current state includes the switching completion state, the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data corresponds to the first bitstream data. Image data.
本实施例中,第二图像数据是目标分辨率对应的图像数据,是第一码流数据对应的图像数据;其中,第二图像数据也可以是对第一图像数据进行重采样后的图像数据,这样可以保证两端在切换分辨率过程中输出的图像及码流一致。切换完成后,输入图像数据的分辨率即为目标分辨率,当需要对输入图像数据编码为除I帧外的其它视频帧(例如:P帧)时,可以将第二图像数据作为新输入图像数据的参考图像数据,对新输入图像数据进行编码。In this embodiment, the second image data is the image data corresponding to the target resolution, and is the image data corresponding to the first bitstream data; wherein, the second image data may also be the image data after the first image data is resampled. In this way, it can ensure that the images and code streams output during the resolution switching process at both ends are consistent. After the switch is completed, the resolution of the input image data is the target resolution. When the input image data needs to be encoded into other video frames (for example: P frames) other than the I frame, the second image data can be used as the new input image The reference image data of the data encodes the new input image data.
其中,新输入图像数据包括重采样得到的目标分辨率的图像数据或者通过摄像装置直接输出的目标分辨率的图像数据。也就是说,编码端输入的图像来源可以有两种方案:一种是摄像装置输出图像保持分辨率A不变,对分辨率A的图像进行重采样得到分辨率B的图像;另一种是切换摄像装置,输入图像由原来分辨率A的图像变为分辨率B的图像;此两种方案目的均是:得到新 分辨率B的图像,只是实现方式有所不同。Wherein, the new input image data includes the image data of the target resolution obtained by re-sampling or the image data of the target resolution directly output by the camera device. That is to say, the image source input by the encoding end can have two schemes: one is that the output image of the camera device keeps the resolution A unchanged, and the image of resolution A is resampled to obtain the image of resolution B; the other is Switching the camera device, the input image is changed from the original resolution A image to the resolution B image; the purpose of these two solutions is to obtain an image of the new resolution B, but the implementation is different.
为了使解码端能够与编码端同步切换至目标分辨率,在正式切换前需要向解码端发送切换信息,以使解码端获取到目标分辨率等相关切换信息,即该方法还包括:步骤S105。In order to enable the decoding end to switch to the target resolution synchronously with the encoding end, the switching information needs to be sent to the decoding end before the formal switching, so that the decoding end can obtain relevant switching information such as the target resolution. That is, the method further includes: step S105.
步骤S105:生成并发送切换信息,切换信息包括同步切换标识和目标分辨率。Step S105: Generate and send switching information, where the switching information includes the synchronization switching identifier and the target resolution.
其中,同步切换标识包括切换分辨率状态标识和同步标识。Among them, the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
在一实施方式中,切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。In an embodiment, the switching resolution state identifier includes the identifier of the state before switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
在一实施方式中,同步标识包括切换后的目标分辨率下帧号统计信息标识。In an embodiment, the synchronization identifier includes a frame number statistical information identifier at the target resolution after switching.
比如预先定义切换信息为:切分辨率状态标识(status,8bit)、新分辨率下帧号统计信息标识(fidx,32bit)以及切换后的目标分辨率大小(width,16bit;height,16bit);status=0表示未切换(即切换前状态),status=1表示切换中(即切换中间状态),status=2表示切换后(即切换完成状态),解码端接收到切换信息后,如果检测到切换信息中切分辨率状态位status为1则进入切换中间状态,检测到切换信息中切分辨率状态位为2则进入切换完成状态。如果从第N帧开始将分辨率1920x1080切换到目标分辨率1280x720,那么第N-1帧的相关切换信息可以为(status=0,fidx=N-1,width=1920,height=1080),表示第N-1帧处于切换前状态,第N帧切换信息可以为(status=1,fidx=N,width=1280,height=720),表示第N帧处于切换中间状态。示意性地,在分辨率切换中间状态特别是重采样过程中,两端也会单向或双向的发送同步切换标识,以保证解码端重采样模块输出和编码端重采样输出一致。For example, the pre-defined switching information is: the switch resolution status identifier (status, 8bit), the frame number statistical information identifier under the new resolution (fidx, 32bit), and the target resolution size after switching (width, 16bit; height, 16bit); status=0 means no switching (that is, status before switching), status=1 means switching (that is, switching intermediate status), status=2 means after switching (that is, switching completion status), after the decoder receives the switching information, if it detects The switch resolution status bit status of the switching information is 1 to enter the switching intermediate state, and it is detected that the switch resolution status bit of the switching information is 2 to enter the switching completion state. If the resolution 1920x1080 is switched to the target resolution 1280x720 from the Nth frame, the related switching information of the N-1th frame can be (status=0, fidx=N-1, width=1920, height=1080), which means The N-1th frame is in the state before switching, and the switching information of the Nth frame may be (status=1, fidx=N, width=1280, height=720), which indicates that the Nth frame is in the intermediate state of switching. Illustratively, in the intermediate state of resolution switching, especially during the re-sampling process, both ends will also send a synchronization switching flag in one or two directions to ensure that the output of the re-sampling module at the decoding end is consistent with the re-sampling output at the encoding end.
其中切换信息比较容易实现的方式包括:切换信息既可以包含在通信协议中也可以补充在补充增强信息SEI(Supplemental Enhancement Information)中,即步骤S105中切换信息的发送方式可以有以下容易实现的两种方式:The easier ways to implement the handover information include: the handover information can be included in the communication protocol or supplemented in the Supplemental Enhancement Information (SEI), that is, the method for sending the handover information in step S105 can be easily implemented in the following two ways: Ways:
一种是:将切换信息以通信协议形式包装在码流头部,生成并发送包括切换信息的第一码流数据。One is: the switching information is packaged in the code stream header in the form of a communication protocol, and the first code stream data including the switching information is generated and sent.
另一种是:生成并发送包括切换信息的补充增强信息SEI。The other is to generate and send supplementary enhancement information SEI including handover information.
通常情况下,触发步骤S105执行的是切换指令,即根据切换指令生成并发送切换信息。具体地,切换指令的生成可以是编码端自动生成(例如检测到数据传输信道质量下降),也可以是根据用户指令生成,具体说明如下:Normally, step S105 is triggered to execute a switching instruction, that is, switching information is generated and sent according to the switching instruction. Specifically, the generation of the switching instruction may be automatically generated by the encoding end (for example, when the quality of the data transmission channel is detected to be degraded), or may be generated according to a user instruction. The specific description is as follows:
在一应用中,该方法还包括:步骤S106。In an application, the method further includes: step S106.
步骤S106:当检测到数据传输信道质量不满足预设条件时,生成切换指令,切换指令包括与数据传输信道质量匹配的目标分辨率。Step S106: When it is detected that the quality of the data transmission channel does not meet the preset condition, a switching instruction is generated, and the switching instruction includes a target resolution matching the quality of the data transmission channel.
其中,步骤S106当检测到数据传输信道质量不满足预设条件时,生成切换指令,具体可以包括:子步骤S1061、子步骤S1062和子步骤S1063。Wherein, in step S106, when it is detected that the quality of the data transmission channel does not meet the preset condition, the switching instruction is generated, which may specifically include: sub-step S1061, sub-step S1062, and sub-step S1063.
子步骤S1061:检测并判断数据传输信道质量与第一预设信道质量要求、第二预设信道质量要求的大小。Sub-step S1061: Detect and determine the magnitude of the data transmission channel quality, the first preset channel quality requirement, and the second preset channel quality requirement.
子步骤S1062:当检测到数据传输信道质量大于或等于第一预设信道质量要求,则生成第一切换指令,其中第一切换指令的目标分辨率大于第一图像数据的分辨率。Sub-step S1062: When it is detected that the quality of the data transmission channel is greater than or equal to the first preset channel quality requirement, a first switching instruction is generated, wherein the target resolution of the first switching instruction is greater than the resolution of the first image data.
子步骤S1063:当检测到信道质量小于第二预设信道质量要求,则生成第二切换指令,其中第二切换指令的目标分辨率小于第一图像数据的分辨率。Sub-step S1063: When it is detected that the channel quality is less than the second preset channel quality requirement, a second switching instruction is generated, wherein the target resolution of the second switching instruction is less than the resolution of the first image data.
进一步,第一预设信道质量要求与第二预设信道质量要求相同,均为预设信道质量要求,预设信道质量要求包括预设信道质量阈值T和预设持续时间t秒。此时子步骤S1062具体可以包括:当检测到数据传输信道质量持续t秒大于或等于预设信道质量阈值T,则生成第一切换指令;子步骤S1063具体可以包括:当检测到数据传输信道质量持续t秒小于预设信道质量阈值T,则生成第二切换指令。第一预设信道质量要求与第二预设信道质量要求不相同时,也可进一步使检测到数据传输信道质量小于第一预设信道质量要求,且大于或等于第二预设信道质量要求时,分辨率保持不变。Further, the first preset channel quality requirement is the same as the second preset channel quality requirement, and both are preset channel quality requirements. The preset channel quality requirement includes a preset channel quality threshold T and a preset duration of t seconds. At this time, the sub-step S1062 may specifically include: when it is detected that the quality of the data transmission channel is greater than or equal to the preset channel quality threshold T for t seconds, generating a first handover instruction; the sub-step S1063 may specifically include: when the quality of the data transmission channel is detected If the duration of t seconds is less than the preset channel quality threshold T, a second switching instruction is generated. When the first preset channel quality requirement is different from the second preset channel quality requirement, it can also be detected that the data transmission channel quality is less than the first preset channel quality requirement and greater than or equal to the second preset channel quality requirement , The resolution remains unchanged.
在另一应用下,该方法还包括:接收输入的用户指令,用户指令包括目标分辨率;根据用户指令生成切换指令。通过该方式,可以根据用户的实际需求相应匹配合适的目标分辨率,进一步提高用户体验。In another application, the method further includes: receiving an input user instruction, where the user instruction includes the target resolution; and generating a switching instruction according to the user instruction. In this way, a suitable target resolution can be matched according to the actual needs of the user, and the user experience can be further improved.
参见图3,图3是本申请数据传输方法又一实施例的流程示意图,需要说明的是,本申请实施例的方法是解码端的数据传输方法,有关与编码端关联的内容请参见上述编码端的数据传输方法部分,在此不再赘叙。下面具体介绍与 编码端没有关联或者不一样的内容。Refer to Figure 3, which is a schematic flow diagram of another embodiment of the data transmission method of the present application. It should be noted that the method of the embodiment of the present application is a data transmission method of the decoding end. For the content associated with the encoding end, please refer to the above-mentioned encoding end. The part of the data transmission method will not be repeated here. The following specifically introduces the content that is not related to or different from the encoding end.
解码端的数据传输方法包括:步骤S201、步骤S202、步骤S203以及步骤S204。The data transmission method at the decoding end includes: step S201, step S202, step S203, and step S204.
步骤S201:获取目标分辨率。Step S201: Obtain the target resolution.
步骤S202:获取第一解码器重建后的第三图像数据。Step S202: Obtain the third image data reconstructed by the first decoder.
步骤S203:获取第三编码器编码后的第二码流数据,第二码流数据对应目标分辨率。Step S203: Obtain the second code stream data encoded by the third encoder, where the second code stream data corresponds to the target resolution.
步骤S204:获取第二解码器对第二码流数据解码后的第四图像数据。Step S204: Obtain fourth image data after the second decoder decodes the second code stream data.
第三图像数据是指根据解码原理(与编码原理对应)从第一解码器中获取的重建后的图像数据。根据编码解码原理可知解码端的第三图像数据与编码端的第一图像数据是匹配的。将目标分辨率对应的图像数据在第三编码器中编码即可获得第二码流数据,通过第二解码器对第二码流数据进行解码即可得到第四图像数据。第三图像数据的分辨率与目标分辨率可以相同,例如,在分辨率切换前可以相同;第三图像数据的分辨率与目标分辨率也可以不相同,例如,在分辨率切换过程中和切换完成后可以不相同。其中,第一解码器和第二解码器可以是两个独立的硬件解码器,也可以是复用同一个硬件解码器,即利用同一个硬件解码器分时解码:在某些时段作为第一解码器进行解码,在另外某些时段作为第二解码器进行解码。The third image data refers to the reconstructed image data obtained from the first decoder according to the decoding principle (corresponding to the encoding principle). According to the encoding and decoding principle, it can be known that the third image data at the decoding end matches the first image data at the encoding end. The second code stream data can be obtained by encoding the image data corresponding to the target resolution in the third encoder, and the fourth image data can be obtained by decoding the second code stream data by the second decoder. The resolution of the third image data and the target resolution can be the same, for example, before the resolution switching; the resolution of the third image data and the target resolution can also be different, for example, during the resolution switching process and the switching It can be different after completion. Among them, the first decoder and the second decoder can be two independent hardware decoders, or the same hardware decoder can be multiplexed, that is, the same hardware decoder is used for time-sharing decoding: in certain periods as the first The decoder performs decoding, and performs decoding as a second decoder in some other periods.
正常情况下,解码端获取目标分辨率后,对目标分辨率对应的码流数据进行解码即可。但是本申请实施例获取目标分辨率后,获取第一解码器重建后的第三图像数据,获取第三编码器编码后的对应目标分辨率的第二码流数据,这相当于模拟编码端编码后的码流数据,然后进行解码,由于第三图像数据能够作为后续图像数据的码流数据在解码时的参考图像数据的基础图像数据,通过这种方式,能够及时为后续图像数据提供正确有效的参考图像数据,特别是能够及时为后续分辨率改变后的图像数据进行解码提供正确有效的参考图像数据提供支持。在信道质量变差的情况下,不需要编码端重新发送完整的、大码率的参考数据数据的码流数据,解码端也能够及时获得正确有效的参考图像数据,从而能够为正确解码提供支持,为保证解码后图像质量提供支持。由于解码端模拟编码端对应目标分辨率的编码过程并进行解码,通过这种方式,能够 为保证解码端与编码端无缝对接提供技术支持。由于编码端和解码端均各自获取重建后的第一图像数据、第三图像数据,第一图像数据和第三图像数据匹配,同时解码端模拟编码端的编码过程并进行解码,通过这种方式,能够为在后续需要纠错时编码端仅向解码端发生纠错帧提供技术支持。Normally, after the decoder obtains the target resolution, it can decode the code stream data corresponding to the target resolution. However, after obtaining the target resolution in the embodiment of the present application, the third image data reconstructed by the first decoder is obtained, and the second code stream data corresponding to the target resolution encoded by the third encoder is obtained, which is equivalent to analog encoding at the encoding end. The latter bitstream data is then decoded. Since the third image data can be used as the basic image data of the reference image data when decoding the bitstream data of the subsequent image data, in this way, it can provide correct and effective follow-up image data in time. In particular, it can provide correct and effective reference image data to provide support in time for the subsequent decoding of the image data after the resolution has been changed. In the case of poor channel quality, the encoder does not need to retransmit the complete, large-rate reference data stream data, and the decoder can also obtain correct and effective reference image data in time, thereby providing support for correct decoding , Provide support to ensure the image quality after decoding. Since the decoding end simulates the encoding process of the encoding end corresponding to the target resolution and performs decoding, in this way, technical support can be provided to ensure seamless connection between the decoding end and the encoding end. Since the encoding end and the decoding end both obtain the reconstructed first image data and third image data, the first image data and the third image data match, and the decoding end simulates the encoding process of the encoding end and performs decoding. In this way, It can provide technical support for the encoding end to only generate error correction frames to the decoding end when the subsequent error correction is required.
参见图4,在一实施例中,在切换分辨率时,为了便于编码端和解码端能够同步切换,在正式切换前维持一个切换分辨率的切换过程中(即切换中间状态),即预先通过模拟的方式得到目标分辨率对应的图像数据,以在解码端维持一个切换分辨率的切换过程中,即在步骤S202,获取第一解码器重建后的第三图像数据之后,还包括:步骤S205。Referring to Fig. 4, in one embodiment, when switching resolutions, in order to facilitate the synchronization of the encoding end and the decoding end, maintain a switching process of switching resolutions before the formal switching (that is, the intermediate state of switching), that is, through The image data corresponding to the target resolution is obtained by simulation, so as to maintain a switching process of switching resolution at the decoding end, that is, in step S202, after obtaining the third image data reconstructed by the first decoder, the method further includes: step S205 .
步骤S205:获取对第三图像数据进行重采样后的第五图像数据,第五图像数据是第二码流数据对应的图像数据。Step S205: Obtain fifth image data after resampling the third image data, where the fifth image data is image data corresponding to the second code stream data.
在本实施例中,第五图像数据的分辨率即为目标分辨率,是通过对第三图像数据进行重采样后得到的图像数据(即模拟得到)。通过编码端和解码端的重采样模块,可以保证两端在分辨率切换中输出的图像相匹配。特别地,编码端和解码端的重采样程度可以一致,以保证分辨率切换过程中图像传输的一致性。然后步骤S203是通过第三编码器对第五图像数据进行编码,得到第二码流数据。In this embodiment, the resolution of the fifth image data is the target resolution, which is image data obtained by re-sampling the third image data (that is, obtained by simulation). Through the re-sampling module on the encoding end and the decoding end, it is possible to ensure that the images output by the two ends in the resolution switching match. In particular, the degree of resampling at the encoding end and the decoding end can be the same to ensure the consistency of image transmission during the resolution switching process. Then, step S203 is to encode the fifth image data by the third encoder to obtain the second code stream data.
具体地,步骤S205可以有如下两种情况:Specifically, step S205 may have the following two situations:
第一种:若目标分辨率大于第三图像数据的分辨率,则对第三图像数据进行上采样,得到目标分辨率的第五图像数据。The first type: if the target resolution is greater than the resolution of the third image data, the third image data is up-sampled to obtain the fifth image data of the target resolution.
第二种:若目标分辨率小于第三图像数据的分辨率,则对第三图像数据进行下采样,得到目标分辨率的第五图像数据。The second type: if the target resolution is less than the resolution of the third image data, down-sampling the third image data to obtain the fifth image data of the target resolution.
其中,步骤S204解码后得到的第四图像数据是否保留,取决于解码端当前所处状态:Wherein, whether the fourth image data obtained after decoding in step S204 is retained depends on the current state of the decoding end:
(1)若当前状态包括切换中间状态,则丢弃第四图像数据。(1) If the current state includes the switching intermediate state, discard the fourth image data.
切换中间状态是指切换分辨率的切换过程中,还没有正式完成分辨率切换,因此,此时的第四图像数据不需要保留,将第四图像数据丢弃,能够避免第四图像数据占用存储空间。在一应用中,解码端的切换中间状态包括保持不同分辨率解码的状态。The switching intermediate state means that the resolution switching has not been officially completed during the switching of the resolution. Therefore, the fourth image data does not need to be retained at this time, and the fourth image data is discarded, which can prevent the fourth image data from occupying storage space . In one application, the switching intermediate state of the decoder includes maintaining the state of decoding with different resolutions.
(2)若当前状态包括切换完成状态,则接收第一码流数据。(2) If the current state includes the switching completion state, receive the first code stream data.
切换完成状态是指正式完成分辨率切换,此时接收来自编码端的第一码流数据,一方面能够保证完成分辨率切换,另一方面能够保证与编码端的同步切换。在一应用中,解码端的切换完成状态包括保持切换后的分辨率解码的状态。The switching completion state means that the resolution switching is officially completed. At this time, the first bit stream data from the encoding end can be received. On the one hand, it can ensure the completion of the resolution switching, and on the other hand, it can ensure the synchronous switching with the encoding end. In an application, the switching completion state of the decoding end includes the state of maintaining the resolution decoding after switching.
在另一实施例中,若当前状态包括切换完成状态,则将第五图像数据作为新输入图像数据的新码流数据的参考图像数据,对新输入图像数据的新码流数据进行解码,第五图像数据是第二码流数据对应的图像数据。In another embodiment, if the current state includes the switching completion state, the fifth image data is used as the reference image data of the new code stream data of the new input image data, and the new code stream data of the new input image data is decoded. Five image data is the image data corresponding to the second code stream data.
本实施例中,第五图像数据是目标分辨率对应的图像数据,是第二码流数据对应的图像数据;其中,第五图像数据也可以是对第三图像数据进行重采样后的图像数据。切换完成后,输入图像数据的分辨率即为目标分辨率,当需要对输入图像数据对应的除I帧外的其它视频帧(例如:P帧)进行解码时,可以将第五图像数据作为新输入图像数据的参考图像数据,对新输入图像数据对应的除I帧外的其它视频帧进行解码。In this embodiment, the fifth image data is the image data corresponding to the target resolution, and is the image data corresponding to the second bit stream data; wherein, the fifth image data may also be the image data after re-sampling the third image data. . After the switch is completed, the resolution of the input image data is the target resolution. When it is necessary to decode other video frames other than the I frame (for example: P frame) corresponding to the input image data, the fifth image data can be used as the new The reference image data of the input image data decodes other video frames other than the I frame corresponding to the new input image data.
参见图5,在一实施例中,解码端在获取目标分辨率之前,还包括:步骤S206。Referring to FIG. 5, in an embodiment, before acquiring the target resolution, the decoding end further includes: step S206.
步骤S206:接收切换信息,切换信息包括同步切换标识和目标分辨率。Step S206: Receive switching information, where the switching information includes the synchronization switching identifier and the target resolution.
其中,同步切换标识包括切换分辨率状态标识和同步标识。Among them, the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
在一实施方式中,切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。In an embodiment, the switching resolution state identifier includes the identifier of the state before switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
在一实施方式中,同步标识包括切换后的目标分辨率下帧号统计信息标识。In an embodiment, the synchronization identifier includes a frame number statistical information identifier at the target resolution after switching.
比如预先定义切换信息为:切分辨率状态标识(status,8bit)、新分辨率下帧号统计信息标识(fidx,32bit)以及切换后的目标分辨率大小(width,16bit;height,16bit);status=0表示未切换(即切换前状态),status=1表示切换中(即切换中间状态),status=2表示切换后(即切换完成状态),解码端接收到切换信息后,如果检测到切换信息中切分辨率状态位status为1则进入切换中间状态,检测到切换信息中切分辨率状态位为2则进入切换完成状态。如果从第N帧开始将分辨率1920x1080切换到目标分辨率1280x720,那么第N-1帧的相关切换信息可以为(status=0,fidx=N-1,width=1920,height=1080), 表示第N-1帧处于切换前状态,第N帧切换信息可以为(status=1,fidx=N,width=1280,height=720),表示第N帧处于切换中间状态。示意性地,在分辨率切换中间状态特别是重采样过程中,两端也会单向或双向的发送同步切换标识,以保证解码端重采样模块输出和编码端重采样输出一致。For example, the pre-defined switching information is: the switch resolution status identifier (status, 8bit), the frame number statistical information identifier under the new resolution (fidx, 32bit), and the target resolution size after switching (width, 16bit; height, 16bit); status=0 means no switching (that is, status before switching), status=1 means switching (that is, switching intermediate status), status=2 means after switching (that is, switching completion status), after the decoder receives the switching information, if it detects The switch resolution status bit status of the switching information is 1 to enter the switching intermediate state, and it is detected that the switch resolution status bit of the switching information is 2 to enter the switching completion state. If the resolution 1920x1080 is switched to the target resolution 1280x720 from the Nth frame, the relevant switching information of the N-1th frame can be (status=0, fidx=N-1, width=1920, height=1080), which means The N-1th frame is in the state before switching, and the switching information of the Nth frame may be (status=1, fidx=N, width=1280, height=720), which indicates that the Nth frame is in the intermediate state of switching. Illustratively, in the intermediate state of resolution switching, especially during the re-sampling process, both ends will also send a synchronization switching flag in one or two directions to ensure that the output of the re-sampling module at the decoding end is consistent with the re-sampling output at the encoding end.
其中切换信息比较容易实现的方式包括:切换信息既可以包含在通信协议中(与码流数据一起)也可以补充在补充增强信息SEI中,即步骤S206中切换信息的接收方式可以有以下容易实现的两种方式:The easier ways to implement the switching information include: the switching information can be included in the communication protocol (together with the code stream data) or supplemented in the supplementary enhancement information SEI, that is, the switching information receiving method in step S206 can be easily implemented in the following ways Two ways:
一种是:接收包括切换信息的第一码流数据。第一码流数据来自编码端。另一种是:接收包括切换信息的补充增强信息SEI。One is: receiving the first code stream data including switching information. The first stream data comes from the encoding end. The other is: receiving supplementary enhancement information SEI including handover information.
下面详细说明一应用中将编码端的数据传输方法和解码端的数据传输方法结合在一起的具体细节内容。The following describes in detail the specific details of an application that combines the data transmission method at the encoding end with the data transmission method at the decoding end.
请参见图6至图8,图6是本申请数据传输方法一应用在切换分辨率前发送端和接收端的流程框图,图7是图6的应用在切换分辨率的切换过程中发送端和接收端的流程框图,图8是图6的应用在分辨率切换完成后发送端和接收端的流程框图。Please refer to Figures 6 to 8. Figure 6 is a flow diagram of the sending and receiving ends of the application of the data transmission method 1 of this application before switching the resolution. Figure 7 is the sending and receiving ends of the application of Figure 6 during the switching of the resolution. Fig. 8 is a flowchart of the sending end and the receiving end of the application of Fig. 6 after the resolution switching is completed.
如图6所示,切换分辨率前编码端的第一编码器对输入图像数据(分辨率PA)进行编码发送,解码端接收码流数据SA并进行解码输出图像数据(分辨率PA)。在收到切换指令时,切换到如图7的分辨率切换中间状态。其中切换指令依据切换目的不同而有所不同,一般有两种来源:依据数据传输信道质量检测结果自动切换以及依据用户指令切换。前一种可用于传输码流自适应匹配信道带宽场景,依据信道质量检测结果,衡量是否进行分辨率切换。比如在信道质量比较好时,将输入图像按照1920x1080的尺寸进行编码发送,当检测到信道质量变差,并持续t秒低于信道质量阈值T时,启动分辨率切换,将输入图像进行下采样以1280x720的尺寸进行编码发送,借此缓解传输压力。同样地,在检测到通信条件较好的情况下,可以从较低分辨率上采样到更高分辨率进行编码发送。值得一提的是,重采样的程度可灵活配置,但要保证编码端和解码端一致。As shown in FIG. 6, the first encoder at the encoding end encodes and sends the input image data (resolution PA) before the resolution is switched, and the decoder receives the code stream data SA and decodes the output image data (resolution PA). When receiving the switching instruction, it switches to the intermediate state of resolution switching as shown in Figure 7. The switching command varies according to the switching purpose. Generally, there are two sources: automatic switching according to the data transmission channel quality detection result and switching according to user instructions. The former can be used in the scenario where the transmission code stream is adaptively matched to the channel bandwidth. According to the channel quality detection result, it is measured whether to switch the resolution. For example, when the channel quality is relatively good, the input image is encoded and sent according to the size of 1920x1080. When the channel quality is detected to be worse and is lower than the channel quality threshold T for t seconds, the resolution switch is started, and the input image is downsampled Encode and send in a size of 1280x720 to relieve transmission pressure. Similarly, when it is detected that the communication conditions are better, it can be up-sampled from a lower resolution to a higher resolution for encoding and sending. It is worth mentioning that the degree of resampling can be flexibly configured, but the encoding end and the decoding end must be consistent.
如图7所示,在切换分辨率的切换过程中,虚线框内部分起到了维持切换中间状态的作用,切换过程主要由两部分构成:分别是编码端切换中间状态维 持和解码端切换中间状态维持。编码端切换中间状态维持部分的作用是模拟解码端解码后的图像并将其作为参考帧对尺寸改变后的图像进行编码,通过这种方式,能够平顺进入切换分辨率后的编码发送状态。解码端切换中间状态维持部分的作用是模拟接收切换分辨率后的码流数据并进行解码。该方案的最大优点是,编码端和解码端能够无缝对接,在切换分辨率时可以避免发送大码率的I帧;该分辨率切换方案对信道友好,传输延时短,且有效避免传统切分辨率带来的花屏、不稳定移动(jitter)、闪频等问题。传统的切分辨率方案通常会以I帧作为新分辨率的起始,为达到较好的主观质量,通常会要求较大体积的I帧,I帧码率和解码后图像质量正相关,但码率越大传输压力越大,尤其在信道质量不好的情况下,传输延时很大,所以传统切分辨率通常会带来花屏、不稳定移动(jitter)、闪频等不好的主观体验。As shown in Figure 7, during the switching process of switching resolution, the part inside the dashed frame plays a role in maintaining the switching intermediate state. The switching process is mainly composed of two parts: the encoding end switching intermediate state maintenance and the decoding end switching intermediate state respectively maintain. The function of the intermediate state maintenance part of the encoding end switching is to simulate the decoded image at the decoding end and use it as a reference frame to encode the image after the size change. In this way, it can smoothly enter the encoding transmission state after the resolution is switched. The function of the switch intermediate state maintenance part of the decoding end is to simulate receiving and decoding the bit stream data after the resolution is switched. The biggest advantage of this scheme is that the encoding end and the decoding end can be seamlessly connected, and it can avoid sending large-rate I frames when switching resolutions; this resolution switching scheme is channel-friendly, has short transmission delay, and effectively avoids traditional The screen resolution, jitter, flicker and other issues caused by cutting resolution. The traditional cut resolution scheme usually uses I frame as the start of the new resolution. In order to achieve better subjective quality, a larger volume of I frame is usually required. The code rate of I frame is positively correlated with the image quality after decoding. The higher the bit rate, the greater the transmission pressure, especially in the case of poor channel quality, the transmission delay is very large, so traditional cutting resolution usually brings bad subjective such as blurring, jitter, and flicker. Experience.
以下依据传输码流自适应匹配信道带宽场景对上述方案进行进一步详述。The above scheme will be described in further detail below according to the scenario of adaptively matching the channel bandwidth of the transmission code stream.
首先介绍编码端的方案。在切换分辨率时,首先按照切换前流程对输入图像进行编码。如图7,将分辨率PA的图像数据输入到第一编码器,发送第一编码器输出的码流数据SA。与此同时,从第一编码器中取出重建后的图像数据(即第一图像数据,分辨率为PA),并将其输入到重采样模块,依据信道质量所在等级,选择匹配的分辨率(即目标分辨率),并更新编通信协议。通信协议中包含切分辨率状态、新分辨率下帧号统计信息以及切换后分辨率大小信息(即目标分辨率)。重建后的图像数据(即第一图像数据)经过下采样处理后输出分辨率PB’的图像数据(即第二图像数据),将该分辨率PB’的图像数据输入到第二编码器中进行编码,编码后的码流数据SB’(即第一码流数据)暂先丢弃,该部分方案实现了保持不同分辨率(PA和PB’)编码的状态。First introduce the scheme of the encoding end. When switching the resolution, first encode the input image according to the pre-switching procedure. As shown in Figure 7, the image data of the resolution PA is input to the first encoder, and the code stream data SA output by the first encoder is sent. At the same time, the reconstructed image data (that is, the first image data with a resolution of PA) is taken from the first encoder and input to the resampling module, and the matching resolution is selected according to the level of channel quality ( That is, the target resolution), and update the communication protocol. The communication protocol includes the resolution status, the frame number statistics information under the new resolution, and the resolution size information after switching (that is, the target resolution). The reconstructed image data (that is, the first image data) is down-sampling and outputs the image data of the resolution PB' (that is, the second image data), and the image data of the resolution PB' is input to the second encoder for processing Encoding, the coded stream data SB' (that is, the first stream data) is temporarily discarded. This part of the solution realizes the state of maintaining the encoding of different resolutions (PA and PB').
然后介绍解码端的方案。在切换分辨率时,首先按照切换前流程对接收到的码流数据进行解码。如图7,第一解码器对接收到的码流数据SA进行解码得到分辨率PA的图像数据,同时从编解码两端通信协议的状态中获取到分辨率切换的状态,当检测到当前状态为分辨率切换中间状态时,从第一解码器取出解码后的重建图像(即第三图像数据,分辨率为PA),输入到重采样模块,根据通信协议中携带的信息配置重采样模块,该部分的作用是保证解码端重采 样模块输出和编码端重采样模块输出一致,然后将重采样后的分辨率PB’的图像数据(即第五图像数据)输入到第三编码器进行编码,然后将第三编码器编码的码流数据(即第二码流数据)输入到第二解码器,该第二解码器解码后的分辨率PB’的图像数据(即第四图像数据)暂先丢弃,该部分方案实现了保持不同分辨率(PA和PB’)解码的状态。Then introduce the solution of the decoding end. When switching resolutions, first decode the received bitstream data according to the procedure before switching. As shown in Figure 7, the first decoder decodes the received code stream data SA to obtain the image data of the resolution PA, and at the same time obtains the resolution switching state from the state of the communication protocol at both ends of the codec. When the current state is detected When switching the intermediate state for the resolution, take out the decoded reconstructed image (that is, the third image data with a resolution of PA) from the first decoder, and input it to the resampling module, and configure the resampling module according to the information carried in the communication protocol, The function of this part is to ensure that the output of the re-sampling module at the decoding end is consistent with the output of the re-sampling module at the encoding end, and then input the resampled image data with a resolution of PB' (that is, the fifth image data) into the third encoder for encoding. Then the code stream data (ie, the second code stream data) encoded by the third encoder is input to the second decoder, and the image data of the resolution PB' (ie, the fourth image data) decoded by the second decoder is temporarily Discarded, this part of the solution realizes the state of maintaining the decoding of different resolutions (PA and PB').
值得注意的是,由于编码端输入图像是一帧一帧顺次编码的,因此在编码端和解码端重建缓冲器(buffer)中图像帧可以一一对应,因此切换分辨率时不需要重新编码I帧发送给解码端,解码端只需要从buffer中取出对应帧作为参考帧即可,该特点还能适配不同的错误恢复策略,如Ondemand_I,Ondemand_Ref。应用Ondemand_I的场景下,解码端出错时,向编码端请求纠错I帧;应用Ondemand_ref的场景下,解码端出错时,向编码端请求纠错P帧,如果P帧超出队列范围再请求I帧。It is worth noting that since the input image at the encoder is sequentially encoded frame by frame, there is a one-to-one correspondence between the image frames in the reconstruction buffer (buffer) at the encoder and the decoder, so there is no need to re-encode when switching resolutions. The I frame is sent to the decoder, and the decoder only needs to take the corresponding frame from the buffer as a reference frame. This feature can also be adapted to different error recovery strategies, such as Ondemand_I, Ondemand_Ref. In the scenario where Ondemand_I is applied, when the decoder makes an error, it requests an error correction I frame from the encoder; in the scenario where Ondemand_ref is applied, when an error occurs, the decoder requests an error correction P frame from the encoder. If the P frame exceeds the queue range, then request an I frame. .
如图8所示,在切换分辨率完成后,编码端第二编码器对应图7中(切换中间状态)编码端的第二编码器,编码端将第二编码器编码的码流数据SB(即第一码流数据)进行发送,切换后输入的分辨率PB的图像数据对应如图7切换过程中的输入的分辨率PB’的图像数据,两者分辨率一致,不过分辨率PB的图像数据是新输入的视频帧,而分辨率PB’的图像数据是由原始视频帧编码后重建的视频帧再重采样得到的。As shown in Figure 8, after the resolution switching is completed, the second encoder on the encoding end corresponds to the second encoder on the encoding end in Figure 7 (switching intermediate state), and the encoding end encodes the code stream data SB (ie The first bit stream data) is sent, and the input image data of resolution PB after switching corresponds to the image data of resolution PB' input in the switching process as shown in Figure 7. The resolution of the two is the same, but the image data of resolution PB It is the newly input video frame, and the image data of the resolution PB' is obtained by re-sampling the reconstructed video frame after encoding the original video frame.
如图8所示,在切换分辨率完成后,解码端第二解码器对应图7中(切换中间状态)解码端的第二解码器,解码端接收到码流数据SB(即第一码流数据)后直接输入到第二解码器进行解码输出分辨率PB的图像数据,接收的码流数据SB和解码端第三编码器编码输出的码流数据对应,两者分辨率一致,不过SB是无线接收的新分辨率视频码流,而解码端第三编码器编码输出的码流数据是对原分辨率图像进行重采样后的图像编码后的视频码流。通过本申请实施例中的方案,能够保证编码端和解码端参考帧序列的一致性,因此切换分辨率时编码端不需要重新编码I帧发送给解码端。As shown in Figure 8, after the resolution switching is completed, the second decoder at the decoding end corresponds to the second decoder at the decoding end in Figure 7 (switching intermediate state), and the decoding end receives the code stream data SB (that is, the first code stream data). ) Is directly input to the second decoder for decoding and output resolution PB image data. The received bit stream data SB corresponds to the bit stream data encoded and output by the third encoder at the decoding end. The resolution of the two is the same, but SB is wireless The received video code stream of the new resolution, and the code stream data encoded and output by the third encoder at the decoding end is the video code stream of the image after re-sampling the original resolution image. Through the solution in the embodiment of the present application, the consistency of the reference frame sequence of the encoding end and the decoding end can be ensured, so when the resolution is switched, the encoding end does not need to re-encode the I frame and send it to the decoding end.
编码器输入图像来源有两种方案:一是切换相机(即摄像装置),输入图像分辨率由PA变为PB;二是相机输出图像保持PA不变,对分辨率PA的图像数据进行重采样得到分辨率PB的图像数据。此二者目的均是得到新分辨率 PB的图像数据,只是实现方式有所不同。另外,切换信息既可以包含在通信协议部分以码流数据发送,也可以补充在H264编码标准中SEI信息部分发送。The encoder input image source has two schemes: one is to switch the camera (ie camera device), the input image resolution is changed from PA to PB; the other is to keep the PA of the camera output image unchanged, and resample the image data of the resolution PA Obtain image data with a resolution of PB. The purpose of the two is to obtain the image data of the new resolution PB, but the realization method is different. In addition, the switching information can be included in the communication protocol part and sent as bit stream data, or it can be supplemented with the SEI information part sent in the H264 coding standard.
参见图9,图9是本申请数据传输装置一实施例的结构示意图,本实施例的数据传输装置能够执行编码端的数据传输方法,相关内容的详细说明请参见上述编码端的数据传输方法,在此不再赘叙。Refer to Figure 9. Figure 9 is a schematic structural diagram of an embodiment of the data transmission device of the present application. The data transmission device of this embodiment can execute the data transmission method on the encoding side. For detailed description of the relevant content, please refer to the above data transmission method on the encoding side. I won't repeat it again.
该装置10包括:存储器11和处理器12;存储器11和处理器12通过总线13连接。The device 10 includes: a memory 11 and a processor 12; the memory 11 and the processor 12 are connected by a bus 13.
其中,处理器12可以是微控制单元、中央处理单元或数字信号处理器,等等。Among them, the processor 12 may be a micro control unit, a central processing unit, or a digital signal processor, and so on.
其中,存储器11可以是Flash芯片、只读存储器、磁盘、光盘、U盘或者移动硬盘等等。Among them, the memory 11 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk, or a mobile hard disk, etc.
存储器11用于存储计算机程序;处理器12用于执行计算机程序并在执行计算机程序时,实现如下步骤:The memory 11 is used to store a computer program; the processor 12 is used to execute the computer program and when the computer program is executed, the following steps are implemented:
获取目标分辨率;获取第一编码器重建后的第一图像数据;获取第二编码器编码后的第一码流数据,第一码流数据对应目标分辨率。Obtain the target resolution; obtain the first image data reconstructed by the first encoder; obtain the first code stream data encoded by the second encoder, the first code stream data corresponding to the target resolution.
其中,处理器在执行计算机程序时,实现如下步骤:获取对第一图像数据进行重采样后的第二图像数据,第二图像数据是第一码流数据对应的图像数据。Wherein, when the processor executes the computer program, it implements the following steps: acquiring second image data after re-sampling the first image data, where the second image data is image data corresponding to the first code stream data.
其中,处理器在执行计算机程序时,实现如下步骤:若当前状态包括切换中间状态,则丢弃第一码流数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the current state includes switching the intermediate state, the first code stream data is discarded.
其中,处理器在执行计算机程序时,实现如下步骤:若当前状态包括切换完成状态,则发送第一码流数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the current state includes the switching completion state, the first code stream data is sent.
其中,处理器在执行计算机程序时,实现如下步骤:若当前状态包括切换完成状态,则将第二图像数据作为新输入图像数据的参考图像数据,对新输入图像数据进行编码,第二图像数据是第一码流数据对应的图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the current state includes the switching completion state, the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data It is the image data corresponding to the first code stream data.
其中,新输入图像数据包括重采样得到的目标分辨率的图像数据或者通过摄像装置直接输出的目标分辨率的图像数据。Wherein, the new input image data includes the image data of the target resolution obtained by re-sampling or the image data of the target resolution directly output by the camera device.
其中,处理器在执行计算机程序时,实现如下步骤:若目标分辨率大于第一图像数据的分辨率,则对第一图像数据进行上采样,得到目标分辨率的第二 图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the target resolution is greater than the resolution of the first image data, the first image data is up-sampled to obtain the second image data of the target resolution.
其中,处理器在执行计算机程序时,实现如下步骤:若目标分辨率小于第一图像数据的分辨率,则对第一图像数据进行下采样,得到目标分辨率的第二图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the target resolution is less than the resolution of the first image data, the first image data is down-sampled to obtain the second image data of the target resolution.
其中,第一编码器和第二编码器为同一编码器。Among them, the first encoder and the second encoder are the same encoder.
其中,目标分辨率与数据传输信道质量匹配。Among them, the target resolution matches the quality of the data transmission channel.
其中,处理器在执行计算机程序时,实现如下步骤:生成并发送切换信息,切换信息包括同步切换标识和目标分辨率。Wherein, when the processor executes the computer program, it implements the following steps: generating and sending switching information, the switching information includes a synchronous switching identifier and a target resolution.
其中,同步切换标识包括切换分辨率状态标识和同步标识。Among them, the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
其中,切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。Wherein, the switching resolution state identifier includes the identifier of the state before the switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
其中,同步标识包括切换后的目标分辨率下帧号统计信息标识。Wherein, the synchronization identifier includes the frame number statistical information identifier at the target resolution after the switching.
其中,处理器在执行计算机程序时,实现如下步骤:将切换信息以通信协议形式包装在码流头部,生成并发送包括切换信息的第一码流数据。Wherein, when the processor executes the computer program, the following steps are implemented: the switching information is packaged in the code stream header in the form of a communication protocol, and the first code stream data including the switching information is generated and sent.
其中,处理器在执行计算机程序时,实现如下步骤:生成并发送包括切换信息的补充增强信息SEI。Wherein, when the processor executes the computer program, it implements the following steps: generating and sending the supplementary enhancement information SEI including the switching information.
其中,处理器在执行计算机程序时,实现如下步骤:根据切换指令生成并发送切换信息。Wherein, when the processor executes the computer program, it implements the following steps: generating and sending switching information according to the switching instruction.
其中,处理器在执行计算机程序时,实现如下步骤:当检测到数据传输信道质量不满足预设条件时,生成切换指令,切换指令包括与数据传输信道质量匹配的目标分辨率。Wherein, when the processor executes the computer program, the following steps are implemented: when it is detected that the quality of the data transmission channel does not meet the preset condition, a switching instruction is generated, and the switching instruction includes a target resolution matching the quality of the data transmission channel.
其中,处理器在执行计算机程序时,实现如下步骤:当检测到数据传输信道质量大于或等于第一预设信道质量要求,则生成第一切换指令,其中第一切换指令的目标分辨率大于第一图像数据的分辨率;当检测到信道质量小于第二预设信道质量要求,则生成第二切换指令,其中第二切换指令的目标分辨率小于第一图像数据的分辨率。Wherein, when the processor executes the computer program, it implements the following steps: when detecting that the quality of the data transmission channel is greater than or equal to the first preset channel quality requirement, it generates a first switching instruction, wherein the target resolution of the first switching instruction is greater than the first switching instruction. A resolution of image data; when it is detected that the channel quality is less than the second preset channel quality requirement, a second switching instruction is generated, wherein the target resolution of the second switching instruction is less than the resolution of the first image data.
其中,第一预设信道质量要求与第二预设信道质量要求相同,预设信道质量要求包括预设信道质量阈值T和预设持续时间t秒;处理器在执行计算机程序时,实现如下步骤:当检测到数据传输信道质量持续t秒大于或等于预设信 道质量阈值T,则生成第一切换指令;当检测到数据传输信道质量持续t秒小于预设信道质量阈值T,则生成第二切换指令。The first preset channel quality requirement is the same as the second preset channel quality requirement. The preset channel quality requirement includes a preset channel quality threshold T and a preset duration of t seconds; when the processor executes the computer program, the following steps are implemented : When it is detected that the quality of the data transmission channel for t seconds is greater than or equal to the preset channel quality threshold T, then the first switching instruction is generated; when it is detected that the quality of the data transmission channel for t seconds is less than the preset channel quality threshold T, then the second switch is generated. Switch instructions.
其中,处理器在执行计算机程序时,实现如下步骤:接收输入的用户指令,用户指令包括目标分辨率;根据用户指令生成切换指令。Wherein, when the processor executes the computer program, the following steps are implemented: receiving an input user instruction, where the user instruction includes the target resolution; and generating a switching instruction according to the user instruction.
本申请还提供一种数据传输装置,该装置是解码端的数据传输装置,需要说明的是,本实施例的装置能够执行如上所述解码端的数据传输方法中的步骤,相关内容的详细说明请参见上述解码端的数据传输方法,在此不再赘叙。This application also provides a data transmission device, which is a data transmission device on the decoding side. It should be noted that the device in this embodiment can execute the steps in the data transmission method on the decoding side as described above. For detailed descriptions of related content, please refer to The above-mentioned data transmission method at the decoding end will not be repeated here.
该装置包括:存储器和处理器;存储器用于存储计算机程序;处理器用于执行计算机程序并在执行计算机程序时,实现如下步骤:The device includes: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and when the computer program is executed, the following steps are implemented:
获取目标分辨率;获取第一解码器重建后的第三图像数据;获取第三编码器编码后的第二码流数据,第二码流数据对应目标分辨率;获取第二解码器对第二码流数据解码后的第四图像数据。Obtain the target resolution; Obtain the third image data reconstructed by the first decoder; Obtain the second code stream data encoded by the third encoder, the second code stream data corresponding to the target resolution; Obtain the second decoder pair The fourth image data after the code stream data is decoded.
其中,处理器在执行计算机程序时,实现如下步骤:获取对第三图像数据进行重采样后的第五图像数据,第五图像数据是第二码流数据对应的图像数据。Wherein, when the processor executes the computer program, it implements the following steps: acquiring fifth image data after re-sampling the third image data, where the fifth image data is image data corresponding to the second code stream data.
其中,处理器在执行计算机程序时,实现如下步骤:若当前状态包括切换中间状态,则丢弃第四图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the current state includes the switching intermediate state, the fourth image data is discarded.
其中,处理器在执行计算机程序时,实现如下步骤:若当前状态包括切换完成状态,则接收第一码流数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the current state includes the switching completion state, the first code stream data is received.
其中,处理器在执行计算机程序时,实现如下步骤:若当前状态包括切换完成状态,则将第五图像数据作为新输入图像数据的新码流数据的参考图像数据,对新输入图像数据的新码流数据进行解码,第五图像数据是第二码流数据对应的图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the current state includes the switching completed state, the fifth image data is used as the reference image data of the new code stream data of the new input image data, and the new input image data is new The code stream data is decoded, and the fifth image data is the image data corresponding to the second code stream data.
其中,处理器在执行计算机程序时,实现如下步骤:若目标分辨率大于第三图像数据的分辨率,则对第三图像数据进行上采样,得到目标分辨率的第五图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the target resolution is greater than the resolution of the third image data, the third image data is up-sampled to obtain the fifth image data of the target resolution.
其中,处理器在执行计算机程序时,实现如下步骤:若目标分辨率小于第三图像数据的分辨率,则对第三图像数据进行下采样,得到目标分辨率的第五图像数据。Wherein, when the processor executes the computer program, the following steps are implemented: if the target resolution is less than the resolution of the third image data, the third image data is down-sampled to obtain the fifth image data of the target resolution.
其中,第一解码器和第二解码器为同一解码器。Among them, the first decoder and the second decoder are the same decoder.
其中,目标分辨率与数据传输信道质量匹配。Among them, the target resolution matches the quality of the data transmission channel.
其中,处理器在执行计算机程序时,实现如下步骤:接收切换信息,切换信息包括同步切换标识和目标分辨率。Wherein, when the processor executes the computer program, the following steps are implemented: receiving switching information, the switching information includes a synchronous switching identifier and a target resolution.
其中,同步切换标识包括切换分辨率状态标识和同步标识。Among them, the synchronization switching identifier includes the switching resolution status identifier and the synchronization identifier.
其中,切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。Wherein, the switching resolution state identifier includes the identifier of the state before the switching, the identifier of the intermediate state of the switching, and the identifier of the switching completed state.
其中,同步标识包括切换后的目标分辨率下帧号统计信息标识。Wherein, the synchronization identifier includes the frame number statistical information identifier at the target resolution after the switching.
其中,处理器在执行计算机程序时,实现如下步骤:接收包括切换信息的第一码流数据。Wherein, when the processor executes the computer program, it implements the following steps: receiving the first code stream data including the switching information.
其中,处理器在执行计算机程序时,实现如下步骤:接收包括切换信息的补充增强信息SEI。Wherein, when the processor executes the computer program, it implements the following steps: receiving the supplementary enhancement information SEI including the switching information.
本申请还提供一种数据传输系统,该系统包括如上任一编码端的数据传输装置和如上任一解码端的数据传输装置。相关内容的详细说明请参见上述编码端的数据传输装置和解码端的数据传输装置,在此不再赘叙。The present application also provides a data transmission system, which includes a data transmission device at any encoding end and a data transmission device at any decoding end as described above. For a detailed description of the relevant content, please refer to the above-mentioned data transmission device on the encoding end and the data transmission device on the decoding end, which will not be repeated here.
本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时使处理器实现如上任一编码端的数据传输方法。相关内容的详细说明请参见上述编码端的数据传输方法部分,在此不再赘叙。The present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the processor realizes the data transmission method at any one of the encoding ends. For a detailed description of the relevant content, please refer to the data transmission method section of the above-mentioned encoding end, which is not repeated here.
其中,该计算机可读存储介质可以是上述任一编码端的数据传输装置的内部存储单元,例如编码端的数据传输装置的硬盘或内存。该计算机可读存储介质也可以是编码端的数据传输装置的外部存储设备,例如编码端的数据传输装置上配备的插接式硬盘、智能存储卡、安全数字卡、闪存卡,等等。Wherein, the computer-readable storage medium may be an internal storage unit of the data transmission device at the encoding end, such as a hard disk or memory of the data transmission device at the encoding end. The computer-readable storage medium may also be an external storage device of the data transmission device at the encoding end, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the data transmission device at the encoding end.
本申请还提供另一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时使处理器实现如上任一解码端的数据传输方法。相关内容的详细说明请参见上述解码端的数据传输方法部分,在此不再赘叙。This application also provides another computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor realizes the data transmission method at any one of the decoding ends. For a detailed description of the relevant content, please refer to the data transmission method section of the above-mentioned decoder, which will not be repeated here.
其中,该计算机可读存储介质可以是上述任一解码端的数据传输装置的内部存储单元,例如解码端的数据传输装置的硬盘或内存。该计算机可读存储介 质也可以是解码端的数据传输装置的外部存储设备,例如解码端的数据传输装置上配备的插接式硬盘、智能存储卡、安全数字卡、闪存卡,等等。Wherein, the computer-readable storage medium may be an internal storage unit of any of the foregoing data transmission devices at the decoding end, such as a hard disk or memory of the data transmission device at the decoding end. The computer-readable storage medium may also be an external storage device of the data transmission device at the decoding end, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the data transmission device at the decoding end.
应当理解,在本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。It should be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the application.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification of this application and the appended claims refers to any combination of one or more of the items listed in association and all possible combinations, and includes these combinations.
以上所述,仅为本申请的具体实施例,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of this application, but the protection scope of this application is not limited to this. Anyone familiar with the technical field can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (75)

  1. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that it comprises:
    获取目标分辨率;Obtain the target resolution;
    获取第一编码器重建后的第一图像数据;Acquiring the first image data reconstructed by the first encoder;
    获取第二编码器编码后的第一码流数据,所述第一码流数据对应目标分辨率。Obtain the first code stream data encoded by the second encoder, where the first code stream data corresponds to the target resolution.
  2. 根据权利要求1所述的方法,其特征在于,在所述获取第一编码器重建后的第一图像数据之后,还包括:获取对所述第一图像数据进行重采样后的第二图像数据,所述第二图像数据是所述第一码流数据对应的图像数据。The method according to claim 1, wherein after the obtaining the first image data reconstructed by the first encoder, the method further comprises: obtaining second image data after re-sampling the first image data , The second image data is image data corresponding to the first code stream data.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    若当前状态包括切换中间状态,则丢弃所述第一码流数据。If the current state includes the switching intermediate state, the first code stream data is discarded.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    若当前状态包括切换完成状态,则发送所述第一码流数据。If the current state includes the switching completion state, the first code stream data is sent.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    若当前状态包括切换完成状态,则将第二图像数据作为新输入图像数据的参考图像数据,对所述新输入图像数据进行编码,所述第二图像数据是所述第一码流数据对应的图像数据。If the current state includes the switching completion state, the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data is corresponding to the first code stream data Image data.
  6. 根据权利要求5所述的方法,其特征在于,所述新输入图像数据包括重采样得到的目标分辨率的图像数据或者通过摄像装置直接输出的目标分辨率的图像数据。The method according to claim 5, wherein the new input image data comprises image data of a target resolution obtained by re-sampling or image data of a target resolution directly output by a camera device.
  7. 根据权利要求2所述的方法,其特征在于,所述获取对所述第一图像数据进行重采样后的第二图像数据,包括:The method according to claim 2, wherein said acquiring second image data after re-sampling said first image data comprises:
    若所述目标分辨率大于所述第一图像数据的分辨率,则对所述第一图像数据进行上采样,得到目标分辨率的第二图像数据。If the target resolution is greater than the resolution of the first image data, the first image data is up-sampled to obtain the second image data of the target resolution.
  8. 根据权利要求2所述的方法,其特征在于,所述获取对所述第一图像数据进行重采样后的第二图像数据,包括:The method according to claim 2, wherein said acquiring second image data after re-sampling said first image data comprises:
    若所述目标分辨率小于所述第一图像数据的分辨率,则对所述第一图像数据进行下采样,得到目标分辨率的第二图像数据。If the target resolution is less than the resolution of the first image data, then down-sampling the first image data to obtain second image data of the target resolution.
  9. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, wherein:
    所述第一编码器和所述第二编码器为同一编码器。The first encoder and the second encoder are the same encoder.
  10. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, wherein:
    所述目标分辨率与数据传输信道质量匹配。The target resolution matches the quality of the data transmission channel.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    生成并发送切换信息,所述切换信息包括同步切换标识和目标分辨率。Generate and send switching information, where the switching information includes a synchronous switching identifier and a target resolution.
  12. 根据权利要求11所述的方法,其特征在于,所述同步切换标识包括切换分辨率状态标识和同步标识。The method according to claim 11, wherein the synchronization switching identifier includes a switching resolution state identifier and a synchronization identifier.
  13. 根据权利要求12所述的方法,其特征在于,所述切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。The method according to claim 12, wherein the switching resolution state identifier includes the identifier of the state before switching, the identifier of the switching intermediate state, and the identifier of the switching completed state.
  14. 根据权利要求12所述的方法,其特征在于,所述同步标识包括切换后的目标分辨率下帧号统计信息标识。The method according to claim 12, wherein the synchronization identifier comprises a frame number statistical information identifier at the target resolution after switching.
  15. 根据权利要求11所述的方法,其特征在于,所述生成并发送切换信息,包括:The method according to claim 11, wherein said generating and sending handover information comprises:
    将所述切换信息以通信协议形式包装在码流头部,生成并发送包括所述切换信息的第一码流数据。The switching information is packaged in the code stream header in the form of a communication protocol, and the first code stream data including the switching information is generated and sent.
  16. 根据权利要求11所述的方法,其特征在于,所述生成并发送切换信息,包括:The method according to claim 11, wherein said generating and sending handover information comprises:
    生成并发送包括所述切换信息的补充增强信息SEI。Generate and send the supplementary enhancement information SEI including the handover information.
  17. 根据权利要求11所述的方法,其特征在于,所述生成并发送切换信息,包括:The method according to claim 11, wherein said generating and sending handover information comprises:
    根据切换指令生成并发送切换信息。Generate and send switching information according to switching instructions.
  18. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method according to claim 17, wherein the method further comprises:
    当检测到数据传输信道质量不满足预设条件时,生成所述切换指令,所述切换指令包括与所述数据传输信道质量匹配的目标分辨率。When it is detected that the quality of the data transmission channel does not meet the preset condition, the switching instruction is generated, and the switching instruction includes a target resolution matching the quality of the data transmission channel.
  19. 根据权利要求18所述的方法,其特征在于,所述当检测到数据传输信道质量不满足预设条件时,生成所述切换指令,包括:The method according to claim 18, wherein the generating the switching instruction when it is detected that the quality of the data transmission channel does not meet a preset condition comprises:
    当检测到所述数据传输信道质量大于或等于第一预设信道质量要求,则生成第一切换指令,其中所述第一切换指令的目标分辨率大于所述第一图像数据 的分辨率;When it is detected that the quality of the data transmission channel is greater than or equal to the first preset channel quality requirement, a first switching instruction is generated, wherein the target resolution of the first switching instruction is greater than the resolution of the first image data;
    当检测到所述信道质量小于第二预设信道质量要求,则生成第二切换指令,其中所述第二切换指令的目标分辨率小于所述第一图像数据的分辨率。When it is detected that the channel quality is less than the second preset channel quality requirement, a second switching instruction is generated, wherein the target resolution of the second switching instruction is less than the resolution of the first image data.
  20. 根据权利要求19所述的方法,其特征在于,所述第一预设信道质量要求与第二预设信道质量要求相同,所述预设信道质量要求包括预设信道质量阈值T和预设持续时间t秒;The method according to claim 19, wherein the first preset channel quality requirement is the same as the second preset channel quality requirement, and the preset channel quality requirement includes a preset channel quality threshold T and a preset duration. Time t seconds;
    所述当检测到所述数据传输信道质量大于或等于预设信道质量要求,则生成第一切换指令,包括:When it is detected that the quality of the data transmission channel is greater than or equal to a preset channel quality requirement, generating a first handover instruction includes:
    当检测到所述数据传输信道质量持续t秒大于或等于预设信道质量阈值T,则生成第一切换指令;When it is detected that the quality of the data transmission channel for t seconds is greater than or equal to the preset channel quality threshold T, a first switching instruction is generated;
    所述当检测到所述数据传输信道质量小于预设信道质量要求,则生成第二切换指令,包括:When it is detected that the quality of the data transmission channel is less than a preset channel quality requirement, generating a second handover instruction includes:
    当检测到所述数据传输信道质量持续t秒小于预设信道质量阈值T,则生成第二切换指令。When it is detected that the quality of the data transmission channel for t seconds is less than the preset channel quality threshold T, a second switching instruction is generated.
  21. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method according to claim 17, wherein the method further comprises:
    接收输入的用户指令,所述用户指令包括目标分辨率;Receiving an input user instruction, where the user instruction includes a target resolution;
    根据所述用户指令生成所述切换指令。The switching instruction is generated according to the user instruction.
  22. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that it comprises:
    获取目标分辨率;Obtain the target resolution;
    获取第一解码器重建后的第三图像数据;Acquiring the third image data reconstructed by the first decoder;
    获取第三编码器编码后的第二码流数据,所述第二码流数据对应目标分辨率;Acquiring second code stream data encoded by the third encoder, where the second code stream data corresponds to the target resolution;
    获取第二解码器对所述第二码流数据解码后的第四图像数据。Obtain the fourth image data after the second decoder decodes the second code stream data.
  23. 根据权利要求22所述的方法,其特征在于,所述获取第一解码器重建后的第三图像数据之后,还包括:The method according to claim 22, wherein after said obtaining the third image data reconstructed by the first decoder, the method further comprises:
    获取对所述第三图像数据进行重采样后的第五图像数据,所述第五图像数据是所述第二码流数据对应的图像数据。Acquiring fifth image data after resampling the third image data, where the fifth image data is image data corresponding to the second code stream data.
  24. 根据权利要求22所述的方法,其特征在于,所述方法还包括:The method according to claim 22, wherein the method further comprises:
    若当前状态包括切换中间状态,则丢弃所述第四图像数据。If the current state includes the switching intermediate state, the fourth image data is discarded.
  25. 根据权利要求22所述的方法,其特征在于,所述方法还包括:The method according to claim 22, wherein the method further comprises:
    若当前状态包括切换完成状态,则接收第一码流数据。If the current state includes the switching completion state, the first code stream data is received.
  26. 根据权利要求22所述的方法,其特征在于,所述方法还包括:The method according to claim 22, wherein the method further comprises:
    若当前状态包括切换完成状态,则将第五图像数据作为新输入图像数据的新码流数据的参考图像数据,对所述新输入图像数据的新码流数据进行解码,所述第五图像数据是所述第二码流数据对应的图像数据。If the current state includes the switching completion state, the fifth image data is used as the reference image data of the new code stream data of the new input image data, and the new code stream data of the new input image data is decoded. The fifth image data Is the image data corresponding to the second code stream data.
  27. 根据权利要求23所述的方法,其特征在于,所述获取对所述第三图像数据进行重采样后的第五图像数据,包括:The method according to claim 23, wherein said acquiring fifth image data after re-sampling said third image data comprises:
    若所述目标分辨率大于所述第三图像数据的分辨率,则对所述第三图像数据进行上采样,得到目标分辨率的第五图像数据。If the target resolution is greater than the resolution of the third image data, the third image data is up-sampled to obtain fifth image data of the target resolution.
  28. 根据权利要求23所述的方法,其特征在于,所述获取对所述第三图像数据进行重采样后的第五图像数据,包括:The method according to claim 23, wherein said acquiring fifth image data after re-sampling said third image data comprises:
    若所述目标分辨率小于所述第三图像数据的分辨率,则对所述第三图像数据进行下采样,得到目标分辨率的第五图像数据。If the target resolution is less than the resolution of the third image data, down-sampling the third image data to obtain fifth image data of the target resolution.
  29. 根据权利要求22所述的方法,其特征在于,The method of claim 22, wherein:
    所述第一解码器和所述第二解码器为同一解码器。The first decoder and the second decoder are the same decoder.
  30. 根据权利要求22所述的方法,其特征在于,The method of claim 22, wherein:
    所述目标分辨率与数据传输信道质量匹配。The target resolution matches the quality of the data transmission channel.
  31. 根据权利要求22所述的方法,其特征在于,所述获取目标分辨率之前,还包括:The method according to claim 22, wherein before said obtaining the target resolution, the method further comprises:
    接收切换信息,所述切换信息包括同步切换标识和目标分辨率。Receive switching information, where the switching information includes a synchronous switching identifier and a target resolution.
  32. 根据权利要求31所述的方法,其特征在于,所述同步切换标识包括切换分辨率状态标识和同步标识。The method according to claim 31, wherein the synchronization switching identifier includes a switching resolution state identifier and a synchronization identifier.
  33. 根据权利要求32所述的方法,其特征在于,所述切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。The method according to claim 32, wherein the switching resolution state identifier includes the identifier of the state before switching, the identifier of the switching intermediate state, and the identifier of the switching completed state.
  34. 根据权利要求32所述的方法,其特征在于,所述同步标识包括切换后的目标分辨率下帧号统计信息标识。The method according to claim 32, wherein the synchronization identifier comprises a frame number statistical information identifier at the target resolution after switching.
  35. 根据权利要求31所述的方法,其特征在于,所述接收切换信息,包括:The method according to claim 31, wherein said receiving handover information comprises:
    接收包括所述切换信息的第一码流数据。Receiving the first code stream data including the switching information.
  36. 根据权利要求31所述的方法,其特征在于,所述接收切换信息,包括:The method according to claim 31, wherein said receiving handover information comprises:
    接收包括所述切换信息的补充增强信息SEI。Receiving the supplementary enhancement information SEI including the handover information.
  37. 一种数据传输装置,其特征在于,所述装置包括:存储器和处理器;A data transmission device, characterized in that, the device includes: a memory and a processor;
    所述存储器用于存储计算机程序;The memory is used to store a computer program;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
    获取目标分辨率;Obtain the target resolution;
    获取第一编码器重建后的第一图像数据;Acquiring the first image data reconstructed by the first encoder;
    获取第二编码器编码后的第一码流数据,所述第一码流数据对应目标分辨率。Obtain the first code stream data encoded by the second encoder, where the first code stream data corresponds to the target resolution.
  38. 根据权利要求37所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 37, wherein the processor implements the following steps when executing the computer program:
    获取对所述第一图像数据进行重采样后的第二图像数据,所述第二图像数据是所述第一码流数据对应的图像数据。Acquiring second image data after resampling the first image data, where the second image data is image data corresponding to the first bitstream data.
  39. 根据权利要求37所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 37, wherein the processor implements the following steps when executing the computer program:
    若当前状态包括切换中间状态,则丢弃所述第一码流数据。If the current state includes the switching intermediate state, the first code stream data is discarded.
  40. 根据权利要求37所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 37, wherein the processor implements the following steps when executing the computer program:
    若当前状态包括切换完成状态,则发送所述第一码流数据。If the current state includes the switching completion state, the first code stream data is sent.
  41. 根据权利要求37所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 37, wherein the processor implements the following steps when executing the computer program:
    若当前状态包括切换完成状态,则将第二图像数据作为新输入图像数据的参考图像数据,对所述新输入图像数据进行编码,所述第二图像数据是所述第一码流数据对应的图像数据。If the current state includes the switching completion state, the second image data is used as the reference image data of the new input image data, and the new input image data is encoded, and the second image data is corresponding to the first code stream data Image data.
  42. 根据权利要求41所述的装置,其特征在于,所述新输入图像数据包括重采样得到的目标分辨率的图像数据或者通过摄像装置直接输出的目标分 辨率的图像数据。The device according to claim 41, wherein the new input image data comprises image data of a target resolution obtained by re-sampling or image data of a target resolution directly output by a camera device.
  43. 根据权利要求38所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 38, wherein the processor implements the following steps when executing the computer program:
    若所述目标分辨率大于所述第一图像数据的分辨率,则对所述第一图像数据进行上采样,得到目标分辨率的第二图像数据。If the target resolution is greater than the resolution of the first image data, the first image data is up-sampled to obtain the second image data of the target resolution.
  44. 根据权利要求38所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 38, wherein the processor implements the following steps when executing the computer program:
    若所述目标分辨率小于所述第一图像数据的分辨率,则对所述第一图像数据进行下采样,得到目标分辨率的第二图像数据。If the target resolution is less than the resolution of the first image data, then down-sampling the first image data to obtain second image data of the target resolution.
  45. 根据权利要求37所述的装置,其特征在于:所述第一编码器和所述第二编码器为同一编码器。The device according to claim 37, wherein the first encoder and the second encoder are the same encoder.
  46. 根据权利要求37所述的装置,其特征在于:所述目标分辨率与数据传输信道质量匹配。The device according to claim 37, wherein the target resolution matches the quality of the data transmission channel.
  47. 根据权利要求37所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 37, wherein the processor implements the following steps when executing the computer program:
    生成并发送切换信息,所述切换信息包括同步切换标识和目标分辨率。Generate and send switching information, where the switching information includes a synchronous switching identifier and a target resolution.
  48. 根据权利要求47所述的装置,其特征在于,所述同步切换标识包括切换分辨率状态标识和同步标识。The apparatus according to claim 47, wherein the synchronization switching identifier comprises a switching resolution state identifier and a synchronization identifier.
  49. 根据权利要求48所述的装置,其特征在于,所述切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。The device according to claim 48, wherein the switching resolution state identifier includes an identifier of a state before switching, an identifier of an intermediate state of switching, and an identifier of a switching completed state.
  50. 根据权利要求48所述的装置,其特征在于,所述同步标识包括切换后的目标分辨率下帧号统计信息标识。The device according to claim 48, wherein the synchronization identifier comprises a frame number statistical information identifier at the target resolution after switching.
  51. 根据权利要求47所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 47, wherein the processor implements the following steps when executing the computer program:
    将所述切换信息以通信协议形式包装在码流头部,生成并发送包括所述切换信息的第一码流数据。The switching information is packaged in the code stream header in the form of a communication protocol, and the first code stream data including the switching information is generated and sent.
  52. 根据权利要求47所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 47, wherein the processor implements the following steps when executing the computer program:
    生成并发送包括所述切换信息的补充增强信息SEI。Generate and send the supplementary enhancement information SEI including the handover information.
  53. 根据权利要求47所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 47, wherein the processor implements the following steps when executing the computer program:
    根据切换指令生成并发送切换信息。Generate and send switching information according to switching instructions.
  54. 根据权利要求53所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 53, wherein the processor implements the following steps when executing the computer program:
    当检测到数据传输信道质量不满足预设条件时,生成所述切换指令,所述切换指令包括与所述数据传输信道质量匹配的目标分辨率。When it is detected that the quality of the data transmission channel does not meet the preset condition, the switching instruction is generated, and the switching instruction includes a target resolution matching the quality of the data transmission channel.
  55. 根据权利要求54所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 54, wherein the processor implements the following steps when executing the computer program:
    当检测到所述数据传输信道质量大于或等于第一预设信道质量要求,则生成第一切换指令,其中所述第一切换指令的目标分辨率大于所述第一图像数据的分辨率;When it is detected that the quality of the data transmission channel is greater than or equal to the first preset channel quality requirement, generating a first switching instruction, wherein the target resolution of the first switching instruction is greater than the resolution of the first image data;
    当检测到所述信道质量小于第二预设信道质量要求,则生成第二切换指令,其中所述第二切换指令的目标分辨率小于所述第一图像数据的分辨率。When it is detected that the channel quality is less than the second preset channel quality requirement, a second switching instruction is generated, wherein the target resolution of the second switching instruction is less than the resolution of the first image data.
  56. 根据权利要求55所述的装置,其特征在于,所述第一预设信道质量要求与第二预设信道质量要求相同,所述预设信道质量要求包括预设信道质量阈值T和预设持续时间t秒;The apparatus according to claim 55, wherein the first preset channel quality requirement is the same as the second preset channel quality requirement, and the preset channel quality requirement includes a preset channel quality threshold T and a preset duration. Time t seconds;
    所述处理器在执行所述计算机程序时,实现如下步骤:When the processor executes the computer program, the following steps are implemented:
    当检测到所述数据传输信道质量持续t秒大于或等于预设信道质量阈值T,则生成第一切换指令;When it is detected that the quality of the data transmission channel for t seconds is greater than or equal to the preset channel quality threshold T, a first switching instruction is generated;
    当检测到所述数据传输信道质量持续t秒小于预设信道质量阈值T,则生成第二切换指令。When it is detected that the quality of the data transmission channel for t seconds is less than the preset channel quality threshold T, a second switching instruction is generated.
  57. 根据权利要求53所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 53, wherein the processor implements the following steps when executing the computer program:
    接收输入的用户指令,所述用户指令包括目标分辨率;Receiving an input user instruction, where the user instruction includes a target resolution;
    根据所述用户指令生成所述切换指令。The switching instruction is generated according to the user instruction.
  58. 一种数据传输装置,其特征在于,所述装置包括:存储器和处理器;A data transmission device, characterized in that the device includes: a memory and a processor;
    所述存储器用于存储计算机程序;The memory is used to store a computer program;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如 下步骤:The processor is used to execute the computer program, and when executing the computer program, implement the following steps:
    获取目标分辨率;Obtain the target resolution;
    获取第一解码器重建后的第三图像数据;Acquiring the third image data reconstructed by the first decoder;
    获取第三编码器编码后的第二码流数据,所述第二码流数据对应目标分辨率;Acquiring second code stream data encoded by the third encoder, where the second code stream data corresponds to the target resolution;
    获取第二解码器对所述第二码流数据解码后的第四图像数据。Obtain the fourth image data after the second decoder decodes the second code stream data.
  59. 根据权利要求58所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 58, wherein the processor implements the following steps when executing the computer program:
    获取对所述第三图像数据进行重采样后的第五图像数据,所述第五图像数据是所述第二码流数据对应的图像数据。Acquiring fifth image data after resampling the third image data, where the fifth image data is image data corresponding to the second code stream data.
  60. 根据权利要求58所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 58, wherein the processor implements the following steps when executing the computer program:
    若当前状态包括切换中间状态,则丢弃所述第四图像数据。If the current state includes the switching intermediate state, the fourth image data is discarded.
  61. 根据权利要求58所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 58, wherein the processor implements the following steps when executing the computer program:
    若当前状态包括切换完成状态,则接收第一码流数据。If the current state includes the switching completion state, the first code stream data is received.
  62. 根据权利要求58所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 58, wherein the processor implements the following steps when executing the computer program:
    若当前状态包括切换完成状态,则将第五图像数据作为新输入图像数据的新码流数据的参考图像数据,对所述新输入图像数据的新码流数据进行解码,所述第五图像数据是所述第二码流数据对应的图像数据。If the current state includes the switching completion state, the fifth image data is used as the reference image data of the new code stream data of the new input image data, and the new code stream data of the new input image data is decoded. The fifth image data Is the image data corresponding to the second code stream data.
  63. 根据权利要求59所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 59, wherein the processor implements the following steps when executing the computer program:
    若所述目标分辨率大于所述第三图像数据的分辨率,则对所述第三图像数据进行上采样,得到目标分辨率的第五图像数据。If the target resolution is greater than the resolution of the third image data, the third image data is up-sampled to obtain fifth image data of the target resolution.
  64. 根据权利要求59所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 59, wherein the processor implements the following steps when executing the computer program:
    若所述目标分辨率小于所述第三图像数据的分辨率,则对所述第三图像数据进行下采样,得到目标分辨率的第五图像数据。If the target resolution is less than the resolution of the third image data, down-sampling the third image data to obtain fifth image data of the target resolution.
  65. 根据权利要求58所述的装置,其特征在于,所述第一解码器和所述第二解码器为同一解码器。The device of claim 58, wherein the first decoder and the second decoder are the same decoder.
  66. 根据权利要求58所述的装置,其特征在于,所述目标分辨率与数据传输信道质量匹配。The device according to claim 58, wherein the target resolution matches the quality of the data transmission channel.
  67. 根据权利要求58所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 58, wherein the processor implements the following steps when executing the computer program:
    接收切换信息,所述切换信息包括同步切换标识和目标分辨率。Receive switching information, where the switching information includes a synchronous switching identifier and a target resolution.
  68. 根据权利要求67所述的装置,其特征在于,所述同步切换标识包括切换分辨率状态标识和同步标识。The device according to claim 67, wherein the synchronization switching identifier comprises a switching resolution state identifier and a synchronization identifier.
  69. 根据权利要求68所述的装置,其特征在于,所述切换分辨率状态标识包括切换前状态的标识、切换中间状态的标识以及切换完成状态的标识。The device according to claim 68, wherein the switching resolution state identifier includes the identifier of the state before switching, the identifier of the switching intermediate state, and the identifier of the switching completed state.
  70. 根据权利要求68所述的装置,其特征在于,所述同步标识包括切换后的目标分辨率下帧号统计信息标识。The device according to claim 68, wherein the synchronization identifier comprises a frame number statistical information identifier at the target resolution after switching.
  71. 根据权利要求67所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 67, wherein the processor implements the following steps when executing the computer program:
    接收包括所述切换信息的第一码流数据。Receiving the first code stream data including the switching information.
  72. 根据权利要求67所述的装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The device according to claim 67, wherein the processor implements the following steps when executing the computer program:
    接收包括所述切换信息的补充增强信息SEI。Receiving the supplementary enhancement information SEI including the handover information.
  73. 一种数据传输系统,其特征在于,所述系统包括如权利要求37-57任一项所述的数据传输装置和如权利要求58-72任一项所述的数据传输装置。A data transmission system, characterized in that the system comprises the data transmission device according to any one of claims 37-57 and the data transmission device according to any one of claims 58-72.
  74. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-21任一项所述的数据传输方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes any one of claims 1-21 Data transfer method.
  75. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求22-36任一项所述的数据传输方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes any one of claims 22-36 Data transfer method.
PCT/CN2019/122168 2019-11-29 2019-11-29 Data transmissio method, device and system as well as storage medium WO2021102992A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/122168 WO2021102992A1 (en) 2019-11-29 2019-11-29 Data transmissio method, device and system as well as storage medium
CN201980061264.9A CN112771830A (en) 2019-11-29 2019-11-29 Data transmission method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/122168 WO2021102992A1 (en) 2019-11-29 2019-11-29 Data transmissio method, device and system as well as storage medium

Publications (1)

Publication Number Publication Date
WO2021102992A1 true WO2021102992A1 (en) 2021-06-03

Family

ID=75693769

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122168 WO2021102992A1 (en) 2019-11-29 2019-11-29 Data transmissio method, device and system as well as storage medium

Country Status (2)

Country Link
CN (1) CN112771830A (en)
WO (1) WO2021102992A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080279532A1 (en) * 2004-11-30 2008-11-13 Matsushita Electric Industrial Co., Ltd. Recording and Reproducing Apparatus
CN101860749A (en) * 2010-04-20 2010-10-13 中兴通讯股份有限公司 Method and device for coding and decoding video images
CN108243339A (en) * 2016-12-27 2018-07-03 浙江大学 Image coding/decoding method and device
CN108737825A (en) * 2017-04-13 2018-11-02 腾讯科技(深圳)有限公司 Method for coding video data, device, computer equipment and storage medium
CN110149515A (en) * 2019-04-01 2019-08-20 西安万像电子科技有限公司 Data transmission method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100208086A1 (en) * 2009-02-19 2010-08-19 Texas Instruments Incorporated Reduced-memory video stabilization
CN106131573B (en) * 2016-06-27 2017-07-07 中南大学 A kind of HEVC spatial resolutions code-transferring method
CN109618159A (en) * 2018-11-06 2019-04-12 建湖云飞数据科技有限公司 A kind of self-adaptive encoding method based on resolution ratio corresponding relationship
CN109618154A (en) * 2018-11-13 2019-04-12 建湖云飞数据科技有限公司 A kind of video frame coding/decoding method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080279532A1 (en) * 2004-11-30 2008-11-13 Matsushita Electric Industrial Co., Ltd. Recording and Reproducing Apparatus
CN101860749A (en) * 2010-04-20 2010-10-13 中兴通讯股份有限公司 Method and device for coding and decoding video images
CN108243339A (en) * 2016-12-27 2018-07-03 浙江大学 Image coding/decoding method and device
CN108737825A (en) * 2017-04-13 2018-11-02 腾讯科技(深圳)有限公司 Method for coding video data, device, computer equipment and storage medium
CN110149515A (en) * 2019-04-01 2019-08-20 西安万像电子科技有限公司 Data transmission method and device

Also Published As

Publication number Publication date
CN112771830A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
JP6087940B2 (en) Signaling of state information for decoded picture buffer and reference picture list
WO2018196790A1 (en) Video playing method, device and system
US8675728B2 (en) Transmitting apparatus and method, and receiving apparatus and method
US20110002376A1 (en) Latency Minimization Via Pipelining of Processing Blocks
JP2015501098A5 (en)
CN101310533A (en) Methods and apparatus for service acquisition
CN111221491A (en) Interaction control method and device, electronic equipment and storage medium
US20150089367A1 (en) System and method for forwarding an application user interface
EP2804143A1 (en) System and method for forwarding a graphics command stream
TWI423674B (en) System and method for reducing the zapping time
RU2689187C2 (en) Decoding and synthesizing frames for partial video data
US10728563B2 (en) Data stream encoder configuration
CN101312536B (en) Video coding method and apparatus for video transmission error control
TWI628958B (en) Full-frame buffer to improve video performance in low-latency video communication systems
US20140333640A1 (en) System and method for forwarding a graphics command stream
CN115708356A (en) Video processing method, device, equipment and computer readable storage medium
WO2024022317A1 (en) Video stream processing method and apparatus, storage medium, and electronic device
US9426460B2 (en) Electronic devices for signaling multiple initial buffering parameters
WO2021102992A1 (en) Data transmissio method, device and system as well as storage medium
CN105657448B (en) A kind of retransmission method, the apparatus and system of encoded video stream
WO2023142665A1 (en) Image processing method and apparatus, and computer device, storage medium and program product
JP4829867B2 (en) Image encoding apparatus and image decoding apparatus
JP5200979B2 (en) Image transfer apparatus, method and program
US20140333639A1 (en) System and method for forwarding a graphics command stream
JP2024517915A (en) Data processing method, device, computer device and computer program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19954258

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19954258

Country of ref document: EP

Kind code of ref document: A1