Frame display detection control method and device, chip and equipment

By preconfiguring the transparency value in the image frame as frame control information, detecting frame display abnormalities and feeding them back to the application layer, the performance and cost issues of frame display abnormality detection in the existing technology are solved, and efficient frame display detection control is achieved.

CN118736992APending Publication Date: 2024-10-01BEIJING SEMIDRIVE TECHNOLOGY LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411096601.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When the existing technology detects frame display abnormalities caused by vertical synchronization, it affects system performance and makes data analysis difficult, and it is unable to feed back frame synchronization information to the application layer, making debugging equipment costly and difficult.

Method used

By preconfiguring the transparency value of the first pixel in the image frame as frame control information, the image frame is controlled for display processing, and the frame control information is read to determine display abnormalities and fed back to the application layer, avoiding the impact on system performance and data Analysis difficulty reduces the cost and difficulty of debugging equipment.

Benefits of technology

It effectively avoids the impact on system performance and the difficulty of data analysis, realizes application layer feedback of frame control information, and reduces the cost and difficulty of debugging equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736992A_ABST
    Figure CN118736992A_ABST
Patent Text Reader

Abstract

The invention discloses a frame display detection control method and device, a chip and equipment, and the method comprises the steps: pre-configuring a transparency value of a first pixel point in an image frame into frame control information corresponding to the first pixel point; wherein each corner area of the image frame comprises at least one first pixel point; the frame control information comprises a frame sequence number of the corresponding image frame; controlling to perform display processing on the image frame; controlling and reading frame control information of a first pixel point of the image frame after display processing; based on the frame control information of the first pixel point of the image frame, determining whether the image frame has display abnormity or not; and feeding back frame control information of the image frame to the application layer in response to determining that the image frame has the display abnormity. Therefore, the influence on the system performance can be effectively avoided, the data analysis difficulty is reduced, and the frame control information can be fed back to the application layer. In addition, the debugging equipment cost and the debugging difficulty can be reduced during debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display detection technology, and in particular to a frame display detection control method, device, chip and equipment. Background Art

[0002] In image display, VSync (Vertical Synchronization) can synchronize the refresh rate of the GPU (Graphics Processing Unit) with that of the display by limiting the frame rate of the GPU, thereby avoiding abnormal image display, such as tearing or ghosting.

[0003] When VSync fails or works abnormally, there will be problems with the coordination between the GPU and the display. For example, the GPU may send a new image frame when the display is not ready, or the display may not work at the expected speed when rendering the image. This will affect the reliability and smoothness of the display, which will directly affect the user experience. Especially in the application scenario of automotive digital instruments, it will also affect driving safety. Therefore, the detection of display anomalies caused by vertical synchronization has become one of the important detection links.

[0004] In the related art, frame synchronization information (such as frame number and frame rate) is usually saved to the log system, and then abnormal judgment is made by analyzing the logs of the log system. However, this method has certain disadvantages: on the one hand, since the refresh frame rate is usually high (such as 60fps), the storage of detection information will lead to excessive log volume, which will affect system performance and increase the difficulty of data analysis; on the other hand, since the application layer does not have a corresponding interface, it is impossible to provide frame synchronization information to the application layer for processing, and the detection processing is limited. In addition, in the actual vehicle debugging, additional hardware equipment is required for reading, and a large number of parameter adjustments are required, resulting in high debugging equipment costs and difficulty in debugging.

[0005] Based on this, how to provide a frame display detection control method that can avoid affecting system performance and data analysis difficulty and can provide feedback to the application layer to facilitate device debugging has become an urgent problem to be solved. Summary of the invention

[0006] In order to solve at least one problem existing in the prior art, the purpose of this application is to provide a frame display detection control method, device, chip and equipment, which can not only effectively avoid affecting system performance and reduce the difficulty of data analysis, but also can feed back frame control information to the application layer. In addition, no additional hardware equipment is required for data reading during debugging, which helps to reduce the cost of debugging equipment, and does not require a large number of parameter adjustments, reducing the difficulty of debugging.

