Display method, chip, display device and storage medium
By determining the target color in the preset image based on the coordinates and images of the target pixel points, the problem that low-performance chips in the prior art are difficult to process a large amount of data, and the function of drawing a display unit on the preset image is realized.
Patent Information
- Application Number
- CN202510244117.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-06-13
AI Technical Summary
In the prior art, pointer color information needs to be transmitted through 4C and 5C commands carrying a large amount of data, resulting in the chip that needs to process a large amount of data, which is difficult to meet the processing requirements of low-performance chips, and the function of dynamic pointer drawing cannot be realized.
By determining the target color of the target pixel in the preset image based on the first coordinates of the target pixel point and at least two images, the need for chip performance is reduced without receiving the target color information through a command carrying a large amount of data.
This enables low-performance chips to draw display units on preset images, realizing the function of dynamic pointer drawing, while reducing the performance requirements of the chip.
Smart Images

Figure CN120144079A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and particularly to a display method, a chip, a display device, and a storage medium. Background Art
[0002] With the popularization of chips in smart watches, mobile phones, etc., users' demand for personalized displays is increasing day by day. Especially in the design of the dial interface, users expect to freely adjust the pointer color to match different styles of dials. In low-power scenarios, embedded devices usually use an MCU (Microcontroller Unit) chip to independently process the display logic to achieve dynamic pointer drawing.
[0003] Currently, the mainstream solution uses 4C commands and 5C commands that carry a large amount of data in the DCS (Display Command Set) of the MIPI (Mobile Industry Processor Interface) protocol to transmit pointer color information to achieve dynamic pointer drawing. The specific solution includes: when the device enters the screen-off mode, the host system sends 4C commands and 5C commands to the chip to transmit pointer color information, and the chip dynamically draws the pointer according to the pointer color information. The host only needs to periodically send time data and 4C commands and 5C commands to achieve the display function.
[0004] However, in the existing solution, the pointer color information needs to be transmitted through 4C and 5C commands that carry a large amount of data, which requires the chip to process a large amount of data and poses strict requirements on the performance of the chip. Therefore, low-performance chips are difficult to carry a large amount of data processing tasks and cannot achieve the function of dynamic pointer drawing. Summary of the Invention
[0005] In view of the deficiencies in the prior art, the present application provides a display method, a chip, a display device, and a storage medium. By determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and at least two images, the present application does not need to receive the target color information through commands that carry a large amount of data, which can reduce the requirements for the chip performance and enable low-performance chips to also achieve the function of drawing display units on the preset image.
[0006] To solve the above problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a display method, including: receiving the drawing parameter setting data of the display unit;
[0008] determining the first coordinate of the target pixel point according to the drawing parameter setting data;
[0009] Obtain at least two images;
[0010] Determine the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and the at least two images; wherein, the preset image is one of the at least two images;
[0011] Taking the preset image as the background, draw the display unit on the preset image according to the target color of the target pixel point in the preset image and the drawing parameter setting data.
[0012] In some embodiments, the determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and the at least two images includes:
[0013] Determine the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and the at least two images;
[0014] Determine the target color of the target pixel point in the preset image according to the second coordinate of the target pixel point.
[0015] In some embodiments, the determining the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and the at least two images includes:
[0016] When the colors of the target pixel points at the first coordinates of the Nth image and the (N - 1)th image among the at least two images are both background colors, determine the Nth image or the image received after the Nth image as the preset image, and determine the second coordinate as the first coordinate plus a preset offset coordinate, where N is a positive integer and N is greater than or equal to 2.
[0017] In some embodiments, the determining the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and the at least two images includes:
[0018] When the colors of the target pixel points at the first coordinates of the first P images among the at least two images are not all background colors, determine the first coordinate as the second coordinate, and determine any one of the at least two images as the preset image, where P is a positive integer and P is greater than or equal to 1.
[0019] In some embodiments, the determining the first coordinate of the target pixel point according to the drawing parameter setting data includes:
[0020] Determine the drawing start coordinate or the drawing end coordinate of the display unit according to the drawing parameter setting data, and determine the drawing start coordinate or the drawing end coordinate as the first coordinate of the target pixel point.
[0021] In some embodiments, the method further includes:
[0022] When receiving a command, identifying whether the command is a command for indicating a target color of the display unit;
[0023] When identifying that the command is a command for indicating a target color of the display unit, discarding the data carried by the command.
[0024] In some embodiments, the image is a dial image, and the display unit is a pointer displayed on the dial image.
[0025] In a second aspect, an embodiment of the present application provides a chip, which includes:
[0026] At least one processor; and,
[0027] A memory communicatively connected to the at least one processor; wherein,
[0028] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the display method as described in the first aspect.
[0029] In a third aspect, an embodiment of the present application provides a display device, including the chip as described in the second aspect and a display module, and the chip is used to display a preset image and a display unit in the display module.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the display method as described in the first aspect.
[0031] The present application provides a display method, a chip, a display device and a storage medium. By determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and at least two images, the present application can reduce the requirement for the performance of the chip without receiving the target color information through a command carrying a large amount of data, so that a low-performance chip can also implement the function of drawing a display unit on the preset image. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a flowchart of the display method provided by an embodiment of the present application.
[0033] Figure 2 is Figure 1 a detailed flowchart of step S400 in
[0034] Figure 3 isFigure 2 Schematic diagram of the refined process of step S410 in
[0035] Figure 4 Schematic diagram of the structure of the display device provided by the embodiment of the present application.
[0036] Figure 5 Schematic diagram of the structure of a chip provided by the embodiment of the present application.
[0037] Figure 6 Block diagram of the structure of a computer-readable storage medium provided by the embodiment of the present application. Specific implementation manners
[0038] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0039] In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality" means two or more unless otherwise specifically defined.
[0040] The present application provides a display method, a chip, a display device, and a storage medium. By determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and at least two images, it is not necessary to receive the target color information through a command carrying a large amount of data, which can reduce the requirements for the chip performance, so that a low-performance chip can also implement the function of drawing a display unit on the preset image.
[0041] Next, the display method provided by the present application will be specifically described in conjunction with the drawings.
[0042] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the process of the display method provided by the embodiment of the present application. As Figure 1 shown, the display method includes: step S100 to step S500.
[0043] Step S100: Receive the drawing parameter setting data of the display unit.
[0044] In some embodiments, receive the drawing parameter setting data in the drawing parameter setting command.
[0045] In some embodiments, the drawing parameter setting command is a DCS command compliant with the MIPI protocol, and the drawing parameter setting command is not a command carrying a large amount of data.
[0046] Optionally, the drawing parameter setting command is the 0x77 command.
[0047] In some embodiments, when the memory of the chip receives the drawing parameter setting command, the parameter setting command identifier is set to a second value. When the memory of the chip does not receive the drawing parameter setting command, or when the current drawing parameter setting command has been executed, the parameter setting command identifier is set to a first value.
[0048] In some embodiments, the processor of the chip polls the drawing parameter setting command identifier and determines whether the drawing parameter setting command has been received based on the value of the drawing command identifier.
[0049] In some embodiments, when the drawing parameter setting command identifier is the first value, it is determined that the drawing parameter setting command has not been received. When the drawing parameter setting command identifier is the second value, it is determined that the drawing parameter setting command has been received, and the drawing parameter setting data included in the drawing parameter setting command is obtained. Here, the second value is different from the first value.
[0050] Optionally, the first value is 0 and the second value is 1.
[0051] In some embodiments, in response to receiving the drawing parameter setting command, the RX frame interrupt (Receive Frame Interrupt) is enabled, and an interrupt callback function is registered to trigger the execution of the following steps S200 to S500.
[0052] In some embodiments, before step S100, the method further includes: entering the screen-off state in response to receiving the screen-off control command; entering the sleep mode in response to receiving the mode setting command. Here, the screen-off control command, the mode setting command, and the drawing parameter setting command comply with the same protocol. For example, the screen-off control command, the mode setting command, and the drawing parameter setting command all comply with the MIPI protocol.
[0053] Optionally, the screen-off control command is the 0x28 command, and the mode setting command is the 0x10 command.
[0054] Step S200: Determine the first coordinate of the target pixel point according to the drawing parameter setting data.
[0055] In some embodiments, determine the drawing start coordinate or the drawing end coordinate of the display unit according to the drawing parameter setting data, and determine the drawing start coordinate or the drawing end coordinate as the first coordinate of the target pixel point.
[0056] In some embodiments, the drawing parameter setting data includes coordinate data, and the coordinate data is used to represent the coordinates of a pixel point in the image.
[0057] Optionally, the coordinate data is used to represent the coordinates of the central pixel point of the image, and the first coordinate of the target pixel point is the coordinates of the central pixel point of the image.
[0058] In some embodiments, the drawing start point coordinates or the drawing end point coordinates of the display unit are determined according to the coordinate data in the drawing parameter setting data.
[0059] In some embodiments, the display unit is a pointer displayed on the dial image.
[0060] Step S300: Obtain at least two images.
[0061] In some embodiments, after receiving the drawing parameter setting data, images are continuously obtained multiple times, and one image is obtained each time, so as to obtain at least two images.
[0062] In some embodiments, all the images obtained after receiving a drawing parameter setting data are the same.
[0063] In some embodiments, the image is a dial image. Optionally, at this time, the above-mentioned drawing parameter setting data includes the coordinate data of the central pixel point of the dial image.
[0064] In some embodiments, the types of the images include a solid dial image type and a hollow dial image type.
[0065] Optionally, the solid dial image type may include a solid circular dial image type, a solid square dial image type, a solid irregular graphic dial image type, etc. The hollow dial image type may include a hollow ring dial image type, a hollow square dial image type, a hollow irregular graphic dial image type, etc.
[0066] Step S400: Determine the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and at least two images.
[0067] Wherein, the preset image is one of the at least two images.
[0068] Please refer to Figure 2 , Figure 2 which Figure 1 is the detailed flowchart of step S400 in Figure 2 As shown in
[0069] Step S410: Determine the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and at least two images.
[0070] Please refer to Figure 3 , Figure 3 which Figure 2 is the detailed flowchart of step S410 in Figure 3 As shown, in some embodiments, step S410 includes steps S411 to S414.
[0071] Step S411: Determine the color of the target pixel point in the i-th image according to the first coordinate of the target pixel point.
[0072] Wherein, i is a positive integer and the initial value is 1. The i-th image refers to an image with the serial number i obtained by sorting all the acquired images in the order of acquisition time after receiving a drawing parameter setting data.
[0073] In some embodiments, the pixel point with the first coordinate in the i-th image is determined as the target pixel point in the i-th image, so as to obtain the color of the target pixel point in the i-th image.
[0074] Step S412: Let i = i + 1, and return to execute step S411.
[0075] Step S413: Judge the type of the image according to the colors of the target pixel points with the first coordinate in multiple images obtained by executing step S411 multiple times, and determine the second coordinate of the target pixel point and the preset image according to the type of the image.
[0076] In some embodiments, the types of the images include a solid dial image type and a hollow dial image type, and the display unit is a pointer displayed on the dial image. By judging the type of the image and determining the second coordinate of the target pixel point and the preset image according to the type of the image, the color of the subsequent determined pointer can be the same as the color of the dial in the image, so as to achieve a better clock display effect.
[0077] In some embodiments, when the type of the image is the solid dial image type, the color of the target pixel point of the image is the color of the dial, and should also be the color of the display unit.
[0078] In some embodiments, when the type of the image is a hollow dial image type, the color of the target pixel point of the image is the background color. In this case, the color of the target pixel point should not be the color of the display unit. For example, when the type of the image is a hollow ring dial image type and the first coordinate is the coordinate of the central pixel point of the image, the color of the target pixel point is black, while the ring dial in the image is not black. At this time, the color of the target pixel point should not be the color of the display unit, but the color of the ring dial in the image.
[0079] Optionally, the background color can be a color such as black or white.
[0080] In some embodiments, when the colors of the target pixel points of the first coordinates of the Nth image and the (N - 1)th image among at least two images are both the background color, it is determined that the type of the image is a hollow dial image type. At this time, the Nth image or the image received after the Nth image is determined as the preset image, and the second coordinate is determined as the first coordinate plus the preset offset coordinate. Wherein, N is a positive integer and N is greater than or equal to 2. The Nth image refers to an image with the serial number N obtained by sorting all the acquired images in the order of acquisition time after receiving a drawing parameter setting data.
[0081] In some cases, after receiving a drawing parameter setting data, the first image acquired may be a completely black image, and the second image is an image showing a color dial. Therefore, N is greater than or equal to 2, so that the type of the image can be determined based on the colors of the target pixel points of the first coordinates of at least the first 2 images, preventing misjudgment and ensuring that the color of the subsequent determined pointer is the same as the color of the dial.
[0082] When the colors of the target pixel points of the first coordinates of the Nth image and the (N - 1)th image among at least two images are both the background color, it indicates that the type of the image is a hollow dial image type, and the pixel point of the first coordinate in the image is not a pixel point on the hollow dial (such as a ring dial). At this time, the color of the target pixel point is not the color of the dial. Therefore, the Nth image or the image received after the Nth image is determined as the preset image, and the second coordinate is determined as the first coordinate plus the preset offset coordinate. After determining the second coordinate as the first coordinate plus the preset offset coordinate, the target pixel point of the second coordinate of the preset image is a pixel point on the hollow dial (such as a ring dial). At this time, the color of the target pixel point is the color of the dial and should also be the color of the display unit.
[0083] In some embodiments, the (N + 1)-th image is determined as the preset image. Since the number of images that can be received at most after receiving a drawing parameter setting data is limited, after obtaining the color of the target pixel point of the first coordinate of the image, the image often will not be further processed. Therefore, in this way, the target color can be obtained in time from the (N + 1)-th image, and the images obtained after the (N + 1)-th image can also be used for further judgment processing.
[0084] In some embodiments, the preset offset coordinates are determined in advance according to the dial display area in the image.
[0085] Optionally, the preset offset coordinates are (13, 13). When the first coordinate is (x, y), the first coordinate plus the preset offset coordinates is (x + 13, y + 13), and (x + 13, y + 13) is the second coordinate.
[0086] As described above, in some embodiments, the hollow dial image types may include hollow ring dial image types, hollow square dial image types, hollow irregular graphic dial image types, etc.
[0087] In some embodiments, multiple preset offset coordinates are set in advance, and each preset offset coordinate corresponds to a type of hollow dial image. When the colors of the target pixel points of the first coordinates of the N-th image and the (N - 1)-th image among at least two images are both background colors, the (N + 1)-th image is determined as the preset image, and the second coordinate is determined as the first coordinate plus the first preset offset coordinate, and then the color of the target pixel point of the second coordinate of the (N + 1)-th image is obtained. When the color of the target pixel point of the second coordinate of the (N + 1)-th image is also the background color, the (N + 2)-th image is determined as the preset image, and the second coordinate is updated to the first coordinate plus the second preset offset coordinate, and then the color of the target pixel point of the second coordinate of the (N + 2)-th image is obtained. When the color of the target pixel point of the second coordinate of the (N + 3)-th image is also the background color, the (N + 4)-th image is determined as the preset image, and the second coordinate is updated to the first coordinate plus the third preset offset coordinate, and then the color of the target pixel point of the second coordinate of the (N + 4)-th image is obtained, and so on. When the color of the target pixel point is not the background color, the update of the second coordinate stops. At this time, the preset offset coordinate corresponds to a type of hollow dial image, and the color of the target pixel point is the color of the dial. In this way, it can be further ensured that the color of the pointer is the same as the color of the dial.
[0088] In some embodiments, when the colors of the target pixel points of the first coordinates in the first P images among at least two images are not all the background color, it is determined that the type of the image is a solid dial image type. At this time, the first coordinates are determined as the second coordinates, and any one of the at least two images is determined as the preset image. Wherein, P is a positive integer and P is greater than or equal to 1. The first P images refer to, after receiving a drawing parameter setting data, sorting all the acquired images in the order of acquisition time, and the P images with serial numbers before P (including P) among all the images.
[0089] In some embodiments, when the color of the target pixel point of the first coordinate of the first image is not the background color, it can be determined that the type of the image is a solid dial image type.
[0090] As described above, in some cases, after receiving a drawing parameter setting data, the first image acquired may be a completely black image, and the second image is the image showing the color dial. Preferably, P is greater than or equal to 2. In this way, the type of the image can be determined based on the colors of the target pixel points of the first coordinates of at least the first 2 images, preventing misjudgment.
[0091] Optionally, when the colors of the target pixel points of the first coordinates in the first P images among at least two images are not all the background color, the second image or any image acquired after the second image is determined as the preset image. In this way, in the case where the first image is a completely black image, it can also be ensured that the image showing the color dial is determined as the preset image, so as to obtain the correct target color.
[0092] Optionally, P and N may be the same or different.
[0093] Preferably, P and N may be the same. In this way, the second coordinates of the target pixel points and the preset image can be determined according to one image at the same time, and then step S411 is stopped from being executed.
[0094] Step S414: When the value of i is the first preset value, or the second coordinates of the target pixel points and the preset image have been determined, stop executing step S411.
[0095] In some embodiments, the first preset value is the maximum number of all images that can be received after receiving a drawing parameter setting data.
[0096] Optionally, the first preset value is 2, 3, 4, 5 or 10, etc.
[0097] In some embodiments, when the value of i is the first preset value, or when the second coordinate of the target pixel point and the preset image have been determined, the parameter setting command identifier is set to the first numerical value. Because when the value of i is the first preset value, or when the second coordinate of the target pixel point and the preset image have been determined, it indicates that the current drawing parameter setting command has been executed. At this time, the value of i is also cleared to wait for processing the next drawing parameter setting command.
[0098] Step S420: Determine the target color of the target pixel point in the preset image according to the second coordinate of the target pixel point.
[0099] In some embodiments, the pixel point with the second coordinate in the preset image is determined as the target pixel point in the preset image, and the color of the target pixel point is determined as the target color.
[0100] Step S500: Using the preset image as the background, draw the display unit on the preset image according to the target color of the target pixel point in the preset image and the drawing parameter setting data.
[0101] In some embodiments, the image is a dial image, and the display unit is a pointer displayed on the dial image.
[0102] In some embodiments, using the preset image as the background, taking the target color of the target pixel point in the preset image as the color of the display unit, determining the drawing start coordinate or the drawing end coordinate of the display unit according to the drawing parameter setting data, and drawing the display unit on the preset image according to the drawing start coordinate or the drawing end coordinate of the display unit and the color of the display unit.
[0103] Through the above method, it is possible to determine the color of the display unit according to the acquired image, without receiving the target color information through a command carrying a large amount of data, which can reduce the requirements for the chip performance, enabling a low-performance chip to also implement the function of drawing the display unit on the preset image.
[0104] In some embodiments, the method further includes steps S600 to S700.
[0105] Step S600: When receiving a command, identify whether the command is a command for indicating the target color of the display unit.
[0106] In some embodiments, identify whether the command is a command for indicating the target color of the display unit according to the identifier of the command header or the format of the command.
[0107] In some embodiments, the command for indicating the target color of the display unit is a command carrying a large amount of data, such as a 4C command or a 5C command, and carries the data of the target color of the display unit. Low-performance chips often have difficulty in carrying out a large amount of data processing tasks, so step S700 is executed.
[0108] Step S700: When it is recognized that the command is a command for indicating the target color of the display unit, discard the data carried by the command.
[0109] In the above manner, the chip does not need to process the data carried by the command for indicating the target color of the display unit, reducing the requirements for the chip performance.
[0110] In summary, the display method provided by the embodiments of the present application has the following advantages:
[0111] 1. By determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and at least two images, it is not necessary to receive the target color information through a command carrying a large amount of data, which can reduce the requirements for the chip performance, enabling low-performance chips to also implement the function of drawing a display unit on the preset image.
[0112] 2. By judging the type of the image and determining the second coordinate of the target pixel point and the preset image according to the type of the image, the color of the subsequent determined pointer can be the same as the color of the dial in the image, thus achieving a better clock display effect.
[0113] 3. By the way that N is greater than or equal to 2, the type of the image can be judged based on the colors of the target pixel points of the first coordinates of at least the first 2 images, preventing misjudgment and ensuring that the color of the subsequent determined pointer is the same as the color of the dial.
[0114] 4. By determining the (N + 1)-th image as the preset image, the target color can be obtained in time from the (N + 1)-th image, and the images obtained after the (N + 1)-th image can also be used for further judgment and processing.
[0115] 5. By judging the type of the image multiple times, it can further ensure that the color of the pointer is the same as the color of the dial.
[0116] Please refer to Figure 4 , Figure 4 which is the schematic structural diagram of the display device provided by the embodiments of the present application. As Figure 4 shown, the display device 300 includes an acquisition module 310 and a processing module 320.
[0117] In some embodiments, the acquisition module 310 is configured to receive the drawing parameter setting data of the display unit; acquire at least two images.
[0118] In some embodiments, the processing module 320 is configured to determine the first coordinate of a target pixel point according to the drawing parameter setting data; determine the target color of the target pixel point in a preset image according to the first coordinate of the target pixel point and at least two images; wherein the preset image is one of the at least two images; and, with the preset image as the background, draw a display unit on the preset image according to the target color of the target pixel point in the preset image and the drawing parameter setting data.
[0119] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of a chip provided by an embodiment of the present application. As Figure 5 shown, the chip 400 includes: one or more processors 410 and a memory 420. Figure 5 Here, one processor 410 is taken as an example.
[0120] In some embodiments, the processor 410 and the memory 420 may be connected through a bus or other means. Figure 5 Here, connection through a bus is taken as an example.
[0121] In some embodiments, the processor 410 is configured to receive the drawing parameter setting data of the display unit; determine the first coordinate of the target pixel point according to the drawing parameter setting data; obtain at least two images; determine the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and the at least two images; wherein the preset image is one of the at least two images; and, with the preset image as the background, draw a display unit on the preset image according to the target color of the target pixel point in the preset image and the drawing parameter setting data.
[0122] In some embodiments, the memory 420, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions / modules of the display method in the embodiments of the present application. The processor 410 executes various functional applications and data processing of the chip 400 by running the non-volatile software programs, instructions, and modules stored in the memory 420, that is, implements the display method in the above method embodiments.
[0123] In some embodiments, the memory 420 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the chip 400 and the like. In addition, the memory 420 may include a high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 420 may optionally include a memory remotely disposed relative to the processor 410, and these remote memories may be connected to the controller through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] In some embodiments, one or more modules are stored in the memory 420 and, when executed by one or more processors 410, perform the display method in any of the above method embodiments. For example, the method steps S100 to step S500 described above are performed. Figure 1 in the above.
[0125] This application also provides a display device, including the chip and a display module as described above. The chip is used to display a preset image and a display unit in the display module.
[0126] Please refer to Figure 6 , Figure 6 , which is a structural block diagram of a computer-readable storage medium provided by an embodiment of this application. Program code 510 is stored in the computer-readable storage medium 500, and the program code 510 can be called by a processor to execute the display method described in the above method embodiments.
[0127] The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-volatile computer-readable medium. The computer-readable storage medium 500 has a storage space for program code that executes any of the method steps in the above display method. These program codes can be read out from or written into one or more computer program products. The program codes can be compressed in an appropriate form, for example.
[0128] In some embodiments, an embodiment of this application also provides a computer program product, including a computer program that, when executed by a processor, implements the above display method.
[0129] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium 500. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, a database, or other media used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0130] In summary, the present application provides a display method, a chip, a display device, and a storage medium. The display method includes: receiving the drawing parameter setting data of the display unit; determining the first coordinate of the target pixel point according to the drawing parameter setting data; obtaining at least two images; determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and the at least two images; where the preset image is one of the at least two images; using the preset image as the background, and drawing the display unit on the preset image according to the target color of the target pixel point in the preset image and the drawing parameter setting data. By determining the target color of the target pixel point in the preset image according to the first coordinate of the target pixel point and the at least two images, the present application does not need to receive the target color information through a command carrying a large amount of data, can reduce the requirements for the chip performance, and enables a low-performance chip to also implement the function of drawing the display unit on the preset image.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A display method, characterized in that: include: Receiving drawing parameter setting data of a display unit; Determine a first coordinate of a target pixel point according to the drawing parameter setting data; Get at least two images; Determining a target color of a target pixel in a preset image according to the first coordinate of the target pixel and the at least two images; wherein the preset image is one of the at least two images; The preset image is used as a background, and the display unit is drawn on the preset image according to the target color of the target pixel point in the preset image and the drawing parameter setting data.
2. The display method according to claim 1, characterized in that: The step of determining a target color of a target pixel in a preset image according to the first coordinate of the target pixel and the at least two images includes: Determine the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and the at least two images; A target color of a target pixel in the preset image is determined according to the second coordinate of the target pixel.
3. The display method according to claim 2, characterized in that: The determining the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and the at least two images includes: When the colors of the target pixel points of the first coordinates of the Nth image and the N-1th image in the at least two images are both the background color, the Nth image or the image received after the Nth image is determined as the preset image, and the second coordinate is determined as the first coordinate plus the preset offset coordinate, where N is a positive integer and N is greater than or equal to 2.
4. The display method according to claim 2, characterized in that: The determining the second coordinate of the target pixel point and the preset image according to the first coordinate of the target pixel point and the at least two images includes: When the colors of the target pixel points of the first coordinates of the first P images in the at least two images are not all the background colors, the first coordinate is determined as the second coordinate, and any one of the at least two images is determined as the preset image, where P is a positive integer and P is greater than or equal to 1.
5. The display method according to claim 1, characterized in that: The step of determining the first coordinate of the target pixel point according to the drawing parameter setting data comprises: The drawing starting point coordinates or the drawing end point coordinates of the display unit are determined according to the drawing parameter setting data, and the drawing starting point coordinates or the drawing end point coordinates are determined as the first coordinates of the target pixel point.
6. The display method according to claim 1, characterized in that: The method further comprises: When receiving a command, identifying whether the command is a command for indicating a target color of the display unit; When the command is identified as a command for indicating a target color of the display unit, data carried by the command is discarded.
7. The display method according to any one of claims 1 to 6, characterized in that: The image is a dial image, and the display unit is a pointer displayed on the dial image.
8. A chip, characterized in that: The chip comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the display method according to any one of claims 1 to 6.
9. A display device, characterized in that: It comprises the chip as claimed in claim 8 and a display module, wherein the chip is used to display a preset image and a display unit in the display module.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an executable program, and the executable program is executed by a processor to implement the display method according to any one of claims 1 to 6.