Data encoding method and chip, data decoding method and chip, and display device

By replacing continuous bit values ​​in data encoding and writing row configuration information, the problems of DC balance and power consumption in 8b/9b encoding technology are solved, achieving more efficient data transmission and reliable decoding process.

CN118433392BActive Publication Date: 2024-10-22TCL CHINA STAR OPTOELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410882823.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-22
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The existing 8b/9b encoding technology causes DC balance problems during data transmission, increases power consumption and bandwidth overhead, and affects the efficiency and reliability of the display device.

Method used

During the data encoding process, consecutive multiple-bit data with the same bit value is replaced with its address and bit value, and this information is written into the preset bit combination of the row configuration information to break the situation of continuous logic 1 or 0, Reduce extra overhead and restore the original data through row configuration information during the decoding process.

Benefits of technology

It achieves DC balance, reduces the additional overhead of data transmission, avoids excessive power consumption at the transmitter and receiver, and ensures the reliability of the encoding and decoding process. Specifically, the additional overhead of 8b/9b encoding technology has increased from 11.1% to 11.1%. reduced to 1.6%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433392B_ABST
    Figure CN118433392B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a data encoding method and chip, a data decoding method and chip, and a display device, and relate to the field of display technology; in the present application, image data for inputting into a display panel is obtained, the image data includes a plurality of sub-image data, and each sub-image data includes a plurality of data combinations; the address of specific data in each data combination of each sub-image data is obtained, the specific data has M bits, and the bit values ​​on the M bits are all 0 or all 1, and M is an integer greater than or equal to 2; the address and bit value of the first specific data in the data combination are written to a preset bit combination in a plurality of preset bit combinations of row configuration information of the sub-image data; the address and bit value of the N+1th specific data in the data combination are written to the bit where the Nth specific data in the data combination is located. The embodiments of the present application can reduce the power consumption generated by the transmitting end and the receiving end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a data encoding method and chip, a data decoding method and chip, and a display device. Background Art

[0002] The display device generally performs high-speed data transmission through a point-to-point transmission interface protocol, and the point-to-point transmission interface protocol may be a new high-speed point-to-point interface transmission protocol (China Standard Point-to-Point Interface, CSPI).

[0003] The technical solution of the CSPI protocol uses 8b / 9b encoding to re-encode the data stream so that the consecutive 1s or 0s in the data stream will not exceed 5 bits, that is, 1 bit of 0 must be inserted after every 5 consecutive bits of 1, or 1 bit of 1 must be inserted after every 5 consecutive bits of 0 to achieve DC balance.

[0004] However, although DC balance can be achieved using 8b / 9b encoding technology, transmitting 8 bits of data requires 9 bits of bandwidth, with an overhead of 11.1%. The greater the overhead, the more bandwidth is sacrificed, resulting in more power consumption at the transmitter and receiver. Summary of the invention

[0005] The embodiments of the present application provide a data encoding method and chip, a data decoding method and chip, and a display device, which can solve the technical problem of excessive power consumption during encoding and decoding.

[0006] An embodiment of the present application provides a data encoding method, including:

[0007] Acquire image data for inputting to a display panel, the image data comprising a plurality of sub-image data, each of the sub-image data being used for inputting to a row of pixel units of the display panel, and each of the sub-image data comprising a plurality of data combinations;

[0008] Acquire the address of specific data in each of the data combinations of each of the sub-image data, where the specific data has M bits, and the bit values ​​of the M bits are all 0 or all 1, and M is an integer greater than or equal to 2;

[0009] Writing the address and bit value of the first specific data in the data combination into one of the plurality of preset bit combinations of the row configuration information of the sub-image data;

[0010] The address and bit value of the N+1th specific data in the data combination are written into the bit position where the Nth specific data in the data combination is located, where N is a positive integer.

[0011] Accordingly, an embodiment of the present application provides a data decoding method, comprising:

[0012] receiving encoded image data, wherein the image data includes a plurality of sub-image data, each of the sub-image data is used to be input to a row of pixel units of a display panel, and each of the sub-image data includes a plurality of data combinations;

[0013] According to the data written on at least one preset bit combination of the row configuration information of the sub-image data, restore the first replacement data in at least one of the data combinations to specific data, wherein the specific data has M bits, and the bit values ​​of the M bits are all 0 or all 1, and M is an integer greater than or equal to 2;

[0014] According to the Nth replacement data in the data combination, the N+1th replacement data in the data combination is restored to the specific data, the Nth replacement data includes the address of the N+1th replacement data and the restored bit value, and N is a positive integer.

[0015] Accordingly, an embodiment of the present application provides a coding chip, the coding chip includes a program code, and the program code is used to execute the data coding method provided by the embodiment of the present application.

[0016] Accordingly, an embodiment of the present application provides a decoding chip, the decoding chip includes a program code, and the program code is used to execute the data decoding method provided by the embodiment of the present application.

[0017] Accordingly, an embodiment of the present application provides a display device, which includes a display panel, an encoding chip and a decoding chip. The encoding chip is used to execute the data encoding method provided in the embodiment of the present application, and output the encoded image data to the decoding chip. The decoding chip is used to execute the data decoding method provided in the embodiment of the present application for the encoded image data, and output the decoded image data to the display panel. The display panel is used to display an image according to the decoded image data output by the decoding chip.

[0018] The beneficial effects provided by the embodiments of the present application include at least:

[0019] The embodiments of the present application replace multiple consecutive bits of data with the same bit value in the image data with the address and bit value of another multiple consecutive bits of data with the same bit value during the encoding process, thereby breaking the original situation where multiple logical 1s or multiple logical 0s appear continuously in the image data, achieving DC balance, and effectively avoiding bit errors caused by DC offset during the decoding process.

[0020] Furthermore, the embodiment of the present application replaces the data with the same continuous multi-bit value, and does not add new bits on the basis of the original bits of the image data, but sets row configuration information for each sub-image data of the image data, and writes the address and bit value of the first data with the same continuous multi-bit value in each data combination of the sub-image data of the image data to the corresponding preset bit combination of the row configuration information of the sub-image data. Since the number of bits of the image data is much larger than the number of bits of the row configuration information, compared with the related art of inserting a large number of redundant bits in the image data, the embodiment of the present application only needs to configure a small number of additional bits, which reduces the additional overhead of data transmission and avoids excessive power consumption at the transmitting end and the receiving end. For example, in the 8b / 9b encoding technology, 9 bits of bandwidth are required for each 8-bit data transmitted, and the additional overhead is 11.1%; while the embodiment of the present application requires an additional 9 bits as the preset bit combination of the row configuration information for each 540-bit data transmitted, and the additional overhead is 1.6%.

