Display driver board, display device, display method, apparatus and storage medium
By using a frame buffer and microcontroller on the display driver board of smart devices to store materials of different data types and select appropriate display modes, the problem of limited storage resources in smart device display devices is solved, achieving high-quality display and cost control.
Patent Information
- Application Number
- PCT/CN2024/097363
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2025-12-11
AI Technical Summary
When providing multi-functional services, smart devices' display devices are limited by storage resources, making it impossible to simultaneously meet the demand for high-quality images and cost control.
By combining frame buffers and microcontrollers, high-quality display can be achieved by storing materials of different data types and selecting appropriate display modes, while reducing storage resource consumption and costs.
While ensuring display quality, it effectively reduces storage resource consumption, improves the display speed of materials, and reduces product costs.
Smart Images

Figure CN2024097363_11122025_PF_FP_ABST
Abstract
Description
Display driving board, display device, display method, apparatus and storage medium TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of front-end and the technical field of intelligent devices, and more particularly, to a display driving board, a display device, a display method, an apparatus and a storage medium. BACKGROUND
[0002] With the rapid development of the Internet of Things and electronic information technology, intelligent devices such as smart home devices and smart medical instruments can provide more and more functional services.
[0003] Intelligent devices can be configured with human-computer interaction interfaces such as display devices to provide functional services to users. The increasing number of functional services that intelligent devices need to provide puts forward higher requirements on the number and quality of pictures provided by display devices.
[0004] SUMMARY
[0005] The present disclosure provides a display driving board, a display device, a display method, an apparatus and a storage medium.
[0006] One aspect of the present disclosure provides a display driving board, comprising: a frame buffer comprising a plurality of storage areas, each storage area being configured to store a material of one data type; a first register configured to store identification information of a first material in response to a first control instruction, wherein the first material is a material to be displayed in the frame buffer, and the identification information of the first material is used to represent the data type of the first material; and a microcontroller configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control a display component to display the first material based on the first display mode.
[0007] Another aspect of the present disclosure provides a display device, comprising: a display driving board and a display component; wherein the display driving board comprises a frame buffer, a first register and a microcontroller; the frame buffer comprises a plurality of storage areas, each storage area being configured to store a material of one data type; the first register is configured to store identification information of a first material in response to a first control instruction, wherein the first material is a material to be displayed in the frame buffer, and the identification information of the first material is used to represent the data type of the first material; and the microcontroller is configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control the display component to display the first material based on the first display mode.
[0008] Another aspect of the present disclosure provides a display method, comprising: in response to a first control instruction, obtaining identification information of a first material, wherein the identification information of the first material is used to represent a data type of the first material; selecting a first display mode from a plurality of display modes according to the identification information of the first material; and controlling a display component to display the first material based on the first display mode.
[0009] Another aspect of the present disclosure provides a display device, comprising: an obtaining module configured to obtain identification information of a first material in response to a first control instruction, wherein the identification information of the first material is used to represent a data type of the first material; a selecting module configured to select a first display mode from a plurality of display modes according to the identification information of the first material; and a display module configured to control a display component to display the first material based on the first display mode.
[0010] Another aspect of the present disclosure provides a non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are used to make the computer execute the method as described above.
[0011] Another aspect of the present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements the method as described above. BRIEF DESCRIPTION OF DRAWINGS
[0012] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description when taken in conjunction with the accompanying drawings, in which:
[0013] FIG. 1 schematically shows a structural schematic diagram of a display device.
[0014] FIG. 2 schematically shows a schematic diagram of a display driving board according to an embodiment of the present disclosure.
[0015] FIG. 3A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0016] FIG. 3B schematically shows a schematic diagram of a frame buffer storing a second type of material according to an embodiment of the present disclosure.
[0017] FIG. 3C schematically shows a schematic diagram of a frame buffer storing a first type of material according to an embodiment of the present disclosure.
[0018] FIG. 3D schematically shows a schematic diagram of a frame buffer storing a first type of material according to another embodiment of the present disclosure.
[0019] FIG. 3E schematically shows a schematic diagram of a frame buffer storing resource allocation according to an embodiment of the present disclosure.
[0020] FIG. 3F schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0021] FIG. 4A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0022] FIG. 4B schematically shows a schematic diagram of a flag bit position according to an embodiment of the present disclosure.
[0023] FIG. 4C schematically shows a schematic diagram of a flag bit position according to another embodiment of the present disclosure.
[0024] FIG. 5A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0025] FIG. 5B schematically shows a schematic diagram of a display flow of a first material according to an embodiment of the present disclosure.
[0026] FIG. 5C schematically shows a schematic diagram of a display flow of a first material according to another embodiment of the present disclosure.
[0027] FIG. 5D schematically shows a schematic diagram of a display flow of a first material according to another embodiment of the present disclosure.
[0028] FIG. 5E schematically shows a schematic diagram of a display flow of a first material according to another embodiment of the present disclosure.
[0029] FIG. 5F schematically shows a schematic diagram of a display flow of a first material according to another embodiment of the present disclosure.
[0030] FIG. 6 schematically shows a schematic diagram of a luminance perception curve according to an embodiment of the present disclosure.
[0031] FIG. 7A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0032] FIG. 7B schematically shows a schematic diagram of a picture drawing flow according to an embodiment of the present disclosure.
[0033] FIG. 7C schematically shows a schematic diagram of a picture drawing flow according to another embodiment of the present disclosure.
[0034] FIG. 8A schematically shows a schematic diagram of a curve drawing flow according to an embodiment of the present disclosure.
[0035] FIG. 8B schematically shows a schematic diagram of materials stored in a storage component according to an embodiment of the present disclosure.
[0036] FIG. 8C schematically shows a schematic diagram of a frame buffer reading a plurality of third materials from a storage component according to an embodiment of the present disclosure.
[0037] FIG. 8D schematically illustrates a schematic diagram of the i-th third material in a first case according to an embodiment of the present disclosure.
[0038] FIG. 8E schematically illustrates a schematic diagram of the i-th third material in a second case according to an embodiment of the present disclosure.
[0039] FIG. 8F schematically illustrates a schematic diagram of the i-th third material in a third case according to an embodiment of the present disclosure.
[0040] FIG. 8G schematically illustrates a schematic diagram of the i-th third material in a fourth case according to an embodiment of the present disclosure.
[0041] FIG. 8H schematically illustrates a schematic diagram of the i-th third material in a fifth case according to an embodiment of the present disclosure.
[0042] FIG. 8I schematically illustrates a schematic diagram of the i-th third material in a sixth case according to an embodiment of the present disclosure.
[0043] FIG. 8J schematically illustrates a schematic diagram of the i-th third material in a seventh case according to an embodiment of the present disclosure.
[0044] FIG. 8K schematically illustrates a schematic diagram of the i-th third material in an eighth case according to an embodiment of the present disclosure.
[0045] FIG. 8L schematically illustrates a schematic diagram of the i-th third material in a ninth case according to an embodiment of the present disclosure.
[0046] FIG. 9A schematically illustrates a schematic diagram of a generation process of a flip animation material according to an embodiment of the present disclosure.
[0047] FIG. 9B schematically illustrates a schematic diagram of a plurality of flip animation materials according to an embodiment of the present disclosure.
[0048] FIG. 10 schematically illustrates a schematic diagram of a display device according to an embodiment of the present disclosure.
[0049] FIG. 11 schematically illustrates a flowchart of a display method according to an embodiment of the present disclosure.
[0050] FIG. 12 schematically illustrates a flowchart of a frame buffer reading a material from a storage component according to an embodiment of the present disclosure.
[0051] FIG. 13A schematically illustrates a flowchart of a display method of a first material according to an embodiment of the present disclosure.
[0052] FIG. 13B schematically illustrates a flowchart of a display method of a first material according to another embodiment of the present disclosure.
[0053] FIG. 14 schematically illustrates a flowchart of a screen display method according to an embodiment of the present disclosure.
[0054] FIG. 15 schematically illustrates a block diagram of a display apparatus according to an embodiment of the disclosure. DETAILED DESCRIPTION
[0055] Hereinafter, embodiments of the disclosure will be described with reference to the accompanying drawings. It should be understood, however, that the description which follows is merely illustrative and is not intended to limit the scope of the disclosure. In the following detailed description of embodiments of the disclosure, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. However, it will be apparent to one skilled in the art that the embodiments of the disclosure can be practiced without these specific details. In other instances, well-known structures and functions have not been described in detail in order to avoid obscuring the concepts of the disclosure.
[0056] The terms used herein are merely used to describe specific embodiments and are not intended to limit the disclosure. The terms "include", "comprise" and the like used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0057] All terms used herein, including technical and scientific terms, have the same meanings as those generally understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having meanings consistent with the context of the present description, and should not be interpreted in an idealized or excessively formal manner.
[0058] In the case of using expressions similar to "at least one of A, B, and C, etc.", it should generally be interpreted to include at least one of each of the items, unless otherwise defined. For example, "a system having at least one of A, B, and C" should be interpreted to include a system having at least one of A, a system having at least one of B, a system having at least one of C, a system having at least one of A and B, a system having at least one of A and C, a system having at least one of B and C, and / or a system having at least one of A, B, and C, etc.
[0059] FIG. 1 schematically illustrates a structural schematic diagram of a display device.
[0060] As shown in FIG. 1, the display device can be constituted by a display driving board and a display panel. The display driving board can be configured with a memory, a microcontroller, and a connector. The memory can be used to store all display materials. The microcontroller can be connected with a customer main board, which can be represented as a master board of a smart device. Control information input by a user to the smart device through various ways can be aggregated to the customer main board. The customer main board generates a corresponding control signal based on the control information, and delivers the control signal to each sub-device of the smart device, such as the microcontroller in the display device.
[0061] After receiving the control signal of the customer mainboard, the microcontroller can retrieve display material data from the memory according to the business logic and the page style, and send each display material retrieved to the display panel through the connector to arrange each display material on the display panel to form the page to be displayed.
[0062] The degree of fineness of the page that the display device can present is generally related to the quantity and style of the display materials pre-stored in the display device. However, limited by factors such as the volume and cost of the display device, the storage resources that the memory in the display device can provide are relatively limited, and more display materials cannot be stored unlimitedly.
[0063] Alternatively, the storage resource occupancy of a single display material can be reduced by compressing the data amount of each pixel of the display material, so as to increase the quantity of display materials that the memory can store. For example, for a display material of RGB888 data type, each pixel of the display material occupies 24 bits of storage space, and if the data amount of each pixel is compressed to 4 bits, the storage space occupied by the compressed display material is only 1 / 6 of the storage space occupied by the uncompressed display material. However, the display effect of the compressed display material on the display panel is poor, and there are problems such as monotonous displayable colors and obvious image edge jaggy, which also affects the degree of fineness of the page.
[0064] Therefore, embodiments of the present disclosure provide a display driving board, a display device, a display method, an apparatus and a storage medium, which can store materials of different data types and support selecting a corresponding display mode to display materials of different data types, thereby effectively reducing the storage resource consumption, improving the display speed of the materials, and reducing the product cost of the display driving board while ensuring the degree of fineness of the display page. Specifically, the display driving board comprises: a frame buffer comprising a plurality of storage areas, each storage area being configured to store materials of a data type; a first register configured to store identification information of a first material in response to a first control instruction, wherein the first material is a material to be displayed in the frame buffer, and the identification information of the first material is used to represent the data type of the first material; and a microcontroller configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control a display component to display the first material based on the first display mode.
[0065] FIG. 2 schematically shows a schematic diagram of a display driving board according to an embodiment of the present disclosure.
[0066] As shown in FIG. 2, the display driving board can comprise a frame buffer 10, a first register 20 and a microcontroller 30.
[0067] According to an embodiment of the present disclosure, the frame buffer 10 can include a plurality of storage areas 11, each of which can be used to store a material of a data type.
[0068] A material can be composed of a plurality of pixels, and the size of the material can be represented by the number of pixels contained in a row or a column of the material. For example, for a material of size W*H, each row of the material can include W pixels, and each column can include H pixels. Each pixel can have pixel data, and storing a material in a storage area can mean storing the pixel data of each of the plurality of pixels included in the material in the storage area.
[0069] The plurality of storage areas 11 can be represented as a plurality of logical partitions of the frame buffer 10, i.e., for a plurality of materials stored in different storage areas respectively, the materials can be discrete at a logical level, but can be continuous at a physical level, i.e., the plurality of materials stored in different storage areas can be stored in isolation from each other at a logical level. For a plurality of materials stored in the same storage area, the materials can be discrete at a physical level, but can be continuous at a logical level, i.e., the plurality of materials stored in the same storage area can be stored continuously at a logical level.
[0070] The frame buffer 10 can configure a storage space for each storage area respectively, and the storage space of each storage area can be fixed, or the frame buffer 10 can dynamically adjust the storage space of each storage area during operation, which is not limited herein.
[0071] The frame buffer 10 can be a memory that exists independently at a physical level. Alternatively, the frame buffer 10 can be a memory that exists independently at a logical level, but can be part of the memory of the display driver board at a physical level, which is not limited herein.
[0072] The frame buffer 10 can serve as a temporary storage location for materials, or the frame buffer 10 can provide a data processing space that can provide resource support for the processing of materials.
[0073] The frame buffer 10 can read a plurality of materials from other memories when the display driver board is powered on, or the frame buffer 10 can refresh the storage space according to certain rules, and the frame buffer 10 can read a plurality of materials from other memories after refreshing the storage space, which is not limited herein. The other memories can include a flash memory disposed outside the display driver board, a flash memory disposed inside the display driver board, a memory of the display driver board, etc., which is not limited herein.
[0074] The frame buffer can store a plurality of data types of materials. The plurality of data types can include a plurality of color data types and a plurality of grayscale data types. The plurality of color data types can include an RGB888 data type, an RGB565 data type, and the like. The plurality of grayscale data types can include a 1-bit grayscale data type, a 4-bit grayscale data type, an 8-bit grayscale data type, and the like.
[0075] The data type of the material can be determined by the number of bits of pixel data, which can refer to pixel data of pixels that make up the material.
[0076] For example, if the number of bits of pixel data is 24, i.e., the storage space occupied by the pixel data of each pixel is 24 bits, the data type of the material can be an RGB888 data type. If the number of bits of pixel data is 16, i.e., the storage space occupied by the pixel data of each pixel is 16 bits, the data type of the material can be an RGB565 data type. In the case of the material type being an RGB888 data type or an RGB565 data type, the material can be considered as a color material, and the color material can be directly displayed by a display component.
[0077] For another example, if the number of bits of pixel data is 8, i.e., the storage space occupied by the pixel data of each pixel is 8 bits, the data type of the material can be an 8-bit grayscale data type. If the number of bits of pixel data is 4, i.e., the storage space occupied by the pixel data of each pixel is 4 bits, the data type of the material can be a 4-bit grayscale data type. If the number of bits of pixel data is 1, i.e., the storage space occupied by the pixel data of each pixel is 1 bit, the data type of the material can be a 1-bit grayscale data type. In the case of the material type being an 8-bit grayscale data type, a 4-bit grayscale data type, a 1-bit grayscale data type, and the like, the material can be considered as a grayscale material, specifically, in the case of the data type of the material being a 1-bit grayscale data type, the material can be considered as a 1-bit grayscale material; in the case of the data type of the material being a 4-bit grayscale data type, the material can be considered as a 4-bit grayscale material; in the case of the data type of the material being an 8-bit grayscale data type, the material can be considered as an 8-bit grayscale material. The 1-bit, 4-bit, and 8-bit can represent the grayscale levels of the grayscale material.
[0078] The grayscale material cannot be directly displayed by the display component, and optionally, when the grayscale material needs to be displayed, the grayscale material can also be processed for data expansion, color filling, and the like to obtain a grayscale material of a color data type, and the grayscale material of the color data type can be displayed by the display component.
[0079] According to an embodiment of the present disclosure, the first register 20 can be configured to store identification information of the first material in response to the first control instruction, the first material being a material to be displayed in the frame buffer, the identification information of the first material being used to represent a data type of the first material.
[0080] The first material can represent a material to be displayed in the display task, and the display driver board can execute the display task in response to the first control instruction. The first control instruction can be used to arbitrarily specify one material from the plurality of materials stored in the frame buffer as the first material.
[0081] The first register 20 can be independently arranged in the display driver board, or the first register 20 can be one of a plurality of registers included in the frame buffer 10, or the first register 20 can be one of a plurality of registers included in the memory of the display driver board, which is not limited herein.
[0082] The first control instruction can represent an instruction indicating the display driver board to display the first material. The display driver board can generate the first control instruction when executing the display task for the first material. Alternatively, the display driver board can obtain the first control instruction through an external interface and execute the display task for the first material based on the first control instruction.
[0083] The form of the identification information of the first material is not limited herein, for example, the identification information can represent an integer value. For another example, the identification information can represent a binary number with a short length, such as a 2-bit binary number, a 4-bit binary number, etc.
[0084] Different values of the identification information can represent different data types, for example, if the value of the identification information is 00, it represents that the data type of the first material is a 1-bit gray scale material; if the value of the identification information is 01, it represents that the data type of the first material is an 8-bit gray scale material; if the value of the identification information is 10, it represents that the data type of the first material is a color material, etc. Optionally, a storage device of the display driver board, such as the frame buffer 10, a flash memory, a memory, etc. can store a relationship table, which can be used to represent the corresponding relationship between the value of the identification information and the data type. The microcontroller 30 can determine the data type of the first material based on the relationship table and the identification information of the first material.
[0085] According to an embodiment of the present disclosure, the microcontroller 30 can be configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control the display assembly to display the first material based on the first display mode.
[0086] A data type can correspond to a display mode. Different display modes can represent different task processing paths. For example, a display mode 1 represents a task processing path that does not need to process the first material and directly displays the first material through a display component. For another example, a display mode 2 represents a task processing path that first processes the first material and then displays the processed first material through the display component.
[0087] The first display mode can correspond to a data type of the first material. Based on the correspondence, the first display mode can be selected from a plurality of display modes.
[0088] The display component can be composed of a display driver integrated circuit (DDIC) and a display panel. The DDIC can read picture data from a specific area in the frame buffer 10, convert the picture data into a driving signal, and send the driving signal to the display panel in the form of an electrical signal. The type of the display panel is not limited here and can be, for example, an LCD (Liquid Crystal Display), an LED (Large Electronic Display), or the like. The display panel can realize display imaging of the first panel material based on the driving signal.
[0089] According to an embodiment of the present disclosure, a plurality of materials can be stored in the frame buffer. For a first material in the plurality of materials, when the display driving board performs a display task on the first material, the first register can record identification information of the first material. The microcontroller can determine a first display mode based on the identification information of the first material and realize imaging of the first material on the display component through the first display mode. The display driving board can store materials of different data types and support selection of corresponding display modes to display materials of different data types. This ensures the quality of the display picture, effectively reduces the consumption of storage resources, improves the display speed of the material, and reduces the product cost of the display driving board.
[0090] The display driving board shown in FIG. 2 will be further described below in combination with the accompanying drawings and specific embodiments.
[0091] Optionally, after the display driving board is powered on or the storage space of the frame buffer is refreshed, the frame buffer can dynamically determine a plurality of materials to be stored from a plurality of materials in the storage component and write the plurality of materials to be stored into the frame buffer.
[0092] FIG. 3A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0093] As shown in FIG. 3A, the display driving board can further include a storage component 40.
[0094] According to an embodiment of the present disclosure, the storage component 40 can be configured to store a plurality of materials.
[0095] The storage component 40 can include various non-volatile memories, such as flash memories, phase change memories, resistive memories, etc. Data in the non-volatile memories will not be lost when the device is powered off. Accordingly, the frame buffer 10 can belong to a volatile memory, i.e., data in the frame buffer 10 will be totally lost after power-off.
[0096] According to an embodiment of the present disclosure, when the display driving board is powered on or the storage space of the frame buffer is refreshed, the frame buffer 10 can dynamically store the plurality of materials in the plurality of storage areas in response to a second control instruction.
[0097] The second control instruction can be represented as an instruction instructing the frame buffer 10 to read the materials from the storage component 40.
[0098] The dynamic storage can be represented as selective storage, i.e., the frame buffer can read all the materials in the storage component and write the plurality of materials into the plurality of storage areas based on their data types, respectively. Alternatively, the frame buffer can determine the storable quantity of materials of each data type based on the resource configuration of each storage area, respectively, and perform selective storage of the plurality of materials based on the storable quantity.
[0099] Optionally, the materials of different data types in the storage component 40 can be stored in isolation.
[0100] For example, the storage component 40 can be divided in terms of physical layer or in terms of logical layer, and the storage component 40 can include a plurality of memories, each of which can be configured to store materials of one data type. Accordingly, the frame buffer can include a plurality of storage areas, each of which can be configured to store materials of one data type. Thus, when the frame buffer 10 reads materials from one memory of the storage component 40, the storage area used to store the materials can be determined based on the identification information of the memory. For example, for materials of data type A1, a memory A2 of the plurality of memories can be used to store materials of data type A1, a storage area A3 of the plurality of storage areas can be used to store materials of data type A1, and the frame buffer can write the materials of data type A1 into the storage area A3 after reading the materials of data type A1 from the memory A2.
[0101] Optionally, since the display speed of the material stored in the frame buffer is much faster than the material stored in other memories, the material to be displayed can be stored in the frame buffer as much as possible in advance. For example, for gray scale material, the space occupied by the same size gray scale material can be much smaller than the space occupied by the same size color material, so the frame buffer can store all the gray scale materials in the frame buffer in advance when storing the materials.
[0102] According to an embodiment of the present disclosure, the plurality of materials includes a plurality of second materials, and the data type of the second materials is a gray scale data type. The gray scale data type can be a 1-bit gray scale data type, a 4-bit gray scale data type, an 8-bit gray scale data type, etc.
[0103] According to an embodiment of the present disclosure, the plurality of storage areas can include a static storage area, and the static storage area is configured to store the materials of the gray scale data type.
[0104] Optionally, the frame buffer can include a plurality of static storage areas, and the number of the static storage areas can be related to the specific type of the gray scale data type, which is not limited herein. For example, the data type of the second materials pre-stored in the storage component includes a 4-bit gray scale data type and an 8-bit gray scale data type, and the plurality of storage areas can include a static storage area 1, a static storage area 2, and a static storage area 3, wherein the static storage area 1 can be used to store the second materials of the 1-bit gray scale data type, the static storage area 2 can be used to store the second materials of the 4-bit gray scale data type, and the static storage area 3 can be used to store the second materials of the 8-bit gray scale data type.
[0105] The size of the static storage area can be determined by the developer in advance, which is not limited herein. Generally, the size of the static storage area can be set to be greater than or equal to the total amount of data of the corresponding second material of the gray scale data type.
[0106] FIG. 3B schematically shows a schematic diagram of the frame buffer storing the second materials according to an embodiment of the present disclosure.
[0107] As shown in FIG. 3B, the plurality of storage areas 11 can include three static storage areas 111. The two static storage areas 111 can be divided into a static storage area 1 for storing materials of the 1-bit gray scale data type, a static storage area 2 for storing materials of the 4-bit gray scale data type, and a static storage area 3 for storing materials of the 8-bit gray scale data type.
[0108] According to an embodiment of the present disclosure, the frame buffer 10 can be configured to write each of the plurality of second type of materials into the static storage area 111 in response to a second control instruction. Specifically, the frame buffer 10 can write each of the second type of materials of the 1-bit gray scale data type into the static storage area 1, write each of the second type of materials of the 4-bit gray scale data type into the static storage area 2, and write each of the second type of materials of the 8-bit gray scale data type into the static storage area 3.
[0109] Optionally, for materials of the data type of the color data type, i.e., color materials, the frame buffer can dynamically select the materials to be stored.
[0110] According to an embodiment of the present disclosure, the plurality of materials includes a plurality of first type of materials, the data type of the first type of materials is the color data type, and the plurality of storage areas includes a first dynamic storage area, the first dynamic storage area is configured to store materials of the color data type.
[0111] The size of the first dynamic storage area can be adaptively adjusted by the frame buffer during data storage. For example, if the frame buffer determines that there is unused storage space, the first dynamic storage area can be expanded using the unused storage space. For another example, if the frame buffer determines that there is surplus space in the first dynamic storage area, a compression operation can be performed on the first dynamic storage area to strip the surplus space, and the surplus space can be used as unused storage space.
[0112] FIG. 3C schematically shows a diagram of the frame buffer storing the first type of materials according to an embodiment of the present disclosure.
[0113] As shown in FIG. 3C, the plurality of storage areas 11 can include a first dynamic storage area 112. The storage resource amount of the first dynamic storage area 112 can be less than the material data amount. The material data amount can represent the total data amount of the first type of materials.
[0114] According to an embodiment of the present disclosure, the frame buffer 10 can be configured to select a target number of first type of materials from the plurality of first type of materials based on the display frequency of each of the first type of materials and write the target number of first type of materials into the first dynamic storage area 112 in response to a second control instruction.
[0115] The target number can be determined based on the storage resource amount of the first dynamic storage area. Alternatively, the target number can also represent the number of first type of materials whose display frequency is greater than a threshold value.
[0116] FIG. 3D schematically shows a diagram of the frame buffer storing the first type of materials according to another embodiment of the present disclosure.
[0117] As shown in FIG. 3D, the plurality of storage areas 11 can include a first dynamic storage area 112. The storage resource amount of the first dynamic storage area 112 can be greater than or equal to the material data amount.
[0118] According to an embodiment of the present disclosure, the frame buffer 10 can be configured to write the plurality of first-type materials into the first dynamic storage area 112 in response to a second control instruction.
[0119] Optionally, in the case where the storage resource amount of the first dynamic storage area 112 is greater than or equal to the material data amount, the excess storage resource in the first dynamic storage area can also be allocated to other dynamic storage areas.
[0120] FIG. 3E schematically shows a diagram of storage resource allocation in a frame buffer according to an embodiment of the present disclosure.
[0121] As shown in FIG. 3E, the plurality of storage areas can also include a second dynamic storage area 113.
[0122] According to an embodiment of the present disclosure, the frame buffer 10 can be configured to determine the excess storage space 114 of the first dynamic storage area 112 if the plurality of first-type materials are written into the first dynamic storage area 112, and allocate the excess storage space 114 to the second dynamic storage area 113.
[0123] In the case where it is determined that the storage resource amount of the first dynamic storage area is greater than the material data amount, the frame buffer can allocate the excess storage space of the first dynamic storage area to the second dynamic storage area. Optionally, in the case where it is determined that there is long-term unused storage space in the second dynamic storage area, the idle storage space in the second dynamic storage area can also be allocated to the first dynamic storage area as the excess storage space, which is not limited herein.
[0124] Optionally, in the case where it is determined that the storage resource amount of the first dynamic storage area is greater than the material data amount, i.e. in the case where all the materials in the storage component are written into the frame buffer, after the frame buffer caches all the materials, the microcontroller can control the storage component to be powered off to reduce the power consumption of the display driving board.
[0125] Optionally, the second dynamic storage area can be used to store various processed materials. For example, the microcontroller can perform data expansion, material augmentation, color filling, etc. on a material in the memory of the display driving board, and then write the processed material into the second dynamic storage area. For example, for the second-type materials, the microcontroller can pre-expand part of the second-type materials into second materials of color data type based on display frequency information, etc., and write the second materials of color data type into the second dynamic storage area.
[0126] FIG. 3F schematically shows a schematic view of a display driving board according to another embodiment of the present disclosure.
[0127] As shown in FIG. 3F, the display driving board can further include a static memory 50.
[0128] The static memory 50 can be used as the memory of the display driving board, i.e., in a conventional data processing flow, the microcontroller 30 needs to process data in the static memory 50. Alternatively, the microcontroller 30 can be configured to process data in the frame buffer 10 by configuring the processing logic of the microcontroller 30, and the configuration of the processing logic is not described herein.
[0129] According to an embodiment of the present disclosure, the static memory 50 can be configured to determine at least one second material from the plurality of second materials based on the display frequency of each second material, and write the at least one second material from the static storage area 111 to the static memory 50.
[0130] According to an embodiment of the present disclosure, the microcontroller 10 can be configured to perform data expansion on each second material to obtain a second material of a color data type.
[0131] The specific calculation method of data expansion on the second material is related to the data type to which the second material belongs, and is related to the specific color data type.
[0132] For example, the data type of the second material is a 4-bit gray scale data type, and the color data type is an RGB888 data type. The value 0000 of a zero pixel in the second material can be converted to 0 of 24 bits, and the value of a non-zero pixel in the second material can be converted to 24-bit data in proportion. Taking a pixel value equal to C1 as an example, the conversion method in proportion can include: converting C1 to a decimal data D1, and using the formula E1=D1÷(2∧4-1)×(2∧24-1) to calculate a decimal data E1, and binary converting the decimal data E1 to obtain the required 24-bit data of the non-zero pixel. Alternatively, the value of the non-zero pixel in the second material can also be converted to 24-bit data by using a shift calculation method. Similarly, taking a pixel value equal to C1 as an example, a binary data F1 can be calculated using the formula F1=(C1<<20)+(C1<<16)+(C1<<12)+(C1<<8)+(C1<<4)+C1, and the binary data F1 is the required 24-bit data, where << can represent a binary left shift operation. For example, if C1=1001, the converted binary data F1 is 100110011001100110011001.
[0133] For example, the data type of the second material is an 8-bit gray scale data type, and the color data type is an RGB565 data type. The value 00000000 of a zero pixel in the second material can be converted into 0 of 16 bits, and the value of a non-zero pixel in the second material can be converted into 16-bit data in proportion. For example, the value of a pixel is equal to C2, and the conversion in proportion can include: converting C2 into a decimal data D2, and using the formula E2=D2÷(2^8-1)×(2^16-1) to calculate a decimal data E2, and converting the decimal data E2 into binary data to obtain the required 16-bit data. Alternatively, the value of a non-zero pixel in the second material can be converted into 16-bit data by using a shift calculation. Similarly, for example, the value of a pixel is equal to C2, and the binary data F2 can be calculated by using the formula F2=(C2<<8)+C2, and the binary data F2 is the required 16-bit data. For example, if C2=10011100, the converted binary data F2 is 1001110010011100.
[0134] According to an embodiment of the present disclosure, the frame buffer 10 can be configured to write the second material of at least one color data type into the second dynamic storage area 113.
[0135] According to an embodiment of the present disclosure, the color data type can include a first color data type and a second color data type. The first color data type can be represented as an RGB888 data type, and the second color data type can be represented as an RGB565 data type.
[0136] According to an embodiment of the present disclosure, the microcontroller can be configured to, if it is determined that the second dynamic storage area is in a resource surplus state, perform data expansion on each second material to obtain a second material of the first color data type, and if it is determined that the second dynamic storage area is in a resource shortage state, perform data expansion on each second material to obtain a second material of the second color data type.
[0137] The resource surplus state and the resource shortage state can both represent the real-time state of the resource amount of the second dynamic storage area. The real-time state of the resource amount of the second dynamic storage area can be determined by real-time monitoring of the second dynamic storage area. The determination method of the real-time state of the resource amount of the second dynamic storage area is not limited herein, and can be determined based on the resource amount of the second material to be stored.
[0138] In the process of performing the display task for the first material by using the display driver board, the source of the identification information of the first material stored in the first register is not limited herein.
[0139] For example, the identification information of the first material can be derived from a user operation or an external device instruction, which can be transmitted to the microcontroller in the display driving board through the main control board. The microcontroller can control the first register to record the data contained in the user operation or the external device instruction as the identification information of the first material based on the data.
[0140] For another example, the identification information of the first material can be contained in the task processing request of the display task, and the microcontroller can control the first register to directly record the identification information of the first material.
[0141] For another example, the identification information of the first material can be determined based on the storage location of the first material. For example, the plurality of storage areas can include a target storage area configured to store the first material. The first register can be configured to determine a first data type corresponding to the target storage area in response to a first control instruction, determine the identification information of the first material based on the data type, and store the identification information of the first material.
[0142] For another example, in the case of determining the number of pixels contained in the first material, the data type of the first material can be determined directly based on the data size of the first material, and the identification information of the first material can be set accordingly.
[0143] If the data size of the first material needs to be determined, the first material needs to be addressed. In order to realize the addressing function of the first material in the frame buffer, the index information of the first material in the frame buffer can be recorded in the static storage.
[0144] FIG. 4A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0145] As shown in FIG. 4A, the display driving board can further include a static storage 50.
[0146] According to an embodiment of the present disclosure, the static storage 50 can be configured to record the storage address of the first material in the target storage area. The recording action of the static storage 50 can be triggered when the frame buffer 10 stores the first material, or can also be triggered after receiving an external control instruction, which is not limited herein.
[0147] Through the storage address recorded in the static storage 50, the microcontroller 30 can retrieve the first material from the frame buffer 10 during the execution of the display task. Based on the size of the space occupied by the first material and the number of pixels of the first material obtained in advance, the size of each pixel of the first material can be determined, i.e., the data type of the first material, and the identification information of the first material can be determined, and the identification information of the first material can be stored in the first register 20.
[0148] Further, as an optional implementation, if the number of pixels contained in the first material cannot be determined in advance, an additional flag bit can be used to record the data type of the first material, so that the display driver board can obtain the identification information of the first material during the processing of the display task.
[0149] According to an embodiment of the present disclosure, the frame buffer 10 can also be configured to add a flag bit at a preset position in the first material if the first material is written into the frame buffer.
[0150] According to an embodiment of the present disclosure, the value of the flag bit added in the first material can be used to represent the data type of the first material. The first register 20 can be configured to obtain the value of the flag bit included in the first material in response to the first control instruction, determine the identification information of the first material based on the value of the flag bit, and store the identification information of the first material.
[0151] Since the action of adding a flag bit by the frame buffer 10 to the first material occurs simultaneously with the action of writing the first material, the frame buffer 10 can also determine the source of the first material and configure the value of the flag bit based on the source.
[0152] For example, the target storage can be included in the plurality of storage areas of the storage component 40, which can be used to store the first material, and the value of the flag bit of the first material can be determined based on the data type corresponding to the target storage.
[0153] In the case where the number of pixels contained in the first material cannot be determined in advance, the storage position of the first material in the target storage can also be recorded by the static storage 40. The storage position can correspond to the position of the flag bit in the first material.
[0154] FIG. 4B schematically shows a diagram of the position of the flag bit according to an embodiment of the present disclosure.
[0155] As shown in FIG. 4B, the black square in the diagram can represent a flag bit, and the position of the flag bit in the first material can be located at the starting position of the first material. Accordingly, the preset position can represent the starting position of the first material, and the storage address of the first material can represent the head address of the storage position of the first material in the target storage.
[0156] FIG. 4C schematically shows a diagram of the position of the flag bit according to another embodiment of the present disclosure.
[0157] As shown in FIG. 4C, the position of the flag bit in the first material can be located at the ending position of the first material. Accordingly, the preset position can represent the ending position of the first material, and the storage address of the first material can represent the tail address of the storage position of the first material in the target storage.
[0158] According to an embodiment of the present disclosure, the first register can be configured to acquire a storage address of the first material from the static storage in response to the first control instruction, and acquire a value of the flag bit of the first material from the frame buffer based on the storage address of the first material.
[0159] According to an embodiment of the present disclosure, the flag bit is added for the first material when data is written into the frame buffer, and the value of the flag bit can be used to assist the selection of the display mode when imaging, which can reduce the dependence of the display process on external information, thereby saving the time consumption of information communication and improving the display speed of the material.
[0160] FIG. 5A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0161] As shown in FIG. 5A, the frame buffer 10 can include a display storage area 12.
[0162] The display storage area 12 can be a preset logical partition in the frame buffer 10, and the default data reading address of the display component is the storage address of the display storage area 12. Thus, the microcontroller 30 can be configured to control the display component to display the data stored in the display storage area 12.
[0163] The plurality of data types can include a plurality of color data types and a plurality of grayscale data types, and correspondingly, the plurality of display modes can include at least a first grayscale display mode and a color display mode. The identification information of the first material recorded in the first register can be used to indicate the first display mode of the first material, and based on the determined first display mode, the microcontroller can select a corresponding display strategy to display the first material.
[0164] When the data type is a first grayscale data type, i.e., the data type can be a 1-bit grayscale data type, a 4-bit grayscale data type, or an 8-bit grayscale data type, etc., since the display component cannot directly display the first material, the microcontroller needs to perform expansion processing on the first material.
[0165] As an optional implementation, the frame buffer can provide resource support for the data processing process, i.e., the expansion processing of the first material can be performed in the frame buffer.
[0166] FIG. 5B schematically shows a schematic diagram of a display flow of the first material according to an embodiment of the present disclosure.
[0167] As shown in FIG. 5B, the microcontroller 30 can be configured to perform data expansion on the first material in the frame buffer 10 to obtain a first material of a color data type.
[0168] The specific calculation method of data expansion of the first material is related to the data type to which the first material belongs and the specific color data type.
[0169] For example, the data type of the first material is a 4-bit gray scale data type and the color data type is an RGB888 data type. The value 0000 of a zero pixel in the first material can be converted into 0 of 24 bits, and the value of a non-zero pixel in the first material can be converted into 24-bit data in proportion. Taking a pixel value equal to C1 as an example, the conversion method in proportion may, for example, include: converting C1 into a decimal data D1, and using the formula E1=D1÷(2∧4-1)×(2∧24-1) to calculate a decimal data E1, and performing binary conversion on the decimal data E1 to obtain the required 24-bit data of the non-zero pixel. Alternatively, the value of the non-zero pixel in the first material can also be converted into 24-bit data by using a shift calculation method. Similarly, taking a pixel value equal to C1 as an example, the binary data F1 can be calculated using the formula F1=(C1<<20)+(C1<<16)+(C1<<12)+(C1<<8)+(C1<<4)+C1, and the binary data F1 is the required 24-bit data, where << can represent a binary left shift operation. For example, if C1=1001, the converted binary data F1 is 100110011001100110011001.
[0170] For another example, the data type of the first material is an 8-bit gray scale data type and the color data type is an RGB565 data type. The value 00000000 of a zero pixel in the first material can be converted into 0 of 16 bits, and the value of a non-zero pixel in the first material can be converted into 16-bit data in proportion. Taking a pixel value equal to C2 as an example, the conversion method in proportion may, for example, include: converting C2 into a decimal data D2, and using the formula E2=D2÷(2∧8-1)×(2∧16-1) to calculate a decimal data E2, and performing binary conversion on the decimal data E2 to obtain the required 16-bit data. Alternatively, the value of the non-zero pixel in the first material can also be converted into 16-bit data by using a shift calculation method. Similarly, taking a pixel value equal to C2 as an example, the binary data F2 can be calculated using the formula F2=(C2<<8)+C2, and the binary data F2 is the required 16-bit data. For example, if C2=10011100, the converted binary data F2 is 1001110010011100.
[0171] According to an embodiment of the present disclosure, the frame buffer 10 can be configured to write the first material of the color data type into the display storage area 12, so that the display component displays the first material based on the first material of the color data type.
[0172] As another optional implementation, the static storage can be configured to provide resource support for the data processing process by default, that is, the expansion processing process of the first material can be performed in the static storage.
[0173] FIG. 5C schematically shows a schematic diagram of a display flow of the first material according to another embodiment of the present disclosure.
[0174] As shown in FIG. 5C, the static storage 50 can be configured to read the first material from the frame buffer 10 and write the first material into the static storage 50. The microcontroller 30 can be configured to perform data expansion on the first material in the static storage 50 to obtain the first material of the color data type. The frame buffer 10 can be configured to read the first material of the color data type from the static storage 50 and write the first material of the color data type into the display storage area 12.
[0175] According to an embodiment of the present disclosure, by performing data expansion on the first material, normal display of the gray-scale data type is achieved. At the same time, smooth transition processing at the edge of the material pattern can be achieved, so that the material has better display effect.
[0176] Optionally, the gray-scale material of the color data type can be pre-stored in the second dynamic storage area. In the case that the first material of the color data type is pre-stored in the second dynamic storage area, the first material can be directly called from the second dynamic storage area.
[0177] FIG. 5D schematically shows a schematic diagram of a display flow of the first material according to another embodiment of the present disclosure.
[0178] As shown in FIG. 5D, the frame buffer 10 can be configured to read the first material of the color data type from the second dynamic storage area 113 and write the first material of the color data type into the display storage area 12.
[0179] When the data type of the first material is the color data type, such as the RGB888 data type, the RGB565 data type, etc., the microcontroller can control the display component to directly display the first material.
[0180] FIG. 5E schematically shows a schematic diagram of a display flow of the first material according to another embodiment of the present disclosure.
[0181] As shown in FIG. 5E, the frame buffer 10 can be configured to write the first material into the display storage area 12 to achieve display of the first material by the display component.
[0182] Optionally, in the case that the data type of the first material is a 1-bit grayscale data type, the display of the first material can also be realized by a hardware circuit mapping manner, which can correspond to a second grayscale display mode in the plurality of display modes.
[0183] FIG. 5F schematically shows a schematic diagram of a display flow of a first material according to another embodiment of the present disclosure.
[0184] As shown in FIG. 5F, the display driving board can further include a mapper 60. The mapper 60 can be connected with the frame buffer 10 through an internal bus, or can be connected through a circuit on a printed board. That is, the mapper 60 can directly access the frame buffer 10 through a hardware circuit.
[0185] According to an embodiment of the present disclosure, the mapper 60 can be configured to control the display component to map and display the first material.
[0186] The mapper 60 can be configured with a mapping strategy. The mapping strategy can be expressed as, for example, mapping each 1-bit pixel data of the first material in the frame buffer 10 to 24-bit pixel data, such as mapping binary data 0 to hexadecimal data 000000 in the display component, and mapping binary data 1 to hexadecimal data FF0000 in the display component.
[0187] According to an embodiment of the present disclosure, by using the data mapping manner to display the material of the 1-bit grayscale data type, the material stored in the frame buffer does not change, that is, the space occupation of the material in the frame buffer does not change, thereby reducing the storage resource overhead in the display process and improving the refresh and display efficiency of the material.
[0188] Optionally, in the case that the data type of the first material is a first grayscale data type, the display driving board can also simulate the brightness adjustment of the first material by the pixel data of each pixel in the first material.
[0189] According to an embodiment of the present disclosure, the position of the microcontroller to implement the brightness adjustment operation is not limited here.
[0190] For example, the microcontroller can respond to a third control instruction to adjust the first material in the frame buffer to obtain an adjusted first material, and then perform data expansion on the adjusted first material to obtain a first material of a color data type. Subsequently, the frame buffer can write the first material of the color data type into the display storage area, so that the display component displays the first material.
[0191] For another example, the static memory can read the first material into the static memory in response to the third control instruction. The microcontroller can adjust the first material in the static memory to obtain an adjusted first material, and perform data expansion on the adjusted first material to obtain the first material of the color data type. Then, the frame buffer can write the first material of the color data type into the display storage area, so that the display component displays the first material.
[0192] The third control instruction can be represented as an instruction for adjusting the brightness perception of the material, and the third control instruction can include a parameter for representing the number of brightness adjustment levels that need to be adjusted, i.e., the number of brightness adjustment levels.
[0193] FIG. 6 schematically shows a diagram of a brightness perception curve according to an embodiment of the present disclosure.
[0194] As shown in FIG. 6, taking 8-bit gray scale data as an example, the brightness response of the human eye to different gray scales can be nonlinear. For each pixel of the first material, when the value of the gray scale data of the pixel is small, the change of the gray scale data will significantly change the brightness response of the human eye to the pixel, and when the value of the gray scale data of the pixel is large, the change of the gray scale data will hardly affect the brightness response of the human eye to the pixel. Thus, the microcontroller can adjust the first material to an adjusted first material through a nonlinear adjustment manner.
[0195] According to an embodiment of the present disclosure, the first material includes a plurality of pixels. The microcontroller can convert the initial pixel data of each pixel to an initial brightness value of each pixel, linearly add the number of brightness adjustment levels included in the third control instruction and the initial brightness value of each pixel to obtain a target brightness value of each pixel, and convert the target brightness value of each pixel to target pixel data of each pixel to obtain the adjusted first material.
[0196] According to an embodiment of the present disclosure, the brightness value of each pixel and the pixel data of each pixel can be converted to each other. Taking the conversion of the target brightness value of each pixel to the target pixel data of each pixel as an example, the microcontroller can be configured to determine a target adjustment strategy according to the brightness interval in which the target brightness value of each pixel is located, and convert the target brightness value of each pixel to the target pixel data of each pixel based on the target adjustment strategy and an adjustment coefficient.
[0197] Optionally, the adjustment coefficient is determined based on the maximum backlight brightness of the display component and the gray scale number of the pixel data.
[0198] For example, the maximum backlight brightness of the display panel can be represented as 800, the gray scale number of the pixel data is 8, and the adjustment coefficient determined based on the maximum backlight brightness of the display component and the gray scale number of the pixel data can be represented as e = 800 / (2 ∧8-1) = 3.137.
[0199] Optionally, the adjustment strategy of each luminance interval can also be determined according to the maximum backlight luminance of the display component and the gray scale number of the pixel data.
[0200] Similarly, taking the maximum backlight luminance of the display panel as 800 and the gray scale number of the pixel data as 8 as an example. For the luminance interval with the luminance value A in the range of 1-20, the adjustment strategy can be represented as the converted pixel data B = 2*A / 3.137. For the luminance interval with the luminance value A in the range of 21-40, the adjustment strategy can be represented as the converted pixel data B = (40+(A-20)*3) / 3.137. For the luminance interval with the luminance value A in the range of 41-60, the adjustment strategy can be represented as the converted pixel data B = (100+(A-40)*5) / 3.137. For the luminance interval with the luminance value A in the range of 61-80, the adjustment strategy can be represented as the converted pixel data B = (200+(A-60)*10) / 3.137. For the luminance interval with the luminance value A in the range of 81-100, the adjustment strategy can be represented as the converted pixel data B = (400+(A-80)*20) / 3.137.
[0201] As an optional implementation, the display driving board can also be used for displaying a more complex picture, which can be composed of a plurality of third materials. The plurality of third materials can be included in the plurality of materials stored by the storage component.
[0202] FIG. 7A schematically shows a schematic diagram of a display driving board according to another embodiment of the present disclosure.
[0203] As shown in FIG. 7A, the display driving board can further include a plurality of second registers 70. Each second register 70 can be configured to store the identification information of a third material in response to a fourth control instruction, and the identification information of the third material can be used to represent the data type of the third material.
[0204] For each second register, the second register 70 can be independently arranged in the display driving board, or the second register 70 can be one of the plurality of registers included in the frame buffer 10, or the second register 70 can be one of the plurality of registers included in the static storage 50, which is not limited herein.
[0205] According to the embodiment of the present disclosure, the frame buffer 10 can be configured to store a plurality of third materials.
[0206] The frame buffer 10 can read the plurality of third materials from the storage component 40 when the display driver board is powered on, and write the plurality of third materials into a plurality of storage areas respectively based on the material type of each of the plurality of third materials. For example, the plurality of third materials include material 1, material 2 and material 3, the material type of material 1 and material 3 is type A, and the material type of material 2 is type B, then material 1 and material 3 can be written into a storage area corresponding to type A, and material 2 can be written into a storage area corresponding to type B.
[0207] According to an embodiment of the present disclosure, the microcontroller 30 can be configured to select a second display mode of each third material from a plurality of display modes according to the identification information of each third material, and control the display component to display the picture based on the second display mode of each third material.
[0208] According to an embodiment of the present disclosure, the microcontroller can be configured to process each third material based on the second display mode of each third material to obtain the bitmap data of the picture.
[0209] Optionally, the generation process of the bitmap data of the picture is not limited herein. As an optional implementation, the frame buffer can provide resource support for the generation process of the bitmap data of the picture, i.e., the generation process of the bitmap data of the picture can be executed in the frame buffer.
[0210] FIG. 7B schematically shows a schematic diagram of a picture drawing process according to an embodiment of the present disclosure.
[0211] As shown in FIG. 7B, the microcontroller 30 can be configured to process the plurality of third materials in the frame buffer 10 based on the second display mode of each of the plurality of third materials to obtain third materials of a plurality of color data types.
[0212] For each third material, if the second display mode of the third material is the first gray scale display mode, the microcontroller 30 can perform data expansion on the third material in the frame buffer 10 to obtain the third material of the color data type. If the second display mode of the third material is the color display mode, the third material can be directly taken as the third material of the color data type.
[0213] According to an embodiment of the present disclosure, the microcontroller 30 can also be configured to draw the plurality of third materials on a canvas in the frame buffer 10 based on the drawing parameter of each of the plurality of third materials to obtain the bitmap data of the picture.
[0214] The canvas can be represented as an initialized picture with all pixel values being 0, and the pixel data of each pixel in the third material of the color data type can be used to replace the pixel data of the corresponding position on the canvas to obtain the bitmap data of the picture. The corresponding position can be determined by the coordinates of each pixel in the third material, which will not be described here.
[0215] The source of the drawing parameters of each of the plurality of third materials is not limited here. For example, the drawing parameters of each of the plurality of third materials can be determined based on the display data included in the fourth control instruction.
[0216] According to an embodiment of the present disclosure, the frame buffer 10 can write the bitmap data of the picture into the display storage area 12 so that the microcontroller 30 controls the display component to display the picture based on the bitmap data in the display storage area 12.
[0217] As another optional implementation, the static memory can be used by default to provide resource support for the drawing process of the material, that is, the drawing process of the plurality of third materials can be performed in the data storage area of the static memory.
[0218] FIG. 7C schematically shows a schematic diagram of a picture drawing process according to another embodiment of the present disclosure.
[0219] As shown in FIG. 7C, the static memory 50 can be configured to read the plurality of third materials from the frame buffer 10 and write the plurality of third materials into the static memory 50.
[0220] According to an embodiment of the present disclosure, the microcontroller 30 can be configured to process the plurality of third materials in the static memory 50 based on the second display mode of each of the plurality of third materials to obtain a plurality of third materials of the color data type.
[0221] For each third material, if the second display mode of the third material is the first gray scale display mode, the microcontroller 30 can perform data expansion on the third material in the static memory 50 to obtain a color data type. If the second display mode of the third material is the color display mode, the third material can be used directly as a color data type.
[0222] According to an embodiment of the present disclosure, the microcontroller 30 can also be configured to draw the plurality of third materials on the canvas based on the drawing parameters of each of the plurality of third materials to obtain the bitmap data of the picture. The frame buffer 10 can be configured to read the bitmap data of the picture from the static memory 50 and write the bitmap data of the picture into the display storage area 12 so that the display component displays the picture.
[0223] The following describes the drawing flow based on multiple third materials by taking a curve pattern as an example. In the following example, the drawing process of the multiple third materials can be performed in a static memory.
[0224] FIG. 8A schematically shows a schematic diagram of a curve pattern drawing flow according to an embodiment of the present disclosure.
[0225] As shown in FIG. 8A, the microcontroller 30 can receive a curve drawing instruction through an external interface. The curve drawing instruction can contain data for curve pattern drawing, for example, can include data of multiple sampling points respectively. The multiple sampling points can be uniformly distributed sampling points, that is, the interval between every two sampling points is consistent.
[0226] The microcontroller 30 can determine a third material located between the two sampling points from the multiple materials based on the data of the two sampling points respectively. The material type and the material height of the required material can be determined respectively, and then the third material located between the two sampling points is determined from the multiple materials based on the material type and the material height.
[0227] The material type can be determined based on the size of the data of the two sampling points respectively. For example, for adjacent sampling point A and sampling point B, sampling point A is before sampling point B, if the data of sampling point A is greater than the data of sampling point B, it is determined that the material type of the required material is a “downward trend” type; if the data of sampling point B is equal to the data of sampling point B, it is determined that the material type of the required material is a “flat trend” type; if the data of sampling point A is less than the data of sampling point B, it is determined that the material type of the required material is an “upward trend” type.
[0228] The material height can be determined based on the difference between the data of the two sampling points respectively. For example, for adjacent sampling point A and sampling point B, sampling point A is before sampling point B, if the data of sampling point A is 3 and the data of sampling point B is 5, the material height of the required material can be determined as 2.
[0229] FIG. 8B schematically shows a schematic diagram of materials stored in a storage assembly according to an embodiment of the present disclosure.
[0230] As shown in FIG. 8B, the storage assembly can store multiple materials, each material can correspond to one of the “downward trend” type, the “flat trend” type and the “upward trend” type, and the material height of the multiple materials included in each material type can be different.
[0231] Optionally, the storage component can be configured with a table, which can record the material type and the material height of each material, and is configured with the number of each material. After determining the material type, the material matching the material type and the material height of the required material can be determined as the third material between the two sampling points by looking up the table.
[0232] Optionally, the plurality of sampling points can be non-uniformly distributed sampling points, i.e., the interval between every two sampling points is not completely consistent. For example, for the three consecutive sampling points: sampling point A, sampling point B and sampling point C, the sampling interval between sampling point A and sampling point B can be 1, and the sampling interval between sampling point B and sampling point C can be 2. For the two adjacent sampling points, the material width of the required material can also be determined, and the third material between the two sampling points can be determined from the plurality of materials based on the material type, the material height and the material width.
[0233] The material width can be determined based on the sampling interval between the two sampling points.
[0234] Optionally, the plurality of materials stored in the storage component can include materials with unmatched material width but matched material height and material type, and the size of the material can be compressed or expanded to obtain the third material. The column compression can be represented as reducing the number of columns of pixels in the material, and the column expansion can be represented as increasing the number of columns of pixels in the material. In addition, the data of each pixel can be adjusted in proportion during the column compression or column expansion, which is not described herein.
[0235] FIG. 8C schematically shows a diagram of the frame buffer reading a plurality of third materials from the storage component according to an embodiment of the present disclosure.
[0236] As shown in FIG. 8C, the microcontroller can select a plurality of third materials from the plurality of materials stored in the storage component according to the material type and the material height of each required material calculated, and control the frame buffer to read the plurality of third materials from the storage component.
[0237] After determining the plurality of third materials, the microcontroller can also determine the drawing parameters of the plurality of third materials. The drawing parameters of the third material can refer to the material coordinates of the third material, which can refer to the coordinates of the top-left pixel of the third material.
[0238] For the first third material, the material coordinates (x0, y0) of the first third material can be determined based on the sampling time information t0 of the first sampling point and the data h0 of the first sampling point, i.e., x0=t0, y0=h0.
[0239] Optionally, for the i th third material, i is an integer greater than 1, the material coordinates (x, y) of the i th third material can be determined based on the material height h of the i th third material, the material coordinates (x', y') of the (i-1) th third material, the material width w' and the material height h', and the data of the (i-1) th sampling point, the data of the i th sampling point and the data of the (i+1) th sampling point.
[0240] Based on the size relationship between the data of the (i-1) th sampling point, the data of the i th sampling point and the data of the (i+1) th sampling point, the calculation method of the material coordinates of the i th third material can include 9 cases.
[0241] FIG. 8D schematically shows a schematic diagram of the i th third material in the first case according to an embodiment of the present disclosure.
[0242] As shown in FIG. 8D, in the first case, the data of the (i-1) th sampling point is greater than the data of the i th sampling point, the data of the i th sampling point is equal to the data of the (i+1) th sampling point, and the calculation method of the material coordinates of the i th third material can be represented as x=x'+w', y=y'-h'+F. F can represent the line width of the curved pattern, and if the line width of the curved pattern is not uniform, F can represent the line width of the i th third material.
[0243] FIG. 8E schematically shows a schematic diagram of the i th third material in the second case according to an embodiment of the present disclosure.
[0244] As shown in FIG. 8E, in the second case, the data of the (i-1) th sampling point is greater than the data of the i th sampling point, the data of the i th sampling point is greater than the data of the (i+1) th sampling point, and the calculation method of the material coordinates of the i th third material can be represented as x=x'+w', y=y'-h'+F.
[0245] FIG. 8F schematically shows a schematic diagram of the i th third material in the third case according to an embodiment of the present disclosure.
[0246] As shown in FIG. 8F, in the third case, the data of the (i-1) th sampling point is greater than the data of the i th sampling point, the data of the i th sampling point is less than the data of the (i+1) th sampling point, and the calculation method of the material coordinates of the i th third material can be represented as x=x'+w', y=y'-h'+h.
[0247] FIG. 8G schematically shows a schematic diagram of the i th third material in the fourth case according to an embodiment of the present disclosure.
[0248] As shown in FIG. 8G, in the fourth case, the data of the i-1th sampling point is less than the data of the ith sampling point, the data of the ith sampling point is equal to the data of the i+1th sampling point, and the calculation manner of the material coordinates of the ith third material can be represented as x=x'+w', y=y'.
[0249] FIG. 8H schematically shows a schematic diagram of the ith third material in a fifth case, according to an embodiment of the present disclosure.
[0250] As shown in FIG. 8H, in the fifth case, the data of the i-1th sampling point is less than the data of the ith sampling point, the data of the ith sampling point is greater than the data of the i+1th sampling point, and the calculation manner of the material coordinates of the ith third material can be represented as x=x'+w', y=y'.
[0251] FIG. 8I schematically shows a schematic diagram of the ith third material in a sixth case, according to an embodiment of the present disclosure.
[0252] As shown in FIG. 8I, in the sixth case, the data of the i-1th sampling point is less than the data of the ith sampling point, the data of the ith sampling point is less than the data of the i+1th sampling point, and the calculation manner of the material coordinates of the ith third material can be represented as x=x'+w', y=y'+h-F.
[0253] FIG. 8J schematically shows a schematic diagram of the ith third material in a seventh case, according to an embodiment of the present disclosure.
[0254] As shown in FIG. 8J, in the seventh case, the data of the i-1th sampling point is equal to the data of the ith sampling point, the data of the ith sampling point is greater than the data of the i+1th sampling point, and the calculation manner of the material coordinates of the ith third material can be represented as x=x'+w', y=y'.
[0255] FIG. 8K schematically shows a schematic diagram of the ith third material in an eighth case, according to an embodiment of the present disclosure.
[0256] As shown in FIG. 8K, in the eighth case, the data of the i-1th sampling point is equal to the data of the ith sampling point, the data of the ith sampling point is equal to the data of the i+1th sampling point, and the calculation manner of the material coordinates of the ith third material can be represented as x=x'+w', y=y'.
[0257] FIG. 8L schematically shows a schematic diagram of the ith third material in a ninth case, according to an embodiment of the present disclosure.
[0258] As shown in FIG. 8L, in the ninth case, the data of the i-1th sampling point is equal to the data of the ith sampling point, the data of the ith sampling point is less than the data of the i+1th sampling point, and the calculation of the material coordinates of the ith third material can be expressed as x = x' + w', y = y' - h' + h.
[0259] The frame buffer 10 can be configured to write the plurality of third materials into the second storage area 13. The microcontroller 30 can be configured to process the plurality of third materials in the second storage area 13 based on the respective second display modes of the plurality of third materials, to obtain a plurality of third materials of a color data type, and to draw the plurality of third materials of the color data type on the canvas based on the respective drawing parameters of the plurality of third materials, to obtain the bitmap data of the curved pattern. The frame buffer 10 can further write the bitmap data of the curved pattern into the display storage area 12, so that the display assembly displays the curved pattern.
[0260] Optionally, the required display curved pattern can be a curved pattern under a tilted view angle, for example, in the scenario of a surround view display, the curved pattern located at the edge of the screen needs to be replaced by a curved pattern under a tilted view angle, to present a more realistic display effect. The materials stored in the storage assembly can all be materials under a normal view angle. In this case, the materials under a tilted view angle can be generated by generating a flip animation material based on the materials, and then generating a curved pattern under a tilted view angle based on the materials under a tilted view angle.
[0261] Optionally, the data type of the material based on which the flip animation material is generated is not limited herein, and the data type of the material can be a 1-bit gray scale data type, a 4-bit gray scale data type, an 8-bit gray scale data type, an RGB565 data type, an RGB888 data type, etc., which are not limited herein.
[0262] The following describes the generation process of the flip animation material, taking the data type of the material based on which the flip animation material is generated as a 4-bit gray scale data type as an example.
[0263] FIG. 9A schematically shows a schematic diagram of the generation process of the flip animation material according to an embodiment of the present disclosure.
[0264] As shown in FIG. 9A, in the process of generating the flip animation material based on the material, the rotation central axis of the material can be determined first. Optionally, the rotation central axis can be determined as a straight line passing through the center of the material and parallel to the vertical direction. Secondly, the change of the edge of the flipped pattern can be simulated by simulating the observation direction of the human eye. Optionally, the farther the simulated human eye is from the material, the more significant the flip effect of the material.
[0265] Optionally, the size of the flip motion effect material can be determined based on the material height H, the material width W of the material, the angle of simulation θ of the flip, and the distance G of the simulated human eye from the center point of the material. Specifically, the material width W' of the flip motion effect material can be represented as W' = Wcosθ, the minimum material height H1' of the flip motion effect material can be represented as H1' = (G-W' / 2)*H / G, and the maximum material height H2' of the flip motion effect material can be represented as H2' = (G+W' / 2)*H / G.
[0266] Optionally, after determining the material width W', the minimum material height H1', and the maximum material height H2' of the flip motion effect material, the number of columns of pixels included in the flip motion effect material and the specific number of pixels included in each column can be determined, and based on the number of columns and the number of pixels per column, the material can be converted into the flip motion effect material in proportion.
[0267] For example, the material can be represented as a 10*10 matrix, i.e., W = H = 10, if the angle of simulation θ of the flip is 60°, then the material width W' of the flip motion effect material is 10*cos60° = 5, and for the material [a1, a2,..., a10], a1, a2,..., a10 are all represented as a 10*1 column vector, 5 columns will be deleted in proportion to the material to be converted into [a1, a3, a5, a7, a9]. Further, if the distance G of the simulated human eye from the center point of the material is 5, and the rotation axis is a straight line passing through the center of the material and parallel to the vertical direction, then the number of pixels included in the first column, i.e., the minimum material height H1' is (5-2.5)*10 / 5 = 5, the number of pixels included in the second column can be 8, the number of pixels included in the third column is 10, the number of pixels included in the third column can be 13, and the number of pixels included in the fourth column, i.e., the maximum material height H2' is (5+2.5)*10 / 5 = 15. Then, the pixel data of each column can be adjusted in proportion based on the number of pixels per column and the number of pixels in the corresponding column in the material, to obtain the flip motion effect material.
[0268] FIG. 9B schematically shows a schematic diagram of a plurality of flip motion effect materials according to an embodiment of the present disclosure.
[0269] As shown in FIG. 9B, by setting different angles of simulation of the flip, the same material can generate a plurality of flip motion effect materials.
[0270] Optionally, the generated flip motion effect material can also be used for presentation of the flip motion effect, static display of patterns from other perspectives, etc., which are not limited herein.
[0271] FIG. 10 schematically shows a schematic diagram of a display device according to an embodiment of the present disclosure.
[0272] As shown in FIG. 10, the display device can include a display driving board and a display assembly 80. The display driving board can include a frame buffer 10, a first register 20, and a microcontroller 30.
[0273] According to an embodiment of the present disclosure, the frame buffer 10 can include a plurality of storage areas 11, each of which can be used to store a material of a data type. The first register 20 can be configured to store identification information of a first material in response to a first control instruction, the first material being a material to be displayed in the frame buffer, the identification information of the first material being used to represent a data type of the first material. The microcontroller 30 can be configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control the display assembly to display the first material based on the first display mode.
[0274] According to an embodiment of the present disclosure, a plurality of materials can be stored in the frame buffer, and for a first material of the plurality of materials, the first register can record identification information of the first material when the display driving board performs a display task on the first material, and the microcontroller can determine a first display mode based on the identification information of the first material, and realize imaging of the first material on the display assembly through the first display mode. The display driving board can store materials of different data types, and support selection of corresponding display modes to display materials of different data types, thereby effectively reducing the consumption of storage resources, improving the display speed of the materials, and reducing the product cost of the display driving board while ensuring the degree of fineness of the display picture.
[0275] FIG. 11 schematically shows a flowchart of a display method according to an embodiment of the present disclosure.
[0276] As shown in FIG. 11, the method includes operations S1101-S1103.
[0277] In operation S1101, identification information of a first material is obtained in response to a first control instruction, wherein the identification information of the first material is used to represent a data type of the first material.
[0278] In operation S1102, a first display mode is selected from a plurality of display modes according to the identification information of the first material.
[0279] In operation S1103, the display assembly is controlled to display the first material based on the first display mode.
[0280] According to an embodiment of the present disclosure, the identification information of the first material is used to represent the data type of the first material, the data type belongs to a plurality of data types, and the plurality of data types each correspond to a plurality of display modes
[0281] According to an embodiment of the present disclosure, a plurality of materials can be stored in the frame buffer, for a first material in the plurality of materials, when the display driving board is executing a display task on the first material, the first register can record identification information of the first material, the microcontroller can determine a first display mode based on the identification information of the first material, and realize imaging of the first material on the display component through the first display mode. The display driving board can store materials of different data types, and support selecting a corresponding display mode to display materials of different data types, while ensuring the fineness of the display picture, effectively reducing the storage resource consumption, improving the display speed of the material, and reducing the product cost of the display driving board.
[0282] When the frame buffer reads the material from the storage component, the data type of the material to be read can be determined first, and then the number of addresses to be read is determined according to the specific data type, and then the corresponding space in the frame buffer can be allocated to store the material. The data type of each material can be one of a plurality of color data types and a plurality of grayscale data types. For example, the plurality of color data types can include RGB888 data type and RGB565 data type. The plurality of grayscale data types can include 1-bit gray scale data type, 4-bit gray scale data type, and 8-bit gray scale data type.
[0283] FIG. 12 schematically shows a flowchart of the frame buffer reading the material from the storage component according to an embodiment of the present disclosure.
[0284] As shown in FIG. 12, the size of the material to be read can be W*H, and the process of the frame buffer reading the material to be read from the storage component can include operations S1201-S1211. Materials of different data types can be stored in different storage areas.
[0285] In operation S1201, the data type of the material to be read is determined. In the case where it is determined that the data type is RGB888 data type, operation S1202 is performed; in the case where it is determined that the data type is RGB565 data type, operation S1204 is performed; in the case where it is determined that the data type is 1-bit gray scale data type, operation S1206 is performed; in the case where it is determined that the data type is 4-bit gray scale data type, operation S1208 is performed; and in the case where it is determined that the data type is 8-bit gray scale data type, operation S1210 is performed.
[0286] In operation S1202, data in W*H*3 addresses is read from the first address of the material to be read.
[0287] In operation S1203, W*H*24bit space is allocated in the first dynamic storage area 1 for storing the material to be read.
[0288] In operation S1204, data in W*H*2 addresses is read from the first address of the to-be-read material.
[0289] In operation S1205, W*H*16 bit space is allocated in the first dynamic storage area 2 for storing the to-be-read material.
[0290] In operation S1206, data in [W*H / 8] addresses is read from the first address of the to-be-read material.
[0291] In operation S1207, W*H*1 bit space is allocated in the first static storage area 1 for storing the to-be-read material.
[0292] In operation S1208, data in [W*H / 2] addresses is read from the first address of the to-be-read material.
[0293] In operation S1209, W*H*4 bit space is allocated in the second static storage area 2 for storing the to-be-read material.
[0294] In operation S1210, data in W*H addresses is read from the first address of the to-be-read material.
[0295] In operation S1211, W*H*8 bit space is allocated in the third static storage area 3 for storing the to-be-read material.
[0296] Optionally, the storage component can include a plurality of memories, each of which stores only one type of material, so that the data type of the to-be-read material can be determined based on the memory in which the to-be-read material is stored.
[0297] Optionally, the first address of the to-be-read material can be determined when the to-be-read material is indexed, which is not described herein.
[0298] [W*H / 8] can be represented as the result of W*H / 8 rounded up. Since the frame buffer can only read data in an integer number of addresses when reading the to-be-read material, the result can be rounded up when W*H cannot be divided by 8 or 2, to ensure the integrity of the frame buffer reading. At the same time, since the size of the storage space allocated in the frame buffer is equal to the size of the to-be-read material, the frame buffer will not store redundant data.
[0299] According to an embodiment of the present disclosure, while the frame buffer reads the first material from the storage component, the microcontroller can obtain the flag bit from the preset position in the first material in response to storing the first material into the frame buffer, and obtain the identification information of the first material based on the value of the flag bit.
[0300] Optionally, the plurality of materials can be dynamically stored in the frame buffer in response to the second control instruction. For example, the first type of material can be dynamically selectively stored, and the second type of material can be stored in full amount, which will not be described herein.
[0301] Optionally, the identification information of the first material can be used to represent a data type of the first material, and based on the identification information of the first material, a first display mode corresponding to the data type can be selected to display the first material in the display process of the first material.
[0302] FIG. 13A schematically shows a flowchart of a display method of a first material according to an embodiment of the present disclosure.
[0303] As shown in FIG. 13A, the method includes operations S1301-S1308.
[0304] In operation S1301, a first display mode of a first material is determined based on identification information of the first material.
[0305] In operation S1302, it is determined whether the first display mode is a color display mode. In a case where it is determined that the first display mode is the color display mode, operation S1303 is performed; in a case where it is determined that the first display mode is not the color display mode, operation S1305 is performed.
[0306] In operation S1303, the first material is written into a display storage area of a frame buffer.
[0307] In operation S1304, a display component is controlled to display the first material based on data stored in the display storage area.
[0308] In operation S1305, it is determined whether the first display mode is a first gray scale display mode, in a case where it is determined that the first display mode is the first gray scale display mode, operation S1306 is performed; in a case where it is determined that the first display mode is not the first gray scale display mode, operation S1308 is performed.
[0309] In operation S1306, the first material is data-expanded in the frame buffer or a static storage to obtain a first material of a color data type.
[0310] In operation S1307, the first material of the color data type is written into the display storage area of the frame buffer. After operation S1307 is completed, operation S1304 is performed.
[0311] In operation S1308, a display component is controlled to display the first material by a mapper.
[0312] Optionally, in a case where the first display mode is the color display mode, a microcontroller can control the display component to directly display the first material.
[0313] Optionally, in the case where the first display mode is the first gray scale display mode, the microcontroller can perform an expansion process on the first material, expand the 1-bit gray scale data type, the 4-bit gray scale data type, or the 8-bit gray scale data type into the first material of the 16-bit RGB565 data type, or expand the first material into the first material of the 24-bit RGB888 data type, and then control the display component to display the first material based on the first material of the color data type. The specific calculation method of the first material expansion can be referred to the description of FIG. 5B, which will not be repeated here.
[0314] Optionally, in the case where the first display mode is the second gray scale display mode, the display of the first material can be realized by a hardware line mapping manner. In the hardware line mapping manner, the microcontroller can map each pixel of the first material into 16-bit data and then 24-bit data of the display component through a mapper, and control the display component to display the first material based on the 16-bit data and then 24-bit data of each pixel obtained by mapping.
[0315] According to the embodiments of the present disclosure, in the mapping process, no change occurs in the frame buffer, that is, the space occupation of the first material in the frame buffer does not change, which can reduce the storage resource overhead in the display process and improve the refresh and display efficiency of the material.
[0316] Optionally, in the case where the data type of the first material is the first gray scale data type, the microcontroller can also simulate the brightness adjustment of the first material by adjusting the gray scale data of each pixel in the first material.
[0317] FIG. 13B schematically shows a flowchart of a display method of a first material according to another embodiment of the present disclosure.
[0318] As shown in FIG. 13B, instead of operation S1306 in FIG. 13A, in the case where it is determined that the first display mode is the first gray scale display mode, if a third control instruction is received, operations S1310-S1317 can also be performed.
[0319] In operation S1310, in response to the third control instruction, the number of brightness adjustment steps included in the third control instruction is obtained.
[0320] In operation S1311, it is determined whether all pixels of the first material have been traversed. In the case where it is determined that all pixels of the first material have not been traversed, operation S1312 is performed; in the case where it is determined that all pixels of the first material have been traversed, operation S1316 is performed.
[0321] In operation S1312, it is judged whether the pixel data of the current pixel is 0. In a case where it is determined that the pixel data of the current pixel is 0, it is determined that the target pixel data of the current pixel is 0, and operation S1311 is executed. In a case where it is determined that the pixel data of the current pixel is not 0, operation S1313 is executed.
[0322] In operation S1313, an initial luminance value is obtained based on the pixel data of the current pixel.
[0323] In operation S1314, the initial luminance value and the luminance adjustment step are linearly added to obtain a target luminance value.
[0324] In operation S1315, the target pixel data of the material is obtained based on the target luminance value. After operation S1315 is completed, operation S1311 is executed.
[0325] In operation S1316, the adjusted first material is obtained based on the target pixel data of each of the plurality of pixels.
[0326] In operation S1317, the adjusted first material is data-expanded in the frame buffer or the static memory to obtain a first material of a color data type.
[0327] After operation S1317 is completed, the first material of the color data type can be written into the display storage area of the frame buffer, and the display component is controlled to display the first material based on the data stored in the display storage area, which is not described herein.
[0328] The process based on operation S1313 and the process based on operation S1315 can be a nonlinear modulation process.
[0329] Taking the data type of the first material as an 8-bit gray scale data type and the maximum backlight intensity of the display panel as 800 as an example. In obtaining the target pixel data of the material based on the target luminance value, if the target luminance value A is in a range of 1-20, the target pixel data B=2*A / 3.137 can be determined; if the target luminance value A is in a range of 21-40, the target pixel data B=(40+(A-20)*3) / 3.137 can be determined; if the target luminance value A is in a range of 41-60, the target pixel data B=(100+(A-40)*5) / 3.137 can be determined; if the target luminance value A is in a range of 61-80, the target pixel data B=(200+(A-60)*10) / 3.137 can be determined; and if the target luminance value A is in a range of 81-100, the target pixel data B=(400+(A-80)*20) / 3.137 can be determined.
[0330] Optionally, the microcontroller can also display a picture spliced by the plurality of materials, and during displaying the picture, the microcontroller can obtain the materials based on the display mode of each material respectively, splice the plurality of materials, and obtain the bitmap data of the picture to be displayed.
[0331] FIG. 14 schematically shows a flowchart of a picture display method according to an embodiment of the present disclosure.
[0332] As shown in FIG. 14, the method includes operations S1401-S1403.
[0333] In operation S1401, in response to the fourth control instruction, the identification information of each of the plurality of third materials is obtained, wherein the identification information of the third material is used to represent the data type of the third material.
[0334] In operation S1402, the second display mode of each of the plurality of third materials is selected from the plurality of display modes according to the identification information of each of the plurality of third materials.
[0335] In operation S1403, the display component is controlled to display a picture based on the second display mode of each of the plurality of third materials, wherein the picture is formed by splicing the plurality of third materials.
[0336] Optionally, in operation S1401, the method of operations S1201-S1211 can be applied to control the frame buffer to read the plurality of third materials respectively, which is not repeated here.
[0337] Optionally, the picture can be composed of the plurality of second materials.
[0338] Optionally, the third material with the first gray scale display mode can be data expanded based on the second display mode of the third material. The third material of the color data type obtained after expansion and the third material of the color data type without expansion can be stored in one storage area of the frame buffer or in the static storage.
[0339] Optionally, in the frame buffer or the static storage, the microcontroller can also determine the material coordinates of each third material, and render and draw each third material data of the color data type on the canvas based on the material coordinates of each third material to obtain the bitmap data of the picture.
[0340] FIG. 15 schematically shows a block diagram of a display device according to an embodiment of the present disclosure.
[0341] As shown in FIG. 15, the display device 1500 includes an obtaining module 1510, a selecting module 1520, and a displaying module 1530.
[0342] The acquisition module 1510 is configured to acquire identification information of the first material in response to the first control instruction, where the identification information of the first material is used to represent a data type of the first material.
[0343] The selection module 1520 is configured to select a first display mode from a plurality of display modes according to the identification information of the first material.
[0344] The display module 1530 is configured to control the display component to display the first material based on the first display mode.
[0345] According to embodiments of the present disclosure, the present disclosure further provides a readable storage medium and a computer program product.
[0346] According to embodiments of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to make a computer execute the method as described above.
[0347] According to embodiments of the present disclosure, a computer program product includes a computer program, which, when executed by a processor, implements the method as described above.
[0348] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), system on a chip systems (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0349] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces the functions / operations specified in the flowcharts and / or the block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0350] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable storage medium can include, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage medium would include a one or more lines of electrical connections, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0351] Those skilled in the art will appreciate that features recited in various embodiments and / or claims of the present disclosure can be combined and / or interchanged, even if this is not explicitly stated in the present disclosure. In particular, features recited in various embodiments and / or claims of the present disclosure can be combined and / or interchanged, without departing from the spirit and teachings of the present disclosure. All such combinations and / or interchanges are within the scope of the present disclosure.
[0352] The above describes embodiments of the present disclosure. However, these embodiments are merely for illustrative purposes, and are not intended to limit the scope of the present disclosure. Although each embodiment is described above separately, this does not mean that measures in various embodiments cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A display driving board, comprising: a frame buffer comprising a plurality of storage areas, each of the storage areas being configured to store a material of a data type; a first register configured to store identification information of a first material in response to a first control instruction, wherein the first material is a material to be displayed in the frame buffer, and the identification information of the first material is used to represent a data type of the first material; and a microcontroller configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control a display component to display the first material based on the first display mode. 2.The display driving board of claim 1, further comprising: a storage component configured to store a plurality of materials; wherein the frame buffer is configured to dynamically store the plurality of materials in the plurality of storage areas in response to a second control instruction. The plurality of materials comprises a plurality of first-type materials, the data type of the first-type materials is a color data type, and the plurality of storage areas comprises a first dynamic storage area configured to store materials of the color data type.
3. The display driver board of claim 2, wherein, Wherein, in response to the second control instruction, if a storage resource amount of the first dynamic storage area is less than a material data amount, the frame buffer is configured to select a target number of first-type materials from the plurality of first-type materials based on a display frequency of each first-type material, and write the target number of first-type materials into the first dynamic storage area, wherein the target number is determined based on the storage resource amount of the first dynamic storage area, and the material data amount represents a total data amount of the first-type materials. 4.The display driving board of claim 3, wherein in response to the second control instruction, if the storage resource amount of the first dynamic storage area is greater than or equal to the material data amount, the frame buffer is configured to write the plurality of first-type materials into the first dynamic storage area. The plurality of storage areas further comprises a second dynamic storage area.
5. The display driver board of claim 4, wherein, If the plurality of first-type materials are written into the first dynamic storage area, the frame buffer is configured to determine a surplus storage space of the first dynamic storage area, and allocate the surplus storage space to the second dynamic storage area. The plurality of materials comprises a plurality of second-type materials, the data type of the second-type materials is a gray scale data type, and the plurality of storage areas comprises a static storage area configured to store materials of the gray scale data type.
6. The display driver board of claim 5, wherein, In response to the second control instruction, the frame buffer is configured to write the plurality of second-type materials into the static storage area. 7.The display driving board of claim 6, further comprising: a static storage configured to determine at least one second material from the plurality of second-type materials based on a display frequency of each second-type material, and write the at least one second material into the static storage; wherein the microcontroller is configured to perform data expansion on each second material to obtain a second material of a color data type; and The frame buffer is configured to write the second material of the at least one color data type into the second dynamic storage area.
8. The display driver board of claim 7, wherein, The color data type includes a first color data type and a second color data type. The microcontroller is configured to, if it is determined that the second dynamic storage area is in a resource-rich state, perform data expansion on each second material to obtain a second material of the first color data type, and if it is determined that the second dynamic storage area is in a resource-tight state, perform data expansion on each second material to obtain a second material of the second color data type.
9. The display driver board of claim 1, wherein, The frame buffer further includes a display storage area; The microcontroller is configured to control the display assembly to display data stored in the display storage area.
10. The display driver board of claim 9, wherein, The plurality of display modes includes a first gray-scale display mode; The microcontroller is configured to, if the first display mode is the first gray-scale display mode, perform data expansion on the first material in the frame buffer to obtain a first material of a color data type, and The frame buffer is configured to write the first material of the color data type into the display storage area.
11. The display driver board of claim 9, wherein, The plurality of display modes includes a first gray-scale display mode; The display drive board further includes: A static storage is configured to, if the first display mode is the first gray-scale display mode, write the first material from the frame buffer into the static storage; The microcontroller is configured to perform data expansion on the first material in the static storage to obtain a first material of a color data type, and The frame buffer is configured to write the first material of the color data type from the data storage area into the display storage area.
12. The display device of claim 10 or 11, wherein The microcontroller is configured to, in response to a third control instruction, perform brightness adjustment on the first material in the frame buffer or in the static storage to obtain an adjusted first material, and perform data expansion on the adjusted first material to obtain the first material of the color data type. The first material includes a plurality of pixels; 13. The display device of claim 12, wherein, The microcontroller is configured to convert initial pixel data of each pixel into an initial brightness value of each pixel, linearly add a brightness adjustment step included in the third control instruction and the initial brightness value of each pixel to obtain a target brightness value of each pixel, and convert the target brightness value of each pixel into target pixel data of each pixel to obtain the adjusted first material.
14. The display device of claim 13, wherein The microcontroller is configured to determine a target adjustment strategy based on a brightness interval in which the target brightness value of each pixel is located, and convert the target brightness value of each pixel into target pixel data of each pixel based on the target adjustment strategy and an adjustment coefficient, wherein the adjustment coefficient is determined based on a maximum backlight brightness of the display assembly and a gray scale number of the pixel data. The plurality of display modes includes a color display mode; 15. The display driver board of claim 9, wherein, The frame buffer is configured to write the first material into the display storage area in response to the first control instruction if the first display mode is the color display mode.
16. The display driver board of claim 1, wherein, The plurality of display modes comprises a second gray scale display mode; The display drive board further comprises a mapper; The mapper is configured to control the display component to map and display the first material if the first display mode is the second gray scale display mode.
17. The display drive board of claim 1, wherein The frame buffer is configured to add a flag bit at a preset position in the first material, and a value of the flag bit is determined based on a data type of the first material.
18. The display drive board of claim 17, further comprising: a static storage configured to record a storage address of the first material in the frame buffer; wherein the microcontroller is configured to obtain the storage address of the first material from the static storage in response to the first control instruction, obtain the value of the flag bit from the frame buffer based on the storage address of the first material, determine identification information of the first material based on the value of the flag bit, and write the identification information of the first material into the first register.
19. The display drive board of claim 1, further comprising: a plurality of second registers, each second register configured to store identification information of a third material in response to a fourth control instruction, the identification information of the third material being used to represent a data type of the third material, and a plurality of the third materials being used to form a picture; wherein the microcontroller is configured to select a second display mode of each third material from the plurality of display modes according to the identification information of each third material, and control the display component to display the picture based on the second display mode of each third material.
20. The display driver board of claim 19, wherein, The frame buffer comprises a display storage area; wherein the microcontroller is configured to process each third material based on the second display mode of each third material to obtain bitmap data of the picture; The frame buffer is configured to write the bitmap data of the picture into the display storage area; and The microcontroller is configured to control the display component to display the picture based on the bitmap data in the display storage area.
21. The display drive board of claim 20, wherein The microcontroller is configured to process each third material based on the second display mode of each third material to obtain third materials of a color data type, and draw a plurality of third materials of the color data type on a canvas based on drawing parameters of each third material to obtain the bitmap data of the picture; wherein the drawing parameters of the third material are determined based on display data included in the fourth control instruction.
22. A display device, comprising: a display drive board and a display component; wherein the display drive board comprises a frame buffer, a first register, and a microcontroller; The frame buffer comprises a plurality of storage areas, each storage area configured to store a material of a data type; the first register is configured to store identification information of the first material in response to a first control instruction, wherein the first material is a material to be displayed in the frame buffer, and the identification information of the first material is used to represent a data type of the first material; and the microcontroller is configured to select a first display mode from a plurality of display modes according to the identification information of the first material, and control the display component to display the first material based on the first display mode.
23. A display method, comprising: in response to a first control instruction, obtaining identification information of a first material, wherein the identification information of the first material is used to represent a data type of the first material; selecting a first display mode from a plurality of display modes according to the identification information of the first material; and controlling a display component to display the first material based on the first display mode.
24. The method of claim 21, further comprising: in response to a second control instruction, dynamically storing a plurality of materials in a frame buffer.
25. The method of claim 21, wherein, the plurality of display modes comprises a first gray scale display mode; wherein the controlling the display component to display the first material based on the first display mode comprises: if the first display mode is the first gray scale display mode, performing data expansion on the first material in the frame buffer or a static memory to obtain a first material of a color data type; and writing the first material of the color data type into a display storage area of the frame buffer to control the display component to display the first material.
26. The method of claim 23, wherein, the plurality of display modes comprises a second gray scale display mode; wherein the controlling the display component to display the first material based on the first display mode comprises: if the first display mode is the second gray scale display mode, controlling the display component to display the first material by a mapper.
27. The method of claim 23, further comprising: in response to a fourth control instruction, obtaining identification information of a plurality of third materials respectively, wherein the identification information of the third materials is used to represent data types of the third materials; selecting second display modes of the plurality of third materials respectively from the plurality of display modes according to the identification information of the plurality of third materials respectively; and controlling the display component to display a picture based on the second display modes of the plurality of third materials respectively, wherein the picture is formed by splicing the plurality of third materials.
28. A display apparatus, comprising: an obtaining module configured to obtain identification information of a first material in response to a first control instruction, wherein the identification information of the first material is used to represent a data type of the first material; a selecting module configured to select a first display mode from a plurality of display modes according to the identification information of the first material; and a display module configured to control a display component to display the first material based on the first display mode. the computer instructions are used to cause the computer to perform the method of any one of claims 23-27.
29. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, 30. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 23-27.
Citation Information
Patent Citations
Data processing method and device
CN109710185A
Material display method and device, electronic equipment and storage medium
CN110503010A
Screen display method and device, storage medium, processor and computer equipment
CN111240613A
Method for supporting local refreshing of any display area
CN112004089A
Media file playing method and device, equipment and storage medium
CN114153514A