[0007] To achieve the above purpose, the frame display detection control method provided by the present application includes:

[0008] Preconfiguring the transparency value of a first pixel point in an image frame as frame control information of the corresponding first pixel point; wherein each corner area of ​​the image frame includes at least one of the first pixel points; and the frame control information includes a frame sequence number of the corresponding image frame;

[0009] Controlling display processing of the image frame;

[0010] Controlling reading of frame control information of a first pixel point of the image frame after the display processing;

[0011] Determining whether the image frame has a display abnormality based on the frame control information of the first pixel point of the image frame;

[0012] In response to determining that the image frame has a display abnormality, frame control information of the image frame is fed back to the application layer.

[0013] Furthermore, the display processing of the image frame includes image synthesis of the image frame; the method also includes,

[0014] The image synthesis is configured to be based on image synthesis of other pixel points other than the first pixel point in the image frame.

[0015] Furthermore, the step of determining whether the image frame has display abnormality based on the frame control information of the first pixel point of the image frame includes:

[0016] Comparing the frame sequence numbers of all first pixels in the image frame;

[0017] In response to the frame sequence numbers of all first pixels in the image frame being the same, determining that the image frame does not have a tearing display abnormality;

[0018] In response to at least two first pixels in the image frame having different frame numbers, it is determined that the image frame has a tearing display abnormality.

[0019] Furthermore, the method further comprises,

[0020] Get the frame number of the first pixel of the next image frame to be drawn by the GPU;

[0021] In response to determining that the current image frame after the display processing does not have a tearing display abnormality, and the frame sequence number of the first pixel point of the current image frame and the frame sequence number of the first pixel point of the next image frame meet a preset sequence, determining that the current image frame does not have a ghosting display abnormality;

[0022] In response to determining that the current image frame does not have a tearing display abnormality, and the frame sequence number of the first pixel point of the current image frame and the frame sequence number of the first pixel point of the next image frame do not satisfy a preset sequence, it is determined that the current image frame has a ghosting display abnormality.

[0023] Furthermore, the method further comprises:

[0024] In response to determining that the current image frame does not have a ghosting display abnormality, controlling the GPU to draw the next image frame to update the image display;

[0025] In response to determining that a ghost display abnormality exists in the current image frame, the GPU is controlled to skip drawing the next image frame.

[0026] Furthermore, before the step of preconfiguring the transparency value of the first pixel in the image frame as the frame control information of the corresponding first pixel, the method further includes:

[0027] After the application is started, control the allocation of the first cache and the second cache;

[0028] The first buffer is configured to store frame control information of frames to be displayed; and the second buffer is configured to store written-back frame control information of displayed frames.

[0029] Furthermore, after the step of controlling the allocation of the first cache and the second cache, the method further includes:

[0030] Get image frame;

[0031] preconfiguring a transparency value of a first pixel of the image frame as frame control information corresponding to the first pixel;

[0032] Reading frame control information of a first pixel point of the image frame and storing the information in the first buffer;

[0033] Controlling display processing of the image frame;

[0034] In response to receiving a vertical synchronization signal of the image frame, frame control information of a first pixel of the image frame after the display processing is controlled to be read and written back to the second cache.

[0035] To achieve the above purpose, the present application also provides a frame display detection control device, comprising:

[0036] A configuration module, used for pre-configuring the transparency value of a first pixel point in an image frame as frame control information of the corresponding first pixel point; wherein each corner area of ​​the image frame includes at least one of the first pixel points; and the frame control information includes a frame sequence number of the corresponding image frame;

[0037] A first control module, used for controlling display processing of the image frame;

[0038] A second control module, used for controlling the reading of frame control information of a first pixel point of the image frame after the display processing;

