Video display method, electronic device, and computer-readable storage medium
Patent Information
- Application Number
- PCT/CN2025/090495
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-10
- Filing Date
- 2025-04-22
- Publication Date
- 2026-09-17
Smart Images

Figure CN2025090495_17092026_PF_FP_ABST
Abstract
Description
Video display methods, electronic devices and computer-readable storage media
[0001] Relevant publicly available cross-references
[0002] This disclosure claims priority to Chinese Patent Application No. 2025102754213, filed on March 10, 2025, entitled "Video Display Method, Electronic Device and Computer-Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of video technology, and more specifically, to a video display method, an electronic device, and a computer-readable storage medium. Background Technology
[0004] During video display, if frame rate switching is required, it will be limited by the video settings between the front-end system and the display platform. Differences in these settings may cause display abnormalities. Typically, the video display parameters of both the front-end system and the display platform need to be set in advance before video display. If the video frame rate needs to be adjusted temporarily, the parameters of both the front-end system and the display platform need to be readjusted. From the display platform's perspective, this makes the workflow of both the front-end system and the display platform more complex.
[0005] Public content
[0006] The purpose of this application is to provide a video display method, electronic device, and computer-readable storage medium that can improve the efficiency of video frame rate switching and reduce the complexity of switching.
[0007] In a first aspect, this disclosure provides a video display method, comprising: monitoring the current frame rate timing of a front-end system transmission; when a change in the frame rate in the current frame rate timing is detected, determining a first frame rate parameter corresponding to the current frame rate timing from a pre-stored frame rate parameter table; and transmitting first image data to a display screen based on the first frame rate parameter, so as to display an image corresponding to the first image data on the display screen.
[0008] In the above implementation, when it is necessary to switch the video display frame rate, parameters matching the currently switched frame rate can be directly obtained from pre-stored parameters. Then, image data can be transmitted to the display screen based on the obtained video parameters. This operation method can reduce the need to reset the parameters of the front-end system and the device controlling the display screen, reduce the complexity of video frame rate switching, and improve the efficiency of video frame rate switching.
[0009] In an optional implementation, determining the first frame frequency parameter corresponding to the current frame frequency timing from a pre-stored frame frequency parameter table includes: comparing the frame frequency parameters included in the current frame frequency timing with the frame frequency parameters of the corresponding frame frequency in the pre-stored frame frequency parameter table to determine a first frame frequency error; if the first frame frequency error is within a first set range, determining the frame frequency parameter of the corresponding frame frequency in the pre-stored frame frequency parameter table as the first frame frequency parameter.
[0010] In an optional implementation, determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table further includes: if any error in the first frame frequency error is not within the first set range, replacing the frame frequency parameter of the corresponding frame frequency in the pre-stored frame frequency parameter table with the frame frequency parameter included in the current frame frequency timing, and determining the replaced frame frequency parameter of the corresponding frame frequency in the pre-stored frame frequency parameter table as the first frame frequency parameter.
[0011] In the above implementation, the error between the frame frequency parameter corresponding to the current frame frequency timing and the pre-stored matching frame frequency parameter can be considered. If the error is small, the pre-stored frame frequency parameter can be used directly; if the error is large, the parameter can be replaced first, and then used to control the video display. This provides a certain degree of fault tolerance and reduces the parameter adjustment process required for frequent frame frequency switching. In addition, if the error is large, the stored frame frequency parameter can be updated, and the updated frame frequency parameter can be used for video display, which can improve the accuracy of video display.
[0012] In an optional implementation, the frame frequency parameters include: field signal trailing edge, field signal leading edge, line signal trailing edge, and line signal leading edge; the step of comparing the frame frequency parameters included in the current frame frequency timing with the frame frequency parameters of the corresponding frame frequency in the pre-stored frame frequency parameter table to determine the first frame frequency error includes: comparing the field signal trailing edge, field signal leading edge, line signal trailing edge, and line signal leading edge included in the current frame frequency timing with the field signal trailing edge, field signal leading edge, line signal trailing edge, and line signal leading edge of the corresponding frame frequency in the pre-stored frame frequency parameter table one by one to determine the first frame frequency error.
[0013] In an optional implementation, the pre-stored frame frequency parameter table contains frame frequency parameters corresponding to multiple frame frequencies; determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table includes: selecting the first frame frequency parameter corresponding to the current frame frequency timing from the multiple frame frequency parameters corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table.
[0014] In the above implementation method, multiple types of different frame rate parameters can be pre-stored to facilitate meeting display requirements for different frame rates.
[0015] In an optional implementation, the pre-stored frame frequency parameter table includes a frame frequency parameter corresponding to a frame frequency; determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table further includes: comparing the frame frequency parameter included in the current frame frequency timing with the pre-stored frame frequency parameter table according to a set time pattern to determine a second frame frequency error; if the second frame frequency error is not within a second set range, the pre-stored frame frequency parameter table will be replaced with the frame frequency parameter included in the current frame frequency timing, and the replaced pre-stored frame frequency parameter table will be determined as the first frame frequency parameter.
[0016] In the above implementation, in display scenarios where frame rate switching is not required, the pre-stored frame rate parameter table can contain only frame rate parameters for one frame rate. However, inevitably, as the device is used, the display environment may change, such as temperature and power supply conditions. These changes may affect the values in the current frame rate timing sequence. To improve the video display effect, the current frame rate timing sequence can be monitored according to a set time pattern. If a change is found, the pre-stored frame rate parameter table can be updated to control the video display with the updated frame rate parameters.
[0017] In an optional implementation, the method is applied to a display driver device, the display driver device including: a timing detection unit; before monitoring the current frame frequency timing transmitted by the front-end system, the method further includes: receiving a frame frequency switching command sent by the front-end system; activating the timing detection unit; monitoring the current frame frequency timing transmitted by the front-end system, and determining a first frame frequency parameter corresponding to the current frame frequency timing from a pre-stored frame frequency parameter table when a change in the frame frequency in the current frame frequency timing is detected, including: monitoring the current frame frequency timing transmitted by the front-end system through the timing detection unit, and determining a first frame frequency parameter corresponding to the current frame frequency timing from a pre-stored frame frequency parameter table when a change in the frame frequency in the current frame frequency timing is detected.
[0018] In the above implementation, a timing detection unit is set up to detect the timing of the frame rate sent by the front-end system. It can call the frame rate parameters in the pre-stored frame rate parameter table based on the detection structure. Therefore, it is not necessary to reset the parameters for video display every time a frame rate switching command is obtained, which reduces the process required for frame rate switching and improves the efficiency of frame rate switching.
[0019] In an optional implementation, after determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table, the method further includes: turning off the timing detection unit.
[0020] In the above implementation, the timing detection unit can also be turned off after use, which can reduce power waste.
[0021] In an optional implementation, the method further includes: when it is detected that the frame frequency in the current frame frequency timing has changed, and the pre-stored frame frequency parameter table does not contain a frame frequency parameter with the same frame frequency as the current frame frequency timing, updating the frame frequency parameter corresponding to the current frame frequency timing to the pre-stored frame frequency parameter table.
[0022] In the above implementation, when a new frame rate is detected, it can be updated to the pre-stored frame rate parameter table, so that the current video display environment can better adapt to the needs of frame rate switching.
[0023] In a second aspect, this disclosure provides an electronic device, including: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable instructions are executed by the processor to perform the steps of the method described in any of the foregoing embodiments.
[0024] Thirdly, this disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the method described in any of the foregoing embodiments.
[0025] Fourthly, this disclosure provides a computer program product, which includes a computer program that, when executed by a processor, implements the method described in any one of the foregoing embodiments. Attached Figure Description
[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 is a block diagram of the electronic device provided in an embodiment of this application;
[0028] Figure 2 is a schematic diagram of the data flow involved in the video display provided in the embodiment of this application;
[0029] Figure 3 is a flowchart of the video display method provided in an embodiment of this application;
[0030] Figure 4 is a schematic diagram of the working timing of the timing detection unit provided in the embodiment of this application;
[0031] Figure 5 is a timing diagram of the processing involved in the video display process provided in the embodiment of this application. Detailed Implementation
[0032] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0033] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0034] In video display scenarios, front-end systems and display drivers are involved. The front-end system refers to the device in the electronic device that provides the signals required by the display screen, such as a microcontroller unit (MCU) or a microprocessor unit (MPU). The display driver receives the frame rate timing sequence sent by the front-end system, determines the required frame rate parameters based on this sequence, and then sends drive signals to the display to show the corresponding video. However, in current implementations, when switching frame rates, the relevant parameters of the front-end system and the display driver need to be reset. This requires re-adjusting the video display settings of both the front-end system and the display driver each time a frame rate switch is needed, making the process relatively complex and potentially leading to display anomalies due to setting delays.
[0035] Based on the above research, the embodiments of this application can provide a video display method, electronic device, and computer-readable storage medium that can improve the efficiency of video frame rate switching and reduce the complexity of switching.
[0036] To facilitate understanding of this embodiment, the electronic device that performs the video display method disclosed in this application will first be described in detail.
[0037] Figure 1 is a block diagram of an electronic device. The electronic device 100 may include a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, an input / output unit 115, and a display unit 116. Those skilled in the art will understand that the structure shown in Figure 1 is merely illustrative and does not limit the structure of the electronic device 100. For example, the electronic device 100 may include more or fewer components than shown in Figure 1, or have a different configuration than that shown in Figure 1.
[0038] The aforementioned memory 111, memory controller 112, processor 113, peripheral interface 114, input / output unit 115, and display unit 116 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The aforementioned processor 113 is configured to execute executable modules stored in the memory.
[0039] The memory 111 can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory 111 is configured to store a program. After receiving an execution instruction, the processor 113 executes the program. The method executed by the electronic device 100 according to the process definition disclosed in any embodiment of this application can be applied to the processor 113, or implemented by the processor 113.
[0040] The aforementioned processor 113 may be an integrated circuit chip with signal processing capabilities. The processor 113 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a digital signal processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor.
[0041] The peripheral interface 114 described above couples various input / output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 can be implemented on a single chip. In other instances, they can be implemented on separate chips.
[0042] The input / output unit 115 described above is configured to provide user input data. The input / output unit 115 may be, but is not limited to, a mouse and keyboard, etc.
[0043] The aforementioned display unit 116 provides an interactive interface (e.g., a user interface) between the electronic device 100 and the user, or is configured to display image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display (LCD) or a touch display. If it is a touch display, it can be a capacitive touchscreen or a resistive touchscreen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more locations on the touch display and pass the sensed touch operations to the processor for calculation and processing.
[0044] The display unit 116 can be configured to display the video determined by the video display method.
[0045] In this embodiment, the electronic device 100 may further include a display driving device, which is used to send display driving signals to the display unit 116, and the display unit 116 displays an image based on the received driving signals. The processor 113 of the electronic device 100 can act as a front-end system to provide the signals required for the display unit 116 to display. Exemplarily, the processor 113 may also be a microcontroller unit (MCU), a microprocessor unit (MPU), etc.
[0046] As shown in Figure 2, the front-end system 210 can send signals to the display driver 220, which can then process the signals and output them to the display unit 116 for display.
[0047] In the example shown in Figure 2, the display driver device 220 may include a timing detection unit 221 and a drive signal generation unit 222. When it is necessary to switch the display frame rate of the video, the front-end system sends a frame rate switching command and frame rate timing to the display driver device 220. The frame rate timing may include field signals and line signals. The timing detection unit 221 can analyze the frame rate timing to determine the frame rate corresponding to the frame rate timing. Then, the display driver device 220 can control the video display from the stored frame rate parameters of the corresponding frame rate. In the example shown in Figure 2, the frame rate parameter table pre-stored by the display driver device 220 includes parameter tables for three frame rates: 60 frames per second, 90 frames per second, and 120 frames per second. In actual use, after the timing detection unit 221 determines the frame rate based on the frame rate timing, it can obtain the corresponding frame rate parameters from the frame rate parameter table and control the video display based on the determined parameters.
[0048] Optionally, the processing logic of the timing detection unit 221 can be programmed into a circuit, and the detection logic in the timing detection unit 221 can also be executed through the circuit.
[0049] Optionally, the processing logic of the drive signal generation unit 222 can also be programmed into a circuit, and the signal generation logic of the drive signal generation unit 222 can be executed through the circuit.
[0050] The timing detection unit 221 and the drive signal generation unit 222 can be implemented on two separate circuit boards or on the same circuit board.
[0051] Optionally, the display driver 220 may also include a data memory 223 configured to store a frame rate parameter table.
[0052] The electronic device 100 in this embodiment can be configured to execute various steps in the various methods provided in the embodiments of this application. The implementation process of the video display method is described in detail below through several embodiments.
[0053] Please refer to Figure 3, which is a flowchart of a video display method provided in an embodiment of this application. The video display method provided in this application can be applied to an electronic device with display functionality, through which the electronic device executes the steps of the video display method. The specific flow shown in Figure 3 will be described in detail below.
[0054] Step 320: Monitor the current frame rate timing of the front-end system transmission.
[0055] For example, it can be determined whether the current frame rate timing has changed based on analysis of the current frame rate timing. The current frame rate timing can be compared with previously received frame rate timing.
[0056] For example, parameters related to screen display can be determined based on the current frame rate timing. These may include parameters such as the V-Sync Back Porch, V-Sync Front Porch, H-Sync Back Porch, and H-Sync Front Porch. Here, V-Sync represents the vertical synchronization signal; H-Sync represents the horizontal synchronization signal; Back Porch represents the trailing edge of the signal; and Front Porch represents the leading edge of the signal.
[0057] For displays with different resolutions and specifications, the parameters of V-Sync Back Porch, V-Sync Front Porch, H-Sync Back Porch, and H-Sync Front Porch can be the same or different. Specifically, the timing parameters of V-Sync Back Porch, V-Sync Front Porch, H-Sync Back Porch, and H-Sync Front Porch can be accurately set according to the specific screen specifications and display requirements so that the screen can display images correctly.
[0058] Alternatively, it can be estimated based on the number of Porch regions in the frame rate timing, or the length of the horizontal scan line (H line) under a fixed number of sync pulses.
[0059] For example, if the number of porches in the current frame rate timing is greater than the number of porches in the previous frame rate timing, it can be determined that the frame rate corresponding to the current frame rate timing is slower than the frame rate corresponding to the previous frame rate timing. If the number of porches in the current frame rate timing is less than the number of porches in the previous frame rate timing, it can be determined that the frame rate corresponding to the current frame rate timing is faster than the frame rate corresponding to the previous frame rate timing.
[0060] For example, with a fixed number of synchronization pulses, the longer the H line, the slower the frame rate; the shorter the H line, the faster the frame rate.
[0061] Step 340: If a change in the frame rate is detected in the current frame rate timing, determine the first frame rate parameter corresponding to the current frame rate timing from the pre-stored frame rate parameter table.
[0062] For example, if the video to be displayed by the current electronic device requires a variable frame rate, the pre-stored frame rate parameter table can contain frame rate parameters corresponding to multiple frame rates. Each frame rate parameter is used to control the video display at one particular frame rate.
[0063] Considering that the frame frequency corresponding to the frame frequency timing provided by the front-end system will not suddenly change across multiple frequency bands, the frame frequency parameters of various commonly used frame frequencies can be pre-stored in the frame frequency parameter table. The required frame frequency parameters can then be determined by looking up the frame frequency parameter table.
[0064] The first frame frequency parameter corresponding to the current frame frequency sequence can be selected from a pre-stored table of frame frequency parameters corresponding to various frame frequencies. For example, the value of the frame frequency corresponding to the current frame frequency sequence can be determined based on the analysis of the current frame frequency sequence.
[0065] Step 360: Based on the first frame rate parameter, transmit the first image data to the display screen to display the image corresponding to the first image data on the display screen.
[0066] The first frame rate parameter can include parameters related to the image, such as V-Sync Back Porch, V-Sync Front Porch, H-Sync Back Porch, and H-Sync Front Porch.
[0067] Step 340 above may include steps 341 and 342.
[0068] Step 341: Compare the frame frequency parameters contained in the current frame frequency timing with the frame frequency parameters of the corresponding frame frequency in the pre-stored frame frequency parameter table to determine the first frame frequency error.
[0069] If the first frame rate error is within the first set range, then step 342 is executed.
[0070] The first frame rate error can include the error of each parameter. Taking the above parameters, which include image-related parameters such as V-Sync Back Porch, V-Sync Front Porch, H-Sync Back Porch, and H-Sync Front Porch, as an example, the first frame rate error can include the error determined based on the comparison of V-Sync Back Porch, the error determined based on the comparison of V-Sync Front Porch, the error determined based on the comparison of H-Sync Back Porch, and the error determined based on the comparison of H-Sync Front Porch.
[0071] Optionally, each parameter can be assigned an error threshold. If each error included in the first frame rate error is less than its corresponding error threshold, then the first frame rate error can be determined to be within the set range. This can also be understood as the error being negligible in this case. The aforementioned first set range can be determined by the error threshold corresponding to each parameter.
[0072] Optionally, a uniform error threshold can be set. If every error included in the first frame rate error is less than this error threshold, then the first frame rate error can be determined to be within the set range. The aforementioned first set range can be determined by the aforementioned error threshold.
[0073] The error threshold can be set to a value that the user has pre-defined.
[0074] Step 342: Determine the frame frequency parameter corresponding to the frame frequency in the pre-stored frame frequency parameter table as the first frame frequency parameter.
[0075] If any error in the first frame frequency error is not within the first set range, the above step 340 may further include: step 343, replacing the frame frequency parameter of the corresponding frame frequency in the pre-stored frame frequency parameter table with the frame frequency parameter contained in the current frame frequency timing, and determining the frame frequency parameter of the corresponding frame frequency in the pre-stored frame frequency parameter table after replacement as the first frame frequency parameter.
[0076] The frame frequency parameters contained in the current frame frequency timing sequence can be obtained by parsing the current frame frequency timing sequence.
[0077] In the above implementation, when the first frame rate error is relatively large, the frame rate parameters corresponding to the pre-stored frame rate parameter table can be replaced. This way, only one set of frame rate parameters can be saved for each frame rate, reducing the storage pressure on the electronic device. Furthermore, based on the selection of data in the pre-stored frame rate parameter table, subsequent video display can be directly controlled, reducing the complexity of video display when switching frame rates.
[0078] In this embodiment, the frame rate parameters may include: the trailing edge of the field signal, the leading edge of the field signal, the trailing edge of the line signal, and the leading edge of the line signal. Step 341 described above may include: comparing the trailing edge of the field signal, the leading edge of the field signal, the trailing edge of the line signal, and the leading edge of the line signal contained in the current frame rate timing with the corresponding trailing edge of the field signal, the leading edge of the field signal, the trailing edge of the line signal, and the leading edge of the line signal in the pre-stored frame rate parameter table to determine the first frame rate error.
[0079] The first frame rate error can include the field signal trailing edge error, the field signal leading edge error, the line signal trailing edge error, and the line signal leading edge error.
[0080] In one implementation, the frame rate timing provided by the front-end system is constant, meaning that only one frame rate is used to display the image, and multiple frequency bands are not suddenly changed. In this case, the frame rate parameters of this constant frame rate can be stored in advance in the frame rate parameter table. The pre-stored frame rate parameter table only contains the frame rate parameters corresponding to one frame rate. Step 340 provided in this embodiment may also include steps 344 and 345.
[0081] Step 344: According to the set time pattern, compare the frame frequency parameters contained in the current frame frequency timing with the pre-stored frame frequency parameter table to determine the second frame frequency error.
[0082] If the second frame rate error is not within the second set range, then step 382 is executed.
[0083] The set time pattern can be that steps 381 and 382 are executed once every specified time interval. This specified time interval can be determined based on the actual stability of the electronic device. For example, the better the stability of the electronic device, the longer the specified time interval can be; conversely, the worse the stability of the electronic device, the shorter the specified time interval can be. For instance, if the electronic device has good heat dissipation and a stable power supply, the specified time interval can be set to a longer duration; conversely, if the electronic device has poor heat dissipation, rapid power consumption, and a small battery capacity, the specified time interval can be set to a shorter duration.
[0084] Optionally, the method for determining the second set range can be similar to the method for determining the first set range. The method for determining whether the second frame rate error is within the second set range can be referred to the method for determining whether the first frame rate error is within the first set range, and will not be repeated here.
[0085] Step 345: Replace the pre-stored frame frequency parameter table with the frame frequency parameters contained in the current frame frequency timing, and use the replaced pre-stored frame frequency parameter table as the first frame frequency parameter.
[0086] In this embodiment, the video display method can be applied to a display driving device, which includes a timing detection unit. The steps in the video display method can be executed by the display driving device. Taking the example shown in Figure 2, the display driving device may also include a drive signal generation unit.
[0087] Prior to step 320, the method also includes steps 311 and 312.
[0088] Step 311: Receive the frame rate switching instruction sent by the front-end system.
[0089] For example, the display driver can receive the frame rate switching command.
[0090] Step 312: Start the timing detection unit.
[0091] Steps 340 and 360 described above can be executed by the timing detection unit.
[0092] After step 340, the method further includes: step 350, turning off the timing detection unit.
[0093] With the above design, the timing detection unit is activated when frame frequency timing needs to be detected, and can be turned off in time after the processing of frame frequency timing is completed, which can reduce the power consumption of the timing detection unit.
[0094] In this embodiment, the method may further include: step 380, when it is detected that the frame frequency in the current frame frequency timing has changed, and the frame frequency parameter with the same frame frequency as the current frame frequency timing does not exist in the pre-stored frame frequency parameter table, the frame frequency parameter corresponding to the current frame frequency timing is updated to the pre-stored frame frequency parameter table.
[0095] If a change in the frame frequency in the current frame frequency timing is detected, and the pre-stored frame frequency parameter table does not contain a frame frequency parameter with the same frame frequency as the current frame frequency timing, it can be indicated that the frame frequency corresponding to the current frame frequency timing is a newly transmitted frame frequency, and the pre-stored frame frequency parameter table does not store the frame frequency parameter corresponding to this frame frequency.
[0096] Optionally, step 380 can also be performed by a timing detection unit, which can detect the frame frequency timing sent by the front-end system and record and save the obtained frame frequency timing.
[0097] The following describes the working logic of the timing detection unit using the execution logic timing diagram 4: After obtaining the current frame frequency timing sent by the front-end system, the timing detection unit compares the current frame frequency timing with the frame frequencies in the frame frequency parameter table. If it is determined that the frame frequency corresponding to the current frame frequency timing is a new frame frequency, then this new value can be added to the frame frequency parameter table. If, based on the comparison, it can be determined that the frame frequency corresponding to one of the frame frequency parameters successfully matches the frame frequency corresponding to the current frame frequency timing, then it can be determined as the required first frame frequency parameter.
[0098] In the video display method provided in this application embodiment, if the switched frame frequency is a stored frame frequency, the value in the frame frequency parameter table can be used directly; if the switched frame frequency is a stored frame frequency and the values are different, the frame frequency parameter corresponding to the frame frequency in the frame frequency parameter table can be modified first, and then the frame frequency parameter corresponding to the frame frequency in the frame frequency parameter table can be used for video display.
[0099] The following section uses a timing diagram of the video display to illustrate the video display process. In the example shown in Figure 5, there may be two frame rates during the video display process: a first frame rate and a second frame rate.
[0100] When the front-end system transmits the frame rate timing of the first frame for the first time, the timing detection unit can store the frame rate parameters of the first frame in the frame rate parameter table after detecting the first frame. When the front-end system transmits the frame rate timing of the second frame for the first time, the timing detection unit can store the frame rate parameters of the second frame in the frame rate parameter table after detecting the second frame. When switching from the second frame to the first frame, the frame rate parameters of the first frame can be directly obtained from the frame rate parameter table and used. When switching from the first frame to the second frame, the frame rate parameters of the second frame can be directly obtained from the frame rate parameter table and used.
[0101] In this embodiment, when switching from the second frame rate to the first frame rate again, if a comparison with the frame rate parameters in the frame rate parameters table reveals that the frame rate parameters of the first frame rate have changed, then the frame rate parameters of the first frame rate in the frame rate parameter table can be updated, and the updated frame rate parameters of the first frame rate in the frame rate parameter table can be used. Similarly, when switching from the first frame rate to the second frame rate again, if a comparison with the frame rate parameters in the frame rate parameters table reveals that the frame rate parameters of the second frame rate have changed, then the frame rate parameters of the second frame rate in the frame rate parameter table can be updated, and the updated frame rate parameters of the second frame rate in the frame rate parameter table can be used.
[0102] In this embodiment, during subsequent frame rate switching, if the system switches to the first frame rate and the obtained frame rate timing is within a limited range compared to the frame rate parameters in the frame rate parameter table, then the frame rate parameters of the first frame rate in the frame rate parameter table can be used to control the video display. Similarly, during subsequent frame rate switching, if the system switches to the second frame rate and the obtained frame rate timing is within a limited range compared to the frame rate parameters in the frame rate parameter table, then the frame rate parameters of the second frame rate in the frame rate parameter table can be used to control the video display.
[0103] In this embodiment, during subsequent frame rate switching, if the frame rate is switched to the first frame rate and the error between the obtained frame rate timing and the frame rate parameters in the frame rate parameter table is not within a limited range, the frame rate parameters of the first frame rate in the frame rate parameter table can be updated. Similarly, during subsequent frame rate switching, if the frame rate is switched to the second frame rate and the error between the obtained frame rate timing and the frame rate parameters in the frame rate parameter table is not within a limited range, the frame rate parameters of the second frame rate in the frame rate parameter table can be updated.
[0104] In practical use, the process shown in Figure 5 can be repeated to achieve frame rate switching in video display. It is understood that Figure 5 is merely an example, and actual use may involve switching more frame rates.
[0105] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the video display method described in the above method embodiments.
[0106] The computer program product of the video display method provided in this application includes a computer-readable storage medium storing program code. The instructions included in the program code can be configured to execute the steps of the video display method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0107] In the several embodiments provided in this application, it should be understood that the disclosed methods can also be implemented in other ways. The method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0108] In addition, the method steps in the various embodiments of this application can be integrated together to form an independent part for execution, or each method step can be executed by a separate module, or two or more steps can be formed into an independent part for execution.
[0109] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. It should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0110] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0111] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims. Industrial applicability
[0112] By adopting the above solution, the efficiency of video frame rate switching can be reduced, and the complexity of switching can be reduced.
Claims
1. A video display method characterized by, include: Monitor the current frame rate timing of the front-end system transmission; If a change in the frame rate is detected in the current frame rate timing sequence, the first frame rate parameter corresponding to the current frame rate timing sequence is determined from the pre-stored frame rate parameter table. Based on the first frame rate parameter, first image data is transmitted to the display screen to display the image corresponding to the first image data on the display screen.
2. The method of claim 1, wherein, Determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table includes: The frame frequency parameters contained in the current frame frequency timing are compared with the frame frequency parameters of the corresponding frame frequency in the pre-stored frame frequency parameter table to determine the first frame frequency error. If the first frame rate error is within a first set range, the frame rate parameter corresponding to the frame rate in the pre-stored frame rate parameter table is determined as the first frame rate parameter.
3. The method of claim 2, wherein, The step of determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table further includes: If any error in the first frame rate error is not within the first set range, the frame rate parameter of the corresponding frame rate in the pre-stored frame rate parameter table will be replaced with the frame rate parameter included in the current frame rate timing, and the frame rate parameter of the corresponding frame rate in the pre-stored frame rate parameter table after replacement will be determined as the first frame rate parameter.
4. The method according to claim 2 or 3, characterized in that, The frame rate parameters include: the trailing edge of the field signal, the leading edge of the field signal, the trailing edge of the line signal, and the leading edge of the line signal. The step of comparing the frame frequency parameters included in the current frame frequency timing with the frame frequency parameters of the corresponding frame frequency in the pre-stored frame frequency parameter table to determine the first frame frequency error includes: The trailing edge, leading edge, trailing edge, and leading edge of the field signal included in the current frame frequency timing are compared one by one with the trailing edge, leading edge, trailing edge, and leading edge of the field signal of the corresponding frame frequency in the pre-stored frame frequency parameter table to determine the first frame frequency error.
5. The method according to any one of claims 1 to 4, characterized in that, The pre-stored frame frequency parameter table contains frame frequency parameters corresponding to various frame frequencies; Determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table includes: The first frame frequency parameter corresponding to the current frame frequency timing is selected from the pre-stored frame frequency parameter table, which contains various frame frequency parameters.
6. The method according to any one of claims 1 to 5, characterized in that, The pre-stored frame frequency parameter table contains frame frequency parameters corresponding to a frame frequency. The step of determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table further includes: According to the set time pattern, the frame frequency parameters contained in the current frame frequency timing are compared with the pre-stored frame frequency parameter table to determine the second frame frequency error. If the second frame rate error is not within the second set range, the pre-stored frame rate parameter table will be replaced with the frame rate parameters included in the current frame rate timing, and the replaced pre-stored frame rate parameter table will be determined as the first frame rate parameter.
7. The method according to any one of claims 1 to 6, characterized in that, Applied to a display driving device, the display driving device including: a timing detection unit; Before the monitoring front-end system transmits the current frame frequency timing, the method further includes: receiving a frame frequency switching instruction sent by the front-end system; Start the timing detection unit; The monitoring of the current frame frequency timing transmitted by the front-end system, and the determination of the first frame frequency parameter corresponding to the current frame frequency timing from a pre-stored frame frequency parameter table when a change in the frame frequency in the current frame frequency timing is detected, includes: monitoring the current frame frequency timing transmitted by the front-end system through the timing detection unit, and determining the first frame frequency parameter corresponding to the current frame frequency timing from a pre-stored frame frequency parameter table when a change in the frame frequency in the current frame frequency timing is detected.
8. The method of claim 7, wherein, After determining the first frame frequency parameter corresponding to the current frame frequency timing from the pre-stored frame frequency parameter table, the method further includes: The timing detection unit is turned off.
9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: If a change in the frame rate is detected in the current frame rate sequence, and the pre-stored frame rate parameter table does not contain a frame rate parameter with the same frame rate as the current frame rate sequence, the frame rate parameter corresponding to the current frame rate sequence is updated to the pre-stored frame rate parameter table.
10. An electronic device, comprising: include: The processor and memory, wherein the memory stores machine-readable instructions executable by the processor, wherein when the electronic device is running, the machine-readable instructions are executed by the processor to perform the steps of the method as described in any one of claims 1 to 9.
11. A computer readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the method as described in any one of claims 1 to 9.
12. A computer program product, characterised in that, The computer program product includes a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 9.