[0021] In addition, through the technical solution of the embodiment of the present application, the addresses and bit values ​​of the original data with the same multiple bit values ​​in the image data have corresponding indications after being encoded, so that in the decoding process, based on the preset bit combination of the row configuration information, or based on the replaced data in the image data, the addresses and bit values ​​of the original data with the same multiple bit values ​​in the image data can be obtained, and the replaced data with the same multiple bit values ​​in the image data can be restored, ensuring that the encoded image data can be correctly decoded. It can be seen that the embodiment of the present application not only achieves DC balance and reduces additional overhead, but also ensures the reliability of the encoding and decoding process. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of a data encoding method provided in an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a pixel unit provided in an embodiment of the present application;

[0024] Figure 3 It is a schematic diagram of a method for defining a data block address provided in an embodiment of the present application;

[0025] Figure 4It is a schematic diagram of a method for defining addresses within a data block provided in an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of a bit structure of a preset bit combination provided in an embodiment of the present application;

[0027] Figure 6 is a schematic diagram of a method for defining row configuration information provided in an embodiment of the present application;

[0028] Figure 7 is a schematic diagram of encoded image data provided by an embodiment of the present application;

[0029] Figure 8 is a schematic diagram of encoded sub-image data provided by an embodiment of the present application;

[0030] Fig. 9 It is a schematic diagram of the meaning of the instructions provided by the embodiments of the present application;

[0031] Fig.10 is a schematic diagram of another type of encoded image data provided by an embodiment of the present application;

[0032] Fig.11 is a schematic diagram of a data encoding process provided by an embodiment of the present application;

[0033] Fig.12 It is a schematic diagram of address marking in a data block provided by an embodiment of the present application;

[0034] Fig.13 is a flow chart of a data decoding method provided in an embodiment of the present application;

[0035] Fig.14 is a schematic diagram of a coding chip provided in an embodiment of the present application;

[0036] Fig.15 is a schematic diagram of a decoding chip provided in an embodiment of the present application;

[0037] Fig.16 is a schematic diagram of a display device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. The described technical solutions are only used to explain and illustrate the ideas of the present application and should not be regarded as limiting the scope of protection of the present application.

[0039] In addition, the "plurality" in the embodiments of the present application refers to two or more. The "first" and "second" in the embodiments of the present application are used to distinguish different technical features, and do not indicate any order, quantity or importance.

[0040] The various embodiments provided in this application are similar, and features in different embodiments may be combined with each other.

[0041] The order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0042] The embodiments of the present application provide a data encoding method and chip, a data decoding method and chip, and a display device. The display device can be integrated in a display device, which can be a TV, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto.

[0043] In the embodiments of the present application, the data encoding method provided in the present application is described from the perspective of a display device, that is, the description is performed with the display device as the execution subject.

[0044] See also Figure 1 , Figure 1 1 is a flow chart of a data encoding method provided in an embodiment of the present application. The data encoding method may include at least one of the following steps (steps 110 to 140).

[0045] Step 110 , obtaining image data for inputting into a display panel, the image data comprising a plurality of sub-image data, each sub-image data being used for inputting into a row of pixel units of the display panel, and each sub-image data comprising a plurality of data combinations.

[0046] A display panel refers to a component used to display an image, which may include many pixel units, each of which may emit light, display color, or reflect light to produce an image. The type of display panel may be set according to actual conditions. For example, the display panel may be a liquid crystal panel (LCD), an organic light-emitting diode panel (OLED), a mini light-emitting diode display panel (Mini-LED), or a micro light-emitting diode display panel (Micro-LED). The embodiments of the present application are not limited thereto. The pixel units included in the display panel may exist in the form of rows and / or columns. For example, a display panel includes multiple rows of pixel units and multiple columns of pixel units, such as Figure 2 shown.

[0047] In an embodiment of the present application, the image data for inputting into the display panel includes a plurality of bits, and the bit value of each bit in the image data and the sub-image data is 0 or 1. Since the sub-image data is used to input into a row of pixel units of the display panel, the division of the sub-image data in the image data can be consistent with the division of the number of pixel unit rows in the display panel. For example, if the display panel includes L rows of pixel units, the image data can include L sub-image data, where L is a positive integer.

[0048] In each sub-image data of the image data, the embodiment of the present application sets a plurality of data combinations, and each data combination is a bit sequence in the sub-image data. Wherein, each sub-image data may include the same number of data combinations, and optionally, each sub-image data includes X data combinations, X is a positive integer, for example, X may be 10, 12 or 15. In addition, each data combination may have the same number of bits, and optionally, each data combination has Y bits, Y is a positive integer, for example, Y may be 450, 468, 486, 504, 520 or 540. In the actual application process, the number of data combinations included in the sub-image data may be determined first, and then the number of bits of each data combination may be determined based on the number of data combinations; or the number of bits of each data combination may be determined first, and then the number of data combinations included in the sub-image data may be determined based on the number of bits.

[0049] In some cases, there may be one or more empty data combinations in the sub-image data, and / or there may be one or more empty bits in the data combination. Here, empty means that the bit value on the bit is empty, so it can also be said that there may not be one or more data combinations in the sub-image data, and / or there may not be one or more bits in the data combination.

[0050] For example, it is preset that each sub-image data includes 15 data combinations, and each data combination has 540 bits. For the 966 / 960 channel in the CSPI protocol, since 966 / 960 multiplied by 8 bits is approximately 15 times of 540 bits, each data combination exists, but some bits in the last data combination do not exist, or it can be said that some empty bits exist in the last data combination; for the 726 / 720 channel in the CSPI protocol, since 726 / 720 multiplied by 8 bits is approximately 11 times of 540 bits, the last four data combinations do not exist, or it can be said that there are four empty data combinations, and in addition, some bits in the fifth-to-last data combination do not exist, or it can be said that some empty bits exist in the fifth-to-last data combination.

[0051] Step 120 , obtaining the address of specific data in each data combination of each sub-image data, where the specific data has M bits, and the bit values ​​on the M bits are all 0 or all 1, and M is an integer greater than or equal to 2.