[0039] A determination module, which determines whether the image frame has display abnormality based on the frame control information of the first pixel point of the image frame;

[0040] The feedback module feeds back frame control information of the image frame to the application layer in response to determining that the image frame has a display abnormality.

[0041] To achieve the above purpose, the present application also provides a chip, including:

[0042] The frame display detection control device as described above, and

[0043] Hardware processing device;

[0044] Wherein, the hardware processing device includes:

[0045] A display processing module, used for performing display processing on the image frame;

[0046] The write-back module is used to read and write back the frame control information of the first pixel point of the image frame after the display processing.

[0047] To achieve the above-mentioned purpose, the present application also provides an electronic device, including a memory and a processor, wherein the memory stores computer instructions, and the processor is configured to run the instructions to execute the frame display detection control method as described above.

[0048] The present application discloses a frame display detection control method, device, chip and equipment, which preconfigures the transparency value of the first pixel in the image frame as the frame control information of the corresponding first pixel; and controls the display processing of the image frame; and controls the reading of the frame control information of the first pixel of the image frame after the display processing; and determines whether the image frame has a display abnormality based on the frame control information of the first pixel of the image frame; and in response to determining that the image frame has a display abnormality, feeds back the frame control information of the image frame to the application layer. In this way, it can not only effectively avoid affecting the system performance and reduce the difficulty of data analysis, but also feed back the frame control information to the application layer. In addition, during debugging, there is no need to add additional hardware equipment for data reading, which helps to reduce the cost of debugging equipment, and does not require a large number of parameter adjustments, which reduces the difficulty of debugging.

[0049] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0051] Figure 1 is a flowchart of a frame display detection control method according to an embodiment of the present application;

[0052] Figure 2 is a schematic diagram of first pixel distribution of an image frame according to an embodiment of the present application;

[0053] Figure 3 is a structural block diagram of a chip according to an embodiment of the present application;

[0054] Figure 4 A flowchart of the steps of determining whether the image frame has display abnormality according to an embodiment of the present application;

[0055] Figure 5 is a flow chart of a frame display detection control method according to another embodiment of the present application;

[0056] Figure 6 is a flow chart of a frame display detection control method according to another embodiment of the present application;

[0057] Figure 7 is a structural block diagram of a frame display detection control device according to an embodiment of the present application;

[0058] Figure 8 is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0059] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0060] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0061] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules, units or data, and are not used to limit the order or interdependence of the functions performed by these devices, modules, units or data.

[0062] It should be noted that the modifications of "one" and "plurality" mentioned in this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.

[0063] Hereinafter, embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0064] Figure 1 The following is a flow chart of a frame display detection control method according to an embodiment of the present application. Figure 1 , the frame display detection control method of the present application is described in detail.

[0065] In step 101, the transparency value of a first pixel in an image frame is preconfigured as frame control information corresponding to the first pixel.

[0066] Wherein, each corner area of ​​the image frame includes at least one first pixel point; the frame control information includes the frame sequence number of the corresponding image frame.

[0067] In a specific example, Figure 2 As shown, one first pixel point RGBX can be selected from each of the four corner areas of the image frame, and the other pixels are RGBA. The transparency values ​​(Alpha) of the four first pixel points RGBX are preconfigured as the frame number of the image frame through application (APP). Under normal circumstances, the frame number can be specifically a circular order mark of (1-254), and the frame number of the first pixel point RGBX in the same image frame is the same.

[0068] In a specific example, the frame control information may also include parameters such as the frame rate and format of the corresponding image frame. That is, the transparency value of some first pixels may be preconfigured as the frame number of the corresponding frame image, the transparency value of some first pixels may be preconfigured as the frame rate of the corresponding frame image, and the transparency value of some first pixels may be preconfigured as the format of the corresponding frame image. Thus, more actual display information can be recorded and provided to the application layer for various detection and analysis, thereby improving the functionality of the detection control method.

