Fixed 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. NOPRESUBMIT=true NOTRY=true BUG=webrtc:6761 Review-Url: https://codereview.webrtc.org/2532963002 Cr-Commit-Position: refs/heads/master@{#15288}
This commit is contained in:
1
resources/reference_less_video_test_file.y4m.sha1
Normal file
1
resources/reference_less_video_test_file.y4m.sha1
Normal file
@ -0,0 +1 @@
|
||||
5a1620516daf59870158a66230d7bafd9fe9afa1
|
||||
1
resources/video_quality_analysis_frame.txt.sha1
Normal file
1
resources/video_quality_analysis_frame.txt.sha1
Normal file
@ -0,0 +1 @@
|
||||
4d1ac894f1743af8059e8d8ae2465f6eaa1790b0
|
||||
Reference in New Issue
Block a user