[0052] Specific data refers to data in which the bit values ​​of M consecutive bits are the same, and the value of M can be set according to the actual situation. For example, M can be 4, 5, 6, 7, 8 or 9. Exemplarily, when M is 9, the specific data includes 000000000 and 111111111; when M is 5, the specific data includes 00000 and 11111.

[0053] The address of the specific data is used to indicate the specific position of the specific data in the data combination. For each data combination of each sub-image data, it can be queried whether the specific data exists in the data combination; when the specific data is queried, the address of the specific data is generated.

[0054] In some embodiments, each data combination includes multiple data blocks, and each data block corresponds to multiple data addresses. The address of specific data includes a data block address and an address within a data block. The data block address is the address of the data block where the specific data is located in the data combination, and the address within the data block is the address of the specific data within the data block where the specific data is located.

[0055] The data block address and the address within the data block can be represented by a bit value, the number of bits of the data block address can be determined based on the number of data blocks in the data combination, and the number of bits of the address within the data block can be determined based on the number of addresses within the data block. For example, assuming that each data combination includes 6 data blocks and each data block includes 28 addresses, since the distinction between the 6 data blocks requires 6 different values ​​and the distinction between the 28 addresses requires 28 different values, and the 6 different values ​​require at least 3 bits to indicate and the 28 different values ​​require at least 5 bits to indicate, the data block address can include 3 bits and the address within the data block can include 5 bits. Based on this, Figure 3 A possible definition method of a data block address is shown as an example. Figure 4 The following is an exemplary diagram showing a possible way to define addresses in a data block. Figure 4 In the figure, "address in data block" and "corresponding address in data block" are different ways of defining the same address. "Address in data block" adopts binary definition, and represents the address with bit value; "address corresponding to data block" adopts decimal definition, and represents the address with numerical value.

[0056] Of course, the address of specific data may also be represented in other ways. For example, the address of specific data may be determined based on the position of the first bit, the last bit, or any bit of the specific data in the data combination.

[0057] When the address of specific data is represented by a data block address and an address within a data block, for any data combination, it is possible to query whether the specific data exists in each data block of the data combination; when the specific data is found, the data block address and the address within the data block of the specific data are generated. Optionally, it is possible to query whether the specific data exists in each data block in sequence or in parallel, and after the specific data query process of all data blocks is completed, the data block address and the address within the data block of each specific data found are generated; or it is possible to query whether the specific data exists in each data block in sequence, and each time a specific data is found, the data block address and the address within the data block of the specific data are generated.

[0058] In some embodiments, the above step 120 includes the following sub-steps (steps 122 to 128 ).

[0059] Step 122, determine whether the data on the M bits corresponding to the S-th address in the K-th data block in the data combination is specific data; K is a positive integer less than or equal to P and the initial value of K is 1, P is a positive integer, S is a positive integer less than or equal to Q and the initial value of S is 1, and Q is a positive integer.

[0060] Each data combination includes P data blocks, each data block includes Q addresses, P and Q are both positive integers, for example, P is 5, 6, 7 or 8, Q is 10, 28 or 44. For any data combination, starting from the first address in the first data block of the data combination (that is, starting from K is 1 and S is 1), it is determined in turn whether the data on the M bits corresponding to each address in each data block is specific data, until the specific data query process corresponding to the last address in the last data block ends (that is, until K+1 is greater than P and S+1 is greater than Q).

[0061] For the Kth data block of the data combination, when the Sth address in the Kth data block is queried, the data on the M bits corresponding to the Sth address can be read, and then it is determined whether the data on the M bits corresponding to the Sth address is specific data. Optionally, the M bits corresponding to the address in the data block refer to the M bits starting with the bit corresponding to the address in the data block.

[0062] Since specific data refers to data in which the bit values ​​of M consecutive bits are the same, when determining whether the data on the M bits are specific data, it is possible to determine in turn whether the bit value of the current bit in the M bits is the same as the bit value of the next bit. If they are the same, the data on the M bits are specific data; if they are different, the data on the M bits are not specific data; or the bit value of the first bit in the M bits can be read first, and then it is determined in turn whether the bit values ​​of the subsequent bits in the M bits are the same as the bit value of the first bit. If they are the same, the data on the M bits is specific data; if they are different, the data on the M bits is not specific data.

[0063] Step 124: When the data on the M bits are specific data, a data block address and an address within a data block of the specific data are generated.

[0064] For the M bits corresponding to the Sth address in the Kth data block, when the data on these M bits are specific data, the data block address and the address within the data block of the specific data are generated in real time, wherein the data block address is used to indicate the Kth data block, and the address within the data block is used to indicate the Sth address in the Kth data block.

[0065] Step 126, let S be S+1, and start again from the step of determining whether the data on the M bits corresponding to the Sth address in the Kth data block in the data combination is specific data.

[0066] After the judgment in step 122, regardless of whether the data on the M bits corresponding to the Sth address are specific data, step 126 needs to be executed to continue to judge whether the data on the M bits corresponding to the next address are specific data, that is, let S be S+1, and start again from the step of judging whether the data on the M bits corresponding to the Sth address in the Kth data block in the data combination are specific data.

[0067] It should be understood that after the judgment in step 122, when the data on the M bits corresponding to the Sth address are specific data, step 124 is executed first and then step 126; when the data on the M bits corresponding to the Sth address are not specific data, step 126 is executed directly.

[0068] Step 128, when S+1 is greater than Q, set K to K+1 and S to 1, and start again from the step of determining whether the data on the M bits corresponding to the Sth address in the Kth data block in the data combination is specific data, until K+1 is greater than P.

[0069] Among them, whenever S is set to S+1 in step 126, it can be determined whether S+1 is greater than Q. If S+1 is less than or equal to Q, the addresses in the current data block have not been completely queried, and the specific data query process of the next address in the current data block is continued, that is, based on the new value of S, return to step 122 and execute again; if S+1 is greater than Q, the addresses in the current data block are all queried, and the specific data query process of the next data block is continued, that is, K is set to K+1 and S is set to 1, and based on the new value of K and the new value of S, return to step 122 and execute again.

[0070] Similarly, whenever K is set to K+1 in step 128, it can be determined whether K+1 is greater than P. If K+1 is less than or equal to P, not all data blocks included in the current data combination have been queried, and the specific data query process for the next data block of the current data combination is continued, that is, based on the new value of K and the new value of S, return to step 122 and execute again; if K+1 is greater than P, all data blocks included in the current data combination have been queried, and the specific data query process for the next data combination is continued, that is, steps 122 to 128 are executed again with the next data combination.