[0069] It should be noted that the display data of the image frame pixels include R / G / B / A values, which are the red intensity value (Red), green intensity value (Green), blue intensity value (Blue) and transparency value (Alpha) of the pixel respectively. Among them, the transparency value Alpha is used to indicate the transparency of the color, so that the pixel can have different degrees of transparency values, and in the image processing of DE (Display Engine, display engine), the superposition and fade-in and fade-out of multiple layers of images can be realized.

[0070] In step 102, the control performs display processing on the image frame.

[0071] Specifically, if Figure 3 As shown, the display processing module 510 of the hardware processing device 500 can be controlled by APP to perform display processing on the image frame. Specifically, the display processing module 510 may include a GPU 511, a DP (Display Processor) 512 and a DC (Display Controller) 513. The GPU 511 performs image rendering based on the image frame data, and specifically can generate high-quality images by performing tasks such as vertex processing, rasterization, texture mapping, and pixel processing. Then, a series of hardware processing is performed by DP 512 before the image data is sent to the display device, which may include image scaling, rotation, multi-layer synthesis, etc. And the image data is converted into a signal format suitable for the display device by DC 513, and the timing and refresh rate and other parameters of the display device are controlled. Then, after receiving the vertical synchronization (Vsync) signal of the image frame, the image frame is output.

[0072] In the embodiment of the present application, the display processing of the image frame includes image synthesis of the image frame. The method also includes: the image synthesis is configured to be image synthesis based on other pixel points other than the first pixel point in the image frame.

[0073] Specifically, since the transparency value of the first pixel point in the corner area of ​​the image frame is specially defined when using the detection and control method of the present application, the first pixel point on the image frame can be ignored when processing the transparency value (such as image synthesis), that is, only the transparency value processing (image synthesis) of other pixels is performed.

[0074] In step 103, the frame control information of the first pixel point of the image frame after display processing is controlled to be read.

[0075] It is understandable that the frame control information of the first pixel point read here may be for an image frame to be displayed after display processing, or for an image frame being displayed after display processing. This application does not impose any specific limitation on this.

[0076] In step 104, based on the frame control information of the first pixel point of the image frame, it is determined whether the image frame has display abnormality.

[0077] In the present application embodiment, Figure 4 As shown, step 104 includes the following sub-steps:

[0078] Step 1041, comparing the frame numbers of all first pixels in the image frame.

[0079] Step 1042 , in response to the frame sequence numbers of all first pixels in the image frame being the same, determining that there is no tearing display abnormality in the image frame.

[0080] Step 1043 , in response to at least two first pixels in the image frame having different frame numbers, determining that the image frame has a tearing display abnormality.

[0081] As a specific example, an image frame includes four first pixel points, and frame display detection control is performed for the image frame to be displayed after display processing. If the frame sequence numbers of the four first pixel points are all the same, it is determined that there is no tearing display abnormality in the image frame, and the corresponding image is displayed through the display; if there are at least two first pixel points with different frame sequence numbers, it is determined that there is a tearing display abnormality in the image frame, and the frame control information and abnormality type information (tear display abnormality) of the corresponding image frame are fed back to the application layer, and the screen with the tearing display abnormality is not displayed through the display.

[0082] As another specific example, an image frame includes four first pixels, and frame display detection control is performed for the image frame that has been displayed after display processing. If the frame sequence numbers of the four first pixels are all the same, it is determined that the image frame does not have a tearing display abnormality; if there are at least two first pixels with different frame sequence numbers, it is determined that the image frame has a tearing display abnormality, and the frame control information and abnormality type information of the corresponding image frame are fed back to the application layer.

[0083] Furthermore, the method further comprises:

[0084] Step 1044, obtaining the frame number of the first pixel of the next image frame to be drawn by the GPU.

