The present disclosure relates to data processing and, more particularly, to a data processing method, a data sending end (“data sending terminal” or “data transmitter”), a data receiving end (“data receiving terminal” or “data receiver”), and a communication system.
Display Serial Interface (DSI) is a serial interface for transmitting display data defined by the MIPI Alliance, and is widely used in image display devices with LCD screens, such as smartphones, remote controllers for unmanned aerial vehicles, and etc. The data formats that DSI supports include: YUV and RGB. However, in addition to data in the above formats, data in ARGB format sometimes needs to be transmitted by a DSI in actual applications. Since DSI does not support the transmission of the data in ARGB format, another interface different from DSI needs to be used to transmit the data in ARGB format when needed. Therefore, in order to transmit both data in YUV and RGB format and data in ARGB format, the data sending terminal and the data receiving terminal each include two kinds of interface, which makes the structures of the data sending terminal and the data receiving terminal relatively complex.
In accordance with the disclosure, there is provided a data processing method including mapping original data in ARGB format into mapped data in RGB format; and sending the mapped data to a data receiving terminal through a first display serial interface (DSI) for the data receiving terminal to receive the mapped data through a second DSI and to inversely map the mapped data to obtain the original data.
Also in accordance with the disclosure, there is provided a data processing method including receiving mapped data in RGB format sent by a data sending terminal through a first DSI of the data sending terminal. The mapped data is received through a second DSI of a data receiving terminal. The method further includes inversely mapping the mapped data into original data in ARGB format.
Also in accordance with the disclosure, there is provided a data sending terminal including a first DSI, and a processor coupled to the first SDI and configured to map original data in ARGB format into mapped data in RGB format and send the mapped data to a data receiving terminal through the first DSI for the data receiving terminal to receive the mapped data through a second DSI and to inversely map the mapped data to obtain the original data.
Also in accordance with the disclosure, there is provided a data receiving terminal coupled to a data sending terminal including a first DSI. The data receiving terminal includes a second DSI, and a processor coupled to the second DSI and configured to receive, through the second DSI, mapped data in RGB format sent by the data sending terminal through the first DSI of the data sending terminal, and inversely map the mapped data into original data in ARGB format.
Also in accordance with the disclosure, there is provided a communication system including the above data sending terminal and the above data receiving terminal.
Embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and for the same or similar parts among various embodiments, reference can be made to each other.
When a display serial interface (DSI) link transmits data in RGB format (also referred to as “RGB format data” or simply “RGB data,” where R, G, and B stand for red, green, and blue, respectively), 3 bytes (24 bits) are transmitted in one clock cycle. However, data in ARGB format (also referred to as “ARGB format data” or “ARGB data,” where A stands for alpha) includes 4 bytes (a total of 32 bits) in one clock cycle, and hence the DSI link cannot be used to transmit ARGB format data. Thus, in the embodiment of the present disclosure, data in ARGB format is converted into data conforming to RGB format.
At S12, the data sending terminal sends the mapped RGB format data to the data receiving terminal through a DSI.
The data sending terminal and the data receiving terminal communicate data in RGB format through DSIs. Hereinafter, the DSI at the data sending terminal is referred to as a first DSI, the DSI at the data receiving terminal is referred to as a second DSI, and a DSI link is formed between between the first DSI and the second DSI.
At S13, after the data receiving terminal receives the RGB format data through the DSI, the data receiving terminal inversely maps the received RGB format data into ARGB format data.
In order to restore the RGB data to the ARGB format data, the process of inversely mapping the RGB format data to the ARGB format data by the data receiving terminal keeps inversely consistent with the process of mapping the ARGB format data to the RGB format data by the data sending terminal.
Before the transmission of the data in ARGB format, the data sending terminal and data receiving terminal can negotiate to determine how the data sending terminal maps the ARGB format data to RGB format data, so that the process of inversely mapping the RGB format data to the ARGB format data by the data receiving terminal can be inversely consistent with the process of mapping the ARGB format data to the RGB format data by the data sending terminal.
In the embodiments of the present disclosure, the data sending terminal and the data receiving terminal may be two independent electronic devices, or two chips that communicate with each other in an electronic device, for example, two cascaded Systems-on-Chip (SoCs) in an electronic device.
In the data processing method provided in this disclosure, when a data sending terminal needs to send data in an ARGB format, the data sending terminal maps the data in ARGB format into the data in RGB format, and then sends the mapped data in RGB format through the first DSI. After the data receiving terminal receives the data in RGB format through the second DSI, the data receiving terminal restores the data in RGB format to data in ARGB format. As such, transmission of data in ARGB format through the DSI link is realized. Therefore, the number of interfaces used for sending image display data between the data receiving terminal and the data sending terminal is reduced, and the structures of the data sending terminal and the data receiving terminal are simplified. As a result, more functions can be developed at the data sending terminal and the data receiving terminal.
In some embodiments, mapping data in ARGB format to data in RGB format can include converting every 3 pieces of data in ARGB format into 4 pieces of data in RGB format.
For example, 3 pieces of data in ARGB format include a total of 12 bytes, which can be permutated into 4 pieces of data including three bytes for each. Table 1 shows 24 examples of converting 3 pieces of ARGB format data into 4 pieces of RGB format data. The methods of converting 3 pieces of ARGB format data into 4 pieces of RGB format data are not limited to the 24 examples listed in Table 1. There are more based on the permutations of 12 bytes, which will not be listed one by one in this disclosure.
In some embodiments, at the end of the transmission of the data in ARGB format, if the number of remaining pieces of untransmitted ARGB format data is s and s is less than 3, the data sending terminal will obtain k pieces of ARGB format data (padding ARGB data) each having a specific value, and combine the k pieces of ARGB format data with the remaining s pieces of ARGB format data, resulting in 3 pieces of ARGB format data. In another word, k+s=3 (k and s are both positive integers smaller than 3). Then these 3 pieces of data in ARGB format will be converted into 4 pieces of data in RGB format.
Correspondingly, after the data receiving terminal receives the last 4 pieces of RGB format data, and if the ARGB format data obtained from the last 4 pieces of RGB format data have specific value, the ARGB format data with the specific value will be deleted (discarded).
In some embodiments, the data in ARGB format with specific value can be data in ARGB format with a value of zero.
In some embodiments, when the data sending terminal forms 3 pieces of ARGB format data by combining k pieces of ARGB format data with specific value and the remaining s pieces of ARGB format data, and converts these 3 pieces of ARGB format data into 4 pieces of RGB format data, the above k pieces of ARGB format data with specific value can be used as the k pieces of ARGB format data at the tail of the formed 3 pieces of ARGB format data. Then the formed 3 pieces of ARGB format data can be converted into the 4 pieces of RGB format data.
For example, it is assumed that the ARGB format data with a specific value is ARGB0. At the end of the transmission, there remain 2 pieces of data in ARGB format, which are ARGB1 and ARGB2. During the transmission of the ARGB format data stream, ARGB1 is in front of ARGB2, which means that ARGB1 will be first transmitted to the mapping module (the mapping module is configured to map ARGB format data to RGB format data), and then ARGB2 will be transmitted to the above mapping module afterwards. Therefore, when ARGB0, ARGB1, and ARGB2 need to be mapped to data in RGB format, ARGB1 will be transmitted to the above mapping module first, and then ARGB2 will be transmitted to the above mapping module, and at last ARGB0 will be transmitted to the above mapping module.
Correspondingly, after the data receiving terminal receives the last 4 pieces of RGB format data, and if the k pieces of ARGB format data at the tail of the converted 3 pieces of ARGB format data have specific value, the k pieces of ARGB format data having the specific value will be deleted (discarded).
The k pieces of ARGB format data having the specific value at the tail of the 3 pieces of ARGB format data include a last one of the 3 pieces of ARGB format data having the specific value or the last two of the 3 pieces of ARGB format data having the specific value.
As shown in
At S22, the RGB format data is sent to a data receiving terminal through the first DSI. The data receiving terminal receives the data in the RGB format through the second DSI, and then inversely maps the received data in RGB format into data in ARGB format.
The process of inversely mapping the RGB format data to the ARGB format data by the data receiving terminal is inversely consistent with the process of mapping the ARGB format data to the RGB format data by the data sending terminal, so that the RGB format data can be restored to the ARGB format data.
In the embodiments of the present disclosure, the data sending terminal and the data receiving terminal may be two independent electronic devices, or two chips that communicate with each other in an electronic device, for example, two cascaded Systems-on-Chip (SoCs) in an electronic device.
In the data processing method provided in this disclosure, when a data sending terminal needs to send data in an ARGB format, the data sending terminal maps the data in ARGB format into the data in RGB format, and then sends the mapped data in RGB format through the first DSI. After the data receiving terminal receives the data in RGB format through the second DSI, the data receiving terminal restores the data in RGB format to data in ARGB format. As such, transmission of data in ARGB format through the DSI link is realized. Therefore, the number of interfaces used for sending image display data between the data receiving terminal and the data sending terminal is reduced, and the structures of the data sending terminal and the data receiving terminal are simplified. As a result, more functions can be developed at the data sending terminal and the data receiving terminal.
In some embodiments, mapping data in ARGB format to data in RGB format can include converting every 3 pieces of data in ARGB format into 4 pieces of data in RGB format.
In some embodiments, if the number of pieces of ARGB format data is s and s is less than 3, k pieces of ARGB format data each having specific value will be obtained. The k pieces of ARGB format data and the above s pieces of ARGB format data will be converted into 4 pieces of data in RGB format, where k+s=3 (k and s are both positive integers smaller than 3).
In some embodiments, the data in ARGB format with specific value can be data in ARGB format with a value of zero.
In some embodiments, 3 pieces of ARGB format data are formed by combining k pieces of ARGB format data with specific value and the remaining s pieces of ARGB format data. When these 3 pieces of ARGB format data are converted into 4 pieces of RGB format data, the above k pieces of ARGB format data with specific value can be used as the k pieces of ARGB format data at the tail of the formed 3 pieces of ARGB format data. Then the formed 3 pieces of ARGB format data can be converted into 4 pieces of RGB format data.
As shown in
At S32, data in RGB format is inversely mapped to data in ARGB format.
The process of inversely mapping the RGB format data to the ARGB format data by the data receiving terminal is inversely consistent with the process of mapping the ARGB format data to the RGB format data by the data sending terminal, so that the RGB format data can be restored to the ARGB format data.
In the embodiments of the present disclosure, the data sending terminal and the data receiving terminal may be two independent electronic devices, or two chips that communicate with each other in an electronic device, for example, two cascaded Systems-on-Chip (SoCs) in an electronic device.
In the data processing method provided in this disclosure, when a data sending terminal needs to send data in an ARGB format, the data sending terminal maps the data in ARGB format into the data in RGB format, and then sends the mapped data in RGB format through the first DSI. After the data receiving terminal receives the data in RGB format through the second DSI, the data receiving terminal restores the data in RGB format to data in ARGB format. As such, transmission of data in ARGB format through the DSI link is realized. Therefore, the number of interfaces used for sending image display data between the data receiving terminal and the data sending terminal is reduced, and the structures of the data sending terminal and the data receiving terminal are simplified. As a result, more functions can be developed at the data sending terminal and the data receiving terminal.
In some embodiments, inversely mapping data in RGB format to data in ARGB format can include converting every 4 pieces of data in RGB format into 3 pieces of data in ARGB format.
In some embodiments, if the ARGB format data obtained from the last 4 pieces of RGB format data have specific value, the ARGB format data with the specific value will be deleted (discarded).
In some embodiments, the data in ARGB format with specific value include data in ARGB format with a value of zero.
In some embodiments, after receiving the last 4 pieces of RGB format data, and if the k pieces of ARGB format data at the tail of the converted 3 pieces of ARGB format data have specific value, the k pieces of ARGB format data having the specific value will be deleted (discarded), where k is less than 3.
The k pieces of ARGB format data having specific value at the tail of the 3 pieces of ARGB format data include the last one of the 3 pieces of ARGB format data having the specific value or the last two of the 3 pieces of ARGB format data having the specific value.
Corresponding to the method embodiments, the present disclosure further provides a data sending terminal.
The first processor 41 is configured to map the data in ARGB format to data in RGB format, and send the mapped data in RGB format to the data receiving terminal through the first DSI 42. The data receiving terminal is configured to receive the data in RGB format through the second DSI and inversely map the received data in RGB format to data in ARGB format.
The process of inversely mapping the RGB format data to the ARGB format data by the data receiving terminal is inversely consistent with the process of mapping the ARGB format data to the RGB format data by the data sending terminal, so that the RGB format data can be restored to the ARGB format data.
In the embodiments of the present disclosure, the data sending terminal and the data receiving terminal may be two independent electronic devices, or two chips that communicate with each other in an electronic device, for example, two cascaded Systems-on-Chip (SoCs) in an electronic device.
When a data sending terminal provided in this disclosure needs to send data in an ARGB format, the data sending terminal maps the data in ARGB format into data in RGB format, and then sends the mapped data in RGB format through the first DSI. After the data receiving terminal receives the data in RGB format through the second DSI, the data receiving terminal restores the data in RGB format to data in ARGB format. As such, transmission of data in ARGB format through the DSI link is realized. Therefore, the number of interfaces used for sending image display data between the data receiving terminal and the data sending terminal is reduced, and the structures of the data sending terminal and the data receiving terminal are simplified. As a result, more functions can be developed at the data sending terminal and the data receiving terminal.
In some embodiments, the first processor 41 is further configured to, when mapping the data in ARGB format to data in RGB format, convert every 3 pieces of data in ARGB format into 4 pieces of data in RGB format.
In some embodiments, if the number of piece of ARGB format data is s and s is less than 3, the first processor 41 obtains k pieces of ARGB format data each having specific value and converts the k pieces of ARGB format data and the above s pieces of ARGB format data into 4 pieces of data in RGB format, where k+s=3 (k and s are both positive integers smaller than 3).
In some embodiments, the above data in ARGB format with specific value can be data in ARGB format with a value of zero.
In some embodiments, the first processor 41 arranges the k pieces of ARGB format data with specific value as k pieces of data at the tail of the formed 3 pieces of ARGB format data, and converts the formed 3 pieces of ARGB format data into 4 pieces of RGB format data.
Corresponding to the method embodiments, the present disclosure further provides a data receiving terminal.
The second processor 51 is configured to receive the data in RGB format sent by the data sending terminal through the second DSI 52 and inversely map the received data in RGB format to data in ARGB format. The data in RGB format is obtained by mapping the data in ARGB format by the data sending terminal.
The process of inversely mapping the RGB format data to the ARGB format data by the data receiving terminal is inversely consistent with the process of mapping the ARGB format data to the RGB format data by the data sending terminal, so that the RGB format data can be restored to the ARGB format data.
In the embodiment of the present disclosure, the data sending terminal and the data receiving terminal may be two independent electronic devices, or two chips that communicate with each other in an electronic device, for example, two cascaded Systems-on-Chip (SoCs) in an electronic device.
When a data receiving terminal provided in this disclosure receives the data in RGB format through the second DSI, the data receiving terminal restores the data in RGB format to data in ARGB format. The above data in RGB format received by the data receiving terminal is mapped from data in ARGB format by the data sending terminal. As such, transmission of data in ARGB format through the DSI link is realized. Therefore, the number of interfaces used for sending image display data between the data receiving terminal and the data sending terminal is reduced, and the structures of the data sending terminal and the data receiving terminal are simplified. As a result, more functions can be developed at the data sending terminal and the data receiving terminal.
In some embodiments, the second processor 51 is further configured to, when inversely mapping the data in RGB format to data in ARGB format, convert every 4 pieces of data in RGB format into 3 pieces of data in ARGB format.
In some embodiments, if the ARGB format data obtained from the last 4 pieces of RGB format data have specific value, the second processor 51 will delete the ARGB format data with the specific value.
In some embodiments, the data in ARGB format with specific value include the data in ARGB format with a value of zero.
In some embodiments, after receiving the last 4 pieces of RGB format data, and if the k pieces of ARGB format data at the tail of the converted 3 pieces of ARGB format data have specific value, the second processor 51 will delete (discard) the k pieces of ARGB format data with specific value, where k is less than 3.
The k pieces of ARGB format data having specific value at the tail of the 3 pieces of ARGB format data include the last one of the 3 pieces of ARGB format data having the specific value or the last two of the 3 pieces of ARGB format data having the specific value.
The present disclosure further provides a communication system. The communication system includes the data sending terminal and the data receiving terminal described above, and further includes a transmission link connecting the data sending terminal and the data receiving terminal. The transmission link is configured to transmit data in RGB format.
For simplification purposes, detailed descriptions of the operations of example data sending terminal and data receiving terminal are omitted and references can be made to the descriptions of the example methods.
The above description of the disclosed embodiments enables those having ordinary skills in the art to implement or use the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. It is intended that the specification and examples be considered as example only and not to limit the scope of the disclosure, with a true scope and spirit of the invention being indicated by the following claims.
This application is a continuation of International Application No. PCT/CN2017/109707, filed Nov. 7, 2017, the entire content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/109707 | Nov 2017 | US |
Child | 16867980 | US |