[0071] Step 130 , writing the address and bit value of the first specific data in the data combination into one of the plurality of preset bit combinations of the row configuration information of the sub-image data.

[0072] Each sub-image data corresponds to a line configuration information (Line Config), which is used to indicate the relevant parameters of a line of pixel units corresponding to the sub-image data in the displayed image. The embodiment of the present application adds multiple preset bit combinations in the line configuration information, and each preset bit combination corresponds to a data combination in the sub-image data.

[0073] Wherein, each preset bit combination is used to indicate the address and bit of the first specific data in the data combination corresponding to the preset bit combination. For any data combination, when there is specific data in the data combination, the address and bit value of the first specific data in the data combination are written into the preset bit combination corresponding to the data combination in the row configuration information of the sub-image data. Optionally, based on the above steps 122 to 128, in the judgment result of step 122, when it is first determined that the data on M bits in the data combination is specific data, step 124 can be executed to generate the address of the first specific data, and the address and bit value of the first specific data in the data combination are written into the preset bit combination of the row configuration information; or, after generating the addresses of all specific data in the data combination, the address and bit value of the first specific data in the data combination are written into the preset bit combination of the row configuration information.

[0074] In some embodiments, each preset bit combination includes a first bit combination, a second bit combination, and a third bit combination arranged in sequence; when the address of the specific data includes a data block address and an address within a data block, the above step 130 includes: writing the data block address of the first specific data in the data combination to the first bit combination of the preset bit combination; writing the bit value of the first specific data in the data combination to the second bit combination of the preset bit combination; writing the data block address of the first specific data in the data combination to the third bit combination of the preset bit combination.

[0075] Each bit combination has one or more bits, and the number of bits of the bit combination can be set according to actual conditions. For example, the number of bits of the first bit combination is consistent with the number of bits of the data block address of the specific data, the number of bits of the third bit combination is consistent with the number of bits of the address within the data block of the specific data, and since the bit value of the specific data has only two value conditions of 0 and 1, the number of bits of the second bit combination is 1. Assuming that the data block address of the specific data has 3 bits and the address within the data block has 5 bits, a possible bit structure of the preset bit combination of the row configuration information is as follows: Figure 5 shown.

[0076] In some embodiments, each sub-image data includes T data combinations arranged in sequence, and each row configuration information of the sub-image data includes T preset bit combinations arranged in sequence, where T is a positive integer. For example, T is 10, 12, or 15. Based on this, the above step 130 includes: writing the address and bit value of the first specific data in the Rth data combination to the Rth preset bit combination of the row configuration information of the sub-image data, where R is a positive integer less than or equal to T. In other words, the arrangement order of the multiple data combinations in the corresponding sub-image data is consistent with the arrangement order of the multiple preset bit combinations in the corresponding row configuration information.

[0077] In some embodiments, the data encoding method further includes: when there is no specific data in the Rth data combination, writing first preset invalid data into the Rth preset bit combination of the row configuration information of the sub-image data.

[0078] In some embodiments, the data encoding method further includes: when the Rth data combination does not exist, filling the second preset invalid data into the Rth preset bit position of the row configuration information of the sub-image data. For the introduction of the absence of one or some data combinations in the sub-image data, please refer to the introduction of step 110 above, which will not be repeated here.

[0079] The first preset invalid data is used to indicate that the specific data does not exist in the data combination, and the second preset invalid data is used to indicate that the data combination does not exist. Optionally, in the case where the address of the specific data includes a data block address and an address within a data block, the first preset invalid data and the second preset invalid data include a preset invalid data block address and / or an invalid address within a data block. For an introduction to the invalid data block address and the invalid address within a data block, see Figure 3 and Figure 4 .

[0080] For example, in the case where the preset bit combination includes a first bit combination, a second bit combination, and a third bit combination arranged in sequence, the invalid data block address in the first preset invalid data and the second preset invalid data is filled into the first bit combination of the preset bit combination, and the address in the invalid data block in the first preset invalid data and the second preset invalid data is filled into the third bit combination of the preset bit combination. In addition, the second bit combination of the preset bit combination can be arbitrarily filled with 0 or 1; thus, the first preset invalid data and the second preset invalid data are filled with the invalid data block address. The preset bit combination for data filling can be any of the following bit value situations: 000000000, 000011101, 000011110, 000011111, 000100000, 000111101, 000111110, 000111111, 111000000, 111011101, 111011110, 111011111, 1111000000, 111111101, 111111110, 111111111.

[0081] It should be understood that in the embodiments of the present application, the first preset invalid data and the second preset invalid data may be the same bit value or different bit value. For example, the first preset invalid data and the second preset invalid data are both 111011111; or, the first preset invalid data is 000111111, and the second preset invalid data is 111000000.

[0082] In some embodiments, the preset bit combination is a header bit combination, and the row configuration information further includes a command (CMD) bit combination and a register (Reserve) bit combination; when the sub-image data includes X data combinations, the row configuration information includes a 1T CMD bit combination, an XT Header bit combination, and a 4T Reserve bit combination.

[0083] For example, if X is 15, a possible definition of row configuration information is as follows: Figure 6 As shown, the data transmitted from the encoding chip of the display device to the decoding chip (i.e., the encoded image data) is as follows Figure 7 As shown, one line of data (i.e. the encoded sub-image data) is as follows Figure 8 As shown, and Figures 6 to 8 The meaning of each instruction in Fig. 9 As shown; In addition, Fig.10 The data transmitted from the encoding chip to the decoding chip of the display device in the related art is exemplarily shown. Based on the data encoding method provided in the embodiment of the present application, the row configuration information includes the original CMD bit combination, which is compatible with the data encoding method in the original CSPI protocol.

[0084] Step 140, write the address and bit value of the N+1th specific data in the data combination into the bit position where the Nth specific data in the data combination is located, where N is a positive integer.

[0085] For any data combination, if there are two or more specific data in the data combination, the address and bit value of the N+1th specific data in the data combination are written to the bit position where the Nth specific data in the data combination is located, where N is a positive integer. That is, the address and bit value of the second specific data in the data combination are written to the bit position where the first specific data in the data combination is located; the address and bit value of the third specific data in the data combination are written to the bit position where the second specific data in the data combination is located; and so on, each time the address and bit value of the current specific data in the data combination are written to the bit position where the previous specific data in the data combination is located; until the address and bit value of the last specific data in the data combination are written to the bit position where the second-to-last specific data in the data combination is located.

