Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Issue 2529923002: Bug in ExtractFrame API (extracts frames incorrectly) (Closed)

Created:
4 years ago by charujain
Modified:
4 years ago
Reviewers:
phoglund
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, kjellander (google.com)
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

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. 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -30 lines) Patch
A resources/reference_less_video_test_file.y4m.sha1 View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A resources/video_quality_analysis_frame.txt.sha1 View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/tools/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M webrtc/tools/frame_analyzer/video_quality_analysis.cc View 1 2 3 4 5 6 7 8 3 chunks +30 lines, -29 lines 0 comments Download
M webrtc/tools/frame_analyzer/video_quality_analysis_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
charujain
PTAL.
4 years ago (2016-11-25 13:23:32 UTC) #6
phoglund
minor comments https://codereview.webrtc.org/2529923002/diff/100001/webrtc/tools/frame_analyzer/video_quality_analysis.cc File webrtc/tools/frame_analyzer/video_quality_analysis.cc (right): https://codereview.webrtc.org/2529923002/diff/100001/webrtc/tools/frame_analyzer/video_quality_analysis.cc#newcode144 webrtc/tools/frame_analyzer/video_quality_analysis.cc:144: if (bytes_read != static_cast<size_t>(frame_size) && ferror(input_file)) { ...
4 years ago (2016-11-25 14:39:08 UTC) #7
phoglund
Also: keep CL descriptions within 72 columns or they look ugly it git log and ...
4 years ago (2016-11-25 14:50:12 UTC) #8
charujain
On 2016/11/25 14:39:08, phoglund wrote: > minor comments > > https://codereview.webrtc.org/2529923002/diff/100001/webrtc/tools/frame_analyzer/video_quality_analysis.cc > File webrtc/tools/frame_analyzer/video_quality_analysis.cc (right): ...
4 years ago (2016-11-28 09:18:47 UTC) #9
phoglund
https://codereview.webrtc.org/2529923002/diff/110001/webrtc/tools/frame_analyzer/video_quality_analysis.cc File webrtc/tools/frame_analyzer/video_quality_analysis.cc (right): https://codereview.webrtc.org/2529923002/diff/110001/webrtc/tools/frame_analyzer/video_quality_analysis.cc#newcode166 webrtc/tools/frame_analyzer/video_quality_analysis.cc:166: if (ferror(input_file)) { Discussed offline: it's better to check ...
4 years ago (2016-11-28 11:51:04 UTC) #10
charujain
On 2016/11/28 11:51:04, phoglund wrote: > https://codereview.webrtc.org/2529923002/diff/110001/webrtc/tools/frame_analyzer/video_quality_analysis.cc > File webrtc/tools/frame_analyzer/video_quality_analysis.cc (right): > > https://codereview.webrtc.org/2529923002/diff/110001/webrtc/tools/frame_analyzer/video_quality_analysis.cc#newcode166 > ...
4 years ago (2016-11-28 12:36:02 UTC) #11
phoglund
lgtm w/ addition of one missing fclose(). https://codereview.webrtc.org/2529923002/diff/120001/webrtc/tools/frame_analyzer/video_quality_analysis.cc File webrtc/tools/frame_analyzer/video_quality_analysis.cc (right): https://codereview.webrtc.org/2529923002/diff/120001/webrtc/tools/frame_analyzer/video_quality_analysis.cc#newcode164 webrtc/tools/frame_analyzer/video_quality_analysis.cc:164: if (feof(input_file)) ...
4 years ago (2016-11-28 12:37:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2529923002/130001
4 years ago (2016-11-28 12:45:52 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:130001)
4 years ago (2016-11-28 13:04:02 UTC) #19
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/b7636b4656d7f8c368963f2256dc2ef7b7ba89c8 Cr-Commit-Position: refs/heads/master@{#15260}
4 years ago (2016-11-28 13:04:12 UTC) #21
charujain
A revert of this CL (patchset #10 id:140001) has been created in https://codereview.webrtc.org/2534903002/ by charujain@webrtc.org. ...
4 years ago (2016-11-28 13:29:52 UTC) #22
charujain
4 years ago (2016-11-28 13:33:54 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:130001) has been created in
https://codereview.webrtc.org/2535783002/ by charujain@webrtc.org.

The reason for reverting is: Breaking some trybots due to memory error..

Powered by Google App Engine
This is Rietveld 408576698