Data transmission method and device
By explicitly or implicitly indicating that the compression method of compressed data is block prediction or improved adaptive median prediction in the vehicle audio and video entertainment system, the high power consumption problem caused by complex decompression is solved, and more efficient data transmission and more efficient data transmission are achieved. Low power consumption car audio and video entertainment system.
Patent Information
- Application Number
- CN202310365353.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
The complex decompression methods in in-vehicle audio and video entertainment systems lead to high power consumption and cannot meet the requirements of in-vehicle components for low power consumption and small area chips.
By explicitly or implicitly indicating that the compression method of compressed data is block prediction or improved adaptive median prediction, the complexity of the decompression process is reduced, the number of bits of indication information is reduced, and the power consumption efficiency of the in-vehicle audio-visual entertainment system is improved.
It effectively reduces the power consumption and processing chip area of the in-vehicle audio and video entertainment system, improves the energy efficiency of the system, and is suitable for fuel consumption or battery life of fuel vehicles and electric vehicles.
Smart Images

Figure CN118740945A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of smart cars, and specifically to a method and device for data transmission. Background Art
[0002] With the development of smart cars, users have higher requirements for in-car audio and video entertainment systems. For example, in-car audio and video entertainment systems can achieve the same effect as home audio and video entertainment systems. Conventional video image data transmission, such as Figure 1 As shown, the compressed data can be sent from the host's system on chip (SoC) through a transmitter (Tx) to a receiver (Rx) on the screen. The receiving end decompresses the compressed data and then displays the decompressed data on the display module.
[0003] Since home audio and video entertainment systems have independent power supplies and do not require high space, they do not have high requirements for the power consumption and volume of related components. However, car audio and video entertainment systems have certain requirements for the power consumption, volume and weight of related components. If the compression method in the home audio and video entertainment system is fully applied to the car audio and video entertainment system, the complex decompression method may lead to higher power consumption, which cannot meet the power consumption requirements of the car audio and video entertainment system for related components.
[0004] Therefore, how to reduce the implementation complexity of the in-vehicle audio and video entertainment system to reduce the power consumption of related components is an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide a method and device for data transmission, which can reduce the complexity of the decompression process, thereby reducing the power consumption of the in-vehicle audio and video entertainment system and reducing the area of the processing chip.
[0006] In a first aspect, a method for data transmission is provided, the method comprising compressing first original data to obtain first compressed data, and sending the first compressed data and first indication information to a receiving end, the first indication information being used to indicate that the compression method corresponding to the first compressed data is block prediction or improved adaptive median prediction.
[0007] Optionally, the first original data may be image transmission data in a vehicle-mounted system.
[0008] In the above technical solution, the compression method used for the first original data indicates through the first indication information that the compression method corresponding to the first compressed data is block prediction or improved adaptive median prediction. Compared with the compression method in which the receiving end distinguishes between block prediction and improved adaptive median prediction through an inference algorithm, the above method can reduce the complexity of decompression, thereby reducing the power consumption of the processing process and the area of the processing chip.
[0009] For example, the screen in a home audio and video entertainment system can be powered by an independent power supply. The higher power consumption caused by the compression method is determined by the deduction algorithm, which is not a problem for the home audio and video entertainment system. However, if the in-vehicle audio and video entertainment system uses the above technical solution, the complexity of the decompression process can be reduced, thereby reducing power consumption. For fuel vehicles that use engine fuel to generate electricity for the motor, reducing the power consumption of the home audio and video entertainment system can indirectly reduce fuel consumption. For electric vehicles, the power consumption of the home audio and video entertainment system on the battery can be directly reduced, thereby improving the battery life.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction; or, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is improved adaptive median prediction.
[0011] In the above technical solution, the compression method of compressing data at the receiving end is indicated by explicit indication, which can intuitively reduce the complexity of the decompression process.
[0012] In combination with the first aspect, in certain implementations of the first aspect, when the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction, the first indication information also includes a second field, and the second field is used to indicate a block prediction vector.
[0013] In the above technical solution, when the compression method corresponding to the compressed data is block prediction, the receiving end can decompress the compressed data through the field indicating the block prediction vector in the first indication information, thereby reducing the complexity of the decompression process.
[0014] In combination with the first aspect, in some implementations of the first aspect, the first indication information includes a third field, and when the third field belongs to the first numerical range, the third field is used to indicate that the compression method corresponding to the first compressed data is block prediction.
[0015] In combination with the first aspect, in some implementations of the first aspect, the third field is also used to indicate a block prediction vector of block prediction.
[0016] In the above technical solution, the compression method corresponding to the compressed data is indicated as block prediction or improved adaptive median prediction by an implicit indication method, which can reduce the number of bits corresponding to the field of the indication information.
[0017] In combination with the first aspect, in certain implementations of the first aspect, sending first compressed data and first indication information to a receiving end includes: sending a first compressed data frame to the receiving end, the first compressed data frame including first compressed data, first indication information and second indication information, the second indication information being used to indicate that the first compressed data frame includes the first indication information.
[0018] As a possible implementation manner, the first indication information may be located after the first compressed data, or the first indication information may be located before the first compressed data, or the first indication information may be located in the middle of the first compressed data.
[0019] In combination with the first aspect, in certain implementations of the first aspect, sending first compressed data and first indication information to a receiving end includes: sending a first compression method indication frame and a first compressed data frame to the receiving end; wherein the first compression method indication frame includes the first indication information, and the first compressed data frame includes the first compressed data.
[0020] In the above technical solution, a compression method indication frame is added without changing the structure of the original compressed data frame, thereby improving the compatibility of the above solution.
[0021] In combination with the first aspect, in certain implementations of the first aspect, the first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history, or a first compression method, wherein the first compression method includes block prediction or improved adaptive median prediction.
[0022] In a second aspect, a method for data transmission is provided, the method comprising: receiving first compressed data and first indication information from a transmitting end, decompressing the first compressed data according to a compression method indicated by the first indication information to obtain first original data, wherein the compression method corresponding to the first compressed data indicated by the first indication information is block prediction or improved adaptive median prediction.
[0023] It should be understood that the beneficial effects brought about by the technical solution of the second aspect can be referred to the first aspect and will not be elaborated here.
[0024] In conjunction with the second aspect, in some implementations of the second aspect, the first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction. Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is improved adaptive median prediction.
[0025] In conjunction with the second aspect, in some implementations of the second aspect, when the compression method indicated by the first indication information is block prediction, the first indication information further includes a second field, and the second field is used to indicate a block prediction vector. Decompressing the first compressed data according to the compression method indicated by the first indication information to obtain the first original data includes: decompressing the first decompressed data through block prediction according to the block prediction vector to obtain the first original data.
[0026] In combination with the second aspect, in some implementations of the second aspect, the first indication information includes a third field, and decompressing the first compressed data according to the compression method indicated by the first indication information to obtain the first original data includes: when the third field belongs to the first numerical range, determining that the compression method corresponding to the first compressed data is block prediction, and determining a block prediction vector of the block prediction. According to the block prediction vector, the first decompressed data is decompressed through block prediction to obtain the first original data.
[0027] In combination with the second aspect, in certain implementations of the second aspect, receiving first compressed data and first indication information from a sender includes: receiving a first compressed data frame from a sender, the first compressed data frame including first compressed data, first indication information and second indication information, the second indication information being used to indicate that the first compressed data frame includes the first indication information.
[0028] In conjunction with the second aspect, in some implementations of the second aspect, receiving the first compressed data and the first indication information from the sender includes: receiving a first compression method indication frame and a first compressed data frame from the sender, wherein the first compression method indication frame includes the first indication information, and the first compressed data frame includes the first compressed data.
[0029] In combination with the second aspect, in certain implementations of the second aspect, the first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history, or a first compression method, wherein the first compression method includes block prediction or improved adaptive median prediction.
[0030] In a third aspect, a data transmission device is provided, the device comprising a processing unit and a transceiver unit, the processing unit is used to compress first original data to obtain first compressed data. The transceiver unit is used to send the first compressed data and first indication information to a receiving end, the first indication information is used to indicate that the compression method corresponding to the first compressed data is block prediction or improved adaptive median prediction.
[0031] It should be understood that the beneficial effects brought about by the technical solution of the third aspect can be referred to the first aspect and will not be elaborated here.
[0032] In combination with the third aspect, in certain implementations of the third aspect, the first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction; or, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is improved adaptive median prediction.
[0033] In combination with the third aspect, in certain implementations of the third aspect, when the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction, the first indication information also includes a second field, and the second field is used to indicate a block prediction vector.
[0034] In combination with the third aspect, in certain implementations of the third aspect, the first indication information includes a third field, and when the third field belongs to the first numerical range, the third field is used to indicate that the compression method corresponding to the first compressed data is block prediction.
[0035] In combination with the third aspect, in certain implementations of the third aspect, the third field is also used to indicate a block prediction vector of block prediction.
[0036] In combination with the third aspect, in certain implementations of the third aspect, the transceiver unit is specifically used to: send a first compressed data frame to a receiving end, the first compressed data frame including first compressed data, first indication information and second indication information, the second indication information being used to indicate that the first compressed data frame includes the first indication information.
[0037] In combination with the third aspect, in certain implementations of the third aspect, the transceiver unit is specifically used to: send a first compression method indication frame and a first compressed data frame to a receiving end; wherein the first compression method indication frame includes first indication information, and the first compressed data frame includes first compressed data.
[0038] In combination with the third aspect, in certain implementations of the third aspect, the first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history, or a first compression method, wherein the first compression method includes block prediction or improved adaptive median prediction.
[0039] In a fourth aspect, a data transmission device is provided, the device comprising a processing unit and a transceiver unit: the transceiver unit is used to receive first compressed data and first indication information from a transmitting end. The processing unit is used to decompress the first compressed data according to the compression method indicated by the first indication information to obtain first original data, wherein the compression method corresponding to the first compressed data indicated by the first indication information is block prediction or improved adaptive median prediction.
[0040] It should be understood that the beneficial effects brought about by the technical solution of the fourth aspect can be referred to the first aspect and will not be elaborated here.
[0041] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction. Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is improved adaptive median prediction.
[0042] In conjunction with the fourth aspect, in some implementations of the fourth aspect, when the compression method indicated by the first indication information is block prediction, the first indication information further includes a second field, and the second field is used to indicate a block prediction vector. The processing unit is specifically configured to: decompress the first decompressed data through block prediction according to the block prediction vector to obtain the first original data.
[0043] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the first indication information includes a third field, and the processing unit is specifically configured to: when the third field belongs to the first numerical range, determine that the compression method corresponding to the first compressed data is block prediction, and determine a block prediction vector of the block prediction. According to the block prediction vector, the first decompressed data is decompressed through block prediction to obtain the first original data.
[0044] In combination with the fourth aspect, in certain implementations of the fourth aspect, the transceiver unit is specifically used to: receive a first compressed data frame from a sending end, the first compressed data frame including first compressed data, first indication information and second indication information, the second indication information being used to indicate that the first compressed data frame includes the first indication information.
[0045] In combination with the fourth aspect, in certain implementations of the fourth aspect, the transceiver unit is specifically used to: receive a first compression method indication frame and a first compressed data frame from a sending end; wherein the first compression method indication frame includes first indication information, and the first compressed data frame includes first compressed data.
[0046] In combination with the fourth aspect, in certain implementations of the fourth aspect, the first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history, or a first compression method, wherein the first compression method includes block prediction or improved adaptive median prediction.
[0047] In a fifth aspect, a method for data transmission is provided, the method comprising: compressing first original data to obtain first compressed data. Sending the first compressed data and first indication information to a receiving end, the first indication information being used to indicate that the compression method corresponding to the first compressed data is a second compression method, and the second compression method is a compression method other than median prediction and indexed color history. The first compressed data comprises a prefix, and the prefix is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history, or the first compression method, and the first compression method is block prediction or improved adaptive median prediction.
[0048] It should be understood that the second compression method can be used for not only block prediction or improved adaptive median prediction, but also other display stream compression for image data compression in the future, and this application does not limit this.
[0049] In combination with the fifth aspect, in certain implementations of the fifth aspect, the second compression method may be block prediction or improved adaptive median prediction.
[0050] It should be understood that other possible implementation methods of the fifth aspect are similar to those of the first aspect. The specific contents can be referred to the fifth aspect and will not be elaborated here.
[0051] In a sixth aspect, a method for data transmission is provided, the method comprising: receiving first compressed data and first indication information from a transmitting end. Decompressing the first compressed data according to the compression method indicated by the first indication information to obtain first original data, wherein the compression method corresponding to the first compressed data indicated by the first indication information is the second compression method, and the second compression method is a compression method other than median prediction or indexed color history. The first compressed data includes a prefix, and the prefix is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history, or the first compression method, wherein the first compression method is block prediction or improved adaptive median prediction.
[0052] In combination with the sixth aspect, in certain implementations of the sixth aspect, the second compression method may be block prediction or improved adaptive median prediction.
[0053] It should be understood that other possible implementations of the sixth aspect are similar to those of the second aspect. The specific contents may refer to the fifth aspect and will not be elaborated here.
[0054] In the seventh aspect, a device for data transmission is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, and the processor executes the computer program stored in the memory to enable the device to perform any possible method in the first aspect, or to enable the device to perform any possible method in the second aspect, or to enable the device to perform any possible method in the fifth aspect, or to enable the device to perform any possible method in the sixth aspect.
[0055] In an eighth aspect, a system for data transmission is provided, the system comprising a transmitting end and a receiving end, wherein the transmitting end comprises any possible device in the third aspect or the seventh aspect, and the receiving end comprises any possible device in the fourth aspect.
[0056] In conjunction with the eighth aspect, in certain implementations of the eighth aspect, in the vehicle-mounted system, the transmitting end may be a vehicle-mounted host, the vehicle-mounted host includes a system on chip and a serializer, and the receiving end may be a screen, the screen includes a deserializer and a display module. Alternatively, the transmitting end may be a serializer on the vehicle-mounted host, and the receiving end may be a deserializer in the screen.
[0057] In a ninth aspect, an intelligent driving device is provided, which includes any possible device in the third aspect, the fourth aspect, or the seventh aspect, or includes the system in the eighth aspect.
[0058] In some possible implementations, the intelligent driving device is a vehicle.
[0059] In the tenth aspect, a computer program product is provided, the computer program product comprising: a computer program code, which, when executed on a computer, enables the computer to execute any possible method in the first aspect, or enables the computer to execute any possible method in the second aspect, or enables the computer to execute any possible method in the fifth aspect, or enables the computer to execute any possible method in the sixth aspect.
[0060] It should be noted that the above-mentioned computer program code can be stored in whole or in part on the first storage medium, wherein the first storage medium can be packaged together with the processor or separately packaged with the processor, and the embodiments of the present application do not specifically limit this.
[0061] In the eleventh aspect, a computer-readable medium is provided, which stores a program code. When the computer program code runs on a computer, the computer executes any possible method in the first aspect, or any possible method in the second aspect, or any possible method in the fifth aspect, or any possible method in the sixth aspect.
[0062] In the twelfth aspect, an embodiment of the present application provides a chip system, which includes a processor for calling a computer program or computer instructions stored in a memory so that the processor executes any possible method in the above-mentioned first aspect, or so that the processor executes any possible method in the above-mentioned second aspect, or so that the processor executes any possible method in the above-mentioned fifth aspect, or so that the processor executes any possible method in the above-mentioned sixth aspect.
[0063] In combination with the twelfth aspect, in one possible implementation, the processor is coupled to the memory through an interface.
[0064] In combination with the twelfth aspect, in a possible implementation, the chip system also includes a memory, in which a computer program or computer instructions are stored. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 is a schematic diagram of a system architecture for image data transmission provided by an embodiment of the present application;
[0066] Figure 2 is a schematic diagram of a block prediction vector provided in an embodiment of the present application;
[0067] Figure 3 is a schematic diagram of compressed data of a display stream compression provided by an embodiment of the present application;
[0068] Figure 4 This is a schematic diagram of a system architecture for vehicle-mounted image data transmission provided by an embodiment of the present application;
[0069] Figure 5 It is an interactive schematic diagram of a data transmission method provided in an embodiment of the present application;
[0070] Figure 6 This is a schematic diagram of the format of a first indication information provided in an embodiment of the present application;
[0071] Figure 7 is a schematic diagram of the format of another first indication information provided in an embodiment of the present application;
[0072] Figure 8 This is a schematic diagram of the format of another first indication information provided in an embodiment of the present application;
[0073] Fig. 9 This is a schematic diagram of the format of another first indication information provided in an embodiment of the present application;
[0074] Fig.10 This is a schematic diagram of the format of another first indication information provided in an embodiment of the present application;
[0075] Fig.11 is a schematic block diagram of a data transmission device 1100 provided in an embodiment of the present application;
[0076] Fig.12 It is a structural block diagram of a data transmission device 1200 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0078] In order to facilitate understanding of the embodiments of the present application, the following points are explained:
[0079] First, in this application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0080] Second, in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of this application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c. Where a, b and c can be single or multiple, respectively.
[0081] Third, in the present application, "first", "second" and various numerical numbers (e.g., #1, #2, etc.) indicate distinctions made for ease of description and are not used to limit the scope of the embodiments of the present application. For example, to distinguish between different compressed data, etc., rather than to describe a specific order or sequence. It should be understood that the objects described in this way can be interchanged where appropriate so as to be able to describe solutions other than the embodiments of the present application.
[0082] Fourth, in this application, descriptions such as "when...", "in the case of..." and "if" all mean that the device will make corresponding processing under certain objective circumstances, but do not limit the time, nor do they require the device to have a judgment action when implementing it, nor do they mean the existence of other limitations.
[0083] Fifth, in this application, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0084] Sixth, in this application, "used for indication" may include being used for direct indication and being used for indirect indication. When describing that a certain indication information is used for indicating A, it may include that the indication information directly indicates A or indirectly indicates A, but it does not mean that the indication information must carry A.
[0085] The indication method involved in the embodiments of the present application should be understood to include various methods that can enable the party to be indicated to know the information to be indicated. The information to be indicated can be sent as a whole or divided into multiple sub-information and sent separately, and the sending period and / or sending time of these sub-information can be the same or different. The present application does not limit the specific sending method.
[0086] The "indication information" in the embodiments of the present application may be an explicit indication, i.e., directly indicated by signaling, or obtained by combining other rules or other parameters or by deduction according to the parameters indicated by the signaling. It may also be an implicit indication, i.e., obtained by combining other rules or other parameters or by deduction according to a rule or relationship. The present application does not make any specific limitation on this.
[0087] Seventh, in this application, "storage" may mean storage in one or more memories. The one or more memories may be separately set or integrated in an encoder or decoder, a processor, or a data transmission device. The one or more memories may also be partially separately set and partially integrated in a decoder, a processor, or a data transmission device. The type of memory may be any form of storage medium, which is not limited by this application.
[0088] In order to facilitate understanding of the solutions of the embodiments of the present application, the technical terms involved in the embodiments of the present application are briefly described below.
[0089] 1. Display stream compression (DSC)
[0090] DSC is a technology that compresses image data before transmission, enabling low-bandwidth transmission of high-resolution content, and the compressed image display is visually distortion-free and low-latency.
[0091] The specific compression methods of DSC compression can include modified medianadaptive prediction (MMAP), block prediction (BP), midpoint prediction (MPP) and indexed color history (ICH).
[0092] 2. Luminance and chrominance image format (YUV)
[0093] The YUV format uses brightness and chromaticity to represent the color of a pixel, where Y represents brightness and U and V represent chromaticity.
[0094] 3. Improved adaptive median prediction MMAP
[0095] MMAP predicts the current sample value as a function of previously encoded samples to the left and above the current sample, and the residual from the entropy decoder.
[0096] 4. Block Prediction BP
[0097] BP is a method of predicting the current sample from the sample to the left of the previous reconstructed sample to the current sample in the same scan line. The offset between the position of the fixed reference pixel and the position of the actual reference pixel in the previous row corresponding to the current group of the current row is called the "BP vector". The BP vector and the decision whether to use BP apply to all three components of the three pixels in the group and are automatically determined by the same deduction algorithm in the encoding module and the decoding module. The value of the BP vector can be any one of the set {-1, -3, -4, -5, -6, -7, -8, -9, -10}.
[0098] Figure 2 It is a schematic diagram of a block prediction vector provided in an embodiment of the present application.
[0099] The pixel group of the current group includes p0, p1 and p2. The current group uses the BP compression method, and the fixed reference pixels of the current group are the pixels numbered from -8 to 0 in the previous row (such as Figure 2 If the BP vector of the current group is -1, the reference pixels used for compression of the current group are the pixels numbered from -1 to -9 in the previous row (as shown in Figure 2 As shown), if the BP vector of the current group is -3, then the reference pixels used for compression of the current group are the pixels numbered from -3 to -11 in the previous row (as shown Figure 2 shown).
[0100] 5. Midpoint forecast MPP
[0101] MPP predicts the current sample from the value approximately in the midpoint of the sample's valid range.
[0102] 6. Index Color History ICH
[0103] The ICH is a memory location that maintains a set of recently used color values that are encoded using predictive coding.
[0104] At present, DSC is a compression method for high-definition video visual lossless compression, which is widely used in home audio and video entertainment systems. Home audio and video entertainment systems have independent power supplies and no high requirements on the size of the space occupied by related components, but there are certain requirements for the number of bits in data transmission. Therefore, when DSC is applied to home audio and video entertainment systems and in-vehicle audio and video entertainment systems, the requirements for related components are different. If the DSC currently widely used in home audio and video entertainment systems is directly applied to in-vehicle audio and video entertainment systems, the related components cannot meet the requirements of low power consumption and small space occupied by in-vehicle components.
[0105] Figure 3 It is a schematic diagram of compressed data of a display stream compression provided by an embodiment of the present application.
[0106] The maximum compression ratio of DSC is 1:3. DSC compression combines every 3 pixels of a row of images into a group, and compresses each group once. Each compression can be selected from the above four compression methods. Figure 3 As shown, the original data pixel #0, pixel #1 and pixel #2 are combined into a group for compression. Among them, DSC is suitable for data in YUV format. After compressing the group of pixels by the above four compression methods, the compressed data is obtained, as shown in FIG. Figure 3 As shown, the compressed data includes a prefix and compressed pixel data. A set of compressed data includes three prefixes, such as Figure 3 As shown, they are prefix #1, prefix #2 and prefix #3. The prefix #1 of each group of compressed data is used to indicate that the compression method used by the group of compressed data is the first compression method, either MAP or ICH, wherein the first compression method can be MMAP or BP. The difference between prefix #1, prefix #2 and prefix #3 is that each prefix carries the compressed data length of the Y component, the compressed data length of the U component and the compressed data length of the V component.
[0107] The current DSC is mainly used in home audio-visual entertainment systems. In order to reduce the number of bits in the compressed data, the prefix #1 of each group of compressed data is only used to distinguish the first compression method, MAP and ICH.
[0108] Figure 4It is a schematic diagram of a system architecture for vehicle-mounted image data transmission provided in an embodiment of the present application.
[0109] like Figure 4 As shown, the vehicle-mounted system includes a host and a screen. The host includes a system on chip and a serializer, wherein the system on chip includes a DSC encoding module, the screen includes a deserializer and a display module, and the deserializer includes a DSC decoding module. Figure 3 The raw data shown is compressed by the DSC encoding module of the on-chip system to generate Figure 3 The system-on-chip transmits the compressed data to the serializer through the mobile industry processor interface (MIPI) or the embedded display port (eDP). The serializer of the system-on-chip transmits the compressed data to the deserializer of the screen through the in-vehicle Ethernet or in-vehicle wired high-speed media transmission. The DSC decoding module of the deserializer decompresses the compressed data and transmits the decompressed data to the display module.
[0110] Figure 4 It can be applied not only to vehicle-mounted systems but also to home audio-visual entertainment systems. However, for home audio-visual entertainment systems, when the compression method indicated by prefix #1 in the compressed data is the first compression method (that is, MMAP or BP), Figure 4 The DSC decoding module of the deserializer shown can consume computing power to determine whether the compression method used by the group of compressed data is MMAP or BP through the deduction algorithm. Each group of compressed data can use different compression methods. Therefore, if the prefix #1 of each group of compressed data indicates that the compression method used by the group of compressed data is MMAP or BP, then the specific compression method needs to be determined through the deduction algorithm. Since every 3 pixels are compressed as a group, this means that the calculation process of the deduction algorithm is ongoing during the decompression process. For example, each group of compressed data needs to undergo a deduction process once to determine the compression algorithm. For compressed video data with a resolution of 1080p compressed at 60 frames per second, the decompression deduction process needs to be executed 1080*1920 / 3*60 times per second. Since the screen of the home audio and video entertainment system has an independent power supply, this complex deduction method will bring about a large power consumption and a large chip area due to the large amount of calculation and the large number of calculations, but it has little effect on the function of the screen of the home audio and video entertainment system.
[0111] However, if the above-mentioned DSC is applied to the in-vehicle audio and video entertainment system without any improvement, the high power consumption and large chip area brought about by this complex deduction method obviously cannot meet the requirements of low power consumption, small chip area and light weight chip of in-vehicle components.
[0112] Therefore, the embodiments of the present application provide a data transmission method and device for solving the above problems. Figures 5 to 12 Provide detailed explanation.
[0113] Figure 5 It is an interactive schematic diagram of a data transmission method provided in an embodiment of the present application.
[0114] The interaction diagram in this application uses the sender and the receiver as the execution subjects of the interaction diagram as an example to illustrate the corresponding method, but this application does not limit the execution subjects of the interaction diagram. Figure 5 The sending end in the method may also be a chip, a chip system or a processor that supports the sending end to implement the corresponding method, or may be a logic module or software that can implement all or part of the functions of the sending end. Figure 5 The receiving end in the description may also be a chip, a chip system or a processor that supports the receiving end to implement the corresponding method, or may be a logic module or software that can implement all or part of the functions of the receiving end.
[0115] For example, Figure 5 The sender in can be Figure 4 The host in Figure 5 The receiving end in can be Figure 4 The screen in
[0116] S510: The sending end compresses the first original data to obtain first compressed data.
[0117] It should be understood that the first original data includes 3 pixels, and the first compressed data is compressed data of 3 pixels.
[0118] The first compressed data includes a prefix and compressed data corresponding to the YUV format.
[0119] Exemplarily, the prefix includes prefix #1, prefix #2, and prefix #3, wherein prefix #1 is used to indicate that the compression method corresponding to the first compressed data is one of MPP, ICH, or the first compression method, and the first compression method is MMAP or BP. Prefix #1 also includes the size of the compressed data of the Y component, prefix #2 includes the size of the compressed data of the U component, and prefix #3 includes the size of the compressed data of the V component.
[0120] S520, the sending end sends first compressed data and first indication information, and correspondingly, the receiving end receives the first compressed data and the first indication information.
[0121] The first indication information is used to indicate whether the compression method corresponding to the first compressed data is BP, or the first indication information is used to indicate whether the first compressed data is MMAP.
[0122] As a possible implementation manner, the first indication information is used to indicate that the compression method corresponding to the first compressed data is BP or MMAP.
[0123] As a possible implementation manner, the first indication information is used to indicate that the compression method corresponding to the first compressed data is not BP or MMAP.
[0124] That is, when the first indication information indicates that the compression method corresponding to the first compressed data is not BP, the corresponding compression method may be MMAP, ICH or MPP. When the first indication information indicates that the compression method corresponding to the first compressed data is not MMAP, the corresponding compression method may be BP, ICH or MPP.
[0125] The first indication information may be a display indication or an implicit indication. When the first indication information is a display indication, the specific possible implementation manner is as follows.
[0126] As a possible implementation, the first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction. Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is improved adaptive median prediction.
[0127] For example, the size of the first field may be 1 bit, the first value may be "0", in which case the second value may be "1", or the first value may be "1", in which case the second value may be "0". The embodiment of the present application does not limit the value of the first field.
[0128] In some implementations, when the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction, the first indication information also includes a second field, and the second field is used to indicate a block prediction vector.
[0129] The specific value of the block prediction vector has been explained in detail in the technical term description and will not be repeated here.
[0130] Exemplarily, the size of the second field may be 4 bits.
[0131] In some implementations, when the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction, the compressed data frame where the first compressed data is located also includes a second field, and the second field can be used to indicate a block prediction vector.
[0132] Exemplarily, the second field may be located after the first compressed data, or may be located before the first compressed data, or may be located in the middle of the first compressed data, and this embodiment of the present application does not impose any limitation on this.
[0133] When the first indication information is an implicit indication, specific possible implementation methods are as follows.
[0134] As a possible implementation manner, the first indication information includes a third field, and when the third field belongs to the first numerical range, the third field is used to indicate that the compression method corresponding to the first compressed data is the block prediction.
[0135] In some implementations, the third field is further used to indicate a block prediction vector of the block prediction.
[0136] The first indication information and the first compressed data may be in the same data frame or in different data frames.
[0137] As a possible implementation method, the sending end sends a first compressed data frame, and accordingly, the receiving end receives the first compressed data frame, the first compressed data frame includes first compressed data and second indication information, and the second indication information is used to indicate whether the first compressed data frame includes the first indication information.
[0138] In some possible implementations, the second indication information is used to indicate that the first compressed data frame includes the first indication information. In this case, the first compressed data frame includes the first compressed data, the first indication information, and the second indication information.
[0139] Exemplarily, the first indication information may be located after the first compressed data, or may be located before the first compressed data, or may be located in the middle of the first compressed data.
[0140] As a possible implementation, the transmitting end transmits a first compression method indication frame and a first compressed data frame, and correspondingly, the receiving end receives the first compression method indication frame and the first compressed data frame, wherein the first compression method indication frame includes first indication information, and the first compressed data frame includes first compressed data.
[0141] In some possible implementations, the first indication information in the first compression method indication frame and the first compressed data in the first compressed data frame are associated with each other.
[0142] Exemplarily, when the first compression method indication frame includes N compression method indication information and the first compressed data frame includes N compressed data, the N compression method indication information and the N compressed data are in one-to-one correspondence.
[0143] S530: The receiving end decompresses the first compressed data according to the compression method indicated by the first indication information to obtain first original data.
[0144] It should be understood that, regarding the decompression process at the receiving end, the first indication information and the first compressed data are combined in Figures 6 to 10 The specific format in is described in detail.
[0145] The following will be combined Figures 6 to 10 The format of the first indication information is described in detail. Figure 6 and Figure 8 The first indication information in the same content, but the location of the first indication information is different. Fig. 9 and Fig.10 The content of the first indication information is the same, but the location where the first indication information is carried is different.
[0146] Figure 6 This is a schematic diagram of the format of a first indication information provided in an embodiment of the present application.
[0147] The transmitting end sends the compression method indication frame and the compressed data frame to the receiving end alternately in sequence, wherein the compression method indication frame and the compressed data frame correspond one to one, and the compression method indication frame can be sent before the compressed data frame.
[0148] For example, Figure 6 As shown in (a), compression method indication frame #1, compressed data frame #1, compression method indication frame #2 and compressed data frame #2 are sent alternately in sequence, wherein compression method indication frame #1 corresponds to compressed data frame #1, and compression method indication frame #2 corresponds to compressed data frame #2.
[0149] Each compression method indication frame includes N compression method indication information, and each compressed data frame includes N compressed data. The N compression method indication information and the N compressed data correspond one to one, N is a positive integer, and each compressed data is compressed data obtained by compressing 3 pixels as a group.
[0150] In this way, the N compression method indication information and the N compressed data correspond one to one. Compared with determining the correspondence between the compression method indication information and the compressed data through the indication information, the same effect can be achieved with fewer bits, thereby reducing bandwidth requirements.
[0151] Optionally, each compression method indication frame includes a first header, the first header includes a first type field, and the first type field is used to indicate that the data frame is a compression method indication frame; each compressed data frame includes a second header, the second header includes a second type field, and the second type field is used to indicate that the data frame is a compressed data frame.
[0152] For example, Figure 4As shown, compression method indication frames and compressed data frames can be transmitted between the system on chip and the serializer through MIPI or eDP. When transmitted through MIPI, the data type field in MIPI customizes the first type field in the first header and the second type field in the second header. When transmitted through eDP, the compression method indication frame is carried by an auxiliary data packet (secondary data packet, SDP), wherein the SDP header includes the first type field in the first header. The compressed data frame is transmitted through the eDP main line. The compression method indication frame and the compressed data frame can be transmitted between the serializer and the deserializer using vehicle-mounted Ethernet and vehicle-mounted wired high-speed media transmission, and the corresponding fields include the first type field in the first header and the second type field in the second header.
[0153] like Figure 6 As shown in (b), the compression method indication frame #1 and the compressed data frame #1 are used as examples for explanation. The compression method indication frame #1 may include N compression method indication information and a first header, and the compressed data frame #1 includes N compressed data and a second header. The first indication information is any one of the N compression method indication information. The first compressed data is any one of the N compressed data, and the first indication information corresponds to the first compressed data, such as Figure 6 As shown in (b), the first compressed data may be compressed data #1.
[0154] Each compression method indication information includes a first field. The first field is used to indicate whether the compression method of the compressed data corresponding to the compression method indication information is BP or MMAP. When the first field indicates that the compression method of the compressed data corresponding to the compression method indication information is BP, the compression method indication information may also include a second field, and the second field may be used to indicate a BP vector. Figure 6 As shown in (b), the first indication information may include a first field #1 and a second field #1.
[0155] Exemplarily, the first indication information includes a first field #1, and when the first field #1 is "1", the first field #1 is used to indicate that the compression method corresponding to the first compressed data is BP, and when the first field #1 is "0", the first field #1 is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP. Compression methods other than BP may be any one of MMAP, MPP or ICH. Alternatively, when the first field #1 is "1", the first field #1 is used to indicate that the compression method corresponding to the first compressed data is MMAP, and when the first field #1 is "0", the first field #1 is used to indicate that the compression method corresponding to the first compressed data is a compression method other than MMAP. Compression methods other than MMAP may be any one of BP, MPP or ICH.
[0156] It should be understood that the specific value of the compression method indicated by the first field #1 can also be other numbers, which are only used as examples here.
[0157] For example, when the first field #1 indicates that the compression method corresponding to the first compressed data is BP, the second field #1 can be used to indicate the BP vector. The specific value of the BP vector has been described in detail in the term explanation section. The specific value expression, for example, can be 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xA.
[0158] Exemplarily, when the first field #1 indicates that the compression method corresponding to the first compressed data is MMAP, the second field #1 may be an invalid value or empty. The specific representation of the invalid value may be, for example, 0xF.
[0159] Exemplarily, when the first field #1 indicates that the compression method corresponding to the first compressed data is a compression method other than BP, the first indication information may also include only the first field #1, such as Figure 6 As shown in (b), the second field #1 is a virtual box, which means that the first indication information may include the second field #1 or may not include the second field #1.
[0160] The first compressed data may include a prefix and compressed pixel data, wherein the specific interpretation and Figure 3 It is similar to the above, so I will not go into details here.
[0161] For S530, the receiving end decompresses the first compressed data according to the compression method indicated by the first indication information to obtain the first original data. Figure 6 When presented in the specific form shown, the specific steps may include the following exemplary instructions.
[0162] For example, the first field #1 is "1", and the first indication information is used to indicate that the compression method corresponding to the first compressed data is BP. At the same time, the compression method indicated by the prefix #1 in the first compressed data is the first compression method. The receiving end decompresses the first compressed data according to the BP vector indicated in the second field #1 through the BP method to obtain the first original data.
[0163] For another example, the first field #1 is "0", the first indication information is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP, and at the same time, the compression method indicated by the prefix #1 in the first compressed data is the first compression method, and the receiving end determines that the compression method corresponding to the first compressed data is MMAP. The receiving end decompresses the first compressed data through MMAP to obtain the first original data.
[0164] For another example, the first field #1 is "0", the first indication information is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP, and at the same time, the compression method indicated by the prefix #1 in the first compressed data is ICH, and the receiving end determines that the compression method corresponding to the first compressed data is ICH. The receiving end decompresses the first compressed data through ICH to obtain the first original data.
[0165] It should be understood that the above is merely an example, and the present application does not limit the specific meaning of the numerical indication of the first field #1.
[0166] Figure 7 This is a schematic diagram of the format of another first indication information provided in an embodiment of the present application.
[0167] The sending end sends the compression method indication frame and the compressed data frame to the receiving end alternately in sequence, wherein the compression method indication frame and the compressed data frame correspond one to one, and the compression method indication frame is sent before the compressed data frame.
[0168] It should be understood that the detailed explanation of the correspondence between the compression method indication frame and the compressed data frame can be referred to Figure 6 (a) is not described in detail here.
[0169] like Figure 7 As shown, the compression method indication frame #1 includes N compression method indication information and a first header, and the compressed data frame #1 includes N compressed data and a second header, and the N compression method indication information and the N compressed data correspond one to one. The first indication information is any one of the N compression method indication information. The first compressed data is any one of the N compressed data, and the first indication information corresponds to the first compressed data.
[0170] It should be understood that for details of the first header in the compression method indication frame #1 and the second header in the compressed data frame #1, reference can be made to Figure 6 (b) will not be elaborated here.
[0171] Each compression method indication information includes a first field. The first field is used to indicate whether the compression method of the compressed data corresponding to the compression method indication information is BP or MMAP. Figure 7 As shown, the first indication information includes a first field #1.
[0172] It should be understood that the exemplary description of the value of the first field #1 can refer to Figure 6 , I will not go into details here.
[0173] When the first field indicates that the compression method of the compressed data corresponding to the compression method indication information is BP, the compressed data frame may include a second field, and the second field may be used to indicate a BP vector. The second field may be located after the compressed data, or before the compressed data, or in the middle of the compressed data. For example, Figure 7 As shown, the second field #1 is located after the first compressed data.
[0174] The first compressed data may include a prefix and compressed pixel data, wherein the specific interpretation and Figure 3 It is similar to the above, so I will not go into details here.
[0175] For S530, the receiving end decompresses the first compressed data according to the compression method indicated by the first indication information to obtain the first original data. Figure 7 When presented in the specific form shown, the specific steps may include the following exemplary instructions.
[0176] For example, the first field #1 is "1", and the first indication information is used to indicate that the compression method corresponding to the first compressed data is BP. At the same time, the compression method indicated by the prefix #1 in the first compressed data is the first compression method. The receiving end decompresses the first compressed data according to the BP vector indicated in the second field #1 located after the first compressed data through the BP method to obtain the first original data.
[0177] For another example, the first field #1 is "0", and the first indication information is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP. At the same time, the compression method indicated by the prefix #1 in the first compressed data is the first compression method, and the receiving end determines that the compression method corresponding to the first compressed data is MMAP. The receiving end decompresses the first compressed data through MMAP to obtain the first original data. It should be understood that at this time, the corresponding first compressed data in the compressed data frame #1 may not include the second field #1, that is, the second field #1 is not included after the first compressed data, or before the first compressed data, or in the middle of the first compressed data.
[0178] For another example, the first field #1 is "0", the first indication information is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP, and at the same time, the compression method indicated by the prefix #1 in the first compressed data is ICH, and the receiving end determines that the compression method corresponding to the first compressed data is ICH. The receiving end decompresses the first compressed data through ICH to obtain the first original data. Similarly, at this time, the corresponding first compressed data in the compressed data frame #1 may not include the second field #1.
[0179] It should be understood that the above is merely an example, and the present application does not limit the specific meaning of the numerical indication of the first field #1.
[0180] Figure 8 This is a schematic diagram of the format of another first indication information provided in an embodiment of the present application.
[0181] The first compressed data frame includes N compressed data and a second header.
[0182] Optionally, the first compressed data frame may include second indication information, and the second indication information may be used to indicate whether the first compressed data frame includes compression method indication information. Figure 8 As shown, the compressed data frame #1 includes a second header, and the second header may include second indication information.
[0183] When the second indication information indicates that the first compressed data frame includes compression method indication information, each compressed data may include compression method indication information, and the compression method indication information is used to indicate whether the compression method of the corresponding compressed data is BP or MMAP.
[0184] For example, Figure 8 As shown, the first compressed data frame is compressed data frame #1, and compressed data frame #1 includes N compressed data. Compressed data #1 includes first compressed data and first indication information. The detailed description of the first compressed data can be referred to Figure 3 The first indication information is used to indicate the compression method corresponding to the first compressed data.
[0185] It should be understood that the relevant description of the first indication information can refer to Figure 6 The first indication information in (b) will not be repeated here.
[0186] For S530, the receiving end decompresses the first compressed data according to the compression method indicated by the first indication information to obtain the first original data. Figure 8 The specific form shown and the specific steps may include the following exemplary instructions.
[0187] For example, the receiving end determines that the compressed data frame #1 includes the compression method indication information according to the second indication information of the second header of the compressed data frame #1 being "1". Exemplarily, the receiving end determines that the compression method corresponding to the pixel compression data in the first compressed data is BP or MMAP according to the compression method indicated by the prefix #1 in the first compressed data. When the first field #1 is "1", the first indication information is used to indicate that the compression method corresponding to the first compressed data is BP, and the receiving end decompresses the first compressed data according to the BP vector in the second field #1 by the BP method to obtain the first original data.
[0188] For another example, the receiving end determines that the compressed data frame #1 includes compression method indication information based on the second indication information of the second header of the compressed data frame #1 being "1". Exemplarily, the receiving end determines that the compression method of the compressed data in the first compressed data is BP or MMAP based on the compression method indicated by the prefix #1 in the first compressed data. When the first field #1 is "0", the receiving end determines that the compression method corresponding to the first compressed data is MMAP, and the second field #1 may not be present at this time. The receiving end decompresses the first compressed data through MMAP to obtain the first original data.
[0189] For another example, the receiving end determines that the compressed data frame #1 does not include the compression method indication information according to the second indication information of the second header of the compressed data frame #1 being "0". Exemplarily, the receiving end determines that the compression method corresponding to the first compressed data is ICH according to the compression method indicated by the prefix #1 in the first compressed data. The receiving end decompresses the first compressed data through the ICH to obtain the first original data.
[0190] It should be understood that the above is merely an example, and the present application does not limit the specific meaning of the second indication information and the numerical indication of the first field #1.
[0191] Fig. 9 This is a format diagram of another first indication information provided in an embodiment of the present application.
[0192] The transmitting end sends the compression method indication frame and the compressed data frame to the receiving end alternately in sequence, wherein the compression method indication frame and the compressed data frame correspond one to one, and the compression method indication frame can be sent before the compressed data frame.
[0193] Fig. 9 For the explanation of the compression method indication frame #1 and the compressed data frame #1, please refer to Figure 6 (a) will not be elaborated here.
[0194] Each compression method indication frame includes N compression method indication information, and each compressed data frame includes N compressed data. The N compression method indication information and the N compressed data correspond one to one, N is a positive integer, and each compressed data is compressed data obtained by compressing 3 pixels as a group.
[0195] Each compression method indication information includes a third field, and the third field is used to indicate whether the compression method corresponding to the compressed data is BP.
[0196] Optionally, the third field is also used to indicate the BP vector of the BP. Fig. 9 As shown, the first indication information includes a third field #1.
[0197] Exemplarily, when the value of the third field #1 belongs to the first range, the third field #1 is used to indicate that the compression method corresponding to the first compressed data is BP. For example, the first range can be {-1, -3, -4, -5, -6, -7, -8, -9, -10} in the technical term description.
[0198] Exemplarily, when the value of the third field #1 does not belong to the first range, the third field #1 is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP.
[0199] For S530, the receiving end decompresses the first compressed data according to the compression method indicated by the first indication information to obtain the first original data. Fig. 9 The specific form shown and the specific steps may include the following exemplary instructions.
[0200] For example, the value of the third field #1 belongs to the first range, the first indication information is used to indicate that the compression method corresponding to the first compressed data is BP, and the receiving end decompresses the first compressed data through the BP method according to the BP vector indicated by the third field #1 to obtain the first original data.
[0201] For another example, the value of the third field #1 does not belong to the first range, the first indication information is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP, and at the same time, the first compression method indicated by the prefix #1 of the first compressed data, the receiving end determines that the compression method corresponding to the first compressed data is MMAP. The receiving end decompresses the first compressed data through MMAP to obtain the first original data.
[0202] For another example, the value of the third field #1 does not belong to the first range, the first indication information is used to indicate that the compression method corresponding to the first compressed data is a compression method other than BP, and at the same time, the prefix #1 of the first compressed data indicates ICH, and the receiving end determines that the compression method corresponding to the first compressed data is ICH. The receiving end decompresses the first compressed data through ICH to obtain the first original data.
[0203] It should be understood that the above is merely an example, and the present application does not limit the specific value of the numerical value of the third field #1.
[0204] Fig.10 This is a format diagram of another first indication information provided in an embodiment of the present application.
[0205] The first compressed data frame includes N compressed data and a second header.
[0206] Optionally, the first compressed data frame may include second indication information, and the second indication information may be used to indicate whether the first compressed data frame includes compression method indication information. Fig.10 As shown, the compressed data frame #1 includes a second header, and the second header may include second indication information.
[0207] When the second indication information indicates that the first compressed data frame includes compression method indication information, each compressed data may include compression method indication information, and the compression method indication information is used to indicate whether the compression method of the corresponding compressed data is BP or MMAP.
[0208] For example, Fig.10 As shown, the first compressed data frame is compressed data frame #1, and compressed data frame #1 includes N compressed data. Compressed data #1 includes first compressed data and first indication information. The detailed description of the first compressed data can be referred to Figure 3 The first indication information is used to indicate the compression method corresponding to the first compressed data.
[0209] It should be understood that the relevant description of the first indication information can refer to Fig. 9 The first indication information is not described here.
[0210] For S530, the receiving end decompresses the first compressed data according to the compression method indicated by the first indication information to obtain the first original data. Fig.10 The specific form shown and the specific steps may include the following exemplary instructions.
[0211] For example, the receiving end determines that the compressed data frame #1 includes compression method indication information based on the second indication information of the second header of the compressed data frame #1 being "1". Exemplarily, the receiving end determines that the compression method of the compressed data in the first compressed data is BP or MMAP based on the compression method indicated by the prefix #1 in the first compressed data. When the value of the third field #1 belongs to the first range, the first indication information is used to indicate that the compression method corresponding to the first compressed data is BP, and the receiving end decompresses the first compressed data using the BP method based on the BP vector indicated by the third field #1 to obtain the first original data.
[0212] For another example, the receiving end determines that the compressed data frame #1 includes compression method indication information based on the second indication information of the second header of the compressed data frame #1 being "1". Exemplarily, the receiving end determines that the compression method of the compressed data in the first compressed data is BP or MMAP based on the compression method indicated by the prefix #1 in the first compressed data. When the value of the first field #1 does not belong to the first range, the receiving end determines that the compression method corresponding to the first compressed data is MMAP. The receiving end decompresses the first compressed data through MMAP to obtain the first original data.
[0213] For another example, the receiving end determines that the compressed data frame #1 does not include the compression method indication information according to the second indication information of the second header of the compressed data frame #1 being "0". Exemplarily, the receiving end determines that the compression method corresponding to the first compressed data is ICH according to the compression method indicated by the prefix #1 in the first compressed data. The receiving end decompresses the first compressed data through the ICH to obtain the first original data.
[0214] It should be understood that the above is merely an example, and the present application does not limit the specific meaning of the numerical indication of the third field #1.
[0215] The above content is the data transmission method of the embodiment of the present application. Fig.11 and Fig.12 The device for data transmission is described in detail. It should be understood that the description of the device embodiment and the description of the method embodiment correspond to each other. Therefore, the contents not described in detail can be referred to the method embodiment above, and for the sake of brevity, they are not described here.
[0216] An embodiment of the present application also provides a device for implementing any of the above methods. For example, a device is provided including units (or means) for implementing each step performed by an intelligent driving device or an in-vehicle audio and video entertainment system in any of the above methods.
[0217] Fig.11 It is a schematic block diagram of a data transmission device 1100 provided in an embodiment of the present application.
[0218] The data transmission device 1100 includes a transceiver unit 1110 and a processing unit 1120. The device 1100 can be used to implement Figure 5 The device 1100 can be Figure 5 The sender shown, or Figure 4 The device 1100 may also be Figure 5 The receiving end shown, or Figure 4 The screen shown.
[0219] In the device 1100 Figure 5 When the transmitting end is shown, the device 1100 may specifically perform the following steps:
[0220] The processing unit 1120 is used to compress the first original data to obtain first compressed data.
[0221] The transceiver unit 1110 is used to send first compressed data and first indication information to a receiving end, where the first indication information is used to indicate that the compression method corresponding to the first compressed data is block prediction or improved adaptive median prediction.
[0222] For example, the transceiver unit 1110 may be Figure 4 The serializer in the host shown, the processing unit 1120 can be Figure 4 The system-on-chip in the host shown, or it can be Figure 4 The DSC encoding module in the system-on-chip in the host is shown.
[0223] To avoid redundancy, the detailed steps can refer to the corresponding method embodiments.
[0224] In the device 1100 Figure 5 When the receiving end is shown, the device 1100 can specifically perform the following steps:
[0225] The transceiver unit 1110 is used to receive first compressed data and first indication information from a sending end.
[0226] The processing unit 1120 is used to decompress the first compressed data according to the compression method indicated by the first indication information to obtain the first original data, wherein the compression method corresponding to the first compressed data indicated by the first indication information is block prediction or improved adaptive median prediction.
[0227] For example, the transceiver unit 1110 may be Figure 4 The deserializer in the screen shown, the processing unit 1120 can be Figure 4 The screen shown is the DSC decoding module of the deserializer.
[0228] To avoid redundancy, the detailed steps can refer to the corresponding method embodiments.
[0229] It should be understood that the division of the units in the above device is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. In addition, the units in the device can be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or realize the functions of the units of the device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory inside the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all of the units can be realized by designing the hardware circuits, and the hardware circuits can be understood as one or more processors; for example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be realized by a programmable logic device (PLD), taking a field programmable gate array (FPGA) as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be realized in the form of a processor calling software, or in the form of hardware circuits, or in part by a processor calling software, and the rest by hardware circuits.
[0230] In the embodiment of the present application, the processor is a circuit with the ability to process signals. In one implementation, the processor can be a circuit with the ability to read and run instructions, such as a CPU, a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor) or a digital signal processor (DSP), etc.; in another implementation, the processor can implement certain functions through the logical relationship of the hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.
[0231] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0232] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0233] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0234] Fig.12 It is a structural block diagram of a data transmission device 1200 provided in an embodiment of the present application.
[0235] Fig.12 The data transmission device 1200 shown may include: a processor 1210, a transceiver 1220, and a memory 1230. The processor 1210, the transceiver 1220, and the memory 1230 are connected via an internal connection path, the memory 1230 is used to store instructions, the processor 1210 is used to execute the instructions stored in the memory 1230, and the transceiver 1220 receives / sends part of the parameters. Optionally, the memory 1230 may be coupled to the processor 1210 via an interface, or may be integrated with the processor 1210.
[0236] It should be noted that the transceiver 1220 may include but is not limited to a transceiver device such as an input / output interface to achieve communication between the device 1200 and other devices or a communication network.
[0237] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 1210 or an instruction in the form of software. The method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1230, and the processor 1210 reads the information in the memory 1230 and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0238] The processor 1210 may be a general-purpose CPU, microprocessor, ASIC, GPU or one or more integrated circuits for executing related programs to implement the data transmission method of the method embodiment of the present application. The processor 1210 may also be an integrated circuit chip with signal processing capabilities. In the specific implementation process, the various steps of the data transmission method of the present application may be completed by the hardware integrated logic circuit or software instructions in the processor 1210. The above-mentioned processor 1210 may also be a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1230, and the processor 1210 reads the information in the memory 1230 and executes the data transmission method of the method embodiment of the present application in combination with its hardware.
[0239] The memory 1230 may be a read only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM).
[0240] The transceiver 1220 uses a transceiver device such as, but not limited to, a transceiver to implement communication between the apparatus 1200 and other devices or a communication network.
[0241] An embodiment of the present application also provides a system for data transmission, which includes an apparatus 1100 when serving as a transmitting end and an apparatus 1100 when serving as a receiving end.
[0242] An embodiment of the present application further provides an intelligent driving device, which may include the above-mentioned data transmission device 1100 or data transmission system.
[0243] Optionally, the intelligent driving device may be a vehicle.
[0244] The embodiment of the present application further provides a computer program product, which includes: a computer program code, and when the computer program code is executed on a computer, the computer executes the above method.
[0245] The embodiment of the present application further provides a computer-readable medium, wherein the computer-readable medium stores a program code. When the computer program code is executed on a computer, the computer executes the above method.
[0246] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or a power-on erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0247] It should be understood that in the embodiment of the present application, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor.
[0248] It should also be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0249] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0250] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0251] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0252] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0253] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0254] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0255] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for data transmission, characterized in that: include: compressing the first original data to obtain first compressed data; The first compressed data and first indication information are sent to a receiving end, where the first indication information is used to indicate that a compression method corresponding to the first compressed data is block prediction or improved adaptive median prediction.
2. The method according to claim 1, characterized in that: The first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is the block prediction; Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is the improved adaptive median prediction.
3. The method according to claim 2, characterized in that When the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction, the first indication information also includes a second field, and the second field is used to indicate a block prediction vector.
4. The method according to claim 1, characterized in that: The first indication information includes a third field. When the third field belongs to a first numerical range, the third field is used to indicate that the compression method corresponding to the first compressed data is the block prediction.
5. The method according to claim 4, characterized in that The third field is also used to indicate a block prediction vector of the block prediction.
6. The method according to any one of claims 1 to 5, characterized in that: The sending the first compressed data and the first indication information to the receiving end includes: A first compressed data frame is sent to the receiving end, where the first compressed data frame includes the first compressed data, the first indication information and second indication information, where the second indication information is used to indicate that the first compressed data frame includes the first indication information.
7. The method according to any one of claims 1 to 5, characterized in that: The sending the first compressed data and the first indication information to the receiving end includes: Sending a first compression method indication frame and a first compressed data frame to the receiving end; The first compression method indication frame includes the first indication information, and the first compressed data frame includes the first compressed data.
8. The method according to any one of claims 1 to 7, characterized in that: The first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history or a first compression method, wherein the first compression method includes the block prediction or the improved adaptive median prediction.
9. A method for data transmission, characterized in that: include: Receiving first compressed data and first indication information from a sending end; According to the compression method indicated by the first indication information, the first compressed data is decompressed to obtain first original data, wherein the compression method corresponding to the first compressed data indicated by the first indication information is block prediction or improved adaptive median prediction.
10. The method according to claim 9, characterized in that The first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is the block prediction; Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is the improved adaptive median prediction.
11. The method according to claim 10, characterized in that When the compression method indicated by the first indication information is the block prediction, the first indication information further includes a second field, and the second field is used to indicate a block prediction vector; Decompressing the first compressed data according to the compression method indicated by the first indication information to obtain first original data includes: According to the block prediction vector, the first decompressed data is decompressed through the block prediction to obtain the first original data.
12. The method according to claim 9, characterized in that The first indication information includes a third field, Decompressing the first compressed data according to the compression method indicated by the first indication information to obtain first original data includes: When the third field belongs to the first value range, determining that the compression method corresponding to the first compressed data is the block prediction, and determining a block prediction vector of the block prediction; According to the block prediction vector, the first decompressed data is decompressed through the block prediction to obtain the first original data.
13. The method according to any one of claims 9 to 12, characterized in that: The receiving the first compressed data and the first indication information from the sending end includes: A first compressed data frame is received from the transmitting end, where the first compressed data frame includes the first compressed data, the first indication information and second indication information, where the second indication information is used to indicate that the first compressed data frame includes the first indication information.
14. The method according to any one of claims 9 to 12, characterized in that: The receiving the first compressed data and the first indication information from the sending end includes: Receiving a first compression method indication frame and a first compressed data frame from the transmitting end; The first compression method indication frame includes the first indication information, and the first compressed data frame includes the first compressed data.
15. The method according to any one of claims 9 to 14, characterized in that: The first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history or a first compression method, wherein the first compression method includes the block prediction or the improved adaptive median prediction.
16. A data transmission device, characterized in that: The device comprises a processing unit and a transceiver unit. The processing unit is used to compress the first original data to obtain first compressed data; The transceiver unit is used to send the first compressed data and first indication information to a receiving end, where the first indication information is used to indicate that a compression method corresponding to the first compressed data is block prediction or improved adaptive median prediction.
17. The device according to claim 16, characterized in that The first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is the block prediction; Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is the improved adaptive median prediction.
18. The device according to claim 17, characterized in that When the first field is used to indicate that the compression method corresponding to the first compressed data is block prediction, the first indication information also includes a second field, and the second field is used to indicate a block prediction vector.
19. The device according to claim 16, characterized in that The first indication information includes a third field. When the third field belongs to a first numerical range, the third field is used to indicate that the compression method corresponding to the first compressed data is the block prediction.
20. The device according to claim 19, characterized in that The third field is also used to indicate a block prediction vector of the block prediction.
21. The device according to any one of claims 16 to 20, characterized in that The transceiver unit is specifically used for: A first compressed data frame is sent to the receiving end, where the first compressed data frame includes the first compressed data, the first indication information and second indication information, where the second indication information is used to indicate that the first compressed data frame includes the first indication information.
22. The device according to any one of claims 16 to 20, characterized in that The transceiver unit is specifically used for: Sending a first compression method indication frame and a first compressed data frame to the receiving end; The first compression method indication frame includes the first indication information, and the first compressed data frame includes the first compressed data.
23. The device according to any one of claims 16 to 22, characterized in that The first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history or a first compression method, wherein the first compression method includes the block prediction or the improved adaptive median prediction.
24. A data transmission device, characterized in that: The device comprises a processing unit and a transceiver unit: The transceiver unit is used to receive the first compressed data and the first indication information from the sending end; The processing unit is used to decompress the first compressed data according to the compression method indicated by the first indication information to obtain first original data, wherein the compression method corresponding to the first compressed data indicated by the first indication information is block prediction or improved adaptive median prediction.
25. The device according to claim 24, characterized in that The first indication information includes a first field, and when the first field is a first value, the first field is used to indicate that the compression method corresponding to the first compressed data is the block prediction; Alternatively, when the first field is a second value, the first field is used to indicate that the compression method corresponding to the first compressed data is the improved adaptive median prediction.
26. The device according to claim 25, characterized in that When the compression method indicated by the first indication information is the block prediction, the first indication information further includes a second field, and the second field is used to indicate a block prediction vector; The processing unit is specifically used for: According to the block prediction vector, the first decompressed data is decompressed through the block prediction to obtain the first original data.
27. The device according to claim 24, characterized in that The first indication information includes a third field, and the processing unit is specifically configured to: When the third field belongs to the first value range, determining that the compression method corresponding to the first compressed data is the block prediction, and determining a block prediction vector of the block prediction; According to the block prediction vector, the first decompressed data is decompressed through the block prediction to obtain the first original data.
28. The device according to any one of claims 24 to 27, characterized in that The transceiver unit is specifically used for: A first compressed data frame is received from the transmitting end, where the first compressed data frame includes the first compressed data, the first indication information and second indication information, where the second indication information is used to indicate that the first compressed data frame includes the first indication information.
29. The device according to any one of claims 24 to 27, characterized in that The transceiver unit is specifically used for: Receiving a first compression method indication frame and a first compressed data frame from the transmitting end; The first compression method indication frame includes the first indication information, and the first compressed data frame includes the first compressed data.
30. The device according to any one of claims 24 to 29, characterized in that The first compressed data also includes a prefix, which is used to indicate that the compression method corresponding to the first compressed data is one of median prediction, indexed color history or a first compression method, wherein the first compression method includes the block prediction or the improved adaptive median prediction.
31. A data transmission system, characterized in that: It comprises a transmitting end and a receiving end, the transmitting end comprises the device according to any one of claims 16 to 23, and the receiving end comprises the device according to any one of claims 24 to 30.
32. A data transmission device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program stored in the memory so that the apparatus performs the method according to any one of claims 1 to 8, or so that the apparatus performs the method according to any one of claims 9 to 15.
33. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 8 is implemented, or the method according to any one of claims 9 to 15 is implemented.