[0086] In some embodiments, the bit structure of the specific data in the data combination after being replaced (i.e., after the address and bit value are written to the bit where the specific data is located, the bit structure of the bits where the address and bit value are written) is the same as the bit structure of the preset bit combination of the row configuration information. By setting the same bit structure, it is ensured that the unified encoding specification is followed during the encoding process, thereby improving the encoding efficiency. It should be understood that in this way, the number of bits of a specific data is the same as the number of bits of a preset bit combination, that is, both have M bits.

[0087] For example, when the preset bit combination includes a first bit combination, a second bit combination, and a third bit combination arranged in sequence, the bit structure after the specific data is replaced also includes three bit combinations arranged in sequence, and when the address and the bit value are written to the bit where the specific data is located, the data block address, the bit value, and the address in the data block are written to the three bit combinations in sequence. For other descriptions of the bit structure and the number of bits of the preset bit combination, please refer to the description of the above step 130, which will not be repeated here.

[0088] In some embodiments, the data encoding method further includes: writing third preset invalid data to the bit position where the last specific data in the data combination is located, and the third preset invalid data is used to indicate the end of the encoding process of the data combination. That is to say, for any data combination, at the end of the specific data query process of the data combination, the last specific data in the data combination can be determined, and the third preset invalid data is written to the bit position where the last specific data in the data combination is located to indicate the end of the encoding process for the data combination. Optionally, in the case where the address of the specific data includes a data block address and an address within a data block, the third preset invalid data includes a preset invalid data block address and / or an invalid address within a data block. For an introduction to invalid data block addresses and invalid addresses within data blocks, please refer to Figure 3 and Figure 4 .

[0089] For example, after the bit position where the last specific data in the data combination is located is written with the third preset invalid data, the bit value may be any of the following: 000000000, 000011101, 000011110, 000011111, 000100000, 000111101, 000111110, 000111111, 111000000, 111011101, 111011110, 111011111, 111100000, 111111101, 111111110, 111111111.

[0090] The data encoding method provided in the embodiment of the present application is introduced and explained below with a specific example. Fig.11 A data combination is shown as an example. The data combination has 540 bits. The data combination is divided into 6 data blocks, and each data block has 90 bits. For each data block, Fig.12 As shown, starting from the first bit of each data block, the first bit is marked as address 1, and then an address is marked every two bits, so 28 addresses can be marked for each data block.

[0091] During the data encoding process, the display device starts from the first address (address 1) in the first data block (1st Block (90bit)), and determines whether the data on the 9 bits (1st search 9bit) starting with the bit where address 1 is located is specific data (whether the bit values ​​are all 0 or all 1); regardless of whether it is specific data or not, it is necessary to continue to determine whether the data on the 9 bits (2nd search 9bit) starting with the bit where address 2 is located is specific data; and so on, until it is determined whether the data on the 9 bits (28th search 9bit) starting with the last address in the last data block (6th Block (90bit)) is specific data.

[0092] In the above-mentioned specific data query process, when the data on the 9 bits is determined to be specific data for the first time, the data block address, bit value and data block address of the specific data (the first specific data) are filled into the header bit combination of the row configuration information.

[0093] like Fig.11 As shown, the specific data is determined for the first time on the 9 bits (4th search 9bit) starting with the bit at the 4th address in the first data block, and the specific data 000000000 is the first specific data; the data block address of the first specific data is 001, which is written to the first bit combination (d0d1d2) of the header bit combination; the bit value of the first specific data is 0, which is written to the second bit combination (d3) of the header bit combination; the data block address of the first specific data is 00100, which is written to the third bit combination (d4d5d6d7d8) of the header bit combination; thus, the bit value on the header bit combination is 001000100.

[0094] In the above-mentioned specific data query process, each time the next specific data is queried, the address and bit value of the next specific data are written to the bit position where the current specific data is located, and the bit structure after the specific data is replaced is the same as the bit structure of the header bit combination, so that the address and bit value of each specific data can be indicated by the bit position where the previous specific data replaced is located.

[0095] like Fig.11As shown, the specific data is determined for the second time on the 9 bits (28th search 9bit) with the last address (data address 28) in the last data block (6th Block (90bit)) as the starting bit, and the specific data 111111111 is the second specific data; the data block address of the second specific data is 110, the bit value is 1, and the address in the data block is 11100, and the address and bit value of the second specific data are written to the bit position where the first specific data is located; thus, the bit value of the bit position where the first specific data to be replaced is 110111100.

[0096] After the above-mentioned specific data query is completed, the last specific data in the data combination can be determined, and the third preset invalid data is written to the bit position where the last specific data is located to indicate that the encoding process for the data combination is completed. The third preset invalid data includes a preset invalid data block address and / or an address within an invalid data block.

[0097] like Fig.11 As shown, the specific data is determined for the last time on the 9 bits (28th search 9bit) starting from the last address (data address 28) in the last data block (6th Block (90bit)), and the specific data 111111111 is the last specific data (also the second specific data in the data combination); the third preset invalid data is written to the bit where the last specific data is located. Assuming that 000 is a possible invalid data block address and 11101 is a possible invalid data block address, the third preset invalid data can be 000111101; thus, the bit value of the bit where the last specific data to be replaced is 000111101.

[0098] In summary, the embodiments of the present application replace multiple consecutive bits of data with the same bit value in the image data with the address and bit value of another multiple consecutive bits of data with the same bit value during the encoding process, thereby breaking the original situation where multiple logical 1s or multiple logical 0s appear continuously in the image data, achieving DC balance, and effectively avoiding bit errors caused by DC offset during the decoding process.

[0099] Furthermore, the embodiment of the present application replaces the data with the same continuous multi-bit value, and does not add new bits on the basis of the original bits of the image data, but sets row configuration information for each sub-image data of the image data, and writes the address and bit value of the first data with the same continuous multi-bit value in each data combination of the sub-image data of the image data to the corresponding preset bit combination of the row configuration information of the sub-image data. Since the number of bits of the image data is much larger than the number of bits of the row configuration information, compared with the related art of inserting a large number of redundant bits in the image data, the embodiment of the present application only needs to configure a small number of additional bits, which reduces the additional overhead of data transmission and avoids excessive power consumption at the transmitting end and the receiving end. For example, in the 8b / 9b encoding technology, 9 bits of bandwidth are required for each 8-bit data transmitted, and the additional overhead is 11.1%; while the embodiment of the present application requires an additional 9 bits as the preset bit combination of the row configuration information for each 540-bit data transmitted, and the additional overhead is 1.6%.

[0100] In addition, through the technical solution of the embodiment of the present application, the addresses and bit values ​​of the original data with the same multiple bit values ​​in the image data have corresponding indications after being encoded, so that in the decoding process, based on the preset bit combination of the row configuration information, or based on the replaced data in the image data, the addresses and bit values ​​of the original data with the same multiple bit values ​​in the image data can be obtained, and the replaced data with the same multiple bit values ​​in the image data can be restored, ensuring that the encoded image data can be correctly decoded. It can be seen that the embodiment of the present application not only achieves DC balance and reduces additional overhead, but also ensures the reliability of the encoding and decoding process.

[0101] See also Fig.13 , Fig.13 2 is a flow chart of a data decoding method provided in an embodiment of the present application. The data decoding method may include at least one of the following steps (steps 210 to 230).

[0102] Step 210 , receiving encoded image data, the image data including a plurality of sub-image data, each sub-image data being used to be input to a row of pixel units of a display panel, and each sub-image data including a plurality of data combinations.

[0103] Step 220, based on the data written on at least one preset bit combination of the row configuration information of the sub-image data, restore the first replacement data in at least one data combination to specific data, the specific data has M bits, and the bit values ​​on the M bits are all 0 or all 1, and M is an integer greater than or equal to 2.

[0104] Step 230, according to the Nth replacement data in the data combination, restore the N+1th replacement data in the data combination to specific data, the Nth replacement data includes the address of the N+1th replacement data and the restored bit value, and N is a positive integer.

[0105] Among them, replacement data refers to data obtained by replacing specific data in a data combination during encoding, that is, during encoding, after the address and bit value of the N+1th specific data in the data combination is written into the bit position where the Nth specific data in the data combination is located, the bit position where the original Nth specific data is located is replaced by the Nth replacement data.

[0106] It should be understood that the address of the Nth replacement data and the address of the Nth specific data are the same, and the bit value of the Nth replacement data after restoration and the bit value of the Nth specific data are also the same. Since the address and bit value of the first specific data in each data combination are written to each preset bit combination of the row configuration information of the sub-image data during encoding, the address and the restored bit value of the first replacement data in at least one data combination can be obtained according to the data written to at least one preset bit combination of the row configuration information of the sub-image data during decoding, and the first replacement data can be restored to the first specific data. In addition, since the address and the bit value of the N+1th specific data in the data combination are written to the bit position where the Nth specific data is located in the data combination during encoding, the address and the restored bit value of the N+1th replacement data in the data combination can be obtained according to the Nth replacement data in the data combination during decoding, and the N+1th replacement data can be restored to the N+1th specific data.

[0107] In some embodiments, the sub-image data includes T data combinations arranged in sequence, and the row configuration information includes T preset bit combinations arranged in sequence, where T is a positive integer; the above step 220 includes: according to the data written on the Rth preset bit combination of the row configuration information of the sub-image data, the first replacement data in the Rth data combination of the sub-image data is restored to the specific data, where R is a positive integer less than or equal to T. That is, according to the data written on the Rth preset bit combination of the row configuration information of the sub-image data, the address and the restored bit value of the first replacement data in the Rth data combination of the sub-image data can be obtained, and the first replacement data in the Rth data combination can be restored to the first specific data.

[0108] In some embodiments, when there is no replacement data in the Rth data combination of the sub-image data, the data written on the Rth preset bit combination of the row configuration information of the sub-image data is the first preset invalid data.

[0109] In some embodiments, when the Rth data combination does not exist in the sub-image data, the data written on the Rth preset bit combination of the row configuration information of the sub-image data is the second preset invalid data.

[0110] In some embodiments, the data written on the Rth preset bit combination of the row configuration information of the sub-image data is the first preset invalid data; when the first preset invalid data is read from the Rth preset bit combination of the row configuration information of the sub-image data, the decoding process of the Rth data combination of the sub-image data is completed.

[0111] In some embodiments, the data written on the Rth preset bit combination of the row configuration information of the sub-image data is the second preset invalid data; when the second preset invalid data is read from the Rth preset bit combination of the row configuration information of the sub-image data, the decoding process of the Rth data combination of the sub-image data is completed.

[0112] In some embodiments, the last replacement data in the data combination is the third preset invalid data; when the third preset invalid data is read from the data combination, the decoding process of the data combination is completed. That is, during encoding, the third preset invalid data is written to the bit where the last specific data in the data combination is located, so that the last replacement data in the encoded data combination is the third preset invalid data, and during decoding, when the third preset invalid data is read from the encoded data combination, the replacement data is determined to be the last replacement data, and the decoding process of the data combination is completed.

[0113] In some embodiments, the data combination includes multiple data blocks, each data block corresponds to multiple data addresses; the address of the specific data includes a data block address and an intra-data block address, the data block address is the address of the data block where the specific data is located in the data combination, and the intra-data block address is the address of the specific data in the data block. It should be understood that the address of the replacement data also includes a data block address and an intra-data block address, the data block address is the address of the data block where the replacement data is located in the data combination, and the intra-data block address is the address of the replacement data in the data block.

[0114] In some embodiments, the bit structure of the replacement data is the same as the bit structure of the preset bit combination of the row configuration information.

[0115] In some embodiments, the bit structure of each preset bit combination of row configuration information includes a first bit combination, a second bit combination and a third bit combination arranged in sequence; wherein the data written on the first bit combination of the preset bit combination is the data block address of the first replacement data in the encoded data combination, or it can be said that the data written on the first bit combination is the data block address of the first specific data in the data combination before encoding; the data written on the second bit combination of the preset bit combination is the bit value after restoration of the first replacement data in the encoded data combination, or it can be said that the data written on the second bit combination is the bit value of the first specific data in the data combination before encoding; the data written on the third bit combination of the preset bit combination is the data block address of the first replacement data in the encoded data combination, or it can be said that the data written on the third bit combination is the data block address of the first specific data in the data combination before encoding.