[0085] Step 1045 , in response to determining that the current image frame after display processing does not have a tearing display abnormality, and the frame sequence number of the current image frame and the frame sequence number of the next image frame meet a preset sequence, determine that the current image frame does not have a ghosting display abnormality.

[0086] Step 1046 , in response to determining that the current image frame does not have a tearing display abnormality, and the frame sequence number of the current image frame and the frame sequence number of the next image frame do not satisfy a preset sequence, determine that the current image frame has a ghosting display abnormality.

[0087] That is to say, when the current image frame after display processing does not have tearing display abnormality, a judgment is made based on the frame number of the first pixel. If the frame number of the next image frame is the next continuous frame number relative to the current image frame, it is determined that the current image frame does not have ghosting display abnormality; if the frame number of the next image frame is not the next continuous frame number relative to the current image frame, it is determined that the current image frame has ghosting display abnormality.

[0088] Furthermore, the method further comprises:

[0089] Step 1047 , in response to determining that there is no ghost display abnormality in the current image frame, controlling the GPU to draw the next image frame to update the image display.

[0090] Step 1048: In response to determining that a ghosting display abnormality exists in the current image frame, control the GPU to skip drawing the next image frame.

[0091] That is to say, if the current image frame does not have ghosting display abnormalities and tearing display abnormalities, the next image frame will be displayed normally; if the current image frame has ghosting display abnormalities, that is, the next image frame is displayed the same as the current image frame, it is preferred not to display the next image frame.

[0092] In step 105 , in response to determining that the image frame has a display abnormality, frame control information of the image frame is fed back to the application layer.

[0093] Preferably, if the image frame has a tearing display abnormality, the frame control information and abnormality type information (tearing display abnormality) of the image frame can be fed back to the application layer. If the image frame has a ghosting display abnormality, the frame control information and abnormality type information (ghosting display abnormality) of the image frame can be fed back to the application layer.

[0094] According to the frame display detection control method of the embodiment of the present application, the transparency value of the first pixel in the image frame is preconfigured as the frame control information of the corresponding first pixel; and the image frame is displayed and processed by control; and the frame control information of the first pixel of the image frame after display processing is read by control; and based on the frame control information of the first pixel of the image frame, it is determined whether the image frame has a display abnormality; and in response to determining that the image frame has a display abnormality, the frame control information of the image frame is fed back to the application layer. As a result, it can not only effectively avoid affecting system performance and reduce the difficulty of data analysis, but also feed back the frame control information to the application layer. In addition, during debugging, there is no need to add additional hardware equipment for data reading, which helps to reduce the cost of debugging equipment, and does not require a large number of parameter adjustments, reducing the difficulty of debugging.

[0095] In the embodiment of the present application, before step 101, Figure 5 As shown, the method further comprises the following steps:

[0096] Step 201: After the application is started, control is performed to allocate the first cache and the second cache.

[0097] Step 202, acquiring an image frame.

[0098] Step 203: preconfigure the transparency value of the first pixel of the image frame as frame control information corresponding to the first pixel.

[0099] Step 204 , reading frame control information of a first pixel of the image frame, and storing it in a first cache.

[0100] Step 205, controlling the display processing of the image frame.

[0101] Step 206 , in response to receiving the vertical synchronization signal of the image frame, control the reading of the frame control information of the first pixel point of the image frame after display processing, and write it back to the second cache.

[0102] That is, a dedicated first buffer and a second buffer are allocated, wherein the first buffer is used to store frame control information of the processed frame to be displayed, and the second buffer is used to store the written-back frame control information of the processed frame to be displayed, so as to implement the frame display detection control method.

[0103] The present application will be further explained and illustrated by a specific embodiment below.

[0104] Figure 6 is a flow chart of the frame display detection control method according to this specific embodiment, referring to Figure 6 As shown, the frame display detection control method includes the following steps:

[0105] Step 301, the APP instrument application is started.

[0106] Step 302: Allocate image frame buffer.

