WO2021120008A1 - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- WO2021120008A1 WO2021120008A1 PCT/CN2019/126039 CN2019126039W WO2021120008A1 WO 2021120008 A1 WO2021120008 A1 WO 2021120008A1 CN 2019126039 W CN2019126039 W CN 2019126039W WO 2021120008 A1 WO2021120008 A1 WO 2021120008A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image block
- image
- channel
- blocks
- block
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/30—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
- H04N19/37—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability with arrangements for assigning different transmission priorities to video input data or to video coded data
Definitions
- This application relates to the field of communications, and in particular to a data transmission method and device.
- the existing technology transmits data through a data transmission channel, it usually compresses the data and transmits the compressed data through the data transmission channel.
- the throughput of the data transmission channel is jittered, it may cause Critical data loss. In the event of data loss, the critical data needs to be retransmitted.
- the embodiments of the present application provide a data transmission method and device to overcome the problem of lack of stability in data transmission.
- an embodiment of the present application provides a data transmission method, including:
- the first image is divided into multiple image blocks; in order to ensure the stability of data transmission, this application divides the multiple image blocks, wherein, according to the throughput of the first channel, at least among the multiple image blocks is determined One first image block and at least one second image block, wherein the total data amount of the first image block is less than or equal to the minimum throughput of the first channel; and the first image block is transmitted through the first channel An image block and the second image block, wherein the transmission priority of any one of the first image blocks is greater than the transmission priority of any one of the second image blocks.
- the transmission priority is greater than the transmission priority of any second image block, so that under the current throughput of the first channel, the successful transmission of the first image block can be effectively guaranteed, and the retransmission of key data can be avoided.
- the resulting data transmission lacks stability.
- the first image block and the second image block can be stored in different queues for data transmission, that is to say:
- the implementation manner of transmitting the first image block and the second image block through the first channel may be:
- the image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized
- the level is greater than the transmission priority of the second queue.
- the order of image block transmission can be ensured.
- the priority of the first queue is greater than the priority of the second queue.
- One image block is preferentially transmitted, so as to ensure the successful transmission of the first image block.
- the first image block and the second image block can be stored in the same queue for data transmission, that is to say:
- the implementation manner of transmitting the first image block and the second image block through the first channel may be:
- the image blocks in the third queue are sequentially transmitted.
- the first image block in the third queue before storing the first image block in the third queue, it can also first determine whether the remaining storage space of the third queue is less than the total data volume of the first image block, if the remaining storage space of the third queue If the storage space is less than the total data amount of the first image block, at least one second image block at the end of the third queue is deleted, wherein the total data amount of the deleted at least one second image block is greater than or It is equal to the total data amount of the first image block.
- the first image block and the second image block are stored in the same queue, for the same first image, it is ensured that the first image block is stored before the second image block, and when the next first image generates the first image block ,
- the second image block in the queue can be deleted to ensure that the first image block is preferentially stored in the third queue, thereby effectively ensuring the preferential transmission of the third image block.
- the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
- the maximum transmission time is also set respectively, which can effectively avoid the first image block and the second image block occupying the queue for a long time, resulting in low data transmission efficiency or queue congestion.
- the maximum transmission duration of the first image block is set to be larger, so that the transmission success rate of the first image block can be effectively guaranteed.
- the transmitting the first image block and the second image block through the first channel may be:
- the first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
- the order of the first MCS corresponding to the first image block is smaller than the order of the second MCS corresponding to the transmission of the second image block, the successful transmission of the first image block can be effectively ensured.
- the determining at least one first image block and at least one second image block from the multiple image blocks according to the throughput of the first channel includes:
- a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;
- the third image block is determined as the first image block
- the fourth image block is determined as the first image block. Two image blocks.
- the method further includes:
- the minimum throughput of the first channel can be Above, transmit as many image blocks as possible to improve the display effect of the first image on the receiving device, and this process can ensure the successful transmission of the selected third image block, thereby effectively ensuring the stability of data transmission .
- the determining, according to the R, a third image block in each R image blocks of the multiple image blocks includes:
- the Kth image block in every R image blocks is determined as the third image block.
- the equal interval of the selected third image block in the first image can be effectively guaranteed, so as to ensure the display effect of the first image .
- the determining, according to the R, a third image block in each R image blocks of the multiple image blocks includes:
- the target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
- the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
- the method before determining a third image block in each R image blocks of the plurality of image blocks according to the R, the method further includes:
- an embodiment of the present application provides a data transmission device, including:
- a dividing module for dividing the first image into multiple image blocks
- the determining module is configured to determine at least one first image block and at least one second image block in the plurality of image blocks according to the throughput of the first channel, wherein the total data amount of the first image block is less than or Equal to the minimum throughput of the first channel;
- the transmission module is configured to transmit the first image block and the second image block through the first channel, wherein the transmission priority of any one of the first image blocks is greater than that of any one of the second image blocks Transmission priority.
- the transmission module is specifically configured to:
- the image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized
- the level is greater than the transmission priority of the second queue.
- the transmission module is specifically configured to:
- the image blocks in the third queue are sequentially transmitted.
- the transmission module is also used to:
- the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
- the transmission module is specifically configured to:
- the first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
- the determining module is specifically configured to:
- a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;
- the third image block is determined as the first image block
- the fourth image block is determined as the first image block. Two image blocks.
- the determining module is further configured to:
- the determining module is specifically configured to:
- the Kth image block in every R image blocks is determined as the third image block.
- the determining module is specifically configured to:
- the target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
- the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
- the determining module is further configured to:
- an embodiment of the present application provides a data transmission device, including a memory, a processor, and a radio frequency transceiver.
- the memory is used to store a program or instruction.
- the device is caused to execute the method described in the first aspect and any of the various possible designs of the first aspect.
- an embodiment of the present application provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the above-mentioned first aspect and any of the various possible designs of the first aspect method.
- inventions of the present application provide a computer program product.
- the computer program product includes instructions that, when executed, cause a computer to execute the data transmission method described in any one of the above-mentioned first aspects.
- the embodiments of the present application provide a system on a chip or a system chip, the system on a chip or a system chip can be applied to a terminal device, and the system on a chip or a system chip includes: at least one communication interface, at least one processing The communication interface, the memory, and the processor are interconnected by a bus, and the processor executes the instructions stored in the memory so that the terminal device can perform data transmission as described in any one of the first aspect method.
- the first image block and the second image block are divided according to the throughput of the first channel, and the total data amount of the first image block is set to be less than or equal to the first image block.
- the minimum throughput of the channel, and the transmission priority of any first image block is greater than the transmission priority of any second image block, so that under the current throughput of the first channel, it can effectively guarantee the transmission of the first image
- the successful transmission of the block avoids the lack of stability of data transmission caused by the retransmission of key data.
- FIG. 1 is a schematic diagram of a data transmission system provided by an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a data transmission method in the prior art
- FIG. 3 is the first flow chart of the data transmission method provided by this application.
- FIG. 4 is a second flowchart of a data transmission method provided by an embodiment of this application.
- FIG. 5 is a schematic diagram of image block division according to an embodiment of the application.
- FIG. 6 is a first schematic diagram of a third image block provided by an embodiment of this application.
- FIG. 7 is a second schematic diagram of determining a third image block according to an embodiment of the application.
- FIG. 8 is a third schematic diagram of determining a third image block according to an embodiment of the application.
- FIG. 9 is a schematic diagram of a first image formed by partial image blocks provided by an embodiment of the application.
- FIG. 10 is a schematic diagram 1 of image block reallocation provided by an embodiment of this application.
- FIG. 11 is a second schematic diagram of image block reallocation according to an embodiment of this application.
- FIG. 12 is a third flowchart of a data transmission method provided by an embodiment of this application.
- FIG. 13 is a schematic diagram of a first queue and a second queue provided by an application embodiment
- FIG. 14 is a fourth flowchart of a data transmission method provided by an embodiment of this application.
- FIG. 15 is a schematic diagram of a third queue provided by an application embodiment
- FIG. 16 is a fifth flowchart of a data transmission method provided by an embodiment of this application.
- FIG. 17 is a first structural diagram of a data transmission device provided by an embodiment of this application.
- FIG. 18 is a second structural diagram of a data transmission device provided by an embodiment of this application.
- FIG. 19 is a schematic diagram of the hardware structure of a data transmission device provided by an embodiment of the application.
- FIG. 1 is a schematic diagram of a data transmission system provided by an embodiment of the present invention. As shown in FIG. 1, the system includes:
- the sending device 101 and the receiving device 102 wherein the sending device 101 and the receiving device 102 transmit data through a first channel.
- the first channel transmits the data sent by the sending device 101 to the receiving device in the form of radio waves.
- the device 102 is used to implement data transmission between the sending device 101 and the receiving device 102.
- the first channel may be a wireless channel, where the wireless channel is an intangible communication between the sending device and the receiving device during wireless communication. Transmission path, as far as radio waves are concerned, it is transmitted from the sending end to the receiving end without a tangible physical connection between them, and there may be more than one propagation path.
- the sending device 101 and the receiving device 102 may be, for example, terminal devices, or may also be network devices, so the following briefly describes the terminal devices and network devices:
- Terminal equipment It is a kind of equipment with wireless transceiver function. Terminal devices can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; they can also be deployed on water (such as ships, etc.); they can also be deployed in the air (such as airplanes, balloons, and satellites).
- the terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiver function, virtual reality (VR) terminal equipment, augmented reality (AR) terminal equipment, industrial Wireless terminals in control (industrial control), vehicle-mounted terminal equipment, wireless terminals in self-driving (self-driving), wireless terminal equipment in remote medical (remote medical), wireless terminal equipment in smart grid (smart grid), Wireless terminal equipment in transportation safety, wireless terminal equipment in smart city, wireless terminal equipment in smart home, wearable terminal equipment, etc.
- VR virtual reality
- AR augmented reality
- industrial Wireless terminals in control industrial control
- vehicle-mounted terminal equipment wireless terminals in self-driving (self-driving)
- wireless terminal equipment in remote medical remote medical
- wireless terminal equipment in smart grid smart grid
- Wireless terminal equipment in transportation safety wireless terminal equipment in smart city, wireless terminal equipment in smart home, wearable terminal equipment, etc.
- the terminal equipment involved in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station , Remote terminal equipment, mobile equipment, UE terminal equipment, wireless communication equipment, UE agent or UE device, etc.
- the terminal device can also be fixed or mobile.
- Network equipment It is a kind of equipment with wireless transceiver function. Including but not limited to: Evolutional Node B (eNB or eNodeB) in long term evolution (LTE), base station (gNodeB or gNB) or transceiver point (gNodeB or gNB) in new radio technology (NR) transmission receiving point/transmission reception poin, TRP), the base station in the subsequent evolution system, the access node in the wireless fidelity (wireless fidelity, WiFi) system, the wireless relay node, the wireless backhaul node, etc.
- the base station can be: a macro base station, a micro base station, a pico base station, a small station, a relay station, or a balloon station, etc.
- the base station can contain one or more co-site or non-co-site TRPs.
- the network device may also be a wireless controller, a centralized unit (CU), and/or a distributed unit (DU) in a cloud radio access network (cloud radio access network, CRAN) scenario.
- the network device can also be a server, a wearable device, or a vehicle-mounted device.
- the following description takes the network device as a base station as an example.
- the multiple network devices may be base stations of the same type, or base stations of different types.
- the base station can communicate with the terminal, and it can also communicate with the terminal through a relay station.
- the terminal can communicate with multiple base stations of different technologies.
- the terminal can communicate with a base station that supports an LTE network, or can communicate with a base station that supports a 5G network, and can also support dual connections with a base station of an LTE network and a base station of a 5G network. , It can also support dual connections with 5G network base stations, etc.
- the specific implementation of the sending device 101 and the receiving device 102 can be selected according to actual needs, as long as the sending device 101 has the wireless sending function and the receiving device 101 has the wireless receiving function.
- the selection of the receiving device 102 is not limited.
- Fig. 2 is a schematic flow chart of the data transmission method in the prior art, as shown in Fig. 2:
- the sending device converts the image data to be transmitted from the RGB color mode to the YCrCb color mode.
- the RGB color mode is a color standard in the industry.
- all colors displayed on the display screen of the terminal device are controlled by this
- the three colors of red (R), green (G), blue (B) are mixed in different proportions, and the YCrCb color mode is used to optimize the transmission of color video signals to make it backward compatible with old-fashioned black-and-white displays. Therefore, converting the image data from the RGB color mode to the YCrCb color mode can ensure the compatible display of the image data on the black and white display screen.
- DCT discrete cosine transform
- the compressed image data is transmitted through the first channel.
- a transmitteer based on Orthogonal Frequency Division Multiplexing (OFDM) is used for data transmission.
- the throughput of the first channel may change during data transmission.
- the throughput of the channel refers to the number of data bits that are correctly transmitted per unit time.
- image compression and Transmission is a completely separate step, which does not take into account the change in channel throughput.
- the channel throughput becomes smaller, it may cause data loss.
- the image data received by the receiving device is lost, it may cause blurring, blurring, etc. Phenomenon, it will cause the user's visual experience to be poor.
- this application provides a data transmission method to ensure the stability of data transmission.
- the method will be introduced below with reference to FIG. 3, which is a first flow chart of the data transmission method provided by this application. .
- the method includes:
- the data sent by the sending device to the receiving device is specifically image data.
- the sending device may divide the video data to be transmitted into frames to obtain multiple first images. A plurality of first images are transmitted sequentially to realize the transmission of video data; or, the sending device may also directly send image data, where the image data includes at least one first image, which is not limited in this embodiment.
- the first image is divided into multiple image blocks.
- the first image may be divided into X ⁇ Y image blocks of equal size.
- X and Y are integers greater than 1; or, the first image can also be divided into multiple image blocks according to a fixed pixel size.
- This embodiment does not limit the specific implementation of the divided image blocks, and in actual operation In the process, the image blocks can be divided according to actual needs, as long as the first image can be divided into multiple image blocks of the same size.
- S302. Determine at least one first image block and at least one second image block among multiple image blocks according to the throughput of the first channel, where the total data amount of the first image block is less than or equal to the minimum throughput of the first channel the amount.
- the sending device divides multiple image blocks into a first image block and a second image block, where the first image block can be understood as a key image block ( key block), which is specifically an image block that needs to be successfully transmitted, and the second image block can be understood as a Not Key block, which is specifically an image block to be transmitted as best as possible, that is, the first image is guaranteed first
- the second image block may not be transmitted currently.
- At least one first image block and at least one second image block in this embodiment jointly constitute all the image blocks obtained by division, that is to say, in this embodiment
- multiple image blocks can be divided into a first image block and a second image block.
- the first image block and the second image block are divided according to the throughput of the first channel.
- the sending device can obtain the throughput of the first channel at the current moment.
- the transmission quality of the channel is changing all the time, so the throughput of the first channel at the current moment is usually within a range, and the minimum throughput of the first channel can be further determined.
- the throughput of the first channel can be 25.5Mb/s( Megabits per second)-10Mb/s, then the minimum throughput of the first channel is 10Mb/s.
- this embodiment determines at least one first image block among multiple image blocks, where each image block corresponds to the same size, for example, a first image block.
- the image block may be 4 bits, and the size of each image block in this embodiment depends on the division method of the image block in step S301, which is not limited in this embodiment.
- the determined total data volume of the first image block is less than or equal to the minimum throughput of the first channel.
- the image blocks other than the first image block are determined as the second image block, because the size of each image block in this embodiment is the same, and the amount of data is the same, so
- the number of second image blocks can be obtained according to the total data volume of image blocks other than the first image block and the individual data volume of each image block; or, the second image block can also be determined directly based on the above-mentioned divided image blocks.
- the number of image blocks is not particularly limited in this embodiment.
- sampling selection at equal intervals may be performed among multiple image blocks, at least one image block obtained by sampling is determined as the first image block, and at least one image block that is not sampled is determined as the first image block.
- the sum of the number sum and the number of the second image block is the total number of divided image blocks.
- This embodiment does not limit the specific division of the first image block and the second image block. It can be understood that as long as the total data volume of the first image block is less than or equal to the minimum throughput of the first channel, and the first The sum of the number of image blocks and the number of second image blocks only needs to be the total number of image blocks, and the specific implementation manner can be set according to actual requirements.
- the first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block.
- any first image block by setting the transmission priority of any first image block to be greater than the transmission priority of any second image block, it is possible to give priority to the first image block when the first image block and the second image block coexist.
- Image block transmission and because the total data volume of the first image block is less than or equal to the minimum throughput of the first channel, the successful transmission of the first image block can be guaranteed.
- the total data volume of the first image block in this embodiment is less than or equal to the minimum throughput of the first channel. Therefore, it can be guaranteed that under the current throughput of the first channel, the first image block must be For successful transmission, as long as the receiving device can successfully receive the first image block, the problem of key image data loss caused by fluctuations in the channel throughput can be avoided, thereby ensuring the stability of the data transmission of the first image block.
- the second image block is transmitted as best, that is to say, under the actual throughput of the current first channel, the second image block can be transmitted as much as possible. How much is transmitted, it can be understood that the more second image blocks are transmitted, the clearer the first image displayed by the receiving device.
- the second image block can be discarded, or when the preset period arrives, if the first image block does not exist, try to transfer the second image block. Block retransmission.
- the first MCS order corresponding to the first image block can be obtained, and the second image can be obtained.
- the MCS order when the first channel transmits the first image block is the first MCS order, and the first channel transmits the second image block
- the MCS order at that time is the second MCS order.
- the MCS order is first introduced here.
- the first channel includes many different data streams.
- the data stream is used to realize the transmission of image blocks. Different data streams correspond to their respective MCS orders.
- the first MCS order corresponding to the first image block is set to be smaller than the second MCS order corresponding to the second image block to be transmitted. It can effectively guarantee the successful transmission of the first image block.
- a first MCS order table and a second MCS order table may be preset, wherein the first MCS order table and the second MCS order table both include multiple MCS orders At the same time, any MCS order in the first MCS order table is smaller than any MCS order in the second MCS order table.
- the first MCS order The table is determined as the table corresponding to the first image block
- the second MCS order table is determined as the table corresponding to the second image block, so that the first MCS order and the second MCS order can be obtained.
- the corresponding table can be consulted to determine the MCS order, and the image block can be transmitted according to the MCS order.
- a better channel coding manner may also be assigned to the first image block to ensure the successful transmission of the first image block.
- the data transmission method provided by the embodiment of the present application includes: dividing the first image into a plurality of image blocks. According to the throughput of the first channel, at least one first image block and at least one second image block are determined among a plurality of image blocks, wherein the total data amount of the first image block is less than or equal to the minimum throughput of the first channel. The first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block.
- the transmission priority is greater than the transmission priority of any second image block, so that under the current throughput of the first channel, the successful transmission of the first image block can be effectively guaranteed, and the retransmission of key data can be avoided.
- the resulting data transmission lacks stability.
- FIG. 4 is the second flowchart of the data transmission method provided by the embodiment of the present application
- Fig. 5 is The image block division diagram provided by the embodiment of the present application.
- FIG. 6 is the first schematic diagram of the third image block provided by the embodiment of the present application.
- FIG. 7 is the second schematic diagram of determining the third image block provided by the embodiment of the present application.
- FIG. 9 is a schematic diagram of the first image formed by part of the image blocks provided by the embodiment of this application.
- 11 is the second schematic diagram of image block reallocation provided in the embodiment of this application.
- the method includes:
- each image block may include 8 ⁇ 8 pixels.
- FIG. 5 is only an example of a possible way of dividing image blocks.
- the specific way of dividing image blocks can be selected according to actual needs.
- the specifications of the division or the way of dividing can be selected according to actual needs.
- S402 Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel.
- the first value R is used to determine the third image block and the fourth image block in the subsequent steps.
- the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the first value R.
- the ratio of the total data volume of the first image block to the total data volume of the first image block and the total data volume of the second image block is less than the ratio of the value 1 to the first value R, In other words, the value of the first value satisfies the following formula 2:
- the first value is the difference between the ratio of the maximum throughput and the minimum throughput of the first channel, that is, the value of the first value satisfies the following formula 3:
- U is the numerator of the ratio of the maximum throughput to the minimum throughput
- V is the denominator of the ratio of the maximum throughput to the minimum throughput
- the first value R in this embodiment is used to subsequently determine the third image block and the fourth image block, and its specific implementation method can be extended according to actual needs based on the above introduction, as long as the first value R is used to determine the third image block and the fourth image block.
- a value is determined according to the maximum throughput and minimum throughput of the first channel, and can be used to determine the image block.
- the first value can be Rounding
- the rounding method can be, for example, rounding, rounding up, rounding down, etc., which is not limited here.
- the first value in this embodiment is determined by the sending device according to the throughput of the first channel. Therefore, the first value R in this embodiment will change. Therefore, the various types of R described above are Possible implementations are determined in a certain channel scenario and within a certain time range. As time goes by and the channel scenario changes, the corresponding R will change. At the same time, the sending device also needs to signal The determined first value is sent to the receiving device, so that the same first value is synchronized between the sending device and the receiving device, thereby ensuring that the receiving device successfully receives and parses the first image.
- a third image block is determined in every R image blocks of the plurality of image blocks, and image blocks other than the third image block are determined as the fourth image block.
- the first value is used to determine the third image block and the fourth image block.
- the third image block and the fourth image block are described.
- the third image block (must block ) Is an image block that must be successfully transmitted
- the fourth image block (Not Must block) includes a best-effort image block, and may also include an image block that must be successfully transmitted.
- the image blocks included in the fourth image block are the image blocks that are transmitted as best as possible.
- some image blocks can be selected from the fourth image block as the first image block, and these selected image blocks are the images that must be successfully transmitted. Therefore, the transmission of more image blocks can be realized under the current throughput of the first channel.
- R image blocks are used as a sampling unit, and one or more third image blocks are determined in each R image block.
- the possible implementation of determining the third image block is introduced:
- the Kth image block in every R image blocks may be determined as the third image block, where K is an integer greater than or equal to 1.
- the first image block in every 4 image blocks is determined as the third image block, which is marked by a bold solid line in Figure 6
- a sampling unit (every 4 image blocks) is drawn, and the first image block in every 4 image blocks is marked with a shadow to indicate that the current image block is the third image block, and at the same time, except for the third image block Is the fourth image block, and a blank mark is used in the figure.
- Figure 6 is only an exemplary introduction to this implementation.
- 4 image blocks in a row can be used as a sampling unit, or 4 image blocks in a column can be used as a sampling unit.
- the image block is used as a sampling unit, etc., where the specific implementation manner of K can also be selected according to actual requirements. This embodiment does not limit the division of the sampling unit and the selection of K.
- the first average value of the pixel values of each R image block may be determined, and the target image block in each R image block may be determined as the third image block, where the value of the target image block The difference between the mean value of the pixel value and the first mean value is the smallest.
- Each image block includes multiple pixels, and each pixel corresponds to its respective pixel value. Then, every 4 image blocks can be determined according to the pixel value of each pixel. The first average value of the pixel values, see Fig.
- the target image block corresponding to the average pixel value of 5 is determined as the third image block, marked with a shadow, except for the third image block
- the determined image block is the fourth image block, which is marked with a blank.
- the determined third image block and the fourth image block can be as shown in Figure 7. It is understandable that because the method of calculating the difference is adopted in this embodiment, , The arrangement of the third image block is irregular.
- each image included in the first image All the blocks are determined to be the third image block, referring to FIG. 8, each image block in the current first image is marked with shading to indicate that all the image blocks in the current first image are third image blocks.
- another first image or another video frame can be sacrificed, that is, part or all of the other first image or video frame is used as the fourth image block to ensure the successful transmission of the current image frame.
- this embodiment is aimed at image data.
- the current transmission data is voice data or control data
- voice data or control data can only be received if successful transmission is guaranteed.
- the device receives correct information, it needs to use voice data or control data as data that must be successfully transmitted, which can be used as a third data block (must block), which is equivalent to the third image block in this embodiment.
- the third image block in this embodiment is an image block that must be successfully transmitted.
- the selected third image blocks are not because the current image block is in the first image.
- this embodiment only selects a uniformly sampled image block in the first image as the third image block, because for an image, when the first channel cannot guarantee the complete transmission of the first image, Part of the data sampled therein can be transmitted, and the sampled data can still completely represent the information carried in the first image.
- the number of image blocks is very large. In the actual application process, when the number of image blocks is large, it will not affect the display of the first image. The effect will be described below with reference to FIG. 9:
- 901 in Fig. 9 is the original first image
- 902 is the first image corresponding to the original first image with some image blocks missing. It can be seen from Fig. 9 that although 902 does not Including all pixels, but we can still receive the information included in the first image.
- Fig. 9 is only an exemplary illustration, and the image block loss effect shown by it is relatively serious. In the actual application process, it is very likely that only a small part of the image block cannot be successfully transmitted, so the receiving device The first image received does not have very obvious pixel missing.
- the third image block and the fourth image block are selected according to R. Therefore, the number of selected third image blocks may be less than the minimum throughput of the first channel, or may be equal to the maximum throughput of the first channel. In this embodiment, the specific number of the third image block cannot be determined.
- the first image block is set in this embodiment. The total data volume of the image block is equal to the minimum throughput of the first channel.
- the third image block in this embodiment is an image block that must be successfully transmitted. Therefore, it is first determined whether the total data volume of the third image block is equal to the minimum throughput of the first channel.
- S405. Determine the third image block as the first image block, and determine the fourth image block as the second image block.
- the third image block is directly determined as the first image block, so that the successful transmission of the first image block can be ensured under the current throughput of the first channel.
- the fourth image block is determined to be the second image block.
- the total data volume of the third image block is not equal to the throughput of the first channel, in a possible implementation, the total data volume of the third image block is less than the throughput of the first channel, indicating that the current first channel In the case of throughput, in addition to guaranteeing the successful transmission of the third image block, there are extra resources to ensure the successful transmission of part of the fourth image block. Then you can select the sub-image block in the fourth image block and change This part of the sub-image block selected from the fourth image also serves as the first image block.
- the sub-image block may be a complete image block or a part of an image block.
- the total data volume of the first image block is equal to the minimum throughput of the first channel, and the total data volume of the third image block and the selected sub-image block is equal to the throughput of the first channel.
- the total data volume of the third image block is greater than the minimum throughput of the first channel, it indicates that according to the minimum throughput of the first channel at this time, there is no way to ensure that all third image blocks are The successful transmission of the image block.
- the third image block is transmitted as best as possible. If the transmission of the third image block times out and the transmission is still not successful, the third image block can only be discarded .
- the third image block can be directly determined as the first image block, and a specific example will be combined below.
- the total data amount of the third image block is less than the minimum throughput of the first channel, a possible implementation manner of determining the first image block and the second image block according to the third image block and the fourth image block is described:
- the total data volume of the third image block is less than the minimum throughput of the first channel.
- it is necessary to select sub-image blocks from the fourth image block to make the total data of the first image block The amount can be equal to the minimum throughput of the first channel.
- an image block includes 8 ⁇ 8 pixels.
- DCT processing can also be performed on each pixel block, wherein, each pixel block is obtained.
- Each corresponding frequency coefficient matrix, where an image block includes 8 ⁇ 8 pixels, then the 8 ⁇ 8 frequency coefficient matrix corresponding to the pixel block has 1 direct current (DC) component and 63 alternating current (AC) components ,
- DC direct current
- AC alternating current
- the first row of pixels in the fourth image block can be used as the selected sub-image block, and for the eight fourth image blocks, the first row of pixels in each of them can be determined as the first image block, so that the The total data volume of the selected sub-image block and the third image block is equal to the minimum throughput of the first channel, then the first image block includes the third image block and part of the fourth image block.
- An image block is
- the remaining sub-image blocks that are not selected in the fourth image block are determined to be the second image blocks, and 7 second image blocks can be obtained in this embodiment.
- the third image block can be split into upper and lower parts, where the upper part and the sub-image blocks in the four fourth image blocks together form a first image Block, the lower half and the other four sub-image blocks in the fourth image block together constitute another first image block.
- the selected pixels in Fig. 11 are exactly the same.
- the difference lies in the first image block.
- the division method of an image block that is, the first image block can be a complete image block, and it can also be incomplete and discontinuous. In this embodiment, as long as the total data of the first image block is The amount is equal to the minimum throughput of the first channel, and the specific division method can be selected according to actual needs.
- the fourth image block there are many ways to select sub-image blocks in the fourth image block.
- one column can be selected; or, you can Select one pixel in each row; alternatively, the current complete fourth image block can also be determined as the first image block, which is not limited in this embodiment, that is, this embodiment does not specifically limit the first image block.
- the selection method of the image block as long as it is ensured that the third image block is all the first image block, and the total data volume of the first image block is equal to the minimum throughput of the first channel, its various possible implementation methods can be based on actual needs. To expand, I won’t go into details here.
- the ratio of the total data volume of the first image block to the total data volume of the second image block may be set to satisfy the following formula 5:
- the minimum throughput of the first channel is 2 and the maximum throughput of the first channel is 10, then the total data volume of the first image block and the total data volume of the second image block
- the ratio relationship of can be 2:7, that is to say, on the basis of ensuring the successful transmission of the first image block according to the minimum throughput, the second image block is transmitted as best as possible according to the actual channel state of the first channel.
- S407 is similar to that of S303, and will not be repeated here.
- the data transmission method provided by the embodiment of the present application includes: dividing the first image into a plurality of image blocks. According to the maximum throughput of the first channel and the minimum throughput of the first channel, the first value R is determined. According to the first value, the third image block is determined in every R image blocks among the plurality of image blocks, and the image blocks other than the third image block are determined as the fourth image block. It is determined whether the total data volume of the third image block is equal to the minimum throughput of the first channel, and if so, the third image block is determined as the first image block, and the fourth image block is determined as the second image block.
- the sub-image block in the fourth image block determine the third image block and the selected sub-image block as the first image block, and set the image blocks other than the sub-image block in the fourth image block Determined as the second image block.
- the total data amount of the selected sub-image block and the third image block is equal to the minimum throughput of the first channel.
- the first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block.
- multiple image blocks may be transmitted through two different queues, or multiple image blocks may also be transmitted through the same queue. Transmission, the following two different implementations are introduced separately.
- FIG. 12 is the third flowchart of the data transmission method provided by the embodiment of the application
- FIG. 13 is the first queue provided by the embodiment of the application.
- the schematic diagram of the second queue is the third flowchart of the data transmission method provided by the embodiment of the application.
- the method includes:
- S1202 Store the second image block in the second queue.
- the first image block and the second image block are stored in different queues, referring to FIG. 13, the first image block is stored in the first queue, and the second image block is stored in the second queue, where, The first queue and the second queue are both buffer queues in the first channel, and image blocks are transmitted in a queue manner, which can ensure the order of image block transmission and avoid confusion.
- the transmission priority of the first queue is set to be greater than the transmission priority of the second queue in this embodiment, so that the transmission priority of the first queue is greater than that of the second queue.
- the image blocks in the first queue are preferentially transmitted through the first channel. After the image blocks in the first queue are transmitted, that is, when the first queue is empty, the first channel is used to transfer the image blocks to the first queue.
- the image blocks in the second queue are transmitted, so it can be understood that the second image block is transmitted in a best-effort manner.
- the first queue may adopt an enhanced distributed channel access (Enhanced Distributed Channel Access, EDCA) queue.
- EDCA Enhanced Distributed Channel Access
- the data transmission method provided by the embodiment of the present application includes: storing the first image block in the first queue.
- the image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the image blocks in the first queue are transmitted.
- the transmission priority of the first queue is greater than the transmission priority of the second queue.
- FIG. 14 is the fourth flowchart of the data transmission method provided by the embodiment of the application
- FIG. 15 is provided by the embodiment of the application. Schematic diagram of the third queue.
- the method includes:
- the first image block and the second image block are stored in the same queue.
- the first image block is always at the head of the queue, specifically, that is, the first image block is always in front of the second image block.
- the generated first image block needs to be stored in the third queue, but before storing, we first need to determine whether the third queue can store the first image block. Specifically, it is determined whether the remaining storage space of the third queue is less than the total data amount of the first image block.
- this embodiment will At least one second image block at the end of the three queues is deleted from the third queue, where the specific number of deleted second image blocks depends on the current remaining storage space and the total data volume of the first image block to be sent. The difference, in this embodiment, the total data amount of the at least one second image block that is set to be deleted is greater than or equal to the total data amount of the first image block.
- the second image block deleted in this embodiment is actually the second image block of the previous first image. See Figure 15, which is represented by different shading effects. Image blocks corresponding to two different first images, by deleting the second image block that was not sent by the previous first image, it can be ensured that no matter which first image it is for, the first image block can be achieved. Priority delivery.
- the remaining storage space of the third queue is not less than the total data volume of the first image block, or after at least one second image block at the end of the queue is deleted, the remaining storage space of the current third queue can realize the first image block to be sent.
- the first image block is first stored in the third queue. After the storage of the first image block is completed, if there is remaining storage space, part or all of the second image block is stored in the third queue in.
- the first image block stored in the third queue and the original image block in the previous queue are image blocks corresponding to different first images.
- the data transmission method provided by the embodiment of the present application includes: determining whether the remaining storage space of the third queue is less than the total data amount of the first image block, and if so, deleting at least one second image block at the end of the third queue, wherein: The total data amount of the deleted at least one second image block is greater than or equal to the total data amount of the first image block. If not, the first image block and the second image block are stored in the third queue. In the third queue, the first image block is located before the second image block.
- the first image block and the second image block are stored in the same queue, for the same first image, it is ensured that the first image block is stored before the second image block, and when the next first image generates the first image block ,
- the second image block in the queue can be deleted to ensure that the first image block is preferentially stored in the third queue, thereby effectively ensuring the preferential transmission of the third image block.
- the data transmission method provided by this application also sets a maximum transmission duration for the first image block and the second image block respectively, so as to avoid the first image block and the second image block.
- Image blocks occupy the queue for a long time, resulting in low data transmission efficiency or queue congestion.
- the maximum transmission duration is used to indicate the maximum duration that the current image block transmission can occupy the queue, which can be understood as a timer.
- the timer expires, if the current image block has not been transmitted, Then the current image block is deleted from the third queue, or it may try to retransmit after a preset period of time, or the image block may be directly discarded.
- the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
- this embodiment only guarantees the successful transmission of the first image block at the level of the throughput rate of the first channel. If the first image block is not successfully transmitted for a long time due to data corruption, data error, etc., such problems are inevitable. At this time, deleting the first image block can effectively improve the transmission efficiency of the remaining image blocks and avoid causing The queue is congested.
- the method includes:
- S1601 Perform discrete cosine transform processing, and/or quantization processing, and/or sort processing on multiple image blocks to obtain processed image blocks.
- the discrete cosine transform (Discrete Cosine Transform, DCT) is a transform related to the Fourier transform, which can be used for image compression, can convert the signal in the pixel domain to the frequency domain, and has good decorrelation. Performance. DCT processing can create good conditions for subsequent quantization processing, Huffman coding processing, etc. in image encoding, and DCT coefficient matrix can be obtained after DCT processing.
- DCT Discrete Cosine Transform
- this embodiment can also perform quantization processing on multiple image blocks.
- the quantization processing is the process of converting the corresponding brightness continuous change interval on the pixel into a single specific number.
- the quantization process is actually the DCT coefficient An optimization process of the matrix. It uses the human eye's insensitivity to high-frequency parts to achieve substantial simplification of data.
- this embodiment can also perform sorting processing on images, where the sorting processing is specifically ZigZag sorting, because the importance of the coefficient matrix is arranged according to the ZigZag mode to a certain extent, so the front of the coefficient matrix can be extracted through the ZigZag mode
- the important element is used as a feature of the first image in the frequency domain, and then used for classification processing, etc., to achieve the effect of dimensionality reduction.
- Singular Value Decomposition when compressing the first image, in addition to DCT processing, Singular Value Decomposition (SVD) processing can also be used to compress the image.
- the singular value of the matrix Decomposition is a decomposition method of the matrix. Using the singular value decomposition of the matrix, the main information of the matrix can be extracted, so that the information similar to the original matrix can be restored with less data than the original matrix to achieve the compression of the first image. .
- the amount of data can be effectively reduced, so as to improve the efficiency of data transmission in the subsequent data processing process.
- S1602. Perform joint compression on every first number of processed image blocks to obtain multiple image blocks after joint compression.
- the first number is introduced in the foregoing embodiment.
- the first number R can also be used for joint compression of image blocks in this embodiment.
- joint compression is performed on every R processed image blocks.
- the specific processing method of the joint compression may be Huffman coding compression to obtain multiple image blocks after joint compression.
- the compression ratio of the image blocks can be effectively increased, thereby effectively increasing the data transmission rate in the subsequent data transmission process.
- the data transmission method provided by the embodiment of the present invention includes: performing discrete cosine transform processing, and/or quantization processing, and/or sorting processing on multiple image blocks to obtain processed image blocks. Perform joint compression on every first number of processed image blocks to obtain multiple image blocks after joint compression. By performing encoding processing and joint compression processing on image blocks, the amount of transmitted data can be effectively reduced to improve data transmission efficiency.
- FIG. 17 is a first structural schematic diagram of the data transmission device provided by the embodiment of the application. As shown in FIG. 17, the device 170 includes a dividing module 1701, a determining module 1702, and a transmission module 1703.
- the dividing module 1701 is configured to divide the first image into multiple image blocks
- the determining module 1702 is configured to determine at least one first image block and at least one second image block in the plurality of image blocks according to the throughput of the first channel, wherein the total data amount of the first image block is less than Or equal to the minimum throughput of the first channel;
- the transmission module 1703 is configured to transmit the first image block and the second image block through the first channel, wherein the transmission priority of any one of the first image blocks is greater than that of any one of the second image blocks Transmission priority.
- the transmission module 1703 is specifically configured to:
- the image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized
- the level is greater than the transmission priority of the second queue.
- the transmission module 1703 is specifically configured to:
- the image blocks in the third queue are sequentially transmitted.
- the transmission module 1703 is further configured to:
- the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
- the transmission module 1703 is specifically configured to:
- the first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
- the determining module 1702 is specifically configured to:
- a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;
- the third image block is determined as the first image block
- the fourth image block is determined as the first image block. Two image blocks.
- the determining module 1702 is further configured to:
- the determining module 1702 is specifically configured to:
- the Kth image block in every R image blocks is determined as the third image block.
- the determining module 1702 is specifically configured to:
- the target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
- the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
- the determining module 1702 is further configured to:
- FIG. 18 is a second schematic diagram of the structure of the data transmission device provided by the embodiment of the present application. As shown in FIG. 18, the division module 1801, the determination module 1802, and the transmission module 1803.
- the dividing module 1801 divides the first image into multiple image blocks. In a possible implementation manner, there may be 3 types of processing:
- Type 1 Perform sampling processing on multiple image blocks to obtain a third image block and a fourth image block;
- Type 2 After performing DCT processing/SVD processing, quantization processing, and sorting processing on multiple image blocks, then perform joint compression on R (first number) image blocks, and select the third image from the jointly compressed image blocks Block and the fourth image block;
- Type 3 After sampling multiple image blocks, perform DCT processing, quantization processing, sorting processing, and joint compression processing to obtain the third image block and the fourth image block;
- the implementation of selecting the third image block and the fourth image block from the jointly compressed image block is similar to the sampling process, and the sampling process described above corresponds to the foregoing embodiment in FIG. 4
- the implementation of step S403 of, will not be repeated here.
- the above-mentioned DCT processing/SVD processing, quantization processing, and sorting processing can also be selected according to actual needs, and not all need to be executed.
- please refer to the above-mentioned Figure 16 The content introduced in the embodiment.
- the determining module 1802 needs to determine the first image block and the second image block among multiple image blocks, and first divide the image block into a third image block and a fourth image block, but because the third image block and the fourth image block The number of image blocks may not meet the requirements.
- this embodiment is based on the third image block (Must block) and the fourth image block (Not Must block). ) Perform reallocation to obtain the first image block (Key block) and the second image block (Not Key block).
- the transmission module 1803 performs data transmission. See FIG. 18. Multiple image blocks are transmitted through the sending queue in the first channel. At the same time, for each first image block and each second image block in the sending queue A timer is set, and the maximum transmission time of the current image block has been indicated. Each image block in the queue is wirelessly transmitted through the standard WIFI sending unit of the sending device.
- the next step is to receive data from the receiving device.
- the standard WIFI receiving unit of the receiving device receives data and restores the received image block to obtain the third image block and/or the fourth image block.
- the sending device reallocates the image blocks, the receiving device needs to restore the reallocated image blocks.
- the receiving device decompresses the restored image block corresponding to Huffman coding, and puts the multiple image blocks obtained by decompression into the buffer queue, and each image block in the buffer queue may also have its own timing.
- the timer is used to indicate the maximum resolution time of the image block, and then the inverse DCT processing/inverse SVD processing is performed on each image block in the buffer queue to obtain the original image block, and perform the first picture according to each image block
- the buffer is displayed to display the first picture on the display screen of the receiving device.
- the receiving device only when the sending device performs the joint compression of the Huffman code, the receiving device will correspondingly decompress the Huffman code. Similarly, only when the sending device has performed the DCT processing/SVD processing, the receiving device will correspond.
- the anti-DCT processing/anti-SVD processing is performed on the, so these two processings are not necessarily operations that need to be performed, so the dotted box is used for identification.
- the data processing device provided in this embodiment adaptively adjusts the division of the first image block and the second image block in the first image according to the change in the throughput of the first channel, thereby effectively ensuring the successful transmission of the key image block
- the transmission of the first channel is jittered, the first image received by the receiving device will become blurred, but the user experience is less, thereby balancing the channel delay and channel jitter, and in this embodiment, when the wireless transmission delay occurs, there is no need to
- the receiving device feeds back the condition of the first channel to the sending device, so that the sending device performs scheduling, but the sending device adjusts adaptively, which can effectively reduce the delay of data transmission.
- data transmission is carried out through the standard WiFi sending unit, the standard WiFi receiving unit, and the standard WiFi protocol. Therefore, it can be compatible with the existing WiFi transmission protocol, effectively ensuring the applicability of wireless data transmission, and by Joint compression of multiple image blocks can effectively increase the compression ratio of data and increase the amount of data transmission.
- FIG. 19 is a schematic diagram of the hardware structure of a data transmission device provided by an embodiment of the application.
- the data transmission device 190 of this embodiment includes: a memory 1901, a processor 1902, and a radio frequency transceiver 1903.
- the memory 1901 uses For storing programs or instructions.
- the processor 1902 can implement the functions of the dividing module 1701 and the determining module 1702 in Figs. 17-18, and the radio frequency transceiver 1903 can implement the functions of the transmission module 1703 in Figs. 17-18. See the related descriptions in the foregoing method embodiment and device embodiment. as well as
- the memory 1902 may be independent or integrated with the processor 1901.
- the data transmission device further includes a bus 1904 for connecting the memory 1902 and the processor 1901.
- the foregoing processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (ASICs) )Wait.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the steps in the embodiment of the service processing method disclosed in the embodiment of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
- the embodiments of the present application also provide a computer-readable storage medium that stores computer-executable instructions.
- the processor executes the computer-executed instructions, the data transmission method executed by the above data transmission device is implemented. .
- the embodiments of the present application provide a computer program product.
- the computer program product includes instructions that, when executed, cause a computer to execute the above-mentioned data transmission method.
- An embodiment of the present application provides a system on a chip or a system chip, the system on a chip or a system chip may be applied to a terminal device, and the system on a chip or a system chip includes: at least one communication interface, at least one processor, and at least one The memory, the communication interface, the memory, and the processor are interconnected by a bus, and the processor executes the instructions stored in the memory so that the terminal device can execute the above-mentioned data transmission method.
- All or part of the steps in the foregoing method embodiments may be implemented by a program instructing relevant hardware.
- the aforementioned program can be stored in a readable memory.
- the program executes the steps including the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, Solid state hard disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
- These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing equipment can be used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
- These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
- the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
- These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
- the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
- the term “including” and its variations may refer to non-limiting inclusion; the term “or” and its variations may refer to “and/or”.
- the terms “first”, “second”, etc. in the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
- “multiple” refers to two or more.
- “And/or” describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone.
- the character “/” generally indicates that the associated objects before and after are in an "or” relationship.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Provided in embodiments of the present application are a data transmission method and device, the method comprising: dividing a first image into multiple image blocks; according to the throughput of a first channel, determining at least one first image block and at least one second image block among the multiple image blocks, the total data amount of the first image blocks being less than or equal to the minimum throughput of the first channel; and transmitting the first image block(s) and the second image block(s) by means of the first channel, the transmission priority of any one of the first image blocks being greater than the transmission priority of any one of the second image blocks. By dividing a first image block and a second image block and by configuring the total data amount of the first image block as less than or equal to the minimum throughput of a first channel and the transmission priority of the first image block as greater than the transmission priority of the second image block, the successful transmission of the first image block may be effectively ensured under the condition of the current throughput of the first channel, avoiding the problem in which data transmission lacks stability.
Description
本申请涉及通信领域,尤其涉及一种数据传输方法及装置。This application relates to the field of communications, and in particular to a data transmission method and device.
随着通信技术的不断发展,通过数据传输信道对数据进行传输的过程中,对数据传输的稳定性要求也越来越高。With the continuous development of communication technology, in the process of data transmission through the data transmission channel, the requirements for the stability of the data transmission are getting higher and higher.
目前,现有技术在通过数据传输信道对数据进行传输时,通常是将数据进行压缩,并通过数据传输信道对压缩后的数据进行传输,当数据传输信道的吞吐率出现抖动时,可能会导致关键数据丢失,在发生数据丢失,需要对关键数据进行重传。At present, when the existing technology transmits data through a data transmission channel, it usually compresses the data and transmits the compressed data through the data transmission channel. When the throughput of the data transmission channel is jittered, it may cause Critical data loss. In the event of data loss, the critical data needs to be retransmitted.
然而,数据重传会使得数据传输的延迟较大,从而使得数据传输缺乏稳定性。However, data retransmission will cause a large delay in data transmission, which makes the data transmission lack of stability.
发明内容Summary of the invention
本申请实施例提供一种数据传输方法及装置,以克服数据传输缺乏稳定性的问题。The embodiments of the present application provide a data transmission method and device to overcome the problem of lack of stability in data transmission.
第一方面,本申请实施例提供一种数据传输方法,包括:In the first aspect, an embodiment of the present application provides a data transmission method, including:
将第一图像划分为多个图像块;为了保证数据传输的稳定性,本申请将多个图像块进行了划分,其中,根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,所述第一图像块的总数据量小于或等于所述第一信道的最小吞吐量;以及,通过所述第一信道传输所述第一图像块和所述第二图像块,其中,任一所述第一图像块的传输优先级大于任一所述第二图像块的传输优先级。The first image is divided into multiple image blocks; in order to ensure the stability of data transmission, this application divides the multiple image blocks, wherein, according to the throughput of the first channel, at least among the multiple image blocks is determined One first image block and at least one second image block, wherein the total data amount of the first image block is less than or equal to the minimum throughput of the first channel; and the first image block is transmitted through the first channel An image block and the second image block, wherein the transmission priority of any one of the first image blocks is greater than the transmission priority of any one of the second image blocks.
通过根据第一信道的吞吐量进行第一图像块和第二图像块的划分,通过设置第一图像块的总数据量小于或等于第一信道的最小吞吐量,并且任一第一图像块的传输优先级大于任一第二图像块的传输优先级,从而可以在当前第一信道的吞吐量的条件下,能够有效保证对第一图像块的成功传输,避免了对关键数据的重传所导致的数据传输缺乏稳定性。By dividing the first image block and the second image block according to the throughput of the first channel, by setting the total data volume of the first image block to be less than or equal to the minimum throughput of the first channel, and the The transmission priority is greater than the transmission priority of any second image block, so that under the current throughput of the first channel, the successful transmission of the first image block can be effectively guaranteed, and the retransmission of key data can be avoided. The resulting data transmission lacks stability.
在一种可能的实现方式中,可以将第一图像块和第二图像块存储至不同的队列进行数据传输,也就是说:In a possible implementation, the first image block and the second image block can be stored in different queues for data transmission, that is to say:
通过所述第一信道传输所述第一图像块和所述第二图像块的实现方式可以是:The implementation manner of transmitting the first image block and the second image block through the first channel may be:
将所述第一图像块存储至第一队列;Storing the first image block in the first queue;
将所述第二图像块存储至第二队列;Storing the second image block in a second queue;
通过所述第一信道传输所述第一队列中的图像块,以及在所述第一队列中的图像块传输完成后传输所述第二队列中的图像块,所述第一队列的传输优先级大于所述第二队列的传输优先级。The image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized The level is greater than the transmission priority of the second queue.
通过将第一图像块和第二图像块分别存储至不同的队列,从而可以保证图像块发送的有序性,同时通过设置第一队列的优先级大于第二队列的优先级,从而可以对第一图像块进行优先传输,从而能够保证第一图像块的成功传输。By storing the first image block and the second image block in different queues, the order of image block transmission can be ensured. At the same time, by setting the priority of the first queue to be greater than the priority of the second queue, One image block is preferentially transmitted, so as to ensure the successful transmission of the first image block.
在另一种可能的实现方式中,可以将第一图像块和第二图像块存储至相同的队列进行数据传输,也就是说:In another possible implementation manner, the first image block and the second image block can be stored in the same queue for data transmission, that is to say:
通过所述第一信道传输所述第一图像块和所述第二图像块的实现方式可以是:The implementation manner of transmitting the first image block and the second image block through the first channel may be:
将所述第一图像块和所述第二图像块存储至第三队列,在所述第三队列中,任一所述第一图像块位于任一所述第二图像块之前;Storing the first image block and the second image block in a third queue, in which any one of the first image blocks is located before any one of the second image blocks;
通过所述第一信道,依次传输所述第三队列中的图像块。Through the first channel, the image blocks in the third queue are sequentially transmitted.
以及,在所述将所述第一图像块存储至所述第三队列之前,还可与首先确定第三队列的剩余存储空间是否小于第一图像块的总数据量,若第三队列的剩余存储空间小于所述第一图像块的总数据量,则删除所述第三队列队尾的至少一个第二图像块,其中,所述被删除的至少一个第二图像块的总数据量大于或等于所述第一图像块的总数据量。And, before storing the first image block in the third queue, it can also first determine whether the remaining storage space of the third queue is less than the total data volume of the first image block, if the remaining storage space of the third queue If the storage space is less than the total data amount of the first image block, at least one second image block at the end of the third queue is deleted, wherein the total data amount of the deleted at least one second image block is greater than or It is equal to the total data amount of the first image block.
从而在第一图像块和第二图形块存储在同一个队列时,针对同一个第一图像,保证第一图像块存储在第二图像块之前,并且在下一个第一图像产生第一图像块时,可以删除队列中的第二图像块以保证优先将第一图像块存储至第三队列中,从而能够有效保证对第三图像块的优先传输。Therefore, when the first image block and the second image block are stored in the same queue, for the same first image, it is ensured that the first image block is stored before the second image block, and when the next first image generates the first image block , The second image block in the queue can be deleted to ensure that the first image block is preferentially stored in the third queue, thereby effectively ensuring the preferential transmission of the third image block.
在一种可能的实现方式中,所述第一图像块的最大传输时长大于所述第二图像块的最大传输时长。In a possible implementation manner, the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
针对第一图像块和第二图像块还分别设置有最大传输时长,能够有效避免第一图像块和第二图像块长时间占用队列,造成数据传输效率较低,或者队列拥塞的问题,同时通过设置第一图像块的最大传输时长较大,从而可以有效保证第一图像块的传输成功率。For the first image block and the second image block, the maximum transmission time is also set respectively, which can effectively avoid the first image block and the second image block occupying the queue for a long time, resulting in low data transmission efficiency or queue congestion. The maximum transmission duration of the first image block is set to be larger, so that the transmission success rate of the first image block can be effectively guaranteed.
在一种可能的实现方式中,所述通过所述第一信道传输所述第一图像块和所述第二图像块可以是:In a possible implementation manner, the transmitting the first image block and the second image block through the first channel may be:
获取所述第一图像块对应的至少一个第一调制与编码策略MCS阶数,以及,获取所述第二图像块对应的至少一个第二MCS阶数,其中,任一所述第一MCS阶数小于任一所述第二MCS阶数;Acquire at least one first modulation and coding strategy MCS order corresponding to the first image block, and obtain at least one second MCS order corresponding to the second image block, wherein any of the first MCS orders Is smaller than any of the second MCS orders;
通过所述第一信道传输所述第一图像块和所述第二图像块,其中,所述第一信道传输所述第一图像块时的MCS阶数为第一MCS阶数,所述第一信道传输所述第二图像块时的MCS阶数为第二MCS阶数。The first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
通过设置第一图像块对应的第一MCS阶数小于传输第二图像块对应的第二MCS的阶数,从而能够有效保证对第一图像块的成功传输。By setting the order of the first MCS corresponding to the first image block to be smaller than the order of the second MCS corresponding to the transmission of the second image block, the successful transmission of the first image block can be effectively ensured.
在一种可能的实现方式中,所述根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,包括:In a possible implementation manner, the determining at least one first image block and at least one second image block from the multiple image blocks according to the throughput of the first channel includes:
根据所述第一信道的最大吞吐量和所述第一信道的最小吞吐量,确定第一数值R,其中,所述R为大于或者等于1的整数;Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel, where the R is an integer greater than or equal to 1;
根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,将除所述 第三图像块之外的图像块确定为第四图像块;According to the R, a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;
若所述第三图像块的总数据量等于所述第一信道的最小吞吐量,则将所述第三图像块确定为所述第一图像块,并将所述第四图像块确定为第二图像块。If the total data volume of the third image block is equal to the minimum throughput of the first channel, the third image block is determined as the first image block, and the fourth image block is determined as the first image block. Two image blocks.
通过根据第一信道的最小吞吐量和最大吞吐量确定R,并且根据R确定第三图像块和第四图像块,从而能够保证当前确定出来的第三图像块和第四图像块是符合第一信道的传输质量的,同时在第三图像块的总数据量等于第一信道的最小吞吐量,直接将第三图像块确定为第一图像块,能够有效增强确定第二图像块的简便性。By determining R according to the minimum throughput and maximum throughput of the first channel, and determining the third image block and the fourth image block according to R, it can be ensured that the currently determined third image block and fourth image block conform to the first According to the transmission quality of the channel, and the total amount of data in the third image block is equal to the minimum throughput of the first channel, directly determining the third image block as the first image block can effectively enhance the convenience of determining the second image block.
在另一种可能的实现方式中,若所述第三图像块的总数据量小于所述第一信道的最小吞吐量所对应的数值,则所述方法还包括:In another possible implementation manner, if the total data amount of the third image block is less than the value corresponding to the minimum throughput of the first channel, the method further includes:
在所述第四图像块中选择子图像块,将所述第三图像块和所述被选择的子图像块确定为第一图像块,其中,被选择的子图像块和所述第三图像块的总数据量等于所述第一信道的最小吞吐量;Select a sub-image block in the fourth image block, and determine the third image block and the selected sub-image block as the first image block, wherein the selected sub-image block and the third image The total data amount of the block is equal to the minimum throughput of the first channel;
将所述第四图像块中除所述子图像块之外的图像块确定为第二图像块。Determine an image block other than the sub image block in the fourth image block as a second image block.
通过根据第三图像块和第四图像块的划分,以及第一信道的吞吐量,将图像块重分配为第一图像块和第二图像块,从而可以在第一信道的最小吞吐量的基础上,尽可能多的对图像块进行传输,以提升第一图像在接收设备的显示效果,并且该过程能够保证对选择出来的第三图像块的成功传输,从而能够有效保证数据传输的稳定性。By reallocating the image blocks into the first image block and the second image block according to the division of the third image block and the fourth image block and the throughput of the first channel, the minimum throughput of the first channel can be Above, transmit as many image blocks as possible to improve the display effect of the first image on the receiving device, and this process can ensure the successful transmission of the selected third image block, thereby effectively ensuring the stability of data transmission .
在一种可能的实现方式中,所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,包括:In a possible implementation manner, the determining, according to the R, a third image block in each R image blocks of the multiple image blocks includes:
根据所述R,将每R个图像块中的第K个图像块确定为第三图像块。According to the R, the Kth image block in every R image blocks is determined as the third image block.
通过将每R个图像块中的第K个图像块确定为第三图像块,能够有效保证选择出来的第三图像块在第一图像中分布的等间隔性,以保证第一图像的显示效果。By determining the Kth image block in every R image blocks as the third image block, the equal interval of the selected third image block in the first image can be effectively guaranteed, so as to ensure the display effect of the first image .
在一种可能的实现方式中,所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,包括:In a possible implementation manner, the determining, according to the R, a third image block in each R image blocks of the multiple image blocks includes:
确定每R个图像块的像素值的第一均值;Determine the first mean value of the pixel values of each R image block;
将所述每R个图像块中的目标图像块确定为第三图像块,其中,所述目标图像块为像素值均值与所述第一均值的差值最小的图像块。The target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
在另一种可能的实现方式中,所述第一信道的最小吞吐量和所述第一信道的最大吞吐量的比值等于数值1和所述R的比值。In another possible implementation manner, the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
在一种可能的实现方式中,所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块之前,还包括:In a possible implementation manner, before determining a third image block in each R image blocks of the plurality of image blocks according to the R, the method further includes:
对所述多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理,以得到处理后的图像块;Performing discrete cosine transform processing, and/or quantization processing, and/or sorting processing on the plurality of image blocks to obtain processed image blocks;
对每R个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。Perform joint compression on every R processed image blocks to obtain multiple image blocks after joint compression.
通过对每第一数量个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。通过对图像块进行编码处理以及联合压缩处理,能够有效减少传输数据量,以提升数据传输效率。By performing joint compression on every first number of processed image blocks, multiple image blocks after joint compression are obtained. By performing encoding processing and joint compression processing on image blocks, the amount of transmitted data can be effectively reduced to improve data transmission efficiency.
第二方面,本申请实施例提供一种数据传输装置,包括:In a second aspect, an embodiment of the present application provides a data transmission device, including:
划分模块,用于将第一图像划分为多个图像块;A dividing module for dividing the first image into multiple image blocks;
确定模块,用于根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,所述第一图像块的总数据量小于或等于所述第一信道的最小吞吐量;The determining module is configured to determine at least one first image block and at least one second image block in the plurality of image blocks according to the throughput of the first channel, wherein the total data amount of the first image block is less than or Equal to the minimum throughput of the first channel;
传输模块,用于通过所述第一信道传输所述第一图像块和所述第二图像块,其中,任一所述第一图像块的传输优先级大于任一所述第二图像块的传输优先级。The transmission module is configured to transmit the first image block and the second image block through the first channel, wherein the transmission priority of any one of the first image blocks is greater than that of any one of the second image blocks Transmission priority.
在一种可能的实现方式中,所述传输模块具体用于:In a possible implementation manner, the transmission module is specifically configured to:
将所述第一图像块存储至第一队列;Storing the first image block in the first queue;
将所述第二图像块存储至第二队列;Storing the second image block in a second queue;
通过所述第一信道传输所述第一队列中的图像块,以及在所述第一队列中的图像块传输完成后传输所述第二队列中的图像块,所述第一队列的传输优先级大于所述第二队列的传输优先级。The image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized The level is greater than the transmission priority of the second queue.
在一种可能的实现方式中,所述传输模块具体用于:In a possible implementation manner, the transmission module is specifically configured to:
将所述第一图像块和所述第二图像块存储至第三队列,在所述第三队列中,任一所述第一图像块位于任一所述第二图像块之前;Storing the first image block and the second image block in a third queue, in which any one of the first image blocks is located before any one of the second image blocks;
通过所述第一信道,依次传输所述第三队列中的图像块。Through the first channel, the image blocks in the third queue are sequentially transmitted.
在一种可能的实现方式中,所述传输模块还用于:In a possible implementation manner, the transmission module is also used to:
在所述将所述第一图像块存储至所述第三队列之前,若第三队列的剩余存储空间小于所述第一图像块的总数据量,则删除所述第三队列队尾的至少一个第二图像块,其中,所述被删除的至少一个第二图像块的总数据量大于或等于所述第一图像块的总数据量。Before storing the first image block in the third queue, if the remaining storage space of the third queue is less than the total data volume of the first image block, delete at least the end of the third queue A second image block, wherein the total data amount of the deleted at least one second image block is greater than or equal to the total data amount of the first image block.
在一种可能的实现方式中,所述第一图像块的最大传输时长大于所述第二图像块的最大传输时长。In a possible implementation manner, the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
在一种可能的实现方式中,所述传输模块具体用于:In a possible implementation manner, the transmission module is specifically configured to:
获取所述第一图像块对应的第一调制与编码策略MCS阶数,以及,获取所述第二图像块对应的第二MCS阶数,其中,所述第一MCS阶数小于所述第二MCS阶数;Acquire the first modulation and coding strategy MCS order corresponding to the first image block, and obtain the second MCS order corresponding to the second image block, wherein the first MCS order is smaller than the second MCS order. MCS order;
通过所述第一信道传输所述第一图像块和所述第二图像块,其中,所述第一信道传输所述第一图像块时的MCS阶数为第一MCS阶数,所述第一信道传输所述第二图像块时的MCS阶数为第二MCS阶数。The first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
在一种可能的实现方式中,所述确定模块具体用于:In a possible implementation manner, the determining module is specifically configured to:
根据所述第一信道的最大吞吐量和所述第一信道的最小吞吐量,确定第一数值R,其中,所述R为大于或者等于1的整数;Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel, where the R is an integer greater than or equal to 1;
根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,将除所述第三图像块之外的图像块确定为第四图像块;According to the R, a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;
若所述第三图像块的总数据量等于所述第一信道的最小吞吐量,则将所述第三图像块确定为所述第一图像块,并将所述第四图像块确定为第二图像块。If the total data volume of the third image block is equal to the minimum throughput of the first channel, the third image block is determined as the first image block, and the fourth image block is determined as the first image block. Two image blocks.
在一种可能的实现方式中,若所述第三图像块的总数据量小于所述第一信道的最小吞吐量所对应的数值,则所述确定模块还用于:In a possible implementation manner, if the total data amount of the third image block is less than the value corresponding to the minimum throughput of the first channel, the determining module is further configured to:
在所述第四图像块中选择子图像块,将所述第三图像块和所述被选择的子图像块确定为第一图像块,其中,被选择的子图像块和所述第三图像块的总数据量等于所述 第一信道的最小吞吐量;Select a sub-image block in the fourth image block, and determine the third image block and the selected sub-image block as the first image block, wherein the selected sub-image block and the third image The total data amount of the block is equal to the minimum throughput of the first channel;
将所述第四图像块中除所述子图像块之外的图像块确定为第二图像块。Determine an image block other than the sub image block in the fourth image block as a second image block.
在一种可能的实现方式中,所述确定模块具体用于:In a possible implementation manner, the determining module is specifically configured to:
根据所述R,将每R个图像块中的第K个图像块确定为第三图像块。According to the R, the Kth image block in every R image blocks is determined as the third image block.
在一种可能的实现方式中,所述确定模块具体用于:In a possible implementation manner, the determining module is specifically configured to:
确定每R个图像块的像素值的第一均值;Determine the first mean value of the pixel values of each R image block;
将所述每R个图像块中的目标图像块确定为第三图像块,其中,所述目标图像块为像素值均值与所述第一均值的差值最小的图像块。The target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
在一种可能的实现方式中,所述第一信道的最小吞吐量和所述第一信道的最大吞吐量的比值等于数值1和所述R的比值。In a possible implementation manner, the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
在一种可能的实现方式中,所述确定模块还用于:In a possible implementation manner, the determining module is further configured to:
在所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块之前,对所述多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理,以得到处理后的图像块;Before the third image block is determined in each R image blocks of the plurality of image blocks according to the R, discrete cosine transform processing and/or quantization processing are performed on the plurality of image blocks, and / Or sort processing to obtain processed image blocks;
对每R个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。Perform joint compression on every R processed image blocks to obtain multiple image blocks after joint compression.
第三方面,本申请实施例提供一种数据传输设备,包括:存储器、处理器和射频收发机,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行如上第一方面以及第一方面各种可能的设计中任一所述的方法。In a third aspect, an embodiment of the present application provides a data transmission device, including a memory, a processor, and a radio frequency transceiver. The memory is used to store a program or instruction. When the program or instruction is executed by the processor, The device is caused to execute the method described in the first aspect and any of the various possible designs of the first aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如上第一方面以及第一方面各种可能的设计中任一所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the above-mentioned first aspect and any of the various possible designs of the first aspect method.
第五方面,本申请实施例提供一种计算机程序产品,所述计算机程序产品包括指令,当所述指令被执行时,使得计算机执行上述第一方面任一项所述的数据传输方法。In a fifth aspect, embodiments of the present application provide a computer program product. The computer program product includes instructions that, when executed, cause a computer to execute the data transmission method described in any one of the above-mentioned first aspects.
第六方面,本申请实施例提供一种芯片上系统或系统芯片,所述芯片上系统或系统芯片可应用于终端设备,所述芯片上系统或系统芯片包括:至少一个通信接口,至少一个处理器,至少一个存储器,所述通信接口、存储器和处理器通过总线互联,所述处理器通过执行所述存储器中存储的指令,使得所述终端设备可执行如第一方面任一所述数据传输方法。In a sixth aspect, the embodiments of the present application provide a system on a chip or a system chip, the system on a chip or a system chip can be applied to a terminal device, and the system on a chip or a system chip includes: at least one communication interface, at least one processing The communication interface, the memory, and the processor are interconnected by a bus, and the processor executes the instructions stored in the memory so that the terminal device can perform data transmission as described in any one of the first aspect method.
本实施例提供的一种数据传输方法及装置中,通过根据第一信道的吞吐量进行第一图像块和第二图像块的划分,通过设置第一图像块的总数据量小于或等于第一信道的最小吞吐量,并且任一第一图像块的传输优先级大于任一第二图像块的传输优先级,从而可以在当前第一信道的吞吐量的条件下,能够有效保证对第一图像块的成功传输,避免了对关键数据的重传所导致的数据传输缺乏稳定性。In the data transmission method and device provided in this embodiment, the first image block and the second image block are divided according to the throughput of the first channel, and the total data amount of the first image block is set to be less than or equal to the first image block. The minimum throughput of the channel, and the transmission priority of any first image block is greater than the transmission priority of any second image block, so that under the current throughput of the first channel, it can effectively guarantee the transmission of the first image The successful transmission of the block avoids the lack of stability of data transmission caused by the retransmission of key data.
图1为本发明实施例提供的数据传输的系统示意图;FIG. 1 is a schematic diagram of a data transmission system provided by an embodiment of the present invention;
图2为现有技术的数据传输方法的流程示意图;FIG. 2 is a schematic flowchart of a data transmission method in the prior art;
图3为本申请提供的数据传输方法的流程图一;Figure 3 is the first flow chart of the data transmission method provided by this application;
图4为本申请实施例提供的数据传输方法的流程图二;FIG. 4 is a second flowchart of a data transmission method provided by an embodiment of this application;
图5为本申请实施例提供的图像块划分示意图;FIG. 5 is a schematic diagram of image block division according to an embodiment of the application;
图6为本申请实施例提供的第三图像块的示意图一;FIG. 6 is a first schematic diagram of a third image block provided by an embodiment of this application;
图7为本申请实施例提供的第三图像块的确定示意图二;FIG. 7 is a second schematic diagram of determining a third image block according to an embodiment of the application;
图8为本申请实施例提供的第三图像块的确定示意图三;FIG. 8 is a third schematic diagram of determining a third image block according to an embodiment of the application;
图9为本申请实施例提供的部分图像块构成的第一图像示意图;FIG. 9 is a schematic diagram of a first image formed by partial image blocks provided by an embodiment of the application;
图10为本申请实施例提供的图像块重分配示意图一;FIG. 10 is a schematic diagram 1 of image block reallocation provided by an embodiment of this application;
图11为为本申请实施例提供的图像块重分配示意图二;FIG. 11 is a second schematic diagram of image block reallocation according to an embodiment of this application;
图12为本申请实施例提供的数据传输方法的流程图三;FIG. 12 is a third flowchart of a data transmission method provided by an embodiment of this application;
图13为申请实施例提供的第一队列和第二队列示意图;FIG. 13 is a schematic diagram of a first queue and a second queue provided by an application embodiment;
图14为本申请实施例提供的数据传输方法的流程图四;FIG. 14 is a fourth flowchart of a data transmission method provided by an embodiment of this application;
图15为申请实施例提供的第三队列示意图;FIG. 15 is a schematic diagram of a third queue provided by an application embodiment;
图16为本申请实施例提供的数据传输方法的流程图五;FIG. 16 is a fifth flowchart of a data transmission method provided by an embodiment of this application;
图17为本申请实施例提供的数据传输装置的结构示意图一;FIG. 17 is a first structural diagram of a data transmission device provided by an embodiment of this application;
图18为本申请实施例提供的数据传输装置的结构示意图二;FIG. 18 is a second structural diagram of a data transmission device provided by an embodiment of this application;
图19为本申请实施例提供的数据传输设备的硬件结构示意图。FIG. 19 is a schematic diagram of the hardware structure of a data transmission device provided by an embodiment of the application.
首先结合图1对数据传输的过程进行说明,图1为本发明实施例提供的数据传输的系统示意图,如图1所示,该系统包括:First, the data transmission process will be described with reference to FIG. 1. FIG. 1 is a schematic diagram of a data transmission system provided by an embodiment of the present invention. As shown in FIG. 1, the system includes:
发送设备101和接收设备102,其中,发送设备101和接收设备102之间通过第一信道进行数据的传输,具体的,第一信道以无线电波的形式将发送设备101所发送的数据传输至接收设备102,以实现在发送设备101和接收设备102之间的数据传输,可以理解的是,第一信道可以为无线信道,其中无线信道是无线通信过程中发送设备和接收设备之间的无形的传输通路,对于无线电波而言,它从发送端传送到接收端,其间并没有一个有形的实体连接,它的传播路径也有可能不只一条。The sending device 101 and the receiving device 102, wherein the sending device 101 and the receiving device 102 transmit data through a first channel. Specifically, the first channel transmits the data sent by the sending device 101 to the receiving device in the form of radio waves. The device 102 is used to implement data transmission between the sending device 101 and the receiving device 102. It can be understood that the first channel may be a wireless channel, where the wireless channel is an intangible communication between the sending device and the receiving device during wireless communication. Transmission path, as far as radio waves are concerned, it is transmitted from the sending end to the receiving end without a tangible physical connection between them, and there may be more than one propagation path.
在本实施例中,发送设备101和接收设备102例如可以为终端设备,或者还可以为网络设备,因此下面对终端设备和网络设备进行简单说明:In this embodiment, the sending device 101 and the receiving device 102 may be, for example, terminal devices, or may also be network devices, so the following briefly describes the terminal devices and network devices:
终端设备:是一种具有无线收发功能的设备。终端设备可以部署在陆地上,包括室内或室外、手持、穿戴或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,简称VR)终端设备、增强现实(augmented reality,简称AR)终端设备、工业控制(industrial control)中的无线终端、车载终端设备、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端设备、智能电网(smart grid)中的无线终端设备、运输安全(transportation safety)中的无线终端设备、智慧城市(smart city)中的无线终端设备、智慧家庭(smart home)中的无线终端设备、可穿戴终端设备等。本申请实施例所涉及的终端设备还可以称为终端、用户设备(user equipment,UE)、接入终端设备、车载终端、工业控制终端、UE单元、UE站、移动站、移动台、远方站、远程终端设备、移动设备、UE终端设备、无线通信设备、UE代理或UE 装置等。终端设备也可以是固定的或者移动的。Terminal equipment: It is a kind of equipment with wireless transceiver function. Terminal devices can be deployed on land, including indoor or outdoor, handheld, wearable, or vehicle-mounted; they can also be deployed on water (such as ships, etc.); they can also be deployed in the air (such as airplanes, balloons, and satellites). The terminal device may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with wireless transceiver function, virtual reality (VR) terminal equipment, augmented reality (AR) terminal equipment, industrial Wireless terminals in control (industrial control), vehicle-mounted terminal equipment, wireless terminals in self-driving (self-driving), wireless terminal equipment in remote medical (remote medical), wireless terminal equipment in smart grid (smart grid), Wireless terminal equipment in transportation safety, wireless terminal equipment in smart city, wireless terminal equipment in smart home, wearable terminal equipment, etc. The terminal equipment involved in the embodiments of the present application may also be referred to as a terminal, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station , Remote terminal equipment, mobile equipment, UE terminal equipment, wireless communication equipment, UE agent or UE device, etc. The terminal device can also be fixed or mobile.
网络设备:是一种具有无线收发功能的设备。包括但不限于:长期演进(long term evolution,LTE)中的演进型基站(Evolutional Node B,eNB或eNodeB),新空口技术(new radio,NR)中的基站(gNodeB或gNB)或收发点(transmission receiving point/transmission reception poin,TRP),后续演进系统中的基站,无线保真(wireless fidelity,WiFi)系统中的接入节点,无线中继节点,无线回传节点等。基站可以是:宏基站,微基站,微微基站,小站,中继站,或,气球站等。多个基站可以支持上述提及的同一种技术的网络,也可以支持上述提及的不同技术的网络。基站可以包含一个或多个共站或非共站的TRP。网络设备还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器、集中单元(centralized unit,CU),和/或分布单元(distributed unit,DU)。网络设备还可以是服务器,可穿戴设备,或车载设备等。以下以网络设备为基站为例进行说明。所述多个网络设备可以为同一类型的基站,也可以为不同类型的基站。基站可以与终端进行通信,也可以通过中继站与终端进行通信。终端可以与不同技术的多个基站进行通信,例如,终端可以与支持LTE网络的基站通信,也可以与支持5G网络的基站通信,还可以支持与LTE网络的基站以及5G网络的基站的双连接,还可以支持与5G网络的基站的双连接等。Network equipment: It is a kind of equipment with wireless transceiver function. Including but not limited to: Evolutional Node B (eNB or eNodeB) in long term evolution (LTE), base station (gNodeB or gNB) or transceiver point (gNodeB or gNB) in new radio technology (NR) transmission receiving point/transmission reception poin, TRP), the base station in the subsequent evolution system, the access node in the wireless fidelity (wireless fidelity, WiFi) system, the wireless relay node, the wireless backhaul node, etc. The base station can be: a macro base station, a micro base station, a pico base station, a small station, a relay station, or a balloon station, etc. Multiple base stations can support networks of the same technology mentioned above, or networks of different technologies mentioned above. The base station can contain one or more co-site or non-co-site TRPs. The network device may also be a wireless controller, a centralized unit (CU), and/or a distributed unit (DU) in a cloud radio access network (cloud radio access network, CRAN) scenario. The network device can also be a server, a wearable device, or a vehicle-mounted device. The following description takes the network device as a base station as an example. The multiple network devices may be base stations of the same type, or base stations of different types. The base station can communicate with the terminal, and it can also communicate with the terminal through a relay station. The terminal can communicate with multiple base stations of different technologies. For example, the terminal can communicate with a base station that supports an LTE network, or can communicate with a base station that supports a 5G network, and can also support dual connections with a base station of an LTE network and a base station of a 5G network. , It can also support dual connections with 5G network base stations, etc.
在具体实现过程中,发送设备101和接收设备102的具体实现可以根据实际需求进行选择,只要发送设备101具备无线发送功能、接收设备101具备无线接收功能即可,本实施例对发送设备101和接收设备102的选择不做限定。In the specific implementation process, the specific implementation of the sending device 101 and the receiving device 102 can be selected according to actual needs, as long as the sending device 101 has the wireless sending function and the receiving device 101 has the wireless receiving function. The selection of the receiving device 102 is not limited.
在图1所介绍的系统的基础上,下面结合图2对现有技术中的数据传输的实现方式进行介绍,图2为现有技术的数据传输方法的流程示意图,如图2所示:Based on the system introduced in Fig. 1, the following describes the implementation of data transmission in the prior art in conjunction with Fig. 2. Fig. 2 is a schematic flow chart of the data transmission method in the prior art, as shown in Fig. 2:
首先,发送设备将待传输的图像数据由RGB色彩模式转换为YCrCb色彩模式,其中,RGB色彩模式是工业界的一种颜色标准,目前终端设备的显示屏上所显示的所有颜色,都由这红色(R)绿色(G)蓝色(B)三种色光按照不同的比例混合而成的,而YCrCb色彩模式是用于优化彩色视频信号的传输,使其向后相容老式黑白显示屏,因此,将图像数据由RGB色彩模式转换为YCrCb色彩模式,能够保证图像数据兼容的显示在黑白显示屏上。First, the sending device converts the image data to be transmitted from the RGB color mode to the YCrCb color mode. Among them, the RGB color mode is a color standard in the industry. At present, all colors displayed on the display screen of the terminal device are controlled by this The three colors of red (R), green (G), blue (B) are mixed in different proportions, and the YCrCb color mode is used to optimize the transmission of color video signals to make it backward compatible with old-fashioned black-and-white displays. Therefore, converting the image data from the RGB color mode to the YCrCb color mode can ensure the compatible display of the image data on the black and white display screen.
其次,对色彩模式转换后的图像数据进行离散余弦变换(Discrete Cosine Transform,DCT)处理,并将处理后的图像数据进行基于H.264/H.265的图像压缩,得到压缩后的图像数据。Secondly, discrete cosine transform (DCT) processing is performed on the image data after the color mode conversion, and the processed image data is subjected to image compression based on H.264/H.265 to obtain compressed image data.
接着通过第一信道对压缩后的图像数据进行传输,具体的,基于正交频分复用技术(Orthogonal Frequency Division Multiplexing,OFDM)的transmitteer进行数据的传输。Then, the compressed image data is transmitted through the first channel. Specifically, a transmitteer based on Orthogonal Frequency Division Multiplexing (OFDM) is used for data transmission.
然而,第一信道在数据传输的过程中,其吞吐量可能会发生变化,具体的,信道的吞吐量是指单位时间内正确传输的数据比特数,现有技术的实现中,图像的压缩和传输是完全分离的步骤,其并没有考虑到信道的吞吐量变化,当信道吞吐量变小时,可能会导致数据的丢失,当接收设备所接收的图像数据发生丢失时,可能会实现花屏、模糊等现象,则会导致用户的视觉感受较差。However, the throughput of the first channel may change during data transmission. Specifically, the throughput of the channel refers to the number of data bits that are correctly transmitted per unit time. In the implementation of the prior art, image compression and Transmission is a completely separate step, which does not take into account the change in channel throughput. When the channel throughput becomes smaller, it may cause data loss. When the image data received by the receiving device is lost, it may cause blurring, blurring, etc. Phenomenon, it will cause the user's visual experience to be poor.
在出现关键数据丢失时,则需要进行关键数据的重传,以保证图像数据的正确显示,其中,关键数据的重传会导致接收设备接收到图像数据的延迟较大,图像数据无 法保证实时显示,从而导致了数据传输缺乏稳定性,同时还会导致用户的平衡感受较差。When key data is lost, it is necessary to retransmit the key data to ensure the correct display of the image data. Among them, the retransmission of the key data will cause a large delay in receiving the image data by the receiving device, and the image data cannot be guaranteed to be displayed in real time. , Which leads to a lack of stability in data transmission, and also leads to a poor sense of balance for users.
针对现有技术中的问题,本申请提供了一种数据传输方法,以保证数据传输的稳定性,下面结合图3对该方法进行介绍,图3为本申请提供的数据传输方法的流程图一。In view of the problems in the prior art, this application provides a data transmission method to ensure the stability of data transmission. The method will be introduced below with reference to FIG. 3, which is a first flow chart of the data transmission method provided by this application. .
如图3所示,该方法包括:As shown in Figure 3, the method includes:
S301、将第一图像划分为多个图像块。S301. Divide the first image into multiple image blocks.
在本实施例中,发送设备向接收设备发送的数据具体为图像数据,在一种可能的实现方式中,发送设备可以将待传输的视频数据进行帧划分,以得到多个第一图像,对多个第一图像进行依次传输,以实现对视频数据的传输;或者,发送设备还可以直接发送图像数据,其中,图像数据包括至少一张第一图像,本实施例对此不做限定。In this embodiment, the data sent by the sending device to the receiving device is specifically image data. In a possible implementation, the sending device may divide the video data to be transmitted into frames to obtain multiple first images. A plurality of first images are transmitted sequentially to realize the transmission of video data; or, the sending device may also directly send image data, where the image data includes at least one first image, which is not limited in this embodiment.
具体地,针对任一个第一图像,将第一图像划分为多个图像块(block),在一种可能的实现方式中,例如可以将第一图像划分为X×Y个相等大小的图像块,其中,X和Y为大于1的整数;或者,还可以将按照固定像素大小将第一图像划分为多个图像块,本实施例对划分图像块的具体实现方式不做限制,在实际操作过程中,可以根据实际需求进行图像块的划分,只要能够将第一图像划分为相同大小的多个图像块即可。Specifically, for any first image, the first image is divided into multiple image blocks. In a possible implementation manner, for example, the first image may be divided into X×Y image blocks of equal size. , Where X and Y are integers greater than 1; or, the first image can also be divided into multiple image blocks according to a fixed pixel size. This embodiment does not limit the specific implementation of the divided image blocks, and in actual operation In the process, the image blocks can be divided according to actual needs, as long as the first image can be divided into multiple image blocks of the same size.
S302、根据第一信道的吞吐量,在多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,第一图像块的总数据量小于或等于第一信道的最小吞吐量。S302. Determine at least one first image block and at least one second image block among multiple image blocks according to the throughput of the first channel, where the total data amount of the first image block is less than or equal to the minimum throughput of the first channel the amount.
在本实施例中,为保证接收设备能够稳定的接收到图像数据,发送设备将多个图像块划分为第一图像块和第二图像块,其中,第一图像块可以理解为关键图像块(key block),其具体为需要成功传输的图像块,而第二图像块可以理解为非关键图像块(Not Key block),其具体为尽力传输的图像块,也就是说,优先保证第一图像块的传输,当第一信道的吞吐量不足以实现对第二图像块的传输时,则当前可以不传输第二图像块。In this embodiment, to ensure that the receiving device can stably receive image data, the sending device divides multiple image blocks into a first image block and a second image block, where the first image block can be understood as a key image block ( key block), which is specifically an image block that needs to be successfully transmitted, and the second image block can be understood as a Not Key block, which is specifically an image block to be transmitted as best as possible, that is, the first image is guaranteed first For block transmission, when the throughput of the first channel is insufficient to realize the transmission of the second image block, the second image block may not be transmitted currently.
基于上述介绍可以理解的是,在一种可能的实现方式中,本实施例中的至少一个第一图像块和至少一个第二图像块共同构成了划分得到的所有图像块,也就是说本实施例中可以将多个图像块划分为第一图像块和第二图像块。Based on the above introduction, it can be understood that in a possible implementation manner, at least one first image block and at least one second image block in this embodiment jointly constitute all the image blocks obtained by division, that is to say, in this embodiment In the example, multiple image blocks can be divided into a first image block and a second image block.
本实施例中是根据第一信道的吞吐量进行第一图像块和第二图像块的划分的,具体的,发送设备可以获取当前时刻第一信道的吞吐量,可以理解的是,因为第一信道的传输质量时刻都在发生变化,因此当前时刻第一信道的吞吐量通常是一个范围,则可以进一步确定第一信道的最小吞吐量,例如第一信道的吞吐量可以为25.5Mb/s(兆比特每秒)-10Mb/s,则第一信道的最小吞吐量即为10Mb/s。In this embodiment, the first image block and the second image block are divided according to the throughput of the first channel. Specifically, the sending device can obtain the throughput of the first channel at the current moment. The transmission quality of the channel is changing all the time, so the throughput of the first channel at the current moment is usually within a range, and the minimum throughput of the first channel can be further determined. For example, the throughput of the first channel can be 25.5Mb/s( Megabits per second)-10Mb/s, then the minimum throughput of the first channel is 10Mb/s.
为了保证第一信道能够实现对第一图像块的成功传输,本实施例在多个图像块中确定了至少一个第一图像块,其中,各图像块分别对应有相同的大小,例如一个第一图像块可以为4位(bit),本实施例中各图像块的大小取决于上述步骤S301中图像块的划分方式,本实施例对此不做限制。In order to ensure that the first channel can successfully transmit the first image block, this embodiment determines at least one first image block among multiple image blocks, where each image block corresponds to the same size, for example, a first image block. The image block may be 4 bits, and the size of each image block in this embodiment depends on the division method of the image block in step S301, which is not limited in this embodiment.
其中,确定出来的第一图像块的总数据量小于或等于第一信道的最小吞吐量,同时,本实施例中还确定有至少一个第二图像块,在一种可能的实现方式中,可以在确定第一图像块之后,将除第一图像块之外的图像块确定为第二图像块,因为本实施例 中每个图像块的大小都是一样的,其数据量也是一样的,因此可以根据除第一图像块之外的图像块的总数据量和每个图像块的单个数据量,得到第二图像块的数量;或者,还可以直接根据上述划分的多个图像块确定第二图像块的数量,本实施例对此不做特别限制。Wherein, the determined total data volume of the first image block is less than or equal to the minimum throughput of the first channel. At the same time, in this embodiment, it is also determined that there is at least one second image block. In a possible implementation manner, After the first image block is determined, the image blocks other than the first image block are determined as the second image block, because the size of each image block in this embodiment is the same, and the amount of data is the same, so The number of second image blocks can be obtained according to the total data volume of image blocks other than the first image block and the individual data volume of each image block; or, the second image block can also be determined directly based on the above-mentioned divided image blocks. The number of image blocks is not particularly limited in this embodiment.
在一种可能的实现方式中,例如可以在多个图像块中进行等间隔的采样选择,将采样得到的至少一个图像块确定为第一图像块,将未采样的至少一个图像块确定为第二图像块;或者,还可以将预设数量个图像块作为一个采样单位,在各个采样单位中分别选择图像块,以得到至少一个第一图像块等,可以理解的是,第一图像块的数量和和第二图像块的数量的总和也就是划分的图像块的总数量。In a possible implementation manner, for example, sampling selection at equal intervals may be performed among multiple image blocks, at least one image block obtained by sampling is determined as the first image block, and at least one image block that is not sampled is determined as the first image block. Two image blocks; alternatively, a preset number of image blocks can be used as a sampling unit, and the image blocks can be selected in each sampling unit to obtain at least one first image block, etc., it can be understood that the first image block The sum of the number sum and the number of the second image block is the total number of divided image blocks.
本实施例对第一图像块和第二图像块的具体划分方式不做限制,可以理解的是,只要第一图像块的总数据量小于或等于第一信道的最小吞吐量,并且,第一图像块的数量和第二图像块的数量的总和是图像块的总数量即可,其具体的实现方式可以根据实际需求进行设定。This embodiment does not limit the specific division of the first image block and the second image block. It can be understood that as long as the total data volume of the first image block is less than or equal to the minimum throughput of the first channel, and the first The sum of the number of image blocks and the number of second image blocks only needs to be the total number of image blocks, and the specific implementation manner can be set according to actual requirements.
S303、通过第一信道传输第一图像块和第二图像块,其中,任一第一图像块的传输优先级大于任一第二图像块的传输优先级。S303. The first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block.
在本实施例中,通过设置任一第一图像块的传输优先级大于任一第二图像块的传输优先级,从而可以在第一图像块和第二图像块同时存在时,优先进行第一图像块的传输,并且因为第一图像块的总数据量是小于或等于第一信道的最小吞吐量的,从而可以保证第一图像块的成功传输。In this embodiment, by setting the transmission priority of any first image block to be greater than the transmission priority of any second image block, it is possible to give priority to the first image block when the first image block and the second image block coexist. Image block transmission, and because the total data volume of the first image block is less than or equal to the minimum throughput of the first channel, the successful transmission of the first image block can be guaranteed.
其中,本实施例中第一图像块的总数据量是小于或等于第一信道的最小吞吐量的,因此可以保证在第一信道当前时刻的吞吐量之下,一定能够实现对第一图像块的成功传输,只要接收设备可以顺利接收到第一图像块,则可以避免在信道的吞吐量出现波动时造成的关键图像数据丢失的问题,次从而保证第一图像块的数据传输的稳定性,Among them, the total data volume of the first image block in this embodiment is less than or equal to the minimum throughput of the first channel. Therefore, it can be guaranteed that under the current throughput of the first channel, the first image block must be For successful transmission, as long as the receiving device can successfully receive the first image block, the problem of key image data loss caused by fluctuations in the channel throughput can be avoided, thereby ensuring the stability of the data transmission of the first image block.
另外,本实施例在对第一图像块的传输完成之后,对第二图像块进行尽力传输,也就是说在当前第一信道的吞吐量的实际情况下,对第二图像块能够传输多少就传输多少,可以理解的是,传输的第二图像块越多,接收设备所显示出来的第一图像就越清晰。In addition, in this embodiment, after the transmission of the first image block is completed, the second image block is transmitted as best, that is to say, under the actual throughput of the current first channel, the second image block can be transmitted as much as possible. How much is transmitted, it can be understood that the more second image blocks are transmitted, the clearer the first image displayed by the receiving device.
在可选的实施例中,若当前第二图像块无法传输,则可以将第二图像块丢弃,或者在预设周期到达时,在不存在第一图像块的前提下,尝试对第二图像块进行重传。In an alternative embodiment, if the current second image block cannot be transmitted, the second image block can be discarded, or when the preset period arrives, if the first image block does not exist, try to transfer the second image block. Block retransmission.
在一种可能的实现方式中,本实施例在通过第一信道传输第一图像块和第二图像块的过程中,可以获取第一图像块对应的第一MCS阶数,以及获取第二图像块对应的第二MCS阶数,在通过第一信道进行图像块的传输过程中,第一信道传输第一图像块时的MCS阶数为第一MCS阶数,第一信道传输第二图像块时的MCS阶数为第二MCS阶数。In a possible implementation manner, in the process of transmitting the first image block and the second image block through the first channel in this embodiment, the first MCS order corresponding to the first image block can be obtained, and the second image can be obtained. The second MCS order corresponding to the block. In the image block transmission process through the first channel, the MCS order when the first channel transmits the first image block is the first MCS order, and the first channel transmits the second image block The MCS order at that time is the second MCS order.
此处首先对MCS阶数进行介绍,其中,在第一信道中包括很多不同的数据流,其中数据流用于实现图像块的传输,不同的数据流对应有各自的MCS阶数,当数据流的MCS阶数越低,则该数据流的传输质量越好,因此本实施例中通过设置第一图像块对应的第一MCS阶数小于传输第二图像块对应的第二MCS的阶数,从而能够有效保证对第一图像块的成功传输。The MCS order is first introduced here. Among them, the first channel includes many different data streams. Among them, the data stream is used to realize the transmission of image blocks. Different data streams correspond to their respective MCS orders. When the data stream is The lower the MCS order, the better the transmission quality of the data stream. Therefore, in this embodiment, the first MCS order corresponding to the first image block is set to be smaller than the second MCS order corresponding to the second image block to be transmitted. It can effectively guarantee the successful transmission of the first image block.
在一种可能的实现方式中,可以预先设置有第一MCS阶数表格和第二MCS阶数表格,其中,第一MCS阶数表格和第二MCS阶数表格中均包括多个MCS阶数,同时,第一MCS阶数表格中的任一个MCS阶数小于第二MCS阶数表格中的任一个MCS阶数,在确定第一图像块和第二图像块之后,将第一MCS阶数表格确定为第一图像块对应的表格,以及将第二MCS阶数表格确定为第二图像块对应的表格,从而可以获取第一MCS阶数和第二MCS阶数。In a possible implementation manner, a first MCS order table and a second MCS order table may be preset, wherein the first MCS order table and the second MCS order table both include multiple MCS orders At the same time, any MCS order in the first MCS order table is smaller than any MCS order in the second MCS order table. After the first image block and the second image block are determined, the first MCS order The table is determined as the table corresponding to the first image block, and the second MCS order table is determined as the table corresponding to the second image block, so that the first MCS order and the second MCS order can be obtained.
在通过第一信道进行数据传输的过程中,通过查询对应的表格以确定MCS阶数,并按照MCS阶数进行图像块的传输即可。In the process of data transmission through the first channel, the corresponding table can be consulted to determine the MCS order, and the image block can be transmitted according to the MCS order.
在另外一种可能的实现方式中,还可以为第一图像块分配更好的信道编码方式,以保证对第一图像块的成功传输。In another possible implementation manner, a better channel coding manner may also be assigned to the first image block to ensure the successful transmission of the first image block.
本申请实施例提供的数据传输方法,包括:将第一图像划分为多个图像块。根据第一信道的吞吐量,在多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,第一图像块的总数据量小于或等于第一信道的最小吞吐量。通过第一信道传输第一图像块和第二图像块,其中,任一第一图像块的传输优先级大于任一第二图像块的传输优先级。通过根据第一信道的吞吐量进行第一图像块和第二图像块的划分,通过设置第一图像块的总数据量小于或等于第一信道的最小吞吐量,并且任一第一图像块的传输优先级大于任一第二图像块的传输优先级,从而可以在当前第一信道的吞吐量的条件下,能够有效保证对第一图像块的成功传输,避免了对关键数据的重传所导致的数据传输缺乏稳定性。The data transmission method provided by the embodiment of the present application includes: dividing the first image into a plurality of image blocks. According to the throughput of the first channel, at least one first image block and at least one second image block are determined among a plurality of image blocks, wherein the total data amount of the first image block is less than or equal to the minimum throughput of the first channel. The first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block. By dividing the first image block and the second image block according to the throughput of the first channel, by setting the total data volume of the first image block to be less than or equal to the minimum throughput of the first channel, and the The transmission priority is greater than the transmission priority of any second image block, so that under the current throughput of the first channel, the successful transmission of the first image block can be effectively guaranteed, and the retransmission of key data can be avoided. The resulting data transmission lacks stability.
在上述实施例的基础上,下面结合图4-图11对本申请实施例提供的数据传输方法进行进一步地详细介绍,图4为本申请实施例提供的数据传输方法的流程图二,图5为本申请实施例提供的图像块划分示意图,图6为本申请实施例提供的第三图像块的示意图一,图7为本申请实施例提供的第三图像块的确定示意图二,图8为本申请实施例提供的第三图像块的确定示意图三,图9为本申请实施例提供的部分图像块构成的第一图像示意图,图10为本申请实施例提供的图像块重分配示意图一,图11为为本申请实施例提供的图像块重分配示意图二。On the basis of the above-mentioned embodiment, the data transmission method provided by the embodiment of the present application will be further described in detail below with reference to Figs. 4-11. Fig. 4 is the second flowchart of the data transmission method provided by the embodiment of the present application, and Fig. 5 is The image block division diagram provided by the embodiment of the present application. FIG. 6 is the first schematic diagram of the third image block provided by the embodiment of the present application. FIG. 7 is the second schematic diagram of determining the third image block provided by the embodiment of the present application. The third schematic diagram of determining the third image block provided by the application embodiment. FIG. 9 is a schematic diagram of the first image formed by part of the image blocks provided by the embodiment of this application. 11 is the second schematic diagram of image block reallocation provided in the embodiment of this application.
如图4所示,该方法包括:As shown in Figure 4, the method includes:
S401、将第一图像划分为多个图像块。S401. Divide the first image into multiple image blocks.
下面结合图5对划分图像块的一种可能的实现方式进行说明,如图5所示,当前存在一张第一图像,假设该第一图像为64×64像素的图像,则可以示例性的将第一图像按照8×8的规格进行划分,从而得到64个图像块,因为第一图像是64×64像素的,因此每个图像块中可以包括有8×8个像素点。A possible implementation of dividing image blocks will be described below with reference to FIG. 5. As shown in FIG. 5, there is currently a first image. Assuming that the first image is a 64×64 pixel image, it can be exemplified The first image is divided according to the 8×8 specification to obtain 64 image blocks. Because the first image is 64×64 pixels, each image block may include 8×8 pixels.
本领域技术人员可以理解,图5仅仅是示例出了一种可能的图像块的划分方式,具体的图像块划分方式可以根据实际需求进行选择,例如划分的规格,或者划分的方式等均可以根据实际需求扩展,具体的可参照上述步骤S301中的介绍,此处不再赘述。Those skilled in the art can understand that FIG. 5 is only an example of a possible way of dividing image blocks. The specific way of dividing image blocks can be selected according to actual needs. For example, the specifications of the division or the way of dividing can be selected according to actual needs. For actual demand expansion, please refer to the introduction in step S301 for details, which will not be repeated here.
S402、根据第一信道的最大吞吐量和第一信道的最小吞吐量,确定第一数值R。S402: Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel.
在本实施例中,第一数值R用于在后续步骤中确定第三图像块和第四图像块,下面对根据第一信道的吞吐量确定第一数值R的几种可能的实现方式进行介绍:In this embodiment, the first value R is used to determine the third image block and the fourth image block in the subsequent steps. Several possible implementations for determining the first value R according to the throughput of the first channel are described below. Introduction:
在一种可能的实现方式中,第一信道的最小吞吐量和第一信道的最大吞吐量的比 值等于数值1和第一数值R的比值。In a possible implementation, the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the first value R.
也就是说,第一数值R的取值满足如下公式一:In other words, the value of the first value R satisfies the following formula 1:
1:R=最小吞吐量:最大吞吐量 公式一1: R=Minimum Throughput: Maximum Throughput Formula One
在另一种可能的实现方式中,第一图像块的总数据量和第一图块的总数据量、第二图像块总数据量的总和的比值小于数值1和第一数值R的比值,也就是说,第一数值的取值满足如下公式二:In another possible implementation, the ratio of the total data volume of the first image block to the total data volume of the first image block and the total data volume of the second image block is less than the ratio of the value 1 to the first value R, In other words, the value of the first value satisfies the following formula 2:
KeyBlock数据量:(KeyBlock数据量+NKeyBlock数据量)<=1:R 公式二KeyBlock data volume: (KeyBlock data volume + NKeyBlock data volume) <= 1: R Formula 2
在再一种可能的实现方式中,第一数值为第一信道的最大吞吐量和最小吞吐量的比值的差值,也就是说,第一数值的取值满足如下公式三:In yet another possible implementation manner, the first value is the difference between the ratio of the maximum throughput and the minimum throughput of the first channel, that is, the value of the first value satisfies the following formula 3:
R=U-V 公式三R=U-V Formula 3
其中,U是最大吞吐量和最小吞吐量的比值的分子,V是最大吞吐量和最小吞吐量的比值的分母,也就是说,U和V满足如下公式四:Among them, U is the numerator of the ratio of the maximum throughput to the minimum throughput, and V is the denominator of the ratio of the maximum throughput to the minimum throughput, that is, U and V satisfy the following formula 4:
最小吞吐量:最大吞吐量=U:V 公式四Minimum throughput: Maximum throughput=U:V Formula 4
可以理解的是,本实施例中的第一数值R用于后续确定第三图像块和第四图像块,其具体的实现方式在上述介绍的基础上,还可以根据实际需求进行扩展,只要第一数值时根据第一信道的最大吞吐量和最小吞吐量确定的,并且能够用于进行图像块的确定即可,在本实施例中,当第一数值不是整数时,可以对第一数值进行取整,取整的方式例如可以采用四舍五入、向上取整、向下取整等,此处对此不做限定。It is understandable that the first value R in this embodiment is used to subsequently determine the third image block and the fourth image block, and its specific implementation method can be extended according to actual needs based on the above introduction, as long as the first value R is used to determine the third image block and the fourth image block. A value is determined according to the maximum throughput and minimum throughput of the first channel, and can be used to determine the image block. In this embodiment, when the first value is not an integer, the first value can be Rounding, the rounding method can be, for example, rounding, rounding up, rounding down, etc., which is not limited here.
需要说明的是,本实施例中的第一数值是发送设备根据第一信道的吞吐量确定的,因此本实施例中的第一数值R是会改变的,因此上述所介绍的R的各种可能的实现方式是在一定的信道场景下和一定的时间范围内确定的,随着时间的推移以及信道场景的变化,R相对应的就会发生变化,同时,发送设备还需要通过信令将确定的第一数值发送给接收设备,以使得发送设备和接收设备之间同步有相同的第一数值,从而能够保证接收设备对第一图像的成功接收和解析。It should be noted that the first value in this embodiment is determined by the sending device according to the throughput of the first channel. Therefore, the first value R in this embodiment will change. Therefore, the various types of R described above are Possible implementations are determined in a certain channel scenario and within a certain time range. As time goes by and the channel scenario changes, the corresponding R will change. At the same time, the sending device also needs to signal The determined first value is sent to the receiving device, so that the same first value is synchronized between the sending device and the receiving device, thereby ensuring that the receiving device successfully receives and parses the first image.
S403、根据第一数值,在多个图像块中的每R个图像块中确定第三图像块,将除第三图像块之外的图像块确定为第四图像块。S403: According to the first value, a third image block is determined in every R image blocks of the plurality of image blocks, and image blocks other than the third image block are determined as the fourth image block.
在本实施例中,第一数值是用于确定第三图像块和第四图像块的,首先对第三图像块和第四图像块进行说明,本实施例中的第三图像块(must block)为必须成功传输的图像块,第四图像块(Not Must block)中包括尽力传输的图像块,可能还包括必须成功传输的图像块。In this embodiment, the first value is used to determine the third image block and the fourth image block. First, the third image block and the fourth image block are described. In this embodiment, the third image block (must block ) Is an image block that must be successfully transmitted, and the fourth image block (Not Must block) includes a best-effort image block, and may also include an image block that must be successfully transmitted.
在一种可能的实现方式中,在第三图像块的数据量已经满足第一图像块的数据量需求时,则第四图像块所包括的各个图像块即为尽力传输的图像块,然而,在第三图像块的数据量还没有达到第一图像块的数据量需求时,可以从第四图像块中选择部分图像块作为第一图像块,被选择的这些图像块就是必须成功传输的图像块,从而可以在当前第一信道的吞吐量的条件下实现更多图像块的传输。In a possible implementation, when the data volume of the third image block has met the data volume requirement of the first image block, the image blocks included in the fourth image block are the image blocks that are transmitted as best as possible. However, When the data volume of the third image block has not reached the data volume requirement of the first image block, some image blocks can be selected from the fourth image block as the first image block, and these selected image blocks are the images that must be successfully transmitted. Therefore, the transmission of more image blocks can be realized under the current throughput of the first channel.
下面对第三图像块和第四图像块的确定方式进行说明:The following describes how to determine the third image block and the fourth image block:
为了便于介绍,下面采用R指代第一数值,具体的,将R个图像块作为一个采样单位,在每R个图像块中确定一个或多个第三图像块,下面结合图6-图8对确定第三图像块的可能的实现方式进行介绍:For ease of introduction, the following uses R to refer to the first value. Specifically, R image blocks are used as a sampling unit, and one or more third image blocks are determined in each R image block. The possible implementation of determining the third image block is introduced:
在一种可能的实现方式中,可以将每R个图像块中的第K个图像块确定为第三图像块,其中,K为大于或者等于1的整数。In a possible implementation manner, the Kth image block in every R image blocks may be determined as the third image block, where K is an integer greater than or equal to 1.
以R是4、K是1为例,结合图6进行说明,也就是说将每4个图像块中的第1个图像块确定为第三图像块,图6中用加粗的实线标识出了一个采样单位(每4个图像块),将每4个图像块中的第1个图像块采用阴影标识,以表示当前图像块为第三图像块,同时,除第3图像块之外的即为第四图像块,在图中采用空白标识。Taking R is 4 and K is 1 as an example, it will be described in conjunction with Figure 6, that is to say, the first image block in every 4 image blocks is determined as the third image block, which is marked by a bold solid line in Figure 6 A sampling unit (every 4 image blocks) is drawn, and the first image block in every 4 image blocks is marked with a shadow to indicate that the current image block is the third image block, and at the same time, except for the third image block Is the fourth image block, and a blank mark is used in the figure.
需要说明的是,图6仅仅在该种实现方式的一种示例性的介绍,在实际实现过程中,例如还可以将1行的4个图像块作为一个采样单位、或者将1列的4各图像块作为一个采样单位等,其中,K的具体实现方式同样可以根据实际需求进行选择,本实施例对采样单位的划分以及K的选择不做限定。It should be noted that Figure 6 is only an exemplary introduction to this implementation. In the actual implementation process, for example, 4 image blocks in a row can be used as a sampling unit, or 4 image blocks in a column can be used as a sampling unit. The image block is used as a sampling unit, etc., where the specific implementation manner of K can also be selected according to actual requirements. This embodiment does not limit the division of the sampling unit and the selection of K.
在另一种可能的实现方式中,可以确定每R个图像块的像素值的第一均值,并将每R个图像块中的目标图像块确定为第三图像块,其中,目标图像块的像素值均值与第一均值的差值最小。In another possible implementation manner, the first average value of the pixel values of each R image block may be determined, and the target image block in each R image block may be determined as the third image block, where the value of the target image block The difference between the mean value of the pixel value and the first mean value is the smallest.
同样以R是4为例,结合图7进行说明,其中每个图像块中包括多个像素点,各像素点对应各自的像素值,则根据各像素点的像素值可以确定每4个图像块的像素值的第一均值,参见图7,假设其中有一个采样单元的像素值的第一均值为4,并且该采样单元所包括的4个图像块的像素值均值分别作为9、5、20、6,则与第一均值差值最小的像素值均值为5,则将像素值均值为5所对应的目标图像块确定为第三图像块,用阴影标识,将除第三图像块之外的确定为第四图像块,用空白标识,确定的第三图像块和第四图像块可以如图7所示,可以理解的是,因为本实施例中采用的是计算差值的方式,因此,第三图像块的排列是不规律的。Similarly, taking R is 4 as an example, it will be described in conjunction with Figure 7. Each image block includes multiple pixels, and each pixel corresponds to its respective pixel value. Then, every 4 image blocks can be determined according to the pixel value of each pixel. The first average value of the pixel values, see Fig. 7, assuming that the first average value of the pixel value of one sampling unit is 4, and the average value of the pixel values of the 4 image blocks included in the sampling unit are respectively 9, 5, 20 , 6, then the average value of the pixel value with the smallest difference from the first average value is 5, then the target image block corresponding to the average pixel value of 5 is determined as the third image block, marked with a shadow, except for the third image block The determined image block is the fourth image block, which is marked with a blank. The determined third image block and the fourth image block can be as shown in Figure 7. It is understandable that because the method of calculating the difference is adopted in this embodiment, , The arrangement of the third image block is irregular.
在再一种可能的实现方式中,若当前传输的第一图像是一个关键图像或者关键帧,也就是说必须保证第一图像的完整的成功传输,则将第一图像中所包括的各个图像块全部确定为第三图像块,参见图8,当前第一图像中的每一个图像块均采用阴影进行标识,以表示当前的第一图像中的所有图像块都是第三图像块。In yet another possible implementation, if the first image currently transmitted is a key image or a key frame, that is to say, the complete and successful transmission of the first image must be ensured, then each image included in the first image All the blocks are determined to be the third image block, referring to FIG. 8, each image block in the current first image is marked with shading to indicate that all the image blocks in the current first image are third image blocks.
对应的,可以牺牲另外的第一图像或者另外的视频帧,也就是说将另外的第一图像或者视频帧的部分或者全部作为第四图像块,以保证当前图像帧的成功传输。Correspondingly, another first image or another video frame can be sacrificed, that is, part or all of the other first image or video frame is used as the fourth image block to ensure the successful transmission of the current image frame.
另外,本实施例中针对的是图像数据,在另外的实施例中,若是当前的传输数据为语音数据或者控制数据,可以理解的是,语音数据或者控制数据只有保证成功传输,才能够使得接收设备接收到正确的信息,则需要将语音数据或者控制数据作为必须传输成功的数据,其可以作为第三数据块(must block),等同于本实施例中的第三图像块。In addition, this embodiment is aimed at image data. In other embodiments, if the current transmission data is voice data or control data, it can be understood that voice data or control data can only be received if successful transmission is guaranteed. When the device receives correct information, it needs to use voice data or control data as data that must be successfully transmitted, which can be used as a third data block (must block), which is equivalent to the third image block in this embodiment.
参照上述介绍,本领域技术人员可以理解的是,本实施例中的第三图像块为必须成功传输的图像块,然而选择出来的各个第三图像块并不是因为当前图像块在第一图像中比较重要,本实施例仅仅是在第一图像中选择了均匀采样的图像块作为第三图像块,是因为针对一张图像来说,在第一信道无法保证对第一图像的完整传输时,可以将其中采样出来的部分数据进行传输,其中采样出来的数据仍然能够完整的表示第一图像所携带的信息,本实施例在上述示例的各个图像中,为了便于说明,图像块的数量是很少的,在实际应用过程中,在图像块的数量很多时,其并不会影响第一图像的 显示,下面结合图9对该效果进行说明:With reference to the above introduction, those skilled in the art can understand that the third image block in this embodiment is an image block that must be successfully transmitted. However, the selected third image blocks are not because the current image block is in the first image. More importantly, this embodiment only selects a uniformly sampled image block in the first image as the third image block, because for an image, when the first channel cannot guarantee the complete transmission of the first image, Part of the data sampled therein can be transmitted, and the sampled data can still completely represent the information carried in the first image. In this embodiment, in each image in the above example, for ease of description, the number of image blocks is very large. In the actual application process, when the number of image blocks is large, it will not affect the display of the first image. The effect will be described below with reference to FIG. 9:
参见图9,图9中的901为原始的第一图像,其中的902为原始的第一图像对应的丢失了部分图像块的第一图像,从图9中可以看出,尽管902中并没有包括全部的像素点,但是我们仍然可以接收到第一图像中所包括的信息。Referring to Fig. 9, 901 in Fig. 9 is the original first image, and 902 is the first image corresponding to the original first image with some image blocks missing. It can be seen from Fig. 9 that although 902 does not Including all pixels, but we can still receive the information included in the first image.
需要说明的是,图9中仅仅为示例性的说明,其表现出的图像块丢失效果是比较严重的,在实际应用过程中,很有可能只是很少一部分图像块无法成功传输,因此接收设备接收到的第一图像并不会存在非常明显的像素缺失。It should be noted that Fig. 9 is only an exemplary illustration, and the image block loss effect shown by it is relatively serious. In the actual application process, it is very likely that only a small part of the image block cannot be successfully transmitted, so the receiving device The first image received does not have very obvious pixel missing.
本领域技术人员可以理解,具体的图像块的划分方式可以根据实际需求进行选择,并不限定与上述介绍的三种实现方式,只要保证选择的第三图像块是均匀的分布在第一图像中的即可。Those skilled in the art can understand that the specific image block division method can be selected according to actual needs, and is not limited to the three implementation methods described above, as long as the selected third image block is evenly distributed in the first image Can be.
S404、判断第三图像块的总数据量是否等于第一信道的最小吞吐量,若是,则执行S405,若否,则执行S406。S404: Determine whether the total data amount of the third image block is equal to the minimum throughput of the first channel, if yes, execute S405, and if not, execute S406.
在本实施例中,第三图像块和第四图像块是根据R进行选择的,因此选择的第三图像块的数量可能小于第一信道的最小吞吐量,还可能等于第一信道的最大吞吐量,本实施例中并不能确定第三图像块的具体数量,为了保证在当前第一信道的吞吐量的情况下,能够尽可能多的进行图像块的传输,本实施例中设置有第一图像块的总数据量等于第一信道的最小吞吐量。In this embodiment, the third image block and the fourth image block are selected according to R. Therefore, the number of selected third image blocks may be less than the minimum throughput of the first channel, or may be equal to the maximum throughput of the first channel. In this embodiment, the specific number of the third image block cannot be determined. In order to ensure that under the current throughput of the first channel, as many image blocks as possible can be transmitted, the first image block is set in this embodiment. The total data volume of the image block is equal to the minimum throughput of the first channel.
具体的,本实施例中的第三图像块即为一定要成功传输的图像块,因此首先判断第三图像块的总数据量是否等于第一信道的最小吞吐量。Specifically, the third image block in this embodiment is an image block that must be successfully transmitted. Therefore, it is first determined whether the total data volume of the third image block is equal to the minimum throughput of the first channel.
值得说明的是,本实施例中的S404的判断步骤是为了保证实施例的可读性撰写的,在实际实现过程中,可以没有当前的判断步骤,而是直接执行S405或者S406。It is worth noting that the judgment step of S404 in this embodiment is written to ensure the readability of the embodiment. In the actual implementation process, there may be no current judgment step, but S405 or S406 is directly executed.
S405、将第三图像块确定为第一图像块,并将第四图像块确定为第二图像块。S405. Determine the third image block as the first image block, and determine the fourth image block as the second image block.
在一种可能的实现方式中,若第三图像块的总数据量等于第一信道的最小吞吐量,则表明此时按照第一信道的最小吞吐量,恰好可以保证对第三图像块的成功传输,则直接将第三图像块确定为第一图像块,从而可以在当前第一信道的吞吐量情况下,保证实现对第一图像块的成功传输。In a possible implementation, if the total data volume of the third image block is equal to the minimum throughput of the first channel, it indicates that at this time, according to the minimum throughput of the first channel, the success of the third image block can be guaranteed. For transmission, the third image block is directly determined as the first image block, so that the successful transmission of the first image block can be ensured under the current throughput of the first channel.
以及,本实施例中将第四图像块确定为第二图像块。And, in this embodiment, the fourth image block is determined to be the second image block.
S406、在第四图像块中选择子图像块,将第三图像块和被选择的子图像块确定为第一图像块,并将第四图像块中除子图像块之外的图像块确定为第二图像块。其中,被选择的子图像块和第三图像块的总数据量等于第一信道的最小吞吐量。S406. Select a sub-image block in the fourth image block, determine the third image block and the selected sub-image block as the first image block, and determine image blocks other than the sub-image blocks in the fourth image block as the first image block. The second image block. Wherein, the total data amount of the selected sub-image block and the third image block is equal to the minimum throughput of the first channel.
若第三图像块的总数据量不等于第一信道的吞吐量,在一种可能的实现方式中,第三图像块的总数据量小于第一信道的吞吐量,则表明在当前第一信道的吞吐量情况下,除了保证对第三图像块的成功传输之外,还有多余的资源能够保证对部分第四图像块的成功传输,则可以在第四图像块中选择子图像块,将从第四图像中选择的这一部分子图像块同样作为第一图像块,具体的,子图像块可以是一个完整的图像块,还可以是一个图像块的一部分。If the total data volume of the third image block is not equal to the throughput of the first channel, in a possible implementation, the total data volume of the third image block is less than the throughput of the first channel, indicating that the current first channel In the case of throughput, in addition to guaranteeing the successful transmission of the third image block, there are extra resources to ensure the successful transmission of part of the fourth image block. Then you can select the sub-image block in the fourth image block and change This part of the sub-image block selected from the fourth image also serves as the first image block. Specifically, the sub-image block may be a complete image block or a part of an image block.
在本实施例中,设置有第一图像块的总数据量等于第一信道的最小吞吐量,则第三图像块和被选择的子图像块的总数据量是等于第一信道的吞吐量的。In this embodiment, it is set that the total data volume of the first image block is equal to the minimum throughput of the first channel, and the total data volume of the third image block and the selected sub-image block is equal to the throughput of the first channel. .
在另一种可能的实现方式中,如第三图像块的总数据量大于第一信道的最小吞吐 量,则表明此时按照第一信道的最小吞吐量,并没有办法保证对所有的第三图像块的成功传输,在这种情况下,我们仍然将第三图像块确定为第一图像块,从而可以保证后续可以优先的尽力传输第三图像块,从而可以尽可能的保证第三图像块的传输,以在第一信道的吞吐量较小的情况下,有效提高第三图像块的传输成功率。In another possible implementation, if the total data volume of the third image block is greater than the minimum throughput of the first channel, it indicates that according to the minimum throughput of the first channel at this time, there is no way to ensure that all third image blocks are The successful transmission of the image block. In this case, we still determine the third image block as the first image block, so as to ensure that the third image block can be transmitted as a priority in the future, so as to ensure the third image block as much as possible In order to effectively improve the transmission success rate of the third image block when the throughput of the first channel is small.
可以理解的是,在第一信道的最小吞吐量的基础上,对第三图像块进行尽力传输,若第三图像块的传输超时,仍然没有成功传输的话,则只能将第三图像块丢弃。It is understandable that, based on the minimum throughput of the first channel, the third image block is transmitted as best as possible. If the transmission of the third image block times out and the transmission is still not successful, the third image block can only be discarded .
基于上述介绍可以理解的是,若是第三图像块的总数据量等于第一信道的最小吞吐量,则直接将第三图像块确定而为第一图像块即可,下面再结合一个具体的示例对第三图像块的总数据量小于第一信道的最小吞吐量时,根据第三图像块、第四图像块确定第一图像块和第二图像块的一种可能的实现方式进行说明:Based on the above introduction, it can be understood that if the total data volume of the third image block is equal to the minimum throughput of the first channel, the third image block can be directly determined as the first image block, and a specific example will be combined below. When the total data amount of the third image block is less than the minimum throughput of the first channel, a possible implementation manner of determining the first image block and the second image block according to the third image block and the fourth image block is described:
为了便于结合附图说明,假设当前第一信道的吞吐量的范围是2Mb/s-9Mb/s,其中一个图像块的大小为1Mb,则表明当前应该选择2个第一图像块,同时假设当前存在1个第三图像块和8个第四图像块。In order to facilitate the description in conjunction with the drawings, suppose the current throughput of the first channel is in the range of 2Mb/s-9Mb/s, and the size of one image block is 1Mb, which means that the two first image blocks should be selected currently, and it is assumed that the current There are 1 third image block and 8 fourth image blocks.
则根据上述示例可以确定的是,第三图像块的总数据量小于第一信道的最小吞吐量,此时需要从第四图像块中在选择子图像块,以使得第一图像块的总数据量可以等于第一信道的最小吞吐量。According to the above example, it can be determined that the total data volume of the third image block is less than the minimum throughput of the first channel. At this time, it is necessary to select sub-image blocks from the fourth image block to make the total data of the first image block The amount can be equal to the minimum throughput of the first channel.
在一种可能的实现方式中,参见图10,一个图像块中包括8×8个像素,其中,在划分得到像素块之后,还可以对各像素块进行DCT处理,其中,从而得到各像素块各自对应的频率系数矩阵,其中,一个图像块包括8×8个像素点,则该像素块对应的8×8的频率系数矩阵中有1个直流(DC)分量和63个交流(AC)分量,图5中所示意的数字即为直流分量或交流分量。In a possible implementation manner, referring to FIG. 10, an image block includes 8×8 pixels. After the pixel blocks are obtained by dividing, DCT processing can also be performed on each pixel block, wherein, each pixel block is obtained. Each corresponding frequency coefficient matrix, where an image block includes 8×8 pixels, then the 8×8 frequency coefficient matrix corresponding to the pixel block has 1 direct current (DC) component and 63 alternating current (AC) components , The number shown in Figure 5 is the DC component or the AC component.
则可以将第四图像块中的第一行像素作为被选择的子图像块,针对8个第四图像块,将其中每一个的第一行像素均确定为第一图像块,从而可以使得被选择的子图像块和第三图像块的总数据量等于第一信道的最小吞吐量,则第一图像块包括第三图像块和部分第四图像块,在图10中用实线框标识第一图像块。Then the first row of pixels in the fourth image block can be used as the selected sub-image block, and for the eight fourth image blocks, the first row of pixels in each of them can be determined as the first image block, so that the The total data volume of the selected sub-image block and the third image block is equal to the minimum throughput of the first channel, then the first image block includes the third image block and part of the fourth image block. An image block.
同时,第四图像块中未被选择的剩余的子图像块则被确定为第二图像块,则本实施例可以得到7个第二图像块。At the same time, the remaining sub-image blocks that are not selected in the fourth image block are determined to be the second image blocks, and 7 second image blocks can be obtained in this embodiment.
在另一种可能的实现方式中,参见图11,可以将第三图像块拆分为上下两部分,其中上半部分和和4个第四图像块中的子图像块共同构成一个第一图像块,下半部分和另外4个第四图像块中的子图像块共同构成另一个第一图像块,与图10相比,图11中所选择的像素是完全相同的,不同之处在于第一图像块的划分方式,也就是说,第一图像块可以是一个完整的图像块,同时其还可以是不完整的、不连续的,在本实施例中,只要第一图像块的总数据量等于第一信道的最小吞吐量即可,其具体的划分方式可以根据实际需求进行选择。In another possible implementation, referring to FIG. 11, the third image block can be split into upper and lower parts, where the upper part and the sub-image blocks in the four fourth image blocks together form a first image Block, the lower half and the other four sub-image blocks in the fourth image block together constitute another first image block. Compared with Fig. 10, the selected pixels in Fig. 11 are exactly the same. The difference lies in the first image block. The division method of an image block, that is, the first image block can be a complete image block, and it can also be incomplete and discontinuous. In this embodiment, as long as the total data of the first image block is The amount is equal to the minimum throughput of the first channel, and the specific division method can be selected according to actual needs.
在上述附图示例的基础上,需要说明的是,在第四图像块中选择子图像块的实现方式还存在很多种,例如针对一个第四图像块,可以选择其中的1列;或者,可以在每一行中选择一个像素点;或者,还可以将当前完整的第四图像块确定为第一图像块,本实施例对此不做限定,也就是说,本实施例并不具体限定第一图像块的选择方式,只要保证第三图像块全部是第一图像块,并且第一图像块的总数据量等于第一信道的 最小吞吐量即可,其各种可能的实现方式可以根据实际需求进行扩展,此处不再赘述。On the basis of the above example of the drawings, it should be noted that there are many ways to select sub-image blocks in the fourth image block. For example, for a fourth image block, one column can be selected; or, you can Select one pixel in each row; alternatively, the current complete fourth image block can also be determined as the first image block, which is not limited in this embodiment, that is, this embodiment does not specifically limit the first image block. The selection method of the image block, as long as it is ensured that the third image block is all the first image block, and the total data volume of the first image block is equal to the minimum throughput of the first channel, its various possible implementation methods can be based on actual needs. To expand, I won’t go into details here.
可以理解的是,在第四图像块中选择子图像块作为第一图像块时,子图像块的选择分布的越均匀,最终接收设备接收到的图像数据所呈现出来的效果也就越好。It can be understood that when the sub-image block is selected as the first image block in the fourth image block, the more even the selection of the sub-image blocks is distributed, the better the effect presented by the image data received by the final receiving device.
在可选的实施例中,可以设置第一图像块的总数据量和第二图像块的总数据量的比例可以满足如下公式五:In an optional embodiment, the ratio of the total data volume of the first image block to the total data volume of the second image block may be set to satisfy the following formula 5:
第一图像块的总数据量:第二图像块的总数据量=最小吞吐量:(最大吞吐量-最小吞吐量) 公式五Total data volume of the first image block: total data volume of the second image block = minimum throughput: (maximum throughput-minimum throughput) Formula 5
例如上述图10和图11对应的示例中,第一信道的最小吞吐量为2,第一信道的最大吞吐量为10,则第一图像块的总数据量和第二图像块的总数据量的比值关系可以为2:7,也就是说在根据最小吞吐量保证第一图像块的成功传输的基础上,根据第一信道的实际信道状态对第二图像块进行尽力传输。For example, in the example corresponding to Figures 10 and 11, the minimum throughput of the first channel is 2 and the maximum throughput of the first channel is 10, then the total data volume of the first image block and the total data volume of the second image block The ratio relationship of can be 2:7, that is to say, on the basis of ensuring the successful transmission of the first image block according to the minimum throughput, the second image block is transmitted as best as possible according to the actual channel state of the first channel.
S407、通过第一信道传输第一图像块和第二图像块,其中,任一第一图像块的传输优先级大于任一第二图像块的传输优先级。S407. Transmit the first image block and the second image block through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block.
具体的,S407的实现方式与S303类似,此处不再赘述。Specifically, the implementation of S407 is similar to that of S303, and will not be repeated here.
本申请实施例提供的数据传输方法,包括:将第一图像划分为多个图像块。根据第一信道的最大吞吐量和第一信道的最小吞吐量,确定第一数值R。根据第一数值,在多个图像块中的每R个图像块中确定第三图像块,将除第三图像块之外的图像块确定为第四图像块。判断第三图像块的总数据量是否等于第一信道的最小吞吐量,若是,则将第三图像块确定为第一图像块,并将第四图像块确定为第二图像块。若否,则在第四图像块中选择子图像块,将第三图像块和被选择的子图像块确定为第一图像块,并将第四图像块中除子图像块之外的图像块确定为第二图像块。其中,被选择的子图像块和第三图像块的总数据量等于第一信道的最小吞吐量。通过第一信道传输第一图像块和第二图像块,其中,任一第一图像块的传输优先级大于任一第二图像块的传输优先级。通过首先确定必须传输的第三图像块,其次根据第三图像块和第四图像块的划分,以及第一信道的吞吐量,将图像块重分配为第一图像块和第二图像块,从而可以在第一信道的最小吞吐量的基础上,尽可能多的对图像块进行传输,以提升第一图像在接收设备的显示效果,并且该过程能够保证对选择出来的第三图像块的成功传输,从而能够有效保证数据传输的稳定性。The data transmission method provided by the embodiment of the present application includes: dividing the first image into a plurality of image blocks. According to the maximum throughput of the first channel and the minimum throughput of the first channel, the first value R is determined. According to the first value, the third image block is determined in every R image blocks among the plurality of image blocks, and the image blocks other than the third image block are determined as the fourth image block. It is determined whether the total data volume of the third image block is equal to the minimum throughput of the first channel, and if so, the third image block is determined as the first image block, and the fourth image block is determined as the second image block. If not, select the sub-image block in the fourth image block, determine the third image block and the selected sub-image block as the first image block, and set the image blocks other than the sub-image block in the fourth image block Determined as the second image block. Wherein, the total data amount of the selected sub-image block and the third image block is equal to the minimum throughput of the first channel. The first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any first image block is greater than the transmission priority of any second image block. By first determining the third image block that must be transmitted, and then reallocating the image block into the first image block and the second image block according to the division of the third image block and the fourth image block, and the throughput of the first channel, It is possible to transmit as many image blocks as possible on the basis of the minimum throughput of the first channel to improve the display effect of the first image on the receiving device, and this process can ensure the success of the selected third image block Transmission, which can effectively ensure the stability of data transmission.
在上述实施例的基础上,本申请在通过第一信道对图像块传输时,可以通过两个不同的队列对多个图像块进行传输,或者,还可以通过同一个队列对多个图像块进行传输,下面对两种不同的实现方式分别进行介绍。On the basis of the above-mentioned embodiments, when transmitting image blocks through the first channel in this application, multiple image blocks may be transmitted through two different queues, or multiple image blocks may also be transmitted through the same queue. Transmission, the following two different implementations are introduced separately.
首先结合图12和图13对通过两个不同的队列进行传输的实现方式进行说明,图12为本申请实施例提供的数据传输方法的流程图三,图13为申请实施例提供的第一队列和第二队列示意图。First, the implementation of transmission through two different queues will be described with reference to FIG. 12 and FIG. 13. FIG. 12 is the third flowchart of the data transmission method provided by the embodiment of the application, and FIG. 13 is the first queue provided by the embodiment of the application. And the schematic diagram of the second queue.
如图12所示,该方法包括:As shown in Figure 12, the method includes:
S1201、将第一图像块存储至第一队列。S1201. Store the first image block in the first queue.
S1202、将第二图像块存储至第二队列。S1202: Store the second image block in the second queue.
在本实施例中,将第一图像块和第二图像块存储至不同的队列,参见图13,将第一图像块存储至第一队列,将第二图像块存储至第二队列,其中,第一队列和第二队 列都是第一信道中的缓存队列,通过队列的方式对图像块进行传输,能够保证图像块传输的有序性,避免发生混乱。In this embodiment, the first image block and the second image block are stored in different queues, referring to FIG. 13, the first image block is stored in the first queue, and the second image block is stored in the second queue, where, The first queue and the second queue are both buffer queues in the first channel, and image blocks are transmitted in a queue manner, which can ensure the order of image block transmission and avoid confusion.
S1203、通过第一信道传输第一队列中的图像块,以及在第一队列中的图像块传输完成后传输第二队列中的图像块,第一队列的传输优先级大于第二队列的传输优先级。S1203. Transmit the image blocks in the first queue through the first channel, and transmit the image blocks in the second queue after the transmission of the image blocks in the first queue is completed, and the transmission priority of the first queue is greater than the transmission priority of the second queue level.
具体的,因为需要使得第一图像块的传输优先级大于第二图像块的传输优先级,因此本实施例中设置有第一队列的传输优先级大于第二队列的传输优先级,从而在第一队列中存在图像块时,优先通过第一信道传输第一队列中的图像块,在第一队列中的图像块传输完成后,也就是第一队列为空时,才通过第一信道对第二队列中的图像块进行传输,因此可以理解的是,第二图像块是采取尽力传输的方式。Specifically, because the transmission priority of the first image block needs to be greater than the transmission priority of the second image block, the transmission priority of the first queue is set to be greater than the transmission priority of the second queue in this embodiment, so that the transmission priority of the first queue is greater than that of the second queue. When there are image blocks in a queue, the image blocks in the first queue are preferentially transmitted through the first channel. After the image blocks in the first queue are transmitted, that is, when the first queue is empty, the first channel is used to transfer the image blocks to the first queue. The image blocks in the second queue are transmitted, so it can be understood that the second image block is transmitted in a best-effort manner.
在一种可能的实现方式中,例如第一队列可以采用增强的分布式通道访问(Enhanced Distributed Channel Access,EDCA)队列。In a possible implementation manner, for example, the first queue may adopt an enhanced distributed channel access (Enhanced Distributed Channel Access, EDCA) queue.
本申请实施例提供的数据传输方法,包括:将第一图像块存储至第一队列。将第二图像块存储至第二队列。通过第一信道传输第一队列中的图像块,以及在第一队列中的图像块传输完成后传输第二队列中的图像块,第一队列的传输优先级大于第二队列的传输优先级。通过将第一图像块和第二图像块分别存储至不同的队列,从而可以保证图像块发送的有序性,同时通过设置第一队列的优先级大于第二队列的优先级,从而可以对第一图像块进行优先传输,从而能够保证第一图像块的成功传输。The data transmission method provided by the embodiment of the present application includes: storing the first image block in the first queue. Store the second image block in the second queue. The image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the image blocks in the first queue are transmitted. The transmission priority of the first queue is greater than the transmission priority of the second queue. By storing the first image block and the second image block in different queues, the order of image block transmission can be ensured. At the same time, by setting the priority of the first queue to be greater than the priority of the second queue, One image block is preferentially transmitted, so as to ensure the successful transmission of the first image block.
其次结合图14和图15对通过同一个队列对多个图像块进行传输的实现方式进行说明,图14为本申请实施例提供的数据传输方法的流程图四,图15为申请实施例提供的第三队列示意图。Next, the implementation of transmitting multiple image blocks through the same queue is described with reference to FIGS. 14 and 15. FIG. 14 is the fourth flowchart of the data transmission method provided by the embodiment of the application, and FIG. 15 is provided by the embodiment of the application. Schematic diagram of the third queue.
如图14所示,该方法包括:As shown in Figure 14, the method includes:
S1401、判断第三队列的剩余存储空间是否小于第一图像块的总数据量,若是,则执行S1402,若否,则执行S1403。S1401. Determine whether the remaining storage space of the third queue is less than the total data amount of the first image block, if yes, execute S1402, and if not, execute S1403.
具体的,本实施例中第一图像块和第二图像块是存储在同一个队列中的,要保证对第一图像块进行优先传输的话,则需要保证针对同一张第一图像,在当前存在第一图像块时,第一图像块总是位于队列首,具体来讲,也就是第一图像块总是位于第二图像块的前面。Specifically, in this embodiment, the first image block and the second image block are stored in the same queue. To ensure priority transmission of the first image block, it is necessary to ensure that for the same first image, it is currently existing In the case of the first image block, the first image block is always at the head of the queue, specifically, that is, the first image block is always in front of the second image block.
同时,在第一图像产生第一图像块时,需要将产生的第一图像块存储至第三队列,但是在存储之前,我们首先需要判断第三队列是否能够实现对第一图像块的存储,具体的,判断第三队列的剩余存储空间是否小于第一图像块的总数据量。At the same time, when the first image generates the first image block, the generated first image block needs to be stored in the third queue, but before storing, we first need to determine whether the third queue can store the first image block. Specifically, it is determined whether the remaining storage space of the third queue is less than the total data amount of the first image block.
S1402、删除第三队列队尾的至少一个第二图像块,其中,被删除的至少一个第二图像块的总数据量大于或等于第一图像块的总数据量。S1402. Delete at least one second image block at the end of the third queue, where the total data amount of the deleted at least one second image block is greater than or equal to the total data amount of the first image block.
若是第三队列的剩余存储空间小于第一图像块的总数据量,则表明当前无法将第一图像块全部存储至第三队列中,为了保证第一图像块的有效传输,本实施例将第三队列队尾的至少一个第二图像块从第三队列中删除,其中,具体的删除的第二图像块的数量取决于当前的剩余存储空间和待发送的第一图像块的总数据量的差值,在本实施例中,设置有被删除的至少一个第二图像块的总数据量大于或等于第一图像块的总数据量。If the remaining storage space of the third queue is less than the total data volume of the first image block, it indicates that the first image block cannot be stored in the third queue currently. In order to ensure the effective transmission of the first image block, this embodiment will At least one second image block at the end of the three queues is deleted from the third queue, where the specific number of deleted second image blocks depends on the current remaining storage space and the total data volume of the first image block to be sent The difference, in this embodiment, the total data amount of the at least one second image block that is set to be deleted is greater than or equal to the total data amount of the first image block.
也就是说,只要删除之后,能够使得M个第一图像块全部存储至第三队列即可。In other words, as long as it is deleted, all the M first image blocks can be stored in the third queue.
可以理解的是,因为队列先入先出的特性,本实施例中删除的第二图像块实际上是上一个第一图像的第二图像块,参见图15,图15中用不同的阴影效果表示两个不同的第一图像各自对应的图像块,通过将上一个第一图像未发送的第二图像块进行删除,能够保证无论是针对哪一个第一图像,均能够实现对第一图像块的优先发送。It is understandable that because of the first-in-first-out characteristic of the queue, the second image block deleted in this embodiment is actually the second image block of the previous first image. See Figure 15, which is represented by different shading effects. Image blocks corresponding to two different first images, by deleting the second image block that was not sent by the previous first image, it can be ensured that no matter which first image it is for, the first image block can be achieved. Priority delivery.
S1403、将第一图像块和第二图像块存储至第三队列,在第三队列中,第一图像块位于第二图像块之前。S1403. Store the first image block and the second image block in a third queue, where the first image block is located before the second image block.
若是第三队列的剩余存储空间不小于第一图像块的总数据量,或者在上述删除了队尾的至少一个第二图像块之后,当前的第三队列的剩余存储空间能够实现对待发送的第一图像块的存储,则将第一图像块首先存储至第三队列,在第一图像块存储完成之后,若是还存在剩余存储空间,则将第二图像块的部分或者全部存储至第三队列中。If the remaining storage space of the third queue is not less than the total data volume of the first image block, or after at least one second image block at the end of the queue is deleted, the remaining storage space of the current third queue can realize the first image block to be sent. For the storage of one image block, the first image block is first stored in the third queue. After the storage of the first image block is completed, if there is remaining storage space, part or all of the second image block is stored in the third queue in.
参见图15,存储至第三队列的第一图像块和之前队列中本来就存在的图像块是不同的第一图像所对应的图像块。Referring to FIG. 15, the first image block stored in the third queue and the original image block in the previous queue are image blocks corresponding to different first images.
本申请实施例提供的数据传输方法,包括:判断第三队列的剩余存储空间是否小于第一图像块的总数据量,若是,则删除第三队列队尾的至少一个第二图像块,其中,被删除的至少一个第二图像块的总数据量大于或等于第一图像块的总数据量。若否,则将第一图像块和第二图像块存储至第三队列,在第三队列中,第一图像块位于第二图像块之前。从而在第一图像块和第二图形块存储在同一个队列时,针对同一个第一图像,保证第一图像块存储在第二图像块之前,并且在下一个第一图像产生第一图像块时,可以删除队列中的第二图像块以保证优先将第一图像块存储至第三队列中,从而能够有效保证对第三图像块的优先传输。The data transmission method provided by the embodiment of the present application includes: determining whether the remaining storage space of the third queue is less than the total data amount of the first image block, and if so, deleting at least one second image block at the end of the third queue, wherein: The total data amount of the deleted at least one second image block is greater than or equal to the total data amount of the first image block. If not, the first image block and the second image block are stored in the third queue. In the third queue, the first image block is located before the second image block. Therefore, when the first image block and the second image block are stored in the same queue, for the same first image, it is ensured that the first image block is stored before the second image block, and when the next first image generates the first image block , The second image block in the queue can be deleted to ensure that the first image block is preferentially stored in the third queue, thereby effectively ensuring the preferential transmission of the third image block.
在上述图12和图14所介绍的实施例的基础上,本申请提供的数据传输方法针对第一图像块和第二图像块还分别设置有最大传输时长,以避免第一图像块和第二图像块长时间占用队列,造成数据传输效率较低,或者队列拥塞。On the basis of the embodiments described in Figs. 12 and 14, the data transmission method provided by this application also sets a maximum transmission duration for the first image block and the second image block respectively, so as to avoid the first image block and the second image block. Image blocks occupy the queue for a long time, resulting in low data transmission efficiency or queue congestion.
可以理解的是,最大传输时长用于指示当前的图像块传输能够占用队列的最大的时长,其可以理解为一个定时器,在定时器到时的时候,若是当前的图像块还没有被传输,则将当前图像块从第三队列中删除,或者可以在预设时长之后尝试重传,或者还可以直接将该图像块丢弃。It is understandable that the maximum transmission duration is used to indicate the maximum duration that the current image block transmission can occupy the queue, which can be understood as a timer. When the timer expires, if the current image block has not been transmitted, Then the current image block is deleted from the third queue, or it may try to retransmit after a preset period of time, or the image block may be directly discarded.
在本实施例中,第一图像块的最大传输时长大于第二图像块的最大传输时长,通过设置第一图像块的最大传输时长较大,从而可以有效保证第一图像块的传输成功率。In this embodiment, the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block. By setting the maximum transmission duration of the first image block to be larger, the transmission success rate of the first image block can be effectively guaranteed.
当然,这也就是说第一图像块可能存在传输失败的情况,本领域技术人员可以理解的是,本实施例仅仅是在第一信道的吞吐率的层面保证对第一图像块的成功传输,若是因为数据损坏、数据错误等导致第一图像块长时间未成功传输,此类问题是不可避免的,此时将第一图像块进行删除能够有效提升对其余的图像块的传输效率,避免造成队列拥塞。Of course, this means that the transmission of the first image block may fail. Those skilled in the art can understand that this embodiment only guarantees the successful transmission of the first image block at the level of the throughput rate of the first channel. If the first image block is not successfully transmitted for a long time due to data corruption, data error, etc., such problems are inevitable. At this time, deleting the first image block can effectively improve the transmission efficiency of the remaining image blocks and avoid causing The queue is congested.
在上述实施例的基础上,本实施例在确定第三图像块和第四图像块之前,还可以对图像块进行一系列的编码处理,下面结合图16进行说明,图16为本申请实施例提供的数据传输方法的流程图五。On the basis of the foregoing embodiment, in this embodiment, before the third image block and the fourth image block are determined, a series of encoding processing can be performed on the image blocks. The following is an explanation with reference to FIG. 16, which is an embodiment of the application. Flow chart five of the data transmission method provided.
如图16所示,该方法包括:As shown in Figure 16, the method includes:
S1601、对多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理, 以得到处理后的图像块。S1601: Perform discrete cosine transform processing, and/or quantization processing, and/or sort processing on multiple image blocks to obtain processed image blocks.
其中,离散余弦变换(Discrete Cosine Transform,DCT)是与傅里叶变换相关的一种变换,其能够用于图像的压缩,能够将像素域的信号转换到频域上,具有良好的去相关性的性能。DCT处理能够在图像编码中为后续的量化处理、哈弗曼编码处理等创造良好的条件,DCT处理之后可以得到DCT系数矩阵。Among them, the discrete cosine transform (Discrete Cosine Transform, DCT) is a transform related to the Fourier transform, which can be used for image compression, can convert the signal in the pixel domain to the frequency domain, and has good decorrelation. Performance. DCT processing can create good conditions for subsequent quantization processing, Huffman coding processing, etc. in image encoding, and DCT coefficient matrix can be obtained after DCT processing.
同时,本实施例还可以对多个图像块进行量化处理,其中量化处理就是把像素点上对应的亮度连续变化区间转换为单个特定数码的过程,具体的,量化处理过程实际上就是对DCT系数矩阵的一个优化过程。它是利用了人眼对高频部分不敏感的特性来实现数据的大幅简化。At the same time, this embodiment can also perform quantization processing on multiple image blocks. The quantization processing is the process of converting the corresponding brightness continuous change interval on the pixel into a single specific number. Specifically, the quantization process is actually the DCT coefficient An optimization process of the matrix. It uses the human eye's insensitivity to high-frequency parts to achieve substantial simplification of data.
以及,本实施例还可对图像进行排序处理,其中,排序处理具体为ZigZag排序,因为系数矩阵的重要性一定程度上是按照ZigZag模式进行排列的,因此可以通过ZigZag模式来提取这个系数矩阵前面的重要性的元素,作为第一图像在频率域上的特征,然后用于进行分类处理等,以达到降维的功效。And, this embodiment can also perform sorting processing on images, where the sorting processing is specifically ZigZag sorting, because the importance of the coefficient matrix is arranged according to the ZigZag mode to a certain extent, so the front of the coefficient matrix can be extracted through the ZigZag mode The important element is used as a feature of the first image in the frequency domain, and then used for classification processing, etc., to achieve the effect of dimensionality reduction.
本领域技术人员可以理解的是,上述介绍的编码处理可以执行其中的一个或多个,本实施例对此不做限制。Those skilled in the art can understand that one or more of the encoding processes described above can be executed, which is not limited in this embodiment.
在可选的实施例中,在对第一图像进行压缩时,除了采用DCT处理之外,还可以选用奇异值分解(Singular Value Decomposition,SVD)处理进行图像的压缩,具体的,矩阵的奇异值分解是矩阵的一种分解方式,利用矩阵的奇异值分解,可以提取矩阵的主要信息,从而通过比原矩阵少的数据量,来还原跟原矩阵差不多的信息,以实现对第一图像的压缩。In an optional embodiment, when compressing the first image, in addition to DCT processing, Singular Value Decomposition (SVD) processing can also be used to compress the image. Specifically, the singular value of the matrix Decomposition is a decomposition method of the matrix. Using the singular value decomposition of the matrix, the main information of the matrix can be extracted, so that the information similar to the original matrix can be restored with less data than the original matrix to achieve the compression of the first image. .
需要说明的是,在采用SVD处理对图像进行压缩时,就可以不用执行上述所介绍的排序处理。It should be noted that when the SVD process is used to compress the image, the sorting process described above may not be executed.
上述所介绍的各项编码处理的具体实现方式可以参照现有技术中的实现方式,此处不再赘述。For the specific implementation manners of the various encoding processes introduced above, reference may be made to the implementation manners in the prior art, which will not be repeated here.
通过对各图像块进行编码处理,从而可以有效减少数据量,以在后续的数据处理过程中提升数据传输效率。By encoding each image block, the amount of data can be effectively reduced, so as to improve the efficiency of data transmission in the subsequent data processing process.
S1602、对每第一数量个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。S1602. Perform joint compression on every first number of processed image blocks to obtain multiple image blocks after joint compression.
具体的,上述实施例中介绍了第一数量,第一数量R除了用于指示采样单位之外,还可以在本实施例中用于图像块的联合压缩。Specifically, the first number is introduced in the foregoing embodiment. In addition to indicating the sampling unit, the first number R can also be used for joint compression of image blocks in this embodiment.
具体的,本实施例中对每R个处理后的图像块进行联合压缩,具体的,该联合压缩的具体处理方式可以为哈弗曼编码压缩,以得到联合压缩后的多个图像块。Specifically, in this embodiment, joint compression is performed on every R processed image blocks. Specifically, the specific processing method of the joint compression may be Huffman coding compression to obtain multiple image blocks after joint compression.
通过对多个图像块进行联合压缩,能够有效提升图像块的压缩比例,从而在后续的数据传输过程中有效提升数据传输率。By performing joint compression on multiple image blocks, the compression ratio of the image blocks can be effectively increased, thereby effectively increasing the data transmission rate in the subsequent data transmission process.
本发明实施例提供的数据传输方法,包括:对多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理,以得到处理后的图像块。对每第一数量个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。通过对图像块进行编码处理以及联合压缩处理,能够有效减少传输数据量,以提升数据传输效率。The data transmission method provided by the embodiment of the present invention includes: performing discrete cosine transform processing, and/or quantization processing, and/or sorting processing on multiple image blocks to obtain processed image blocks. Perform joint compression on every first number of processed image blocks to obtain multiple image blocks after joint compression. By performing encoding processing and joint compression processing on image blocks, the amount of transmitted data can be effectively reduced to improve data transmission efficiency.
下面结合图17对本申请实施例提供的数据传输装置所包括的虚拟模块进行介绍,图 17为本申请实施例提供的数据传输装置的结构示意图一。如图17所示,该装置170包括:划分模块1701、确定模块1702以及传输模块1703。The virtual modules included in the data transmission device provided by the embodiment of the present application will be introduced below with reference to FIG. 17. FIG. 17 is a first structural schematic diagram of the data transmission device provided by the embodiment of the application. As shown in FIG. 17, the device 170 includes a dividing module 1701, a determining module 1702, and a transmission module 1703.
划分模块1701,用于将第一图像划分为多个图像块;The dividing module 1701 is configured to divide the first image into multiple image blocks;
确定模块1702,用于根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,所述第一图像块的总数据量小于或等于所述第一信道的最小吞吐量;The determining module 1702 is configured to determine at least one first image block and at least one second image block in the plurality of image blocks according to the throughput of the first channel, wherein the total data amount of the first image block is less than Or equal to the minimum throughput of the first channel;
传输模块1703,用于通过所述第一信道传输所述第一图像块和所述第二图像块,其中,任一所述第一图像块的传输优先级大于任一所述第二图像块的传输优先级。The transmission module 1703 is configured to transmit the first image block and the second image block through the first channel, wherein the transmission priority of any one of the first image blocks is greater than that of any one of the second image blocks Transmission priority.
在一种可能的实现方式中,所述传输模块1703具体用于:In a possible implementation manner, the transmission module 1703 is specifically configured to:
将所述第一图像块存储至第一队列;Storing the first image block in the first queue;
将所述第二图像块存储至第二队列;Storing the second image block in a second queue;
通过所述第一信道传输所述第一队列中的图像块,以及在所述第一队列中的图像块传输完成后传输所述第二队列中的图像块,所述第一队列的传输优先级大于所述第二队列的传输优先级。The image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized The level is greater than the transmission priority of the second queue.
在一种可能的实现方式中,所述传输模块1703具体用于:In a possible implementation manner, the transmission module 1703 is specifically configured to:
将所述第一图像块和所述第二图像块存储至第三队列,在所述第三队列中,任一所述第一图像块位于任一所述第二图像块之前;Storing the first image block and the second image block in a third queue, in which any one of the first image blocks is located before any one of the second image blocks;
通过所述第一信道,依次传输所述第三队列中的图像块。Through the first channel, the image blocks in the third queue are sequentially transmitted.
在一种可能的实现方式中,所述传输模块1703还用于:In a possible implementation manner, the transmission module 1703 is further configured to:
在所述将所述第一图像块存储至所述第三队列之前,若第三队列的剩余存储空间小于所述第一图像块的总数据量,则删除所述第三队列队尾的至少一个第二图像块,其中,所述被删除的至少一个第二图像块的总数据量大于或等于所述第一图像块的总数据量。Before storing the first image block in the third queue, if the remaining storage space of the third queue is less than the total data volume of the first image block, delete at least the end of the third queue A second image block, wherein the total data amount of the deleted at least one second image block is greater than or equal to the total data amount of the first image block.
在一种可能的实现方式中,所述第一图像块的最大传输时长大于所述第二图像块的最大传输时长。In a possible implementation manner, the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
在一种可能的实现方式中,所述传输模块1703具体用于:In a possible implementation manner, the transmission module 1703 is specifically configured to:
获取所述第一图像块对应的第一调制与编码策略MCS阶数,以及,获取所述第二图像块对应的第二MCS阶数,其中,所述第一MCS阶数小于所述第二MCS阶数;Acquire the first modulation and coding strategy MCS order corresponding to the first image block, and obtain the second MCS order corresponding to the second image block, wherein the first MCS order is smaller than the second MCS order. MCS order;
通过所述第一信道传输所述第一图像块和所述第二图像块,其中,所述第一信道传输所述第一图像块时的MCS阶数为第一MCS阶数,所述第一信道传输所述第二图像块时的MCS阶数为第二MCS阶数。The first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
在一种可能的实现方式中,所述确定模块1702具体用于:In a possible implementation manner, the determining module 1702 is specifically configured to:
根据所述第一信道的最大吞吐量和所述第一信道的最小吞吐量,确定第一数值R,其中,所述R为大于或者等于1的整数;Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel, where the R is an integer greater than or equal to 1;
根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,将除所述第三图像块之外的图像块确定为第四图像块;According to the R, a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;
若所述第三图像块的总数据量等于所述第一信道的最小吞吐量,则将所述第三图像块确定为所述第一图像块,并将所述第四图像块确定为第二图像块。If the total data volume of the third image block is equal to the minimum throughput of the first channel, the third image block is determined as the first image block, and the fourth image block is determined as the first image block. Two image blocks.
在一种可能的实现方式中,若所述第三图像块的总数据量小于所述第一信道的最 小吞吐量所对应的数值,则所述确定模块1702还用于:In a possible implementation, if the total data amount of the third image block is less than the value corresponding to the minimum throughput of the first channel, the determining module 1702 is further configured to:
在所述第四图像块中选择子图像块,将所述第三图像块和所述被选择的子图像块确定为第一图像块,其中,被选择的子图像块和所述第三图像块的总数据量等于所述第一信道的最小吞吐量;Select a sub-image block in the fourth image block, and determine the third image block and the selected sub-image block as the first image block, wherein the selected sub-image block and the third image The total data amount of the block is equal to the minimum throughput of the first channel;
将所述第四图像块中除所述子图像块之外的图像块确定为第二图像块。Determine an image block other than the sub image block in the fourth image block as a second image block.
在一种可能的实现方式中,所述确定模块1702具体用于:In a possible implementation manner, the determining module 1702 is specifically configured to:
根据所述R,将每R个图像块中的第K个图像块确定为第三图像块。According to the R, the Kth image block in every R image blocks is determined as the third image block.
在一种可能的实现方式中,所述确定模块1702具体用于:In a possible implementation manner, the determining module 1702 is specifically configured to:
确定每R个图像块的像素值的第一均值;Determine the first mean value of the pixel values of each R image block;
将所述每R个图像块中的目标图像块确定为第三图像块,其中,所述目标图像块为像素值均值与所述第一均值的差值最小的图像块。The target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
在一种可能的实现方式中,所述第一信道的最小吞吐量和所述第一信道的最大吞吐量的比值等于数值1和所述R的比值。In a possible implementation manner, the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
在一种可能的实现方式中,所述确定模块1702还用于:In a possible implementation manner, the determining module 1702 is further configured to:
在所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块之前,对所述多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理,以得到处理后的图像块;Before the third image block is determined in each R image blocks of the plurality of image blocks according to the R, discrete cosine transform processing and/or quantization processing are performed on the plurality of image blocks, and / Or sort processing to obtain processed image blocks;
对每R个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。Perform joint compression on every R processed image blocks to obtain multiple image blocks after joint compression.
下面结合图18对本申请实施例提供的数据传输装置所包括的虚拟模块及其对应的执行流程进行介绍,图18为本申请实施例提供的数据传输装置的结构示意图二。如图18所示,划分模块1801、确定模块1802以及传输模块1803。The following describes the virtual modules included in the data transmission device provided by the embodiment of the present application and the corresponding execution flow thereof with reference to FIG. 18. FIG. 18 is a second schematic diagram of the structure of the data transmission device provided by the embodiment of the present application. As shown in FIG. 18, the division module 1801, the determination module 1802, and the transmission module 1803.
划分模块1801将第一图像划分为多个图像块,在可能的实现方式中,其中可以存在3种处理:The dividing module 1801 divides the first image into multiple image blocks. In a possible implementation manner, there may be 3 types of processing:
第1种:对多个图像块进行采样处理,得到第三图像块和第四图像块;Type 1: Perform sampling processing on multiple image blocks to obtain a third image block and a fourth image block;
第2种:对多个图像块进行DCT处理/SVD处理、量化处理、排序处理后,再对R(第一数量)个图像块进行联合压缩,从联合压缩的图像块中,选择第三图像块和第四图像块;Type 2: After performing DCT processing/SVD processing, quantization processing, and sorting processing on multiple image blocks, then perform joint compression on R (first number) image blocks, and select the third image from the jointly compressed image blocks Block and the fourth image block;
第3种:对多个图像块进行采样处理后,再执行DCT处理、量化处理、排序处理、联合压缩处理,以得到第三图像块和第四图像块;Type 3: After sampling multiple image blocks, perform DCT processing, quantization processing, sorting processing, and joint compression processing to obtain the third image block and the fourth image block;
在实际实现过程中,本领域技术人员可以根据实际需求选择需要的实现方式,以得到第三图像块和第四图像块。In the actual implementation process, those skilled in the art can select the required implementation manner according to actual requirements to obtain the third image block and the fourth image block.
需要说明的是,第2种实现方式中从联合压缩的图像块选择第三图像块和第四图像块的实现方式与采样处理类似,以及上述所介绍的采样处理即对应上述图4实施例中的步骤S403的实现,此处不再赘述,另外,上述的DCT处理/SVD处理、量化处理、以及排序处理同样可以根据实际需求进行选择,并非全部都需要执行,具体的实现可参照上述图16实施例所介绍的内容。It should be noted that in the second implementation, the implementation of selecting the third image block and the fourth image block from the jointly compressed image block is similar to the sampling process, and the sampling process described above corresponds to the foregoing embodiment in FIG. 4 The implementation of step S403 of, will not be repeated here. In addition, the above-mentioned DCT processing/SVD processing, quantization processing, and sorting processing can also be selected according to actual needs, and not all need to be executed. For the specific implementation, please refer to the above-mentioned Figure 16 The content introduced in the embodiment.
接着,确定模块1802需要在多个图像块中确定第一图像块和第二图像块,首先将图像块划分为第三图像块和第四图像块,但是因为第三图像块和第四图像块的数量不一定满足需求,为了保证在第一信道的最小吞吐量的基础上,尽可能多的传输图像块, 本实施例根据第三图像块(Must block)和第四图像块(Not Must block)进行重分配,以得到第一图像块(Key block)和第二图像块(Not Key block)。Next, the determining module 1802 needs to determine the first image block and the second image block among multiple image blocks, and first divide the image block into a third image block and a fourth image block, but because the third image block and the fourth image block The number of image blocks may not meet the requirements. In order to ensure that as many image blocks as possible are transmitted on the basis of the minimum throughput of the first channel, this embodiment is based on the third image block (Must block) and the fourth image block (Not Must block). ) Perform reallocation to obtain the first image block (Key block) and the second image block (Not Key block).
接下来传输模块1803进行数据的传输,参见图18,通过第一信道中的发送队列对多个图像块进行传输,同时,在发送队列中针对每一个第一图像块和每一个第二图像块均设置有定时器,已指示当前图像块的最大传输时长,队列中的各个图像块通过发送设备的标准WIFI发送单元进行无线传输。Next, the transmission module 1803 performs data transmission. See FIG. 18. Multiple image blocks are transmitted through the sending queue in the first channel. At the same time, for each first image block and each second image block in the sending queue A timer is set, and the maximum transmission time of the current image block has been indicated. Each image block in the queue is wirelessly transmitted through the standard WIFI sending unit of the sending device.
接下来就是接收设备的对数据的接收,具体的,接收设备的标准WIFI接收单元进行数据的接收,并对接收到的图像块进行还原,以得到第三图像块和/或第四图像块,具体的,因为发送设备对图像块进行了重分配,因此,接收设备对应的就要对重分配的图像块进行还原。The next step is to receive data from the receiving device. Specifically, the standard WIFI receiving unit of the receiving device receives data and restores the received image block to obtain the third image block and/or the fourth image block. Specifically, because the sending device reallocates the image blocks, the receiving device needs to restore the reallocated image blocks.
以及,接收设备对还原后的图像块进行哈夫曼编码对应的解压缩,并将解压缩得到的多个图像块放入缓存队列中,缓存队列中的各个图像块也可以对应有各自的定时器,该定时器用于指示图像块的最大解析时长,接下来对缓存队列中的各个图像块进行反DCT处理/反SVD处理,以得到原始的图像块,并根据各图像块进行第一图片的显示缓存,以在接收设备的显示屏上显示该第一图片。And, the receiving device decompresses the restored image block corresponding to Huffman coding, and puts the multiple image blocks obtained by decompression into the buffer queue, and each image block in the buffer queue may also have its own timing. The timer is used to indicate the maximum resolution time of the image block, and then the inverse DCT processing/inverse SVD processing is performed on each image block in the buffer queue to obtain the original image block, and perform the first picture according to each image block The buffer is displayed to display the first picture on the display screen of the receiving device.
需要说明的是,只有发送设备进行了哈弗曼编码的联合压缩,接收设备才会对应的进行哈弗曼编码的解压缩,同样的,只有发送设备进行了DCT处理/SVD处理,接收设备才会对应的进行反DCT处理/反SVD处理,因此这两个处理并非一定需要执行的操作,因此采用虚线框进行标识。It should be noted that only when the sending device performs the joint compression of the Huffman code, the receiving device will correspondingly decompress the Huffman code. Similarly, only when the sending device has performed the DCT processing/SVD processing, the receiving device will correspond. The anti-DCT processing/anti-SVD processing is performed on the, so these two processings are not necessarily operations that need to be performed, so the dotted box is used for identification.
本实施例提供的数据处理装置,通过根据第一信道的吞吐量的变化,自适应的调整第一图像中第一图像块和第二图像块的划分,从而能够有效保证关键图像块的成功传输,当第一信道发送抖动时,接收设备接收到的第一图像会变模糊,但是用户感受较小,从而平衡了信道延迟和信道抖动,以及,本实施例中在发生无线传输延时,无需接收设备将第一信道的情况反馈给发送设备,以使得发送设备进行调度,而是发设备自适应的进行调整,从而能够有效减少数据传输的延时。同时,本实施例中是通过标准WiFi发送单元、标准WiFi接收单元,通过标准WiFi协议进行的数据传输,因此能够与现有的WiFi传输协议兼容,有效保证无线数据传输的适用性,以及,通过对多个图像块进行联合压缩,能够有效增加数据的压缩比例,提升数据的传输量。The data processing device provided in this embodiment adaptively adjusts the division of the first image block and the second image block in the first image according to the change in the throughput of the first channel, thereby effectively ensuring the successful transmission of the key image block When the transmission of the first channel is jittered, the first image received by the receiving device will become blurred, but the user experience is less, thereby balancing the channel delay and channel jitter, and in this embodiment, when the wireless transmission delay occurs, there is no need to The receiving device feeds back the condition of the first channel to the sending device, so that the sending device performs scheduling, but the sending device adjusts adaptively, which can effectively reduce the delay of data transmission. At the same time, in this embodiment, data transmission is carried out through the standard WiFi sending unit, the standard WiFi receiving unit, and the standard WiFi protocol. Therefore, it can be compatible with the existing WiFi transmission protocol, effectively ensuring the applicability of wireless data transmission, and by Joint compression of multiple image blocks can effectively increase the compression ratio of data and increase the amount of data transmission.
图19为本申请实施例提供的数据传输设备的硬件结构示意图,如图19所示,本实施例的数据传输设备190包括:存储器1901、处理器1902和射频收发机1903,所述存储器1901用于存储程序或指令。FIG. 19 is a schematic diagram of the hardware structure of a data transmission device provided by an embodiment of the application. As shown in FIG. 19, the data transmission device 190 of this embodiment includes: a memory 1901, a processor 1902, and a radio frequency transceiver 1903. The memory 1901 uses For storing programs or instructions.
在一种可能的实现方式中,处理器1902可以实现图17-图18中划分模块1701、确定模块1702的功能,射频收发机1903可以实现图17-图18中传输模块1703的功能,具体可以参见前述方法实施例及装置实施例中的相关描述。以及In a possible implementation manner, the processor 1902 can implement the functions of the dividing module 1701 and the determining module 1702 in Figs. 17-18, and the radio frequency transceiver 1903 can implement the functions of the transmission module 1703 in Figs. 17-18. See the related descriptions in the foregoing method embodiment and device embodiment. as well as
可选地,存储器1902既可以是独立的,也可以跟处理器1901集成在一起。Optionally, the memory 1902 may be independent or integrated with the processor 1901.
当存储器1902独立设置时,该数据传输设备还包括总线1904,用于连接所述存储器1902和处理器1901。When the memory 1902 is independently provided, the data transmission device further includes a bus 1904 for connecting the memory 1902 and the processor 1901.
可选的,上述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的业务处理方法实施例中的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Optionally, the foregoing processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), application specific integrated circuits (ASICs) )Wait. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps in the embodiment of the service processing method disclosed in the embodiment of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上数据传输设备所执行的数据传输方法。The embodiments of the present application also provide a computer-readable storage medium that stores computer-executable instructions. When the processor executes the computer-executed instructions, the data transmission method executed by the above data transmission device is implemented. .
本申请实施例提供一种计算机程序产品,所述计算机程序产品包括指令,当所述指令被执行时,使得计算机执行上述数据传输方法。The embodiments of the present application provide a computer program product. The computer program product includes instructions that, when executed, cause a computer to execute the above-mentioned data transmission method.
本申请实施例提供一种芯片上系统或系统芯片,所述芯片上系统或系统芯片可应用于终端设备,所述芯片上系统或系统芯片包括:至少一个通信接口,至少一个处理器,至少一个存储器,所述通信接口、存储器和处理器通过总线互联,所述处理器通过执行所述存储器中存储的指令,使得所述终端设备可执行上述数据传输方法。An embodiment of the present application provides a system on a chip or a system chip, the system on a chip or a system chip may be applied to a terminal device, and the system on a chip or a system chip includes: at least one communication interface, at least one processor, and at least one The memory, the communication interface, the memory, and the processor are interconnected by a bus, and the processor executes the instructions stored in the memory so that the terminal device can execute the above-mentioned data transmission method.
实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(英文:read-only memory,缩写:ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(英文:magnetic tape)、软盘(英文:floppy disk)、光盘(英文:optical disc)及其任意组合。All or part of the steps in the foregoing method embodiments may be implemented by a program instructing relevant hardware. The aforementioned program can be stored in a readable memory. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviation: ROM), RAM, flash memory, hard disk, Solid state hard disk, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, equipment (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing equipment can be used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请实施例权利要求及其等同技术的范围之内,则本申请实施例也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. In this way, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalent technologies, the embodiments of the present application are also intended to include these changes and modifications.
在本申请实施例中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本本申请实施例中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请实施例中,“多个”是指两个或两个以上。“和/或”, 描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the embodiments of the present application, the term "including" and its variations may refer to non-limiting inclusion; the term "or" and its variations may refer to "and/or". The terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. In the embodiments of the present application, "multiple" refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects before and after are in an "or" relationship.
Claims (26)
- 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that it comprises:将第一图像划分为多个图像块;Dividing the first image into multiple image blocks;根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,所述第一图像块的总数据量小于或等于所述第一信道的最小吞吐量;According to the throughput of the first channel, at least one first image block and at least one second image block are determined among the plurality of image blocks, wherein the total data amount of the first image block is less than or equal to the first image block. The minimum throughput of the channel;通过所述第一信道传输所述第一图像块和所述第二图像块,其中,任一所述第一图像块的传输优先级大于任一所述第二图像块的传输优先级。The first image block and the second image block are transmitted through the first channel, wherein the transmission priority of any one of the first image blocks is greater than the transmission priority of any one of the second image blocks.
- 根据权利要求1所述的方法,其特征在于,所述通过所述第一信道传输所述第一图像块和所述第二图像块,包括:The method according to claim 1, wherein the transmitting the first image block and the second image block through the first channel comprises:将所述第一图像块存储至第一队列;Storing the first image block in the first queue;将所述第二图像块存储至第二队列;Storing the second image block in a second queue;通过所述第一信道传输所述第一队列中的图像块,以及在所述第一队列中的图像块传输完成后传输所述第二队列中的图像块,所述第一队列的传输优先级大于所述第二队列的传输优先级。The image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized The level is greater than the transmission priority of the second queue.
- 根据权利要求1所述的方法,其特征在于,所述通过所述第一信道传输所述第一图像块和所述第二图像块,包括:The method according to claim 1, wherein the transmitting the first image block and the second image block through the first channel comprises:将所述第一图像块和所述第二图像块存储至第三队列,在所述第三队列中,任一所述第一图像块位于任一所述第二图像块之前;Storing the first image block and the second image block in a third queue, in which any one of the first image blocks is located before any one of the second image blocks;通过所述第一信道,依次传输所述第三队列中的图像块。Through the first channel, the image blocks in the third queue are sequentially transmitted.
- 根据权利要求3所述的方法,其特征在于,所述将所述第一图像块存储至所述第三队列之前,所述方法还包括:The method according to claim 3, wherein before storing the first image block in the third queue, the method further comprises:若第三队列的剩余存储空间小于所述第一图像块的总数据量,则删除所述第三队列队尾的至少一个第二图像块,其中,被删除的至少一个所述第二图像块的总数据量大于或等于所述第一图像块的总数据量。If the remaining storage space of the third queue is less than the total data amount of the first image block, delete at least one second image block at the end of the third queue, wherein at least one second image block is deleted The total data amount of is greater than or equal to the total data amount of the first image block.
- 根据权利要求1所述的方法,其特征在于,所述第一图像块的最大传输时长大于所述第二图像块的最大传输时长。The method according to claim 1, wherein the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
- 根据权利要求1-5任一项所述的方法,其特征在于,所述通过所述第一信道传输所述第一图像块和所述第二图像块,包括:The method according to any one of claims 1-5, wherein the transmitting the first image block and the second image block through the first channel comprises:获取所述第一图像块对应的至少一个第一调制与编码策略MCS阶数,以及,获取 所述第二图像块对应的至少一个第二MCS阶数,其中,任一所述第一MCS阶数小于任一所述第二MCS阶数;Acquire at least one first modulation and coding strategy MCS order corresponding to the first image block, and obtain at least one second MCS order corresponding to the second image block, wherein any of the first MCS orders Is smaller than any of the second MCS orders;通过所述第一信道传输所述第一图像块和所述第二图像块,其中,所述第一信道传输所述第一图像块时的MCS阶数为第一MCS阶数,所述第一信道传输所述第二图像块时的MCS阶数为第二MCS阶数。The first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
- 根据权利要求1所述的方法,其特征在于,所述根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,包括:The method according to claim 1, wherein the determining at least one first image block and at least one second image block in the plurality of image blocks according to the throughput of the first channel comprises:根据所述第一信道的最大吞吐量和所述第一信道的最小吞吐量,确定第一数值R,其中,所述R为大于或者等于1的整数;Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel, where the R is an integer greater than or equal to 1;根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,将除所述第三图像块之外的图像块确定为第四图像块;According to the R, a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;若所述第三图像块的总数据量等于所述第一信道的最小吞吐量,则将所述第三图像块确定为所述第一图像块,并将所述第四图像块确定为第二图像块。If the total data volume of the third image block is equal to the minimum throughput of the first channel, the third image block is determined as the first image block, and the fourth image block is determined as the first image block. Two image blocks.
- 根据权利要求7所述的方法,其特征在于,若所述第三图像块的总数据量小于所述第一信道的最小吞吐量所对应的数值,则所述方法还包括:8. The method according to claim 7, wherein if the total data amount of the third image block is less than the value corresponding to the minimum throughput of the first channel, the method further comprises:在所述第四图像块中选择子图像块,将所述第三图像块和被选择的所述子图像块确定为第一图像块,其中,被选择的子图像块和所述第三图像块的总数据量等于所述第一信道的最小吞吐量;Select a sub-image block in the fourth image block, and determine the third image block and the selected sub-image block as the first image block, wherein the selected sub-image block and the third image The total data amount of the block is equal to the minimum throughput of the first channel;将所述第四图像块中除所述子图像块之外的图像块确定为第二图像块。Determine an image block other than the sub image block in the fourth image block as a second image block.
- 根据权利要求7所述的方法,其特征在于,所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,包括:The method according to claim 7, wherein the determining a third image block in each R image blocks of the plurality of image blocks according to the R comprises:根据所述R,将每R个图像块中的第K个图像块确定为第三图像块。According to the R, the Kth image block in every R image blocks is determined as the third image block.
- 根据权利要求7所述的方法,其特征在于,所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,包括:The method according to claim 7, wherein the determining a third image block in each R image blocks of the plurality of image blocks according to the R comprises:确定每R个图像块的像素值的第一均值;Determine the first mean value of the pixel values of each R image block;将所述每R个图像块中的目标图像块确定为第三图像块,其中,所述目标图像块为像素值均值与所述第一均值的差值最小的图像块。The target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
- 根据权利要求7所述的方法,其特征在于,所述第一信道的最小吞吐量和所述第一信道的最大吞吐量的比值等于数值1和所述R的比值。The method according to claim 7, wherein the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
- 根据权利要求7所述的方法,其特征在于,所述根据所述R,在所述多个图 像块中的每R个图像块中确定第三图像块之前,还包括:The method according to claim 7, characterized in that, before determining a third image block in every R image blocks of the plurality of image blocks according to the R, the method further comprises:对所述多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理,以得到处理后的图像块;Performing discrete cosine transform processing, and/or quantization processing, and/or sorting processing on the plurality of image blocks to obtain processed image blocks;对每R个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。Perform joint compression on every R processed image blocks to obtain multiple image blocks after joint compression.
- 一种数据传输装置,其特征在于,包括:A data transmission device is characterized in that it comprises:划分模块,用于将第一图像划分为多个图像块;A dividing module for dividing the first image into multiple image blocks;确定模块,用于根据第一信道的吞吐量,在所述多个图像块中确定至少一个第一图像块和至少一个第二图像块,其中,所述第一图像块的总数据量小于或等于所述第一信道的最小吞吐量;The determining module is configured to determine at least one first image block and at least one second image block in the plurality of image blocks according to the throughput of the first channel, wherein the total data amount of the first image block is less than or Equal to the minimum throughput of the first channel;传输模块,用于通过所述第一信道传输所述第一图像块和所述第二图像块,其中,任一所述第一图像块的传输优先级大于任一所述第二图像块的传输优先级。The transmission module is configured to transmit the first image block and the second image block through the first channel, wherein the transmission priority of any one of the first image blocks is greater than that of any one of the second image blocks Transmission priority.
- 根据权利要求13所述的装置,其特征在于,所述传输模块具体用于:The device according to claim 13, wherein the transmission module is specifically configured to:将所述第一图像块存储至第一队列;Storing the first image block in the first queue;将所述第二图像块存储至第二队列;Storing the second image block in a second queue;通过所述第一信道传输所述第一队列中的图像块,以及在所述第一队列中的图像块传输完成后传输所述第二队列中的图像块,所述第一队列的传输优先级大于所述第二队列的传输优先级。The image blocks in the first queue are transmitted through the first channel, and the image blocks in the second queue are transmitted after the transmission of the image blocks in the first queue is completed, and the transmission of the first queue is prioritized The level is greater than the transmission priority of the second queue.
- 根据权利要求13所述的装置,其特征在于,所述传输模块具体用于:The device according to claim 13, wherein the transmission module is specifically configured to:将所述第一图像块和所述第二图像块存储至第三队列,在所述第三队列中,任一所述第一图像块位于任一所述第二图像块之前;Storing the first image block and the second image block in a third queue, in which any one of the first image blocks is located before any one of the second image blocks;通过所述第一信道,依次传输所述第三队列中的图像块。Through the first channel, the image blocks in the third queue are sequentially transmitted.
- 根据权利要求15所述的装置,其特征在于,所述传输模块还用于:The device according to claim 15, wherein the transmission module is further configured to:在所述将所述第一图像块存储至所述第三队列之前,若第三队列的剩余存储空间小于所述第一图像块的总数据量,则删除所述第三队列队尾的至少一个第二图像块,其中,被删除的至少一个所述第二图像块的总数据量大于或等于所述第一图像块的总数据量。Before storing the first image block in the third queue, if the remaining storage space of the third queue is less than the total data volume of the first image block, delete at least the end of the third queue A second image block, wherein the total data amount of the deleted at least one second image block is greater than or equal to the total data amount of the first image block.
- 根据权利要求13所述的装置,其特征在于,所述第一图像块的最大传输时长大于所述第二图像块的最大传输时长。The apparatus according to claim 13, wherein the maximum transmission duration of the first image block is greater than the maximum transmission duration of the second image block.
- 根据权利要求13所述的装置,其特征在于,所述传输模块具体用于:The device according to claim 13, wherein the transmission module is specifically configured to:获取所述第一图像块对应的第一调制与编码策略MCS阶数,以及,获取所述第二 图像块对应的第二MCS阶数,其中,所述第一MCS阶数小于所述第二MCS阶数;Acquire the first modulation and coding strategy MCS order corresponding to the first image block, and obtain the second MCS order corresponding to the second image block, wherein the first MCS order is smaller than the second MCS order. MCS order;通过所述第一信道传输所述第一图像块和所述第二图像块,其中,所述第一信道传输所述第一图像块时的MCS阶数为第一MCS阶数,所述第一信道传输所述第二图像块时的MCS阶数为第二MCS阶数。The first image block and the second image block are transmitted through the first channel, wherein the MCS order when the first image block is transmitted on the first channel is the first MCS order, and the The MCS order when the second image block is transmitted on one channel is the second MCS order.
- 根据权利要求13所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 13, wherein the determining module is specifically configured to:根据所述第一信道的最大吞吐量和所述第一信道的最小吞吐量,确定第一数值R,其中,所述R为大于或者等于1的整数;Determine a first value R according to the maximum throughput of the first channel and the minimum throughput of the first channel, where the R is an integer greater than or equal to 1;根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块,将除所述第三图像块之外的图像块确定为第四图像块;According to the R, a third image block is determined in every R image blocks of the plurality of image blocks, and an image block other than the third image block is determined as a fourth image block;若所述第三图像块的总数据量等于所述第一信道的最小吞吐量,则将所述第三图像块确定为所述第一图像块,并将所述第四图像块确定为第二图像块。If the total data volume of the third image block is equal to the minimum throughput of the first channel, the third image block is determined as the first image block, and the fourth image block is determined as the first image block. Two image blocks.
- 根据权利要求19所述的装置,其特征在于,若所述第三图像块的总数据量小于所述第一信道的最小吞吐量所对应的数值,则所述确定模块还用于:The apparatus according to claim 19, wherein if the total data amount of the third image block is less than the value corresponding to the minimum throughput of the first channel, the determining module is further configured to:在所述第四图像块中选择子图像块,将所述第三图像块和被选择的所述子图像块确定为第一图像块,其中,被选择的子图像块和所述第三图像块的总数据量等于所述第一信道的最小吞吐量;Select a sub-image block in the fourth image block, and determine the third image block and the selected sub-image block as the first image block, wherein the selected sub-image block and the third image The total data amount of the block is equal to the minimum throughput of the first channel;将所述第四图像块中除所述子图像块之外的图像块确定为第二图像块。Determine an image block other than the sub image block in the fourth image block as a second image block.
- 根据权利要求19所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 19, wherein the determining module is specifically configured to:根据所述R,将每R个图像块中的第K个图像块确定为第三图像块。According to the R, the Kth image block in every R image blocks is determined as the third image block.
- 根据权利要求19所述的装置,其特征在于,所述确定模块具体用于:The device according to claim 19, wherein the determining module is specifically configured to:确定每R个图像块的像素值的第一均值;Determine the first mean value of the pixel values of each R image block;将所述每R个图像块中的目标图像块确定为第三图像块,其中,所述目标图像块为像素值均值与所述第一均值的差值最小的图像块。The target image block in each of the R image blocks is determined as a third image block, where the target image block is an image block with the smallest difference between the average pixel value and the first average value.
- 根据权利要求19所述的装置,其特征在于,所述第一信道的最小吞吐量和所述第一信道的最大吞吐量的比值等于数值1和所述R的比值。The apparatus according to claim 19, wherein the ratio of the minimum throughput of the first channel to the maximum throughput of the first channel is equal to the ratio of the value 1 to the R.
- 根据权利要求19所述的装置,其特征在于,所述确定模块还用于:The device according to claim 19, wherein the determining module is further configured to:在所述根据所述R,在所述多个图像块中的每R个图像块中确定第三图像块之前,对所述多个图像块进行离散余弦变换处理、和/或量化处理、和/或排序处理,以得到处理后的图像块;Before the third image block is determined in each R image blocks of the plurality of image blocks according to the R, discrete cosine transform processing and/or quantization processing are performed on the plurality of image blocks, and / Or sort processing to obtain processed image blocks;对每R个处理后的图像块进行联合压缩,得到联合压缩后的多个图像块。Perform joint compression on every R processed image blocks to obtain multiple image blocks after joint compression.
- 一种数据传输设备,其特征在于,包括:存储器、处理器和射频收发机,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述设备执行如权利要求1至12中任一所述的方法。A data transmission device, characterized by comprising: a memory, a processor, and a radio frequency transceiver, the memory is used to store a program or instruction, when the program or instruction is executed by the processor, the device executes The method of any one of claims 1-12.
- 一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至12中任一所述的方法。A computer-readable storage medium, characterized by comprising instructions, which when run on a computer, causes the computer to execute the method according to any one of claims 1-12.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201980102464.4A CN114731422A (en) | 2019-12-17 | 2019-12-17 | Data transmission method and device |
PCT/CN2019/126039 WO2021120008A1 (en) | 2019-12-17 | 2019-12-17 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/126039 WO2021120008A1 (en) | 2019-12-17 | 2019-12-17 | Data transmission method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021120008A1 true WO2021120008A1 (en) | 2021-06-24 |
Family
ID=76476981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/126039 WO2021120008A1 (en) | 2019-12-17 | 2019-12-17 | Data transmission method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114731422A (en) |
WO (1) | WO2021120008A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118429201B (en) * | 2024-07-04 | 2024-09-24 | 中国南方电网有限责任公司超高压输电公司电力科研院 | Solar blind ultraviolet and visual fusion imaging method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101960845A (en) * | 2008-03-12 | 2011-01-26 | 汤姆森特许公司 | Method and apparatus for transmitting an image in a wireless network |
CN102186067A (en) * | 2011-03-31 | 2011-09-14 | 深圳超多维光电子有限公司 | Image frame transmission method, device, display method and system |
EP2555455A2 (en) * | 2011-08-05 | 2013-02-06 | Acer Incorporated | Method and apparatus for high definition video wireless transmission with adaptive coding and modualtion |
CN106791696A (en) * | 2017-01-13 | 2017-05-31 | 中国科学院大学 | Wireless video monitoring system and its image transfer method and device |
CN106973066A (en) * | 2017-05-10 | 2017-07-21 | 福建星网智慧科技股份有限公司 | H264 encoded videos data transmission method and system in a kind of real-time communication |
CN108076345A (en) * | 2016-11-09 | 2018-05-25 | 阿里巴巴集团控股有限公司 | The coding method of multi-angle video frame, transmission method, device, computer |
-
2019
- 2019-12-17 WO PCT/CN2019/126039 patent/WO2021120008A1/en active Application Filing
- 2019-12-17 CN CN201980102464.4A patent/CN114731422A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101960845A (en) * | 2008-03-12 | 2011-01-26 | 汤姆森特许公司 | Method and apparatus for transmitting an image in a wireless network |
CN102186067A (en) * | 2011-03-31 | 2011-09-14 | 深圳超多维光电子有限公司 | Image frame transmission method, device, display method and system |
EP2555455A2 (en) * | 2011-08-05 | 2013-02-06 | Acer Incorporated | Method and apparatus for high definition video wireless transmission with adaptive coding and modualtion |
CN108076345A (en) * | 2016-11-09 | 2018-05-25 | 阿里巴巴集团控股有限公司 | The coding method of multi-angle video frame, transmission method, device, computer |
CN106791696A (en) * | 2017-01-13 | 2017-05-31 | 中国科学院大学 | Wireless video monitoring system and its image transfer method and device |
CN106973066A (en) * | 2017-05-10 | 2017-07-21 | 福建星网智慧科技股份有限公司 | H264 encoded videos data transmission method and system in a kind of real-time communication |
Also Published As
Publication number | Publication date |
---|---|
CN114731422A (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102439971B (en) | For the method and system of the progression rate adapted of the uncompressed video communication in wireless system | |
UA77036C2 (en) | Method for transmitting data packets (variants); a data transmission system and a mobile terminal for the realization of the method | |
EP3823347B1 (en) | Method and apparatus for eht multi-band a-msdu operation | |
WO2022188686A1 (en) | Communication method and device | |
US10523574B2 (en) | Apparatus and method for controlling data transmission speed in wireless communication system | |
US20240236765A1 (en) | Communication method and apparatus | |
CN105900481B (en) | bandwidth selection method of wireless fidelity technology and access point AP | |
CN108847919B (en) | Data transmission method, base station and wireless communication equipment | |
JP4116006B2 (en) | Screen transfer device, screen transfer system, screen transfer method, and program | |
US20230231787A1 (en) | Communication method and an apparatus | |
WO2021120008A1 (en) | Data transmission method and device | |
WO2020175047A1 (en) | Communication device, control method, and program | |
CN116195296A (en) | Communication device, control method for communication device, and program | |
US20230057502A1 (en) | Method and apparatus for quality of service traffic handling under nstr constraints | |
US20220330074A1 (en) | Communication method and apparatus | |
US20230057296A1 (en) | Communication apparatus, communication control method, communication method, and computer-readable storage medium | |
KR101512731B1 (en) | Communication apparatus and method, and access point employing the same | |
US9300979B2 (en) | Methods for transmitting and receiving data contents, corresponding source and destination nodes and storage means | |
WO2024109868A1 (en) | Communication method and apparatus, storage medium, terminal device, and network device | |
WO2023197143A1 (en) | Base station, user equipment, and extended reality processing method | |
WO2023185389A1 (en) | Communication method and related apparatus | |
US20240314188A1 (en) | Data transmission method and apparatus | |
WO2024067374A1 (en) | Communication method and apparatus | |
WO2024164238A1 (en) | Wireless communication method, station device, and access point device | |
WO2024169349A1 (en) | Data transmission method and related device |
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: 19956579 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: 19956579 Country of ref document: EP Kind code of ref document: A1 |