US 12,451,160 B2
Method for reading and writing frame images with multiple buffer blocks and system
Shi-Xuan Hong, Hsinchu (TW); Huan-Wen Chen, Hsinchu (TW); and Po-Hsien Wu, Hsinchu (TW)
Assigned to REALTEK SEMICONDUCTOR CORP., Hsinchu (TW)
Filed by REALTEK SEMICONDUCTOR CORP., Hsinchu (TW)
Filed on Feb. 6, 2024, as Appl. No. 18/433,609.
Claims priority of application No. 112104505 (TW), filed on Feb. 9, 2023.
Prior Publication US 2024/0274155 A1, Aug. 15, 2024
Int. Cl. G11B 27/00 (2006.01); G11B 20/10 (2006.01); G11B 27/10 (2006.01); G11B 27/36 (2006.01); H04N 7/01 (2006.01); G11B 23/00 (2006.01); G11B 23/02 (2006.01)
CPC G11B 20/10527 (2013.01) [G11B 27/005 (2013.01); G11B 27/36 (2013.01); H04N 7/0127 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for reading and writing frame images, which is adapted to a video-processing system that includes a write end and a read end having multiple buffer blocks wherein, when the video-processing system checks that a read rate of the read end suddenly drops, a frame rate of the write end becomes higher, the reading rate of the read end is suddenly slower than a write rate of the write end, the video-processing system is switched from an input slow mode to an input fast mode, or is switched from the input fast mode to the input slow mode, the method comprises:
a. when the video-processing system checks that a progress of the write end is writing a frame to one of the multiple buffer blocks but the frame is not written to the buffer block completely, the read end is controlled to continuously read the frame that is currently reading from another buffer block until the video-processing system checks that the write end already writes the frame to the buffer block completely, and then the video-processing system controls the read end to read the frame that is completely written by the write end to the one of the multiple buffer blocks; or
b. when the video-processing system checks that the progress of the write end is writing the frame to the one of the multiple buffer blocks but the frame is not written to the buffer block completely, the read end is controlled to keep reading the frame that is currently reading from another buffer block until the read end reads the frame completely; the read end is again controlled to start reading another frame from one of the multiple buffer blocks when the write end has written the frame to the buffer block completely; or
c. when the video-processing system checks that the write end does not change the buffer block to be written with the frame, the read end is controlled to repeatedly read the frame that the write end has written to the one of the multiple buffer blocks;
and the read end is again controlled to continue to read a next frame when the written end changes the buffer block to be written with one of the frames.