DescriptionFixed bug in ExtractFrameFromY4mFile API which was not extracting the frames correctly.
Issue: This API was calculating the file_header and frame_header offset only for the first frame which is not the right logic. We need to skip the file and frame header every time we extract a new frame.
Also added a unit test case which compares the extracted frame with the frame stored in text file.
BUG=webrtc:6761
NOPRESUBMIT=true
Committed: https://crrev.com/b7636b4656d7f8c368963f2256dc2ef7b7ba89c8
Cr-Commit-Position: refs/heads/master@{#15260}
Patch Set 1 #Patch Set 2 : Added unit test case. #Patch Set 3 : Added test file which contains the extracted frame from video file for test case. #Patch Set 4 : Added sha1 files for the newly added resources #Patch Set 5 : Some debug statement to debug issue with test case #Patch Set 6 : Adding dependency in gn file #
Total comments: 2
Patch Set 7 : Minor review comments #
Total comments: 1
Patch Set 8 : Added check for EOF file. #
Total comments: 1
Patch Set 9 : Add missing fclose. #
Created: 4 years ago
(Patch set is too large to download)
Messages
Total messages: 27 (15 generated)
|