[0107] Step 303, waiting for data update until a display update instruction is received.

[0108] Step 304, acquiring an image frame.

[0109] Step 305: preconfigure the transparency value of the first pixel in the image frame as frame control information.

[0110] Step 306, controlling the display processing of the image frame.

[0111] Step 307, waiting for a vertical synchronization signal instruction.

[0112] Step 308 , controlling the reading of frame control information of the first pixel point of the current image frame after display processing.

[0113] Step 309 : In response to the fact that the frame numbers of all first pixels in the image frame are the same, it is determined that there is no tearing display abnormality in the image frame.

[0114] Step 310 , in response to at least two first pixels in the image frame having different frame numbers, determining that the image frame has a tearing display abnormality, and executing step 314 .

[0115] Step 311 , in response to determining that the current image frame does not have a tearing display abnormality, and the frame sequence number of the current image frame and the frame sequence number of the next image frame satisfy a preset sequence, then determining that the current image frame does not have a ghosting display abnormality, and executing step 313 .

[0116] Step 312, in response to determining that there is no tearing display abnormality in the current image frame, and the frame number of the first pixel point of the current image frame and the frame number of the first pixel point of the next image frame do not satisfy the preset sequence, it is determined that there is a ghosting display abnormality in the current image frame, the GPU is controlled to skip drawing the next image frame, and step 314 is executed.

[0117] Step 313, controlling the GPU to draw the next image frame to update the image display.

[0118] Step 314: record the frame control information of the image frame and feed it back to the application layer.

[0119] In summary, according to the frame display detection control method of the embodiment of the present application, the transparency value of the first pixel point in the image frame is preconfigured as the frame control information of the corresponding first pixel point; and the image frame is displayed and processed by control; and the frame control information of the first pixel point of the image frame after display processing is read by control; and based on the frame control information of the first pixel point of the image frame, it is determined whether the image frame has a display abnormality; and in response to determining that the image frame has a display abnormality, the frame control information of the image frame is fed back to the application layer. As a result, it can not only effectively avoid affecting system performance and reduce the difficulty of data analysis, but also feed back the frame control information to the application layer. In addition, during debugging, there is no need to add additional hardware equipment for data reading, which helps to reduce the cost of debugging equipment, and does not require a large number of parameter adjustments, reducing the difficulty of debugging.

[0120] Figure 7 FIG. 1 is a structural block diagram of a frame display detection control device according to an embodiment of the present application. Figure 7 As shown, the frame display detection control device 400 includes a configuration module 401 , a first control module 402 , a second control module 403 , a determination module 404 and a feedback module 405 .

[0121] The configuration module 401 is used to preconfigure the transparency value of the first pixel in the image frame as the frame control information of the corresponding first pixel. Each corner area of ​​the image frame includes at least one first pixel; and the frame control information includes the frame sequence number of the corresponding image frame.

[0122] The first control module 402 is used to control the display processing of the image frame.

[0123] The second control module 403 is used to control the reading of frame control information of the first pixel point of the image frame after display processing.

[0124] The determination module 404 determines whether the image frame has display abnormality based on the frame control information of the first pixel point of the image frame.

[0125] The feedback module 405 , in response to determining that the image frame has display abnormality, feeds back the frame control information of the image frame to the application layer.

[0126] In the embodiment of the present application, the display processing of the image frame includes image synthesis of the image frame. The configuration module 401 is further used to: configure the image synthesis to be image synthesis based on other pixel points other than the first pixel point in the image frame.

[0127] In an embodiment of the present application, the determination module 404 is specifically used to: compare the frame numbers of all the first pixel points in the image frame; in response to the frame numbers of all the first pixel points in the image frame being the same, determine that the image frame does not have a tearing display abnormality; in response to the presence of at least two first pixel points in the image frame having different frame numbers, determine that the image frame has a tearing display abnormality.