[0116] In some embodiments, the bit structure of the replacement data includes a first bit combination, a second bit combination, and a third bit combination arranged in sequence; wherein the data written on the first bit combination of the Nth replacement data in the encoded data combination is the data block address of the N+1th replacement data in the encoded data combination, or it can be said that the data written on the first bit combination is the data block address of the N+1th specific data in the data combination before encoding; the data written on the second bit combination of the Nth replacement data in the encoded data combination is the restored bit value of the N+1th replacement data in the encoded data combination, or it can be said that the data written on the second bit combination is the bit value of the N+1th specific data in the data combination before encoding; the data written on the third bit combination of the Nth replacement data in the encoded data combination is the data block address of the N+1th replacement data in the encoded data combination, or it can be said that the data written on the third bit combination is the data block address of the N+1th specific data in the data combination before encoding.

[0117] It should be understood that the explanation of terms, specific implementation methods and corresponding beneficial effects in the data decoding method provided in the embodiments of the present application can be referred to the introduction and description of the data encoding method provided in the embodiments of the present application, and will not be repeated here.

[0118] In order to facilitate better implementation of the data encoding method provided in the embodiments of the present application, the embodiments of the present application also provide a coding chip based on the above-mentioned data encoding method, and the coding chip includes program code, and the program code can be used to execute the above-mentioned data encoding method, wherein the meaning of the nouns is the same as in the above-mentioned data encoding method, and the specific implementation details can refer to the description in the method embodiment.

[0119] For example, a coding chip such as Fig.14 As shown, the program code in the encoding chip can be located as follows Fig.14 In the modules shown, at this time, the encoding chip may include: a data acquisition module 1410 , an information acquisition module 1420 and a data writing module 1430 .

[0120] The data acquisition module 1410 is used to acquire image data for inputting into the display panel, the image data includes a plurality of sub-image data, each sub-image data is used for inputting into a row of pixel units of the display panel, and each sub-image data includes a plurality of data combinations.

[0121] The information acquisition module 1420 is used to obtain the address of specific data in each data combination of each sub-image data, where the specific data has M bits, and the bit values ​​on the M bits are all 0 or all 1, and M is an integer greater than or equal to 2.

[0122] The data writing module 1430 is used to write the address and bit value of the first specific data in the data combination to one of the multiple preset bit combinations of the row configuration information of the sub-image data. The data writing module 1430 is also used to write the address and bit value of the N+1th specific data in the data combination to the bit where the Nth specific data in the data combination is located, where N is a positive integer.

[0123] In some embodiments, the data combination includes multiple data blocks, and the address of specific data includes a data block address and an address within the data block. The data block address is the address of the data block where the specific data is located in the data combination, and the address within the data block is the address of the specific data within the data block.

[0124] In some embodiments, the above-mentioned information acquisition module 1420 is also used to: determine whether the data on the M bits corresponding to the S-th address in the K-th data block in the data combination is specific data, K is a positive integer less than or equal to P and the initial value of K is 1, P is a positive integer, S is a positive integer less than or equal to Q and the initial value of S is 1, and Q is a positive integer; when the data on the M bits are specific data, generate the data block address and the address within the data block of the specific data; let S be S+1, and start again from the step of determining whether the data on the M bits corresponding to the S-th address in the K-th data block in the data combination is specific data; when S+1 is greater than Q, let K be K+1 and let S be 1, and start again from the step of determining whether the data on the M bits corresponding to the S-th address in the K-th data block in the data combination is specific data, until K+1 is greater than P.

[0125] In some embodiments, each preset bit combination includes a first bit combination, a second bit combination and a third bit combination arranged in sequence; the above-mentioned data writing module 1430 is also used to: write the data block address of the first specific data in the data combination to the first bit combination of the preset bit combination; write the bit value of the first specific data in the data combination to the second bit combination of the preset bit combination; write the data block address of the first specific data in the data combination to the third bit combination of the preset bit combination.

[0126] In some embodiments, the sub-image data includes T data combinations arranged in sequence, and the row configuration information includes T preset bit combinations arranged in sequence, where T is a positive integer; the above-mentioned data writing module 1430 is also used to: write the address and bit value of the first specific data in the Rth data combination to the Rth preset bit combination of the row configuration information of the sub-image data, where R is a positive integer less than or equal to T.

[0127] In some embodiments, when specific data does not exist in the Rth data combination, the data writing module 1430 is further configured to write the first preset invalid data into the Rth preset bit combination of the row configuration information of the sub-image data.

[0128] In some embodiments, when the Rth data combination does not exist, the data writing module 1430 is further configured to write the second preset invalid data into the Rth preset bit combination of the row configuration information of the sub-image data.

[0129] In some embodiments, the data writing module 1430 is further configured to write the third preset invalid data into the bit position where the last specific data in the data combination is located.

[0130] It should be understood that, in specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.

[0131] In order to facilitate better implementation of the data decoding method provided in the embodiments of the present application, the embodiments of the present application also provide a decoding chip based on the above-mentioned data decoding method, and the decoding chip includes program code, which can be used to execute the above-mentioned data decoding method, wherein the meaning of the nouns is the same as in the above-mentioned data decoding method, and the specific implementation details can refer to the description in the method embodiment.

[0132] For example, a decoding chip such as Fig.15 As shown, the program code in the decoding chip can be located as follows Fig.15 In the modules shown, at this time, the decoding chip may include a data receiving module 1510 and a data restoring module 1520 .

[0133] The data receiving module 1510 is used to receive the encoded image data, where the image data includes a plurality of sub-image data, each of which is used to be input to a row of pixel units of the display panel, and each of which includes a plurality of data combinations.

[0134] The data restoration module 1520 is used to restore the first replacement data in at least one data combination to specific data according to the data written on at least one preset bit combination of the row configuration information of the sub-image data, where the specific data has M bits, and the bit values ​​on the M bits are all 0 or all 1, and M is an integer greater than or equal to 2. The data restoration module 1520 is also used to restore the N+1th replacement data in the data combination to specific data according to the Nth replacement data in the data combination, where the Nth replacement data includes the address of the N+1th replacement data and the restored bit value, and N is a positive integer.

[0135] It should be understood that, in specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.

[0136] Those skilled in the art will appreciate that the above program code may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0137] To this end, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be loaded by a processor to execute steps in any data encoding method or data decoding method provided in the embodiment of the present application.

[0138] For example, the program code may execute the following steps:

[0139] Acquire image data for inputting to a display panel, the image data comprising a plurality of sub-image data, each sub-image data being used for inputting to a row of pixel units of the display panel, and each sub-image data comprising a plurality of data combinations;

[0140] Obtaining the address of specific data in each data combination of each sub-image data, where the specific data has M bits, and the bit values ​​on the M bits are all 0 or all 1, and M is an integer greater than or equal to 2;

