Patent ID: 9749578
Date: 2017-08-29
CPC Classifications: G09G,H04N

Claim:
1. A method for determining frame resolution, performed by a processing unit, comprising: obtaining a YUV video file, which comprises a video stream; selecting a plurality of frame resolutions from a frame resolution table as frame resolution candidates according to length of the video stream; repeatedly executing a loop m times, and in each iteration, obtaining at least two frames of the video stream according to one unexamined frame resolution candidate and calculating a correlation between the obtained frames, wherein m represents quantity of the frame resolution candidates; determining best frame resolution from the frame resolution candidates according to the calculated correlations; and outputting the best frame resolution, thereby enabling a video decoder to segment the video stream into frames according to the best frame resolution and decode the segmented frame, wherein the step for selecting a plurality of frame resolutions from a frame resolution table as frame resolution candidates according to length of the video stream comprises: calculating the j L represents the length of the video stream of the YUV video file, W treating the frame resolutions with the remainder being 0 as the frame resolution candidates.