[0128] Furthermore, the determination module 404 is also specifically used to: obtain the frame number of the first pixel point of the next image frame to be drawn by the GPU; in response to determining that there is no tearing display abnormality in the current image frame after display processing, and the frame number of the first pixel point of the current image frame and the frame number of the first pixel point of the next image frame satisfy a preset order of precedence, then determine that there is no ghosting display abnormality in the current image frame; in response to determining that there is no tearing display abnormality in the current image frame, and the frame number of the first pixel point of the current image frame and the frame number of the first pixel point of the next image frame do not satisfy a preset order of precedence, then determine that there is a ghosting display abnormality in the current image frame.

[0129] In an embodiment of the present application, the first control module 402 is also used to: in response to determining that there is no ghosting display abnormality in the current image frame, control the GPU to draw the next image frame to update the image display; in response to determining that there is a ghosting display abnormality in the current image frame, control the GPU to skip drawing the next image frame.

[0130] In the embodiment of the present application, the frame display detection control device 400 further includes a cache allocation module (not shown in the figure). The cache allocation module is also used to: after the application is started, control the allocation of the first cache and the second cache. The first cache is configured to store the frame control information of the processed frame to be displayed; the second cache is configured to store the frame control information of the displayed processed frame that is written back.

[0131] Furthermore, after controlling the allocation of the first cache and the second cache, the configuration module 401 is further used to: acquire an image frame; and preconfigure the transparency value of the first pixel of the image frame as frame control information of the corresponding first pixel.

[0132] The frame display detection control device 400 further includes a reading module (not shown in the figure). The reading module is used to read the frame control information of the first pixel point of the image frame and store it in the first cache.

[0133] The second control module 403 is specifically used for: in response to receiving a vertical synchronization signal of an image frame, controlling the reading of frame control information of a first pixel point of the image frame after display processing, and writing it back to the second cache.

[0134] It should be noted that the explanation of the frame display detection control method in the above embodiment is also applicable to the frame display detection control device in the above embodiment, and will not be repeated here.

[0135] Figure 2 FIG. 1 is a block diagram of a chip according to an embodiment of the present application. Figure 2 As shown, the chip 1000 includes: the frame display detection control device 400 and the hardware processing device 500 in the above embodiment.

[0136] The hardware processing device 500 includes: a display processing module 510 and a write-back module 520. The display processing module 510 is used to perform display processing on the image frame. The write-back module 520 is used to read and write back the frame control information of the first pixel point of the image frame after display processing.

[0137] Specifically, the display processing module 510 may include: GPU 511, DP 512 and DC 513. Among them, GPU 511 can perform image rendering based on image frame data, and can generate high-quality images by performing tasks such as vertex processing, rasterization, texture mapping, pixel processing, etc. DP 512 can be used to perform a series of hardware processing before the image data is sent to the display device, including but not limited to image scaling, rotation, multi-layer synthesis, etc. DC 513 can be used to convert image data into a signal format suitable for the display device, and control parameters such as the timing and refresh rate of the display device.

[0138] Figure 8 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 8 As shown, the electronic device 600 includes a memory 601 and a processor 602. The memory 601 stores computer instructions, and the processor 602 is configured to run the instructions to execute the frame display detection control method in the above embodiment.

[0139] In a specific example, the electronic device may be an on-board electronic device, specifically a digital instrument device of a car. It is understandable that the electronic device may also be other types of electronic devices, and this application does not impose any specific limitation on this.

[0140] It should be understood that, although the steps in the flowcharts of the accompanying drawings of the specification are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0141] Those skilled in the art can understand that the above are only preferred embodiments of the present application and are not intended to limit the present application. Although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A frame display detection control method, characterized in that: The method comprises, Preconfiguring the transparency value of a first pixel in an image frame as frame control information of the corresponding first pixel; wherein each corner area of ​​the image frame includes at least one of the first pixel; and the frame control information includes a frame sequence number of the corresponding image frame; Controlling display processing of the image frame; Controlling reading of frame control information of a first pixel point of the image frame after the display processing; Determining whether the image frame has a display abnormality based on the frame control information of the first pixel point of the image frame; In response to determining that the image frame has a display abnormality, frame control information of the image frame is fed back to the application layer.