[0141] Writing the address and bit value of the first specific data in the data combination into one of the plurality of preset bit combinations of the row configuration information of the sub-image data;

[0142] The address and bit value of the N+1th specific data in the data combination are written into the bit position where the Nth specific data in the data combination is located, where N is a positive integer.

[0143] For another example, the program code may execute the following steps:

[0144] receiving encoded image data, wherein the image data includes a plurality of sub-image data, each of the sub-image data is used to be input to a row of pixel units of a display panel, and each of the sub-image data includes a plurality of data combinations;

[0145] According to the data written on at least one preset bit combination of the row configuration information of the sub-image data, restore the first replacement data in at least one of the data combinations to specific data, wherein the specific data has M bits, and the bit values ​​of the M bits are all 0 or all 1, and M is an integer greater than or equal to 2;

[0146] According to the Nth replacement data in the data combination, the N+1th replacement data in the data combination is restored to the specific data, the Nth replacement data includes the address of the N+1th replacement data and the restored bit value, and N is a positive integer.

[0147] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0148] Since the program code stored in the computer-readable storage medium can execute the steps in any data encoding method or the steps in the data decoding method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data encoding method or the beneficial effects that can be achieved by the data decoding method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be elaborated here.

[0149] The embodiment of the present application also provides a display device, such as Fig.16 As shown, it shows a schematic diagram of the structure of the display device involved in the embodiment of the present application, specifically:

[0150] The display device includes a display panel, an encoding chip and a decoding chip. The encoding chip is used to execute the steps in the above-mentioned data encoding method embodiment and output the encoded image data to the decoding chip. The decoding chip is used to execute the steps in the above-mentioned data decoding method embodiment for the encoded image data and output the decoded image data to the display panel. The display panel is used to display an image according to the decoded image data output by the decoding chip.

[0151] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the data encoding method embodiment and the data decoding method embodiment above, which will not be elaborated here.

[0152] The above is a detailed introduction to a data encoding method and chip, a data decoding method and chip, and a display device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data encoding method, It is characterized in that include: Acquire image data for inputting to a display panel, the image data comprising a plurality of sub-image data, each of the sub-image data being used for inputting to a row of pixel units of the display panel, and each of the sub-image data comprising a plurality of data combinations; Acquire the address of specific data in each of the data combinations of each of the sub-image data, where the specific data has M bits, and the bit values ​​of the M bits are all 0 or all 1, and M is an integer greater than or equal to 2; Writing the address and bit value of the first specific data in the data combination into one of the plurality of preset bit combinations of the row configuration information of the sub-image data; Write the address and bit value of the N+1th specific data in the data combination into the bit position where the Nth specific data in the data combination is located, where N is a positive integer; The data combination includes a plurality of data blocks, the address of the specific data includes a data block address and an address within a data block, the data block address is the address of the data block where the specific data is located in the data combination, and the address within the data block is the address of the specific data within the data block where the specific data is located; the step of acquiring the address of the specific data in each of the data combinations of each of the sub-image data includes: Determine whether the data on the M bits corresponding to the S-th address in the K-th data block in the data combination is the specific data, where K is a positive integer less than or equal to P and the initial value of K is 1, P is a positive integer, S is a positive integer less than or equal to Q and the initial value of S is 1, and Q is a positive integer; When the data on the M bits are the specific data, generating the data block address and the data block internal address of the specific data; Let S be S+1, and start again from the step of determining whether the data on the M bits corresponding to the S-th address in the K-th data block in the data combination is the specific data; When S+1 is greater than Q, let K be K+1 and S be 1, and start again from the step of determining whether the data on the M bits corresponding to the Sth address in the Kth data block in the data combination is the specific data, until K+1 is greater than P.

2. The method according to claim 1, It is characterized in that Each of the preset bit combinations includes a first bit combination, a second bit combination and a third bit combination arranged in sequence; The step of writing the address and bit value of the first specific data in the data combination into one of the plurality of preset bit combinations of the row configuration information of the sub-image data comprises: Writing the data block address of the first specific data in the data combination into the first bit combination of the preset bit combination; Writing the bit value of the first specific data in the data combination to the second bit combination of the preset bit combination; The data block address of the first specific data in the data combination is written to the third bit combination of the preset bit combination.

3. The method according to claim 1, It is characterized in that The sub-image data includes T data combinations arranged in sequence, and the row configuration information includes T preset bit combinations arranged in sequence, where T is a positive integer; The step of writing the address and bit value of the first specific data in the data combination into one of the plurality of preset bit combinations of the row configuration information of the sub-image data comprises: The address and bit value of the first specific data in the Rth data combination are written to the Rth preset bit combination of the row configuration information of the sub-image data, where R is a positive integer less than or equal to T.

4. The method according to claim 3, It is characterized in that The method further comprises: When the specific data does not exist in the Rth data combination, the first preset invalid data is written into the Rth preset bit combination of the row configuration information of the sub-image data.

5. The method according to claim 3, It is characterized in that The method further comprises: When the Rth data combination does not exist, the second preset invalid data is written into the Rth preset bit combination of the row configuration information of the sub-image data.

6. The method according to claim 1, It is characterized in that The method further comprises: The third preset invalid data is written into the bit position where the last specific data in the data combination is located.

7. A data decoding method, It is characterized in that include: receiving encoded image data, the image data comprising a plurality of sub-image data, each of the sub-image data being used to be input to a row of pixel units of a display panel, and each of the sub-image data comprising a plurality of data combinations; the encoded image data being obtained according to the data encoding method according to claim 1; According to the data written on at least one preset bit combination of the row configuration information of the sub-image data, restore the first replacement data in at least one of the data combinations to specific data, wherein the specific data has M bits, and the bit values ​​of the M bits are all 0 or all 1, and M is an integer greater than or equal to 2; According to the Nth replacement data in the data combination, the N+1th replacement data in the data combination is restored to the specific data, the Nth replacement data includes the address of the N+1th replacement data and the restored bit value, and N is a positive integer.

8. A display device, It is characterized in that The invention comprises a display panel, an encoding chip and a decoding chip, wherein the encoding chip is used to execute the data encoding method as described in any one of claims 1 to 6 for image data, and output the encoded image data to the decoding chip, the decoding chip is used to execute the data decoding method as described in claim 7 for the encoded image data, and output the decoded image data to the display panel, and the display panel is used to display an image according to the decoded image data output by the decoding chip.