CN115103229B - Real-time display method of high-frame-rate video - Google Patents

Real-time display method of high-frame-rate video Download PDF

Info

Publication number
CN115103229B
CN115103229B CN202210713236.4A CN202210713236A CN115103229B CN 115103229 B CN115103229 B CN 115103229B CN 202210713236 A CN202210713236 A CN 202210713236A CN 115103229 B CN115103229 B CN 115103229B
Authority
CN
China
Prior art keywords
display
image
flag
initial value
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210713236.4A
Other languages
Chinese (zh)
Other versions
CN115103229A (en
Inventor
涂法清
李宓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tenke Technology Co ltd
Original Assignee
Shenzhen Tenke Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tenke Technology Co ltd filed Critical Shenzhen Tenke Technology Co ltd
Priority to CN202210713236.4A priority Critical patent/CN115103229B/en
Publication of CN115103229A publication Critical patent/CN115103229A/en
Application granted granted Critical
Publication of CN115103229B publication Critical patent/CN115103229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0127Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a real-time display method of a high frame rate video. According to the method, the refresh frame rate of the display is obtained, and the step flow of the method is that only one frame of current picture is displayed in one picture refresh period of the display, and the rest pictures are discarded and not displayed, rather than waiting for vertical synchronization to be displayed. Therefore, the method can realize synchronous real-time image display without jumping time and avoid the problem of tearing of the image during display. Therefore, the high-frame-rate video can be smoothly played well, and the playing experience of a user is improved.

Description

Real-time display method of high-frame-rate video
Technical Field
The invention relates to the technical field of video playing, in particular to a real-time display method of a high-frame-rate video.
Background
The frame rate refers to the frequency at which images in units of frames appear continuously on the display, i.e., the number of frames of images to be displayed in one second. The frame rate of video coding is usually determined by the video frame rate of the television system, for example, the frame rate of PAL system is 25hz, and the frame rate of ntsc system is 29.97Hz. Regional video coding in NTSC format also commonly uses 23.98Hz. Video coding frame rates are also commonly expressed in FPS (Frames Per Second).
With the performance of hardware devices becoming stronger and the quality requirements of video becoming higher, more and more devices are capable of recording 60Hz and even 120Hz video. However, the refresh frame rate of the current mainstream display is 60Hz, and the display of the video with the common frame rate is not problematic, but the display of the video with the frame rate higher than 60Hz is not refreshed. If the refresh frame rate of the display is 60Hz, it takes 2 seconds to display a video of 120Hz for 1 second, and the screen motion becomes slow. When the time stamp of the image to be displayed is smaller than the current actual time by a certain value, frame dropping processing is triggered, and a certain time jump of the picture is discontinuous. The mechanism originally mainly aims to solve the problem that pictures are sent into a video card too late due to too slow decoding of a CPU, and the high frame rate video can trigger the mechanism at present.
To display high frame rate video smoothly and synchronously, one common method is to turn off the vertical synchronization. What is vertical synchronization? In view of the display principle of the CRT display, the horizontal scanning lines are formed by the single pixels, and the stacking of the horizontal scanning lines in the vertical direction forms a complete picture. The refresh frame rate of the display is controlled by the display card DAC, and the display card DAC generates a vertical synchronizing signal after completing scanning of one frame. The simple understanding is that when the display displays an image, the image to be displayed is acquired from the video memory of the display card and is handed to the display for display. This display requires a process. If a new image is sent to the display card to be displayed in the display process, the display can only wait for the display of the current image of the display to be completed. The graphics card rendering interface has a method to turn off vertical synchronization. The vertical synchronization is closed, namely the image is sent into the display card without waiting for the display of the current image of the display to be completed, and the display memory of the display card is immediately updated and returned. Therefore, the problem that the picture action is slow can be solved, but the display memory data of the display is changed in the display process, and the upper half part of the display image is a previous picture and the lower half part of the display image is a next picture. This causes a problem of tearing of the screen at the time of display. This greatly affects the display effect and is not a good solution.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the real-time display method of the high-frame-rate video is provided, images can be synchronously displayed in real time, time does not jump, and the problem of tearing of a picture during display can be avoided. Therefore, the high-frame-rate video can be smoothly played well, and the playing experience of a user is improved.
The technical scheme of the invention is as follows: a real-time display method of high frame rate video is provided, which comprises the following steps.
S1: the refresh frequency FHz of the display is obtained, and the frame refresh period Ts =1/F of the display is calculated.
S2: the time point when the display starts to display the current frame is T1, and a flag to be refreshed is initialized to an initial value. The initial value of the flag is 0.
S3: inquiring whether the display needs to display a new image at the current time point; if a new image needs to be displayed, the step S4 is executed; if no new image needs to be displayed, the process proceeds to step S5. And after the display of all the images is finished, the display always displays the last frame of image and clears the refreshing mark.
S4: when a display displays a new image, a display function is not directly called to avoid being blocked by a vertical synchronization mechanism, the new image is firstly copied into an off-screen surface video memory of a display card, the original image in the off-screen surface video memory is replaced, and the current time is recorded as T2; if the Flag to be refreshed is a non-initial value, the previous image is directly replaced when being placed in the off-screen surface display memory without being displayed; if T2-T1 is more than or equal to Ts, the current time is more than one display period from the last display time, namely, an image in the off-screen surface display memory is displayed, then the current time is updated to T1, and a flag to be refreshed is set as an initial value; if T2-T1 is less than Ts, the current time is less than one display period of the display from the last display time, the display is not performed temporarily, and a flag to be refreshed is set as a non-initial value; the process advances to step S3. The non-initial value of the flag is 1. The initial value indicates that no image to be displayed exists in the off-screen surface display memory, and the non-initial value indicates that the image to be displayed exists in the off-screen surface display memory.
S5: inquiring a refresh flag; if the flag is an initial value, jumping to S3; if the flag is a non-initial value, the image to be displayed in the off-screen surface display memory is represented, and the current time is updated to be T2; if T2-T1 is more than or equal to Ts, the current time is more than one display period from the last display time, displaying the image in the off-screen surface display memory, updating the current time to the display time T1, and setting a flag to be refreshed as an initial value; otherwise, if T2-T1 is less than Ts, the current time T2 is less than one display period from the last display time, and the S3 is skipped to continue the query.
The method is suitable for smooth display of videos with any frame rate on the display; including normal low frame rate video.
By adopting the scheme, the invention provides the real-time display method of the high-frame-rate video, the refresh frame rate of the display is obtained, and the step flow of the method is that only one frame of the current picture is displayed in one picture refresh period of the display, and the rest pictures are discarded and not displayed, but are not displayed in a manner of waiting for vertical synchronization. Therefore, the method can realize synchronous real-time image display without jumping time and avoid the problem of tearing of the image during display. Therefore, the high-frame-rate video can be smoothly played well, and the playing experience of a user is improved.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
The invention provides a real-time display method of a high frame rate video, which comprises the following steps.
S1: the refresh frequency FHz of the display is obtained, and the frame refresh period Ts =1/F of the display is calculated.
S2: the time point when the display starts to display the current frame is T1, and a flag to be refreshed is initialized to an initial value. The initial value of the flag is 0.
S3: inquiring whether the display needs to display a new image at the current time point; if a new image needs to be displayed, the step S4 is executed; if no new image needs to be displayed, the process proceeds to step S5. And after the display of all the images is finished, the display always displays the last frame of image and clears the refreshing mark.
S4: when the display displays a new image, a display function is not directly called, the display function is prevented from being blocked by a vertical synchronization mechanism, the new image is firstly copied into an off-screen surface video memory of the display card, the original image in the off-screen surface video memory is replaced, and the current time is recorded as T2; if the Flag to be refreshed is a non-initial value, the previous image is directly replaced when being placed in the off-screen surface display memory without being displayed; if T2-T1 is more than or equal to Ts, the current time is more than one display period from the last display time, namely, an image in the off-screen surface display memory is displayed, then the current time is updated to T1, and a flag to be refreshed is set as an initial value; if T2-T1 is less than Ts, the current time is less than one display period of the display at the last time, the display is temporarily not displayed, and a flag to be refreshed is set as a non-initial value; the process advances to step S3. The non-initial value of the flag is 1. The initial value of 0 indicates that no image to be displayed exists in the off-screen surface display memory, and the non-initial value of 1 indicates that the image to be displayed exists in the off-screen surface display memory.
S5: inquiring a refresh flag; if the flag is an initial value, jumping to S3; if the flag is a non-initial value, the image to be displayed in the off-screen surface display memory is represented, and the current time is updated to be T2; if T2-T1 is more than or equal to Ts, the current time is more than one display period from the last display time, displaying the image in the off-screen surface display memory, updating the current time to the display time T1, and setting a flag to be refreshed as an initial value; otherwise, if T2-T1 < Ts, the current time T2 is less than one display period from the last display time, and the S3 is skipped to continue the query.
In summary, the present invention provides a real-time display method for a high frame rate video, which includes obtaining a refresh frame rate of a display, and through the steps and flows of the method, displaying a current frame of a picture only when the display achieves a picture refresh period, and discarding the rest of the pictures without displaying, instead of waiting for vertical synchronization to display. Therefore, the method can realize synchronous real-time image display without jumping time and avoid the problem of tearing of the image during display. Therefore, the high-frame-rate video can be smoothly played well, and the playing experience of a user is improved.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. A real-time display method of high frame rate video is characterized by comprising the following steps:
s1: acquiring a refresh frequency FHz of the display, and calculating a frame refresh period Ts =1/F of the display;
s2: the time point when the display starts to display the current frame is T1, and a flag to be refreshed is initialized as an initial value;
s3: inquiring whether the display needs to display a new image at the current time point; if a new image needs to be displayed, the step S4 is carried out; if no new image needs to be displayed, the step S5 is executed;
s4: when the display displays a new image, copying the new image to an off-screen surface display memory of the display card, replacing an original image in the off-screen surface display memory, and recording the current time as T2; if T2-T1 is more than or equal to Ts, the current time is more than one display period from the last display time, namely, an image in the off-screen surface display memory is displayed, then the current time is updated to T1, and a flag to be refreshed is set as an initial value; if T2-T1 is less than Ts, the current time is less than one display period of the display from the last display time, the display is not performed temporarily, and a flag to be refreshed is set as a non-initial value; the initial value of the flag is 0, and the non-initial value of the flag is 1; the initial value indicates that no image to be displayed exists in the off-screen surface display memory, and the non-initial value indicates that the image to be displayed exists in the off-screen surface display memory;
entering step S3;
s5: inquiring a refresh flag; if the flag is an initial value, jumping to S3; if the flag is a non-initial value, the image to be displayed in the off-screen surface display memory is represented, and the current time is updated to be T2; if T2-T1 is more than or equal to Ts, the current time is more than one display period from the last display time, displaying the image in the off-screen surface display memory, updating the current time to the display time T1, and setting a flag to be refreshed as an initial value; otherwise, if T2-T1 is less than Ts, the current time T2 is less than one display period from the last display time, and the S3 is skipped to continue the query.
2. The method as claimed in claim 1, wherein in step S4, the display function is not directly called to avoid being stuck by the vertical synchronization mechanism.
3. The method as claimed in claim 1, wherein in step S3, the method further comprises: after the display of all the images is finished, the display always displays the last frame of image.
4. The method as claimed in claim 3, wherein in step S3, the refresh flag is cleared after the display displays the last frame of image.
5. The method as claimed in claim 1, wherein in step S4, a new image is copied to the off-screen surface memory of the display card, and when the original image in the off-screen surface memory is replaced, if the Flag to be refreshed is a non-initial value, it indicates that the previous image is directly replaced without being displayed in the off-screen surface memory.
CN202210713236.4A 2022-06-22 2022-06-22 Real-time display method of high-frame-rate video Active CN115103229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210713236.4A CN115103229B (en) 2022-06-22 2022-06-22 Real-time display method of high-frame-rate video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210713236.4A CN115103229B (en) 2022-06-22 2022-06-22 Real-time display method of high-frame-rate video

Publications (2)

Publication Number Publication Date
CN115103229A CN115103229A (en) 2022-09-23
CN115103229B true CN115103229B (en) 2023-03-14

Family

ID=83292860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210713236.4A Active CN115103229B (en) 2022-06-22 2022-06-22 Real-time display method of high-frame-rate video

Country Status (1)

Country Link
CN (1) CN115103229B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207839A (en) * 2011-03-30 2011-10-05 广东威创视讯科技股份有限公司 Method and system for eliminating horizontal image tearing
CN106941563A (en) * 2017-03-10 2017-07-11 广东欧珀移动通信有限公司 A kind of control method, device and the mobile terminal of mobile terminal refresh rate
CN111918093A (en) * 2020-08-13 2020-11-10 腾讯科技(深圳)有限公司 Live broadcast data processing method and device, computer equipment and storage medium
CN113395592A (en) * 2020-11-18 2021-09-14 腾讯科技(北京)有限公司 Video playing control method, device, equipment and computer storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497527B (en) * 2011-12-16 2013-11-27 杭州海康威视数字技术股份有限公司 Multi-processor video processing system and video image synchronous transmission and display method thereof
US9881541B2 (en) * 2014-04-27 2018-01-30 Douglas Pollok Apparatus, system, and method for video creation, transmission and display to reduce latency and enhance video quality
CN104952088B (en) * 2015-05-25 2018-05-29 常州北大众志网络计算机有限公司 A kind of method for being compressed and decompressing to display data
CN105005778B (en) * 2015-08-14 2018-07-17 东南大学 A kind of vehicle on highway detection method of view-based access control model background extracting
CN113012165B (en) * 2021-03-19 2023-06-23 厦门大学 Anisotropic video over-dividing method based on GPU
CN113613047B (en) * 2021-08-20 2022-11-11 Vidaa(荷兰)国际控股有限公司 Media file playing control method and display device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207839A (en) * 2011-03-30 2011-10-05 广东威创视讯科技股份有限公司 Method and system for eliminating horizontal image tearing
CN106941563A (en) * 2017-03-10 2017-07-11 广东欧珀移动通信有限公司 A kind of control method, device and the mobile terminal of mobile terminal refresh rate
CN111918093A (en) * 2020-08-13 2020-11-10 腾讯科技(深圳)有限公司 Live broadcast data processing method and device, computer equipment and storage medium
CN113395592A (en) * 2020-11-18 2021-09-14 腾讯科技(北京)有限公司 Video playing control method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN115103229A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN109618179B (en) Rapid play starting method and device for ultra-high definition video live broadcast
KR100385968B1 (en) Receiver and display method for simultaneously displaying signals with different display formats and / or frame rates
US7158186B2 (en) Method and system for changing the frame rate to be optimal for the material being displayed while maintaining a stable image throughout
US8063894B2 (en) Image display system, image display device, and image data output device
CN108924621B (en) Display methods, device and television set, storage medium
WO2019153723A1 (en) Video frame display method and device, television and storage medium
JP4649615B2 (en) Video encoding / decoding device, video encoding / decoding method, and program thereof
CN109640167B (en) Video processing method and device, electronic equipment and storage medium
JP5262546B2 (en) Video signal processing system, playback device and display device, and video signal processing method
JP2003528549A (en) Method and apparatus for recording and displaying two different video programs simultaneously
KR20200062189A (en) Video data processing method and video data processing device
KR20200077507A (en) Video data processing method and video data processing device
JP2006003893A (en) Reduction of blurs in lcd by controlling frame rate
JP2012182673A (en) Image display apparatus and image processing method
US6249640B1 (en) System and method for rapidly decoding sub-pictures in a DVD player
US7495704B2 (en) Method and apparatus for displaying frame rate altered video on interlaced display device
CN115103229B (en) Real-time display method of high-frame-rate video
CN112637660A (en) Image stabilization method for starting up android television video application
CN111654740B (en) Rendering method and device in video playing process and electronic equipment
US20070002167A1 (en) Frame rate adjusting method and apparatus for displaying video on interlace display devices
US20100260255A1 (en) Method and system for clustered fallback for frame rate up-conversion (fruc) for digital televisions
EP2239941A1 (en) Multi-screen display
US8279207B2 (en) Information processing apparatus, information processing method, and program
EP1848203B2 (en) Method and system for video image aspect ratio conversion
JP4433719B2 (en) Image display apparatus burn-in prevention apparatus and image display apparatus burn-in prevention method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant