Image transmission method, device, image processing chip, main control chip and equipment
By applying preset encoding rules between the main control chip of the mobile terminal and the image processing chip, the problem that image data cannot be lost during transmission is solved, and the video shooting effect is improved, especially in dark/backlight scenarios.
Patent Information
- Application Number
- CN202211108714.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2042-09-09
AI Technical Summary
In the prior art, when the mobile terminal shoots video, especially in dark/backlight scenarios, the image processing algorithm cannot be effectively deployed, resulting in a decrease in the video effect. At the same time, the MIPI-DSI interface processes the data when transmitting image data, resulting in slight differences in the actual binary data of the image data and the lossless transmission cannot be achieved.
By applying preset encoding rules between the main control chip and the image processing chip, each binary number in the image data is encoded into more bit count data, ensuring the losslessness of the image data during transmission. The specific steps include the main control chip encoding the image data, generating the first encoded data, and sending it to the image processing chip through the MIPI-DSI interface, which receives and decodes to obtain lossless image data.
The lossless transmission of image data in the mobile terminal is achieved, and the video shooting effect is improved, especially in dark/backlight scenarios, ensuring the integrity and accuracy of image data.
Smart Images

Figure CN115567685B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and specifically relates to an image transmission method, device, image processing chip, main control chip and equipment. Background Art
[0002] Current mobile terminals are usually developed based on application processors (APs). However, due to the limitations of the AP's own computing power and system power consumption, some image processing algorithms that require high computing power cannot be deployed on the AP, which results in a decrease in the overall effect of the video shot by the mobile terminal, especially in special scenes such as dark light / backlight. To solve this problem, an external chip is usually connected to the AP.
[0003] However, the AP is connected to the external chip through the Mobile Industry Processor Interface-Display Serial Interface (MIPI-DSI) interface to send image data to the external chip.
[0004] At present, the AP sends image data to the display screen through the MIPI-DSI interface, so that the display screen can display the image. Therefore, in order to pursue better image display effects, the MIPI-DSI interface will do some processing on the image data before sending it to the display screen, such as making it sharper, clearer and more vivid. Although the image display effects corresponding to the image data before and after processing are visually close, there will be some slight differences in the actual binary data corresponding to the image data, for example, 255 may become 253. Therefore, on the basis of the AP connecting to the external chip through the MIPI-DSI interface, the MIPI-DSI interface will process the image data, that is, the image data is tampered with, and this cannot achieve the lossless sending of the image data to the external chip. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an image transmission method that can solve the problem of how to enable an external chip to obtain lossless image data.
[0006] In a first aspect, an embodiment of the present application provides an image transmission method, which is applied to an image processing chip, comprising:
[0007] Receiving first coded data of image data sent by the main control chip, and obtaining second coded data of the image data;
[0008] Decoding the second coded data according to a preset coding rule to obtain decoded image data;
[0009] Among them, the first encoded data is obtained by the main control chip encoding the image data according to the preset encoding rule, and the preset encoding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number.
[0010] In a second aspect, an embodiment of the present application provides another image transmission method, which is applied to a main control chip, including:
[0011] Get image data;
[0012] According to a preset encoding rule, each second binary number in the image data is encoded into a second binary number in the second binary data set corresponding to a first binary number in the first binary number set, to obtain first encoded data;
[0013] Sending the first coded data to an image processing chip;
[0014] The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
[0015] In a third aspect, an embodiment of the present application provides an image transmission device, which is applied to an image processing chip, including:
[0016] A receiving module, used for receiving first coded data of image data sent by the main control chip, and obtaining second coded data of the image data;
[0017] A decoding module, used for decoding the second coded data according to a preset coding rule to obtain decoded image data;
[0018] Among them, the first encoded data is obtained by the main control chip encoding the image data according to the preset encoding rule, and the preset encoding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number.
[0019] In a fourth aspect, an embodiment of the present application provides an image transmission device, which is applied to a main control chip, including:
[0020] An acquisition module, used for acquiring image data;
[0021] an encoding module, configured to encode each second binary number in the image data into a second binary number in the second binary data set corresponding to the first binary number in the first binary number set according to a preset encoding rule, to obtain first encoded data;
[0022] A sending module, used for sending the first coded data to an image processing chip;
[0023] The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
[0024] In a fifth aspect, an embodiment of the present application provides an image processing chip, wherein the main control chip includes a memory and a processor, the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the image transmission method described in the first aspect are implemented.
[0025] In the sixth aspect, an embodiment of the present application provides a main control chip, which includes a memory and a processor, the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the image transmission method described in the second aspect are implemented.
[0026] In a seventh aspect, an embodiment of the present application provides an electronic device, comprising the image processing chip as described in the fifth aspect and the main control chip as described in the sixth aspect, wherein the image processing chip is connected to the main control chip.
[0027] In an eighth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the image transmission method described in the first aspect or the second aspect are implemented.
[0028] In the ninth aspect, an embodiment of the present application provides another image processing chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the image transmission method as described in the first aspect.
[0029] In the tenth aspect, an embodiment of the present application provides another main control chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the image transmission method as described in the second aspect.
[0030] In an eleventh aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the image transmission method as described in the first aspect or the second aspect.
[0031] In an embodiment of the present application, an image processing method is provided, which is applied to an image processing chip, including: receiving first coded data of image data sent by a main control chip to obtain second coded data of the image data; decoding the second coded data according to a preset coding rule to obtain decoded image data; wherein the first coded data is obtained by encoding the image data by the main control chip according to a preset coding rule, and the preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number. In an embodiment of the present application, the first coded data is data of more bits obtained by encoding the image data. On this basis, a certain modification redundancy range is provided for the first coded data. In this way, after the first coded data is slightly modified to the second coded data, the second coded data can be decoded into lossless image data. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0033] Figure 2 This is a schematic diagram of a process of an image transmission method provided in an embodiment of the present application. Figure 1 ;
[0034] Figure 3 This is a schematic diagram of a process of an image transmission method provided in an embodiment of the present application. Figure 2 ;
[0035] Figure 4 This is a schematic diagram of the structure of an image transmission device provided in an embodiment of the present application. Figure 1 ;
[0036] Figure 5 This is a schematic diagram of the structure of an image transmission device provided in an embodiment of the present application. Figure 2 ;
[0037] Figure 6 is a structural schematic diagram of an image processing chip provided in an embodiment of the present application;
[0038] Figure 7 It is a structural schematic diagram of a main control chip provided in an embodiment of the present application;
[0039] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0041] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0042] The image transmission method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0043] The embodiment of the present application provides an image transmission method, which is applied to a main control chip 100 in an electronic device 1000. Figure 1 As shown, the main control chip 100 is connected to the image processing chip 200 in the electronic device 1000. Specifically, the main control chip 100 is connected to the image chip 200 in the electronic device 1000 through a MIPI-DSI interface.
[0044] In one embodiment of the present application, the main control chip 100 is an application processor AP.
[0045] like Figure 2 As shown, the image transmission method provided in the embodiment of the present application includes the following S1100-S1300:
[0046] S1100: Acquire image data.
[0047] In the embodiment of the present application, the main control chip 100 usually obtains image data from the image sensor of the electronic device 1000. And the image data is represented by binary data. In the embodiment of the present application, each binary number in the image data is recorded as a first binary number.
[0048] In one embodiment of the present application, image data includes image metadata. It is understandable that metadata, also known as intermediary data or relay data, is data that describes data, mainly information that describes data attributes, and is used to support functions such as indicating storage location, historical data, resource search, and file records. Therefore, metadata needs to be transmitted losslessly. On this basis, the image transmission method provided in the embodiment of the present application is particularly important for image metadata.
[0049] S1200. According to a preset coding rule, each first binary number in the image data is encoded into a second binary number in a second binary number set corresponding to the first binary data in the first binary number set, to obtain first encoded data.
[0050] The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
[0051] In one embodiment of the present application, since the basic unit of programming of the computer system is 8 bits, the number of bits of the second binary number is usually 8 bits. On this basis, the number of bits of the first binary number can be 1 bit, 2 bits or 4 bits. Of course, it can also be other, as long as the number of bits of the first binary number is less than the number of bits of the second binary number.
[0052] In one embodiment of the present application, taking the case where the number of bits of the second binary number is 8 bits and the number of bits of the first binary number is 1 bit as an example, the preset encoding rule may be as shown in Table 1 below.
[0053] Table 1
[0054] The first binary number set The second binary number set 0b0 0b00000000(0x00) 0b1 0b11111111(0xFF)
[0055] Among them, 0b represents binary, and 0x represents hexadecimal. 0b0 and 0b1 form a first binary number set, and 0b00000000 and 0b11111111 form a second binary number set.
[0056] It should be noted that, since the second binary number has a large number of bits, in some embodiments of the present application, the second binary number is represented by a hexadecimal number corresponding to the second binary number, wherein 1 bit in the hexadecimal system represents 4 bits in the binary system.
[0057] Based on the above Table 1, for each first binary number in the image data, if the first binary number is 0b0, it is encoded as the second binary number 0b00000000 (0x00). If the first binary number is 0b1, it is encoded as the second binary number 0b11111111 (0xFF). That is to say, after being encoded by the main control chip 100, 1 bit in the image data is encoded as 8 bits, and the bit size of the first encoded data is 8 times the bit size of the image data.
[0058] In an example, when the image data is 0b1010 1011 1100 1101 (0xABCD), the hexadecimal corresponding to the first coded data is 0xFF00FF00 FF00FFFF FFFF0000 FFFF00FF.
[0059] In one embodiment of the present application, taking the case where the number of bits of the second binary number is 8 bits and the number of bits of the first binary number is 2 bits as an example, the preset encoding rule may be as shown in Table 2 below.
[0060] Table 2
[0061] The first binary number set Second Binary Number Set (1) Second Binary Number Set (II) 0b00 0b00000000(0x00) 0b00100000 (0x20) 0b01 0b01000000 (0x40) 0b01100000 (0x60) 0b10 0b10000000 (0x80) 0b10100000(0xA0) 0b11 0b11000000(0xC0) 0b11100000(0xE0)
[0062] On the basis of the above Table 2, taking the above second binary number set (one) as an example, for each first binary number in the image data, if the first binary number is 0b00, it is encoded as the second binary number 0b00000000 (0x00). If the first binary number is 0b01, it is encoded as the second binary number 0b01000000 (0x40). If the first binary number is 0b10, it is encoded as the second binary number 0b10000000 (0x80). If the first binary number is 0b11, it is encoded as the second binary number 0b11000000 (0xC0). Similarly, for the second binary number set (two), the encoding principle is the same. That is to say, after encoding by the main control chip 100, the 2 bits in the image data are encoded as 8 bits, and the bit size of the first encoded data is 4 times the bit size of the image data.
[0063] In one example, the image data is 0b1010 1011 1100 1101 (0xABCD), and the second binary number set in the preset coding rule is the second binary number set (one) as an example, then the hexadecimal corresponding to the first coded data is 0x8080 80C0 C000 C040. Also, the image data is 0b1010 1011 1100 1101 (0xABCD), and the second binary number set in the preset coding rule is the second binary number set (two) as an example, then the hexadecimal corresponding to the first coded data is 0xA0A0 A0E0 E020 E060.
[0064] In one embodiment of the present application, taking the case where the number of bits of the second binary number is 8 bits and the number of bits of the first binary number is 4 bits as an example, the preset encoding rule may be as shown in Table 3 below.
[0065] Table 3
[0066] The first binary number set The second binary number set 0b0000 0b00000000(0x00) 0b0001 0b00010000 (0x10) 0b0010 0b00100000 (0x20) 0b0011 0b00110000 (0x30) 0b0100 0b01000000 (0x40) 0b0101 0b01010000 (0x50) 0b0110 0b01100000 (0x60) 0b0111 0b01110000 (0x70) 0b1000 0b10000000 (0x80) 0b1001 0b10010000 (0x90) 0b1010 0b10100000(0xA0) 0b1011 0b10110000 (0xB0) 0b1100 0b11000000(0xC0) 0b1101 0b11010000 (0xD0) 0b1110 0b11100000(0xE0) 0b1111 0b11110000(0xF0)
[0067] Based on the above Table 3, for each first binary number in the image data, it is encoded as a second binary number corresponding to the second binary number set in the above Table 3. For example, when a first binary number in the image data is 0b1101, it is encoded as 0b11010000.
[0068] It can be understood that, based on Table 3, that is to say, after being encoded by the main control chip 100, 4 bits in the image data are encoded into 8 bits, and the bit size of the first encoded data is twice the bit size of the image data.
[0069] In an example, when the image data is 0b1010 1011 1100 1101 (0xABCD), the hexadecimal corresponding to the first coded data is 0xA0B0 C0D0.
[0070] It should be noted that when encoding image data, DSP or NEON instructions can be used for acceleration. For example, for the above Table 1, NEON instruction ld4r can be used to load 4 8-bit data at one time and copy it into 4 64-bit data, and NEON instruction cmtst can be used to compare each bit in batches, and finally NEON instruction st1 can be used to store the 4 64-bit data. Since a single instruction can process multiple data, the performance is 4 to 6 times that of general encoding implementation.
[0071] S1300: Send the first encoded data to the image processing chip.
[0072] In the embodiment of the present application, the first encoded data is sent to the image processing chip 200 through the MIPI-DSI interface of the main control chip 100 .
[0073] In the embodiment of the present application, when the MIPI-DSI interface of the main control chip 100 sends the first coded data to the image processing chip 200, the first coded data is first slightly modified to obtain the second coded data, and then the second coded data is sent to the image processing chip 200. That is to say, when the image processing chip 200 receives the first coded data, it actually receives the second coded data.
[0074] The embodiment of the present application provides an image transmission method, which is applied to a main control chip, including: acquiring image data; according to a preset coding rule, encoding each first binary number in the image data into a first binary number set corresponding to a second binary number in a second binary number set, to obtain first coded data; sending the first coded data to an image processing chip; wherein the preset coding rule includes: a mapping relationship between a first binary number in the first binary number set and a second binary number in the second binary number set, and the number of bits of the first binary data is less than the number of bits of the second binary number. In this way, by encoding the image data into first coded data with more bits, the image processing chip can obtain lossless image data.
[0075] In one embodiment of the present application, at least two preset encoding rules are preset in the main control chip 100. On this basis, the image transmission method provided in the embodiment of the present application further includes the following S1210 before the above S1200:
[0076] S1210, sending instruction information to the image processing chip.
[0077] The indication information is used to indicate a preset coding rule, different indication information corresponds to different preset coding rules, and different preset coding rules have different numbers of bits of the second binary number.
[0078] In an embodiment of the present application, at least two preset coding rules may be exemplarily the preset coding rules corresponding to Table 1, Table 2 and Table 3 above.
[0079] In the embodiment of the present application, the indication information is specifically used to indicate the encoding rule corresponding to the first encoded data. In order to enable the image processing chip 200 to perform correct encoding, the indication information needs to be sent to the image processing chip 200 so that the image processing chip can decode the first encoded data according to the encoding rule corresponding to the first encoded data.
[0080] In the embodiment of the present application, the preset encoding rule used when encoding the image data can be determined according to actual needs. Specifically, when the actual need is high-speed data processing, the preset encoding rule used when encoding the image data can be determined as the preset encoding rule corresponding to the second binary number with a smaller number of bits, such as the preset encoding rule corresponding to the above Table 1. When the actual need is high precision, the preset encoding rule used when encoding the image data can be determined as the preset encoding rule corresponding to the second binary data with a larger number of bits, such as the preset encoding rule corresponding to the above Table 2.
[0081] In one embodiment of the present application, the image transmission method provided in the embodiment of the present application further includes the following S1220 before the above S1200:
[0082] S1220: Calculate a first check code of the image data according to a preset method.
[0083] In the embodiment of the present application, the preset method is a preset method for calculating the verification code of the image data.
[0084] In one example, the preset method is a cyclic redundancy check (CRC) algorithm.
[0085] On the basis of the above S1220, the above S1200 includes: according to a preset encoding rule, encoding each first binary data in the image data and the first check code into a second binary data corresponding to a first binary number in the first binary data set and corresponding to a second binary data in the second binary number set, to obtain first encoded data.
[0086] In the embodiment of the present application, the first check code is composed of a binary number, and the binary number composed of the first check code is recorded as a first binary number.
[0087] In the embodiment of the present application, the above steps can be used by the image processing chip 200 to determine whether the decoded image data obtained through decoding is correct or incorrect.
[0088] The present application also provides an image transmission method. Figure 3 As shown, it is applied to the image processing chip 200, including the following S3100 and S3200:
[0089] S3100 , receiving first coded data of image data sent by the main control chip 100 , and obtaining second coded data of the image data.
[0090] In one embodiment of the present application, the image data is image metadata.
[0091] S3200. Decode the second coded data according to a preset coding rule to obtain decoded image data.
[0092] Among them, the first coded data is obtained by encoding the image data by the main control chip 100 according to a preset coding rule, and the preset coding rule includes: a mapping relationship between the first binary number in the first binary number set and the second binary number in the second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number.
[0093] In the embodiment of the present application, the image processing chip is pre-set with a coding rule used when encoding the image data, and each binary number in the second image data is recorded as a second binary number.
[0094] In one embodiment of the present application, the specific implementation of the above S3200 may be: for each second binary number in the second encoded data, calculate the difference between it and each second binary number in the second binary number set in the preset encoding rule; use the second binary number in the second binary number set corresponding to the minimum difference as the second binary number after the second binary number in the second encoded data is first decoded; decode the second binary number after each second binary number in the second encoded data is first decoded, again into the first binary number in the first binary data set corresponding to its preset encoding rule, to obtain the final decoded image data.
[0095] Taking Table 1 above as an example, for each second binary number in the second coded data, if it is greater than or equal to 0x80, then the difference between it and 0xFF is less than the difference between it and 0x00, and at this time, it is first decoded as 0xFF in the second binary number set. Further, 0xFF is decoded again as 0b1 in the first binary number set.
[0096] For each second binary number in the second coded data, if it is less than or equal to 0x7F, the difference between it and 0x00 is less than the difference between it and 0xFF, and at this time, it is first decoded as 0x00 in the second binary number set. Further, 0x00 is decoded again as 0b0 in the first binary number set.
[0097] Based on the above content, the modification redundancy range of the first coded data is 127 (0xFF-0x80). If a second binary number in the first coded data corresponds to a hexadecimal number of 0xFF, when it is significantly modified to 0x80, it can still be decoded to 0xFF through the above S3200. The second coded data is obtained by making a small modification to the first coded data. Therefore, when a second binary number in the first coded data corresponds to a hexadecimal number of 0xFF, it is usually not significantly modified to 0x80. That is to say, through the above S3200, the second coded data can be decoded into correct image data.
[0098] Similarly, for the above Table 2 and Table 3, the second encoded data can also be decoded into image data.
[0099] In another embodiment of the present application, each second binary number in the second binary number set corresponds to a threshold range, and the value of each second binary number in the second binary number set is within the corresponding threshold range. On this basis, the above S3200 can be specifically implemented by the following S3210-S3230:
[0100] S3210. Determine, from the threshold ranges corresponding to each second binary data in the second binary number set, a target threshold range to which each second binary data in the second coded data belongs.
[0101] In the embodiment of the present application, taking the above Table 1 as an example, the threshold range corresponding to the 0x00 setting in the second binary number set is [0x00, 0x7F], and the threshold range corresponding to the 0xFF setting in the second binary number set is [0x80, 0xFF].
[0102] Taking the second binary number set (1) in Table 2 above as an example, the threshold range corresponding to the 0x00 setting in the second binary number set is [0x00, 0x1F], the threshold range corresponding to the 0x40 setting in the second binary number set is [0x5F, 0x20], the threshold range corresponding to the 0x80 setting in the second binary number set is [0x9F, 0x60], and the threshold range corresponding to the 0xC0 setting in the second binary number set is [0xFF, 0xA0].
[0103] It should be noted that the maximum redundancy range of the modification of the first coded data by the second binary number set (I) in the above Table 2 is 63 (0x9F-0x60). The range in which the second binary number in the first coded data is modified is within [0x9F-0x60], and the second binary number in the second coded data can be correctly decoded. Furthermore, the positive error range corresponding to [0x9F, 0x60] is (0x9F-0x80)=31, and the negative error range is (0x9F-0x80)=31.
[0104] Taking the second binary number set (two) in Table 2 above as an example, the threshold range corresponding to the setting of 0xE0 in the second binary number set is [0xFF, 0xC0], the threshold range corresponding to the setting of 0xA0 in the second binary number set is [0xBF, 0x80], the threshold range corresponding to the setting of 0x60 in the second binary number set is [0x9F, 0x40], and the threshold range corresponding to the setting of 0x00 in the second binary number set is [0x3F, 0x00].
[0105] It should be noted that, for the second binary number set (I) in Table 2 above, the modified redundant range ([0x1F, 0x00]) for 0x00 is relatively small, only 31, and the modified redundant range ([0xFF, 0xA0]) for 0xC0 is relatively large, specifically 95, and the modified redundant ranges for 0x80 and 0x41 are both 63. That is, the modified redundant ranges are inconsistent, but this is software-friendly and can be implemented by direct shifting, and encoding can be achieved with higher efficiency when encoding image data.
[0106] Taking Table 3 above as an example, the second binary numbers in the second binary number set and the corresponding threshold ranges are: 0xF0, [0xFF, 0xE8]; 0xE0, [0xE7, 0xD8]; 0xD0, [0xD7, 0xC8]; 0xC0, [0xC7, 0xB8]; 0xB0, [0xB7, 0xA8]; 0xA0, [0xA7, 0x98]; 0x90, [0x97, 0x88 ]; 0x80, [0x87, 0x78]; 0x70, [0x77, 0x68]; 0x60, [0x67, 0x58]; 0x50, [0x57, 0x48]; 0x40, [ 0x47, 0x38]; 0x30, [0x37, 0x28]; 0x20, [0x27, 0x18]; 0x10 [0x17, 0x08]; 0x00 [0x07, 0x00].
[0107] For the preset coding rule corresponding to Table 1, the coding corresponding to the second binary number set (two) in Table 2, and the coding rule corresponding to Table 3, the span of the preset range corresponding to the second binary number in the second binary set is the same, so that the modification redundancy range can be consistent.
[0108] S3220. For any second binary number in the second coded data, a second binary number corresponding to a corresponding target threshold range in a second binary number set in a preset coding rule is used as the target second binary data.
[0109] In one embodiment of the present application, taking the preset coding rule as the above Table 2 as an example, when the target threshold range is [0xE7, 0xD8], 0xE0 is used as the target second binary number in the above S3220.
[0110] S3230, using data consisting of the first binary number corresponding to each target second binary number in the first binary number set in the preset coding rule as decoded image data.
[0111] In one embodiment of the present application, continuing with the above example of S3220, 0b1111 corresponding to the target second binary number 0xE0 is used as data in the decoded image data.
[0112] In the embodiment of the present application, the first coded data is data of more bits obtained by encoding the image data. On this basis, a certain modification redundancy range is provided for the first coded data. In this way, after the first coded data is slightly modified to the second coded data, the second coded data can be decoded into lossless image data.
[0113] In an embodiment of the present application, an image processing method is provided, which is applied to an image processing chip, including: receiving first coded data of image data sent by a main control chip to obtain second coded data of the image data; decoding the second coded data according to a preset coding rule to obtain decoded image data; wherein the first coded data is obtained by encoding the image data by the main control chip according to a preset coding rule, and the preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number. In an embodiment of the present application, the first coded data is data of more bits obtained by encoding the image data. On this basis, a certain modification redundancy range is provided for the first coded data. In this way, after the first coded data is slightly modified to the second coded data, the second coded data can be decoded into lossless image data.
[0114] In one embodiment of the present application, the first coded data includes coded data of a first check code, and the first check code is calculated by the main control chip 100 according to a preset method on the image data. On this basis, the above S3200 can be implemented by the following S3230:
[0115] S3230. Decode the second coded data according to a preset coding rule to obtain decoded image data and a decoded first check code.
[0116] Based on the above S3230, the image transmission method provided in the embodiment of the present application further includes the following S3300-S3500:
[0117] S3300, calculating a second check code of the decoded image data based on a preset method.
[0118] In the embodiment of the present application, the preset method in the above S3300 is the same as the preset method in the above S1220.
[0119] S3400: When the second check code is the same as the decoded first check code, determine that the decoded image data is correct.
[0120] S3500: When the second check code is different from the decoded first check code, determine that the decoded image data is wrong.
[0121] In the embodiment of the present application, when the second check code is the same as the first check code after decoding, it means that the decoded image data is the same as the image data obtained by the main control chip based on the above S2100. In this case, it means that the decoded image data is correct. On the contrary, when the second check code is different from the first check code after decoding, it means that the decoded image data is different from the image data obtained by the main control chip based on the above S2100. In this case, it means that the decoded image data is incorrect.
[0122] In the embodiment of the present application, whether the image data decoding is correct can be detected through the above S3300-S3500.
[0123] In one embodiment of the present application, the image transmission method provided in the embodiment of the present application further includes the following S3240 before the above S3200:
[0124] S3240, receiving instruction information sent by the main control chip.
[0125] The indication information is used to indicate a preset coding rule, different indication information corresponds to different preset coding rules, and different preset coding rules have different numbers of bits of the second binary number.
[0126] On the basis of the above S3240, the above S3300 is specifically implemented as follows: according to a preset encoding rule corresponding to the indication information, the second encoded data is decoded to obtain decoded image data.
[0127] In the embodiment of the present application, when different preset encoding rules are used, the second encoded data can still be accurately decoded.
[0128] The image processing method provided in the embodiment of the present application can be executed by an image processing device. In the embodiment of the present application, an image processing device executing the image processing method is taken as an example to illustrate the image processing device provided in the embodiment of the present application.
[0129] like Figure 4As shown, the embodiment of the present application provides an image processing device 400, which is applied to the main control chip 100 and includes:
[0130] An acquisition module 410, used to acquire image data;
[0131] An encoding module 420, configured to encode each second binary number in the image data into a second binary number in the second binary data set corresponding to a first binary number in the first binary number set according to a preset encoding rule, to obtain first encoded data;
[0132] A sending module 430, configured to send the first coded data to an image processing chip;
[0133] The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
[0134] The embodiment of the present application provides an image transmission device, which is applied to a main control chip, including: an acquisition module, which is used to acquire image data; an encoding module, which is used to encode each first binary number in the image data into a first binary number corresponding to a second binary number in a first binary number set and corresponding to a second binary number in a second binary number set according to a preset encoding rule, to obtain first encoded data; a sending module, which is used to send the first encoded data to an image processing chip; wherein the preset encoding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is less than the number of bits of the second binary number. In this way, by encoding the image data into first encoded data with more bits, the image processing chip can obtain lossless image data.
[0135] In one embodiment of the present application, at least two preset coding rules are pre-set in the main control chip. On this basis, the sending module 430 is also used to: send indication information to the image processing chip, and the indication information is used to indicate the preset coding rules. Different indication information corresponds to different preset coding rules, and the number of bits of the second binary number in different preset coding rules is different.
[0136] In one embodiment of the present application, the image data includes image metadata.
[0137] like Figure 5 As shown, the embodiment of the present application provides an image processing device 500, which is applied to the image processing chip 100, including:
[0138] The receiving module 510 is used to receive first coded data of the image data sent by the main control chip, and obtain second coded data of the image data;
[0139] A decoding module 520, configured to decode the second coded data according to a preset coding rule to obtain decoded image data;
[0140] Among them, the first encoded data is obtained by the main control chip encoding the image data according to the preset encoding rule, and the preset encoding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number.
[0141] In an embodiment of the present application, an image processing device is provided, which is applied to an image processing chip, including: a receiving module, which is used to receive the first coded data of the image data sent by the main control chip, and obtain the second coded data of the image data; a decoding module, which is used to decode the second coded data according to a preset coding rule to obtain the decoded image data; wherein the first coded data is obtained by the main control chip encoding the image data according to the preset coding rule, and the preset coding rule includes: the mapping relationship between the first binary number in the first binary number set and the second binary number in the second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number. In an embodiment of the present application, the first coded data is data of more bit data obtained by encoding the image data. On this basis, a certain modification redundancy range is provided for the first coded data. In this way, after the first coded data is slightly modified to the second coded data, the second coded data can be decoded into lossless image data.
[0142] In one embodiment of the present application, the image data includes image metadata.
[0143] In one embodiment of the present application, each second binary number in the second binary number set corresponds to a threshold range, and the value of each second binary number in the second binary number set is within the corresponding threshold range;
[0144] The decoding module 520 is specifically used to determine the target threshold range to which each second binary in the second encoded data belongs from the threshold range corresponding to each second binary data in the second binary number set; for any second binary number in the second encoded data, the second binary number corresponding to the corresponding target threshold range in the second binary number set in the preset encoding rule is used as the target second binary data; and the data composed of the first binary number corresponding to each target second binary number in the first binary number set in the preset encoding rule is used as the decoded image data.
[0145] In one embodiment of the present application, the first coded data includes coded data of a first check code, and the first check code is calculated by the main control chip on the image data according to a preset method;
[0146] In the embodiment of the present application, the decoding module 520 is specifically used to: decode the second coded data according to a preset coding rule to obtain decoded image data and a decoded first check code;
[0147] In the embodiment of the present application, the image processing device 500 further includes a calculation module and a determination module, wherein:
[0148] A calculation module, used for calculating a second check code of the decoded image data based on the preset method;
[0149] The determination module is used to determine that the decoded image data is correct when the second check code is the same as the decoded first check code; and to determine that the decoded image data is wrong when the second check code is different from the decoded first check code.
[0150] In one embodiment of the present application, the image processing device 500 provided in the embodiment of the present application, the receiving module 510 is further used to receive indication information sent by the main control chip, the indication information is used to indicate a preset coding rule, different indication information corresponds to different preset coding rules, and the number of bits of the second binary number in different preset coding rules is different;
[0151] The decoding module 520 is specifically configured to decode the second encoded data according to a preset encoding rule corresponding to the indication information to obtain decoded image data.
[0152] The image processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0153] The image processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0154] The image processing device provided in the embodiment of the present application can achieve Figure 2 or Figure 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0155] In the embodiments of the present application, Figure 6 As shown, the present application also provides an image processing chip 200, which includes a memory 210 and a processor 220. The memory 210 stores programs or instructions that can be run on the processor 220. When the programs or instructions are executed by the processor 220, the various steps of the image transmission method described in any of the above-mentioned applications and image processing chip methods are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.
[0156] The present application also provides a main control chip 100, such as Figure 7As shown, the main control chip 100 includes a memory 110 and a processor 120. The memory 110 stores programs or instructions that can be run on the processor 120. When the programs or instructions are executed by the processor 120, the various steps of the image transmission method as described in any of the above-mentioned methods applied to the main control chip 100 are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0157] The present application also provides an electronic device 1000, such as Figure 1 As shown, including Figure 6 The image processing chip 200 shown in FIG. Figure 7 The main control chip 100 is shown.
[0158] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0159] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0160] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0161] In one embodiment of the present application, the image processing chip 200 may be a processor 1010. On this basis, the processor 1010 is configured to receive first coded data of image data sent by the main control chip and obtain second coded data of the image data;
[0162] Decoding the second coded data according to a preset coding rule to obtain decoded image data;
[0163] Among them, the first encoded data is obtained by the main control chip encoding the image data according to the preset encoding rule, and the preset encoding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary number is less than the number of bits of the second binary number.
[0164] In the embodiment of the present application, the electronic device encodes the image data into first encoded data with a larger number of bits so that the image processing chip can obtain lossless image data.
[0165] Optionally, the image data includes image metadata.
[0166] Optionally, each second binary number in the second binary number set corresponds to a threshold range, and a value of each second binary number in the second binary number set is within the corresponding threshold range;
[0167] The processor 1010 is specifically configured to determine, from the threshold ranges respectively corresponding to each second binary data in the second binary number set, a target threshold range to which each second binary data in the second coded data belongs;
[0168] And, for any second binary number in the second coded data, the second binary number corresponding to the corresponding target threshold range in the second binary number set in the preset coding rule is used as the target second binary data;
[0169] And, data consisting of the first binary number corresponding to each of the target second binary numbers in the first binary number set in the preset encoding rule is used as decoded image data.
[0170] Optionally, the first coded data includes coded data of a first check code, and the first check code is calculated by the main control chip on the image data according to a preset method;
[0171] The processor 1010 is specifically configured to decode the second coded data according to a preset coding rule to obtain decoded image data and a decoded first check code;
[0172] The processor 1010 is further configured to calculate a second check code of the decoded image data based on the preset method;
[0173] When the second check code is the same as the decoded first check code, determining that the decoded image data is correct;
[0174] When the second check code is different from the decoded first check code, it is determined that the decoded image data is erroneous.
[0175] Optionally, the processor 1010 is further used to receive indication information sent by the main control chip, where the indication information is used to indicate a preset coding rule, different indication information corresponds to different preset coding rules, and different preset coding rules have different numbers of bits of the second binary number;
[0176] The processor 1010 is specifically configured to decode the second encoded data according to a preset encoding rule corresponding to the indication information to obtain decoded image data.
[0177] In one embodiment of the present application, the main control chip 100 may be a processor 1010. On this basis, the processor 1010 is used to obtain image data;
[0178] According to a preset encoding rule, each first binary number in the image data is encoded into a second binary number in the second binary number set corresponding to the first binary number in the first binary number set, to obtain first encoded data;
[0179] Sending the first coded data to an image processing chip;
[0180] The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
[0181] In the embodiment of the present application, the first coded data is data of more bits obtained by encoding the image data. On this basis, a certain modification redundancy range is provided for the first coded data. In this way, after the first coded data is slightly modified to the second coded data, the second coded data can be decoded into lossless image data.
[0182] Optionally, at least two preset encoding rules are preset in the processor 1010, and the processor 1010 is further configured to:
[0183] Sending indication information to the image processing chip, the indication information is used to indicate the preset coding rule, different indication information corresponds to different preset coding rules, and different preset coding rules have different numbers of bits of the second binary number.
[0184] Optionally, the image data includes image metadata.
[0185] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0186] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0187] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
[0188] The present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the image transmission method described in any of the above method embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0189] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0190] An embodiment of the present application further provides an image processing chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image transmission method embodiment applied to the image processing chip, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0191] An embodiment of the present application further provides a main control chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image transmission method embodiment applied to the main control chip, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0192] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0193] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0194] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0195] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image transmission method, characterized in that: Applied to image processing chips, including: Receiving first coded data of image data sent by the main control chip, and obtaining second coded data of the image data; Decoding the second coded data according to a preset coding rule to obtain decoded image data; Among them, the first coded data is obtained by the main control chip encoding the image data according to the preset coding rule, and the preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, the number of bits of the first binary number is less than the number of bits of the second binary number, and the first coded data is obtained by the main control chip encoding the image data according to the preset coding rule. Specifically, it includes: the main control chip encodes each first binary number in the image data according to the preset coding rule into a first binary number corresponding to the first binary number in the first binary number set and a second binary number corresponding to the second binary number set in the second binary number set, so as to obtain the first coded data.
2. The method according to claim 1, characterized in that The image data includes image metadata.
3. The method according to claim 1, characterized in that Each second binary number in the second binary number set corresponds to a threshold range, and the value of each second binary number in the second binary number set is within the corresponding threshold range; The step of decoding the second coded data according to a preset coding rule to obtain decoded image data comprises: Determine, from the threshold ranges respectively corresponding to each second binary data in the second binary number set, a target threshold range to which each second binary data in the second coded data belongs; For any second binary number in the second coded data, the second binary number corresponding to the target threshold range in the second binary number set in the preset coding rule is used as the target second binary data; The data consisting of the first binary number corresponding to each of the target second binary numbers in the first binary number set in the preset encoding rule is used as the decoded image data.
4. The method according to claim 1, characterized in that: The first coded data includes coded data of a first check code, and the first check code is calculated by the main control chip according to a preset method on the image data; The step of decoding the second coded data according to a preset coding rule to obtain decoded image data comprises: Decoding the second coded data according to a preset coding rule to obtain decoded image data and a decoded first check code; The method further comprises: Calculate a second check code of the decoded image data based on the preset method; When the second check code is the same as the decoded first check code, determining that the decoded image data is correct; When the second check code is different from the decoded first check code, it is determined that the decoded image data is erroneous.
5. The method according to claim 1, characterized in that Before decoding the second coded data according to the preset coding rule to obtain decoded image data, the method further includes: Receiving indication information sent by the main control chip, where the indication information is used to indicate a preset coding rule, different indication information corresponds to different preset coding rules, and different preset coding rules have different numbers of bits of the second binary number; The step of decoding the second coded data according to a preset coding rule to obtain decoded image data comprises: The second encoded data is decoded according to a preset encoding rule corresponding to the indication information to obtain decoded image data.
6. An image transmission method, characterized in that: Applied to main control chips, including: Get image data; According to a preset encoding rule, each first binary number in the image data is encoded into a second binary number in the second binary number set corresponding to the first binary number in the first binary number set, to obtain first encoded data; Sending the first coded data to an image processing chip; The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
7. The method according to claim 6, characterized in that At least two preset encoding rules are preset in the main control chip. The method further includes, before obtaining the first encoded data, encoding each first binary number in the image data into a first binary number corresponding to a first binary number in a first binary number set and a second binary number in a second binary number set according to the preset encoding rules: Sending indication information to the image processing chip, the indication information is used to indicate the preset coding rule, different indication information corresponds to different preset coding rules, and different preset coding rules have different numbers of bits of the second binary number.
8. The method according to claim 6, characterized in that The image data includes image metadata.
9. An image transmission device, characterized in that: Applied to image processing chips, including: A receiving module, used for receiving first coded data of image data sent by the main control chip, and obtaining second coded data of the image data; A decoding module, used for decoding the second coded data according to a preset coding rule to obtain decoded image data; Among them, the first coded data is obtained by the main control chip encoding the image data according to the preset coding rule, and the preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, the number of bits of the first binary number is less than the number of bits of the second binary number, and the first coded data is obtained by the main control chip encoding the image data according to the preset coding rule. Specifically, it includes: the main control chip encodes each first binary number in the image data according to the preset coding rule into a first binary number corresponding to the first binary number in the first binary number set and a second binary number corresponding to the second binary number set in the second binary number set, so as to obtain the first coded data.
10. An image transmission device, characterized in that: Applied to main control chips, including: An acquisition module, used for acquiring image data; an encoding module, configured to encode each second binary number in the image data into a second binary number in the second binary data set corresponding to the first binary number in the first binary number set according to a preset encoding rule, to obtain first encoded data; A sending module, used for sending the first coded data to an image processing chip; The preset coding rule includes: a mapping relationship between a first binary number in a first binary number set and a second binary number in a second binary number set, and the number of bits of the first binary data is smaller than the number of bits of the second binary number.
11. An image processing chip, characterized in that: The image processing chip includes a memory and a processor, the memory stores programs or instructions that can be run on the processor, and the programs or instructions, when executed by the processor, implement the steps of the image transmission method according to any one of claims 1 to 5.
12. A main control chip, characterized in that: The main control chip includes a memory and a processor, the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the image transmission method according to any one of claims 6 to 8 are implemented.
13. An electronic device, characterized in that: It comprises the image processing chip as claimed in claim 11 and the main control chip as claimed in claim 12, wherein the image processing chip is connected to the main control chip.
14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the image transmission method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Data processing method and electronic equipment
CN112148661A