2. The method according to claim 1, characterized in that The display processing of the image frame includes image synthesis of the image frame; the method also includes, The image synthesis is configured to be based on image synthesis of other pixel points other than the first pixel point in the image frame.

3. The method according to claim 1, characterized in that The step of determining whether the image frame has display abnormality based on the frame control information of the first pixel point of the image frame, include, Comparing the frame sequence numbers of all first pixels in the image frame; In response to the frame sequence numbers of all first pixels in the image frame being the same, determining that the image frame does not have a tearing display abnormality; In response to at least two first pixels in the image frame having different frame numbers, it is determined that the image frame has a tearing display abnormality.

4. The method according to claim 3, characterized in that The method further comprises, Get the frame number of the first pixel of the next image frame to be drawn by the GPU; In response to determining that the current image frame after the display processing does not have a tearing display abnormality, and the frame sequence number of the first pixel point of the current image frame and the frame sequence number of the first pixel point of the next image frame meet a preset sequence, determining that the current image frame does not have a ghosting display abnormality; In response to determining that the current image frame does not have a tearing display abnormality, and the frame sequence number of the first pixel point of the current image frame and the frame sequence number of the first pixel point of the next image frame do not satisfy a preset sequence, it is determined that the current image frame has a ghosting display abnormality.

5. The method according to claim 4, characterized in that The method further comprises, In response to determining that the current image frame does not have a ghosting display abnormality, controlling the GPU to draw the next image frame to update the image display; In response to determining that a ghost display abnormality exists in the current image frame, the GPU is controlled to skip drawing the next image frame.

6. The method according to claim 1, characterized in that Before the step of preconfiguring the transparency value of the first pixel in the image frame as the frame control information of the corresponding first pixel, the method further includes: After the application is started, control the allocation of the first cache and the second cache; The first buffer is configured to store frame control information of frames to be displayed; and the second buffer is configured to store written-back frame control information of displayed frames.

7. The method according to claim 6, characterized in that After the step of controlling the allocation of the first cache and the second cache, the method further includes: Get image frame; preconfiguring a transparency value of a first pixel of the image frame as frame control information corresponding to the first pixel; Reading frame control information of a first pixel point of the image frame and storing the information in the first buffer; Controlling display processing of the image frame; In response to receiving a vertical synchronization signal of the image frame, frame control information of a first pixel of the image frame after the display processing is controlled to be read and written back to the second cache.

8. A frame display detection control device, characterized in that: The device comprises, A configuration module, used for pre-configuring the transparency value of a first pixel point in an image frame as frame control information of the corresponding first pixel point; wherein each corner area of ​​the image frame includes at least one of the first pixel points; and the frame control information includes a frame sequence number of the corresponding image frame; A first control module, used for controlling display processing of the image frame; A second control module, used for controlling the reading of frame control information of a first pixel point of the image frame after the display processing; A determination module, which determines whether the image frame has display abnormality based on the frame control information of the first pixel point of the image frame; The feedback module feeds back frame control information of the image frame to the application layer in response to determining that the image frame has a display abnormality.

9. A chip, characterized in that: The chip comprises: The frame display detection control device as claimed in claim 8, and Hardware processing device; Wherein, the hardware processing device includes: A display processing module, used for performing display processing on the image frame; The write-back module is used to read and write back the frame control information of the first pixel point of the image frame after the display processing.

10. An electronic device comprising a memory and a processor, characterized in that: The memory stores computer instructions, and the processor is configured to execute the instructions to perform the frame display detection control method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Graphics processor debugging method and device, equipment and storage medium

    CN121116733A