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

Issue 2990563002: Add Jpeg frame writer for test support. (Closed)

Created:
3 years, 5 months ago by ilnik
Modified:
3 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, yujie_mao (webrtc), tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add Jpeg frame writer for test support. Also, use it to save worst psnr frame in video quality tests. It is indented that these saved frames from perfbots will be uploaded to the cloud and will be available in chrome perf dashboard. Because of that size of the saved frame is somewhat an issue. Also, y4m is not convenient to view. BUG=webrtc:8030 Review-Url: https://codereview.webrtc.org/2990563002 Cr-Commit-Position: refs/heads/master@{#19414} Committed: https://chromium.googlesource.com/external/webrtc/+/26e5cbd6bb38ed734559ab70cb7362870d76c923

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : cleanup #

Patch Set 4 : Dont use libjpeg on ios. Disable frame writer #

Patch Set 5 : Disable Jpeg frame writer on iOS correct way. #

Patch Set 6 : Rebase #

Patch Set 7 : Wire up jpeg frame writer to video quality tests #

Patch Set 8 : Fix memory issues #

Total comments: 4

Patch Set 9 : Improved jpeg quality #

Total comments: 18

Patch Set 10 : Rebase #

Patch Set 11 : Implement Pbos@ comments #

Total comments: 17

Patch Set 12 : Implemented Sprang@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -31 lines) Patch
M webrtc/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/test/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/test/testsupport/frame_writer.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -0 lines 0 comments Download
A webrtc/test/testsupport/jpeg_frame_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +88 lines, -0 lines 0 comments Download
M webrtc/test/testsupport/test_output.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -6 lines 0 comments Download
M webrtc/test/testsupport/test_output_unittest.cc View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/video/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -20 lines 0 comments Download

Messages

Total messages: 52 (36 generated)
ilnik
3 years, 5 months ago (2017-07-25 10:08:09 UTC) #2
ilnik
+sprang for video/
3 years, 5 months ago (2017-07-25 16:20:05 UTC) #18
pbos-webrtc
https://codereview.webrtc.org/2990563002/diff/140001/webrtc/video/video_quality_test.cc File webrtc/video/video_quality_test.cc (left): https://codereview.webrtc.org/2990563002/diff/140001/webrtc/video/video_quality_test.cc#oldcode827 webrtc/video/video_quality_test.cc:827: // TODO(ilnik): enable frame writing for android, once jpeg ...
3 years, 5 months ago (2017-07-25 18:10:28 UTC) #25
ilnik
https://codereview.webrtc.org/2990563002/diff/140001/webrtc/video/video_quality_test.cc File webrtc/video/video_quality_test.cc (left): https://codereview.webrtc.org/2990563002/diff/140001/webrtc/video/video_quality_test.cc#oldcode827 webrtc/video/video_quality_test.cc:827: // TODO(ilnik): enable frame writing for android, once jpeg ...
3 years, 5 months ago (2017-07-25 19:05:54 UTC) #27
ilnik
Erik, if there are no comments from your side and if Peter approves this CL, ...
3 years, 4 months ago (2017-07-26 11:41:43 UTC) #34
pbos-webrtc
https://codereview.webrtc.org/2990563002/diff/160001/webrtc/test/testsupport/jpeg_frame_writer.cc File webrtc/test/testsupport/jpeg_frame_writer.cc (right): https://codereview.webrtc.org/2990563002/diff/160001/webrtc/test/testsupport/jpeg_frame_writer.cc#newcode38 webrtc/test/testsupport/jpeg_frame_writer.cc:38: RTC_CHECK(!frame_written_) << "Only single frame can be saved to ...
3 years, 4 months ago (2017-07-26 18:48:03 UTC) #35
ilnik
https://codereview.webrtc.org/2990563002/diff/160001/webrtc/test/testsupport/jpeg_frame_writer.cc File webrtc/test/testsupport/jpeg_frame_writer.cc (right): https://codereview.webrtc.org/2990563002/diff/160001/webrtc/test/testsupport/jpeg_frame_writer.cc#newcode38 webrtc/test/testsupport/jpeg_frame_writer.cc:38: RTC_CHECK(!frame_written_) << "Only single frame can be saved to ...
3 years, 4 months ago (2017-08-17 11:35:08 UTC) #36
sprang_webrtc
https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/frame_writer.h File webrtc/test/testsupport/frame_writer.h (right): https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/frame_writer.h#newcode90 webrtc/test/testsupport/frame_writer.h:90: JpegFrameWriter(std::string output_filename); nit: make parameter a const ref https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/jpeg_frame_writer.cc ...
3 years, 4 months ago (2017-08-17 15:27:51 UTC) #37
ilnik
https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/frame_writer.h File webrtc/test/testsupport/frame_writer.h (right): https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/frame_writer.h#newcode90 webrtc/test/testsupport/frame_writer.h:90: JpegFrameWriter(std::string output_filename); On 2017/08/17 15:27:50, sprang_webrtc wrote: > nit: ...
3 years, 4 months ago (2017-08-18 08:42:06 UTC) #38
sprang_webrtc
lgtm https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/jpeg_frame_writer.cc File webrtc/test/testsupport/jpeg_frame_writer.cc (right): https://codereview.webrtc.org/2990563002/diff/200001/webrtc/test/testsupport/jpeg_frame_writer.cc#newcode62 webrtc/test/testsupport/jpeg_frame_writer.cc:62: jpeg_stdio_dest(&cinfo, output_file_); On 2017/08/18 08:42:05, ilnik wrote: > ...
3 years, 4 months ago (2017-08-18 08:48:03 UTC) #41
ilnik
Pbos, could you please check that all your comments are addressed and give the approval?
3 years, 4 months ago (2017-08-18 08:54:29 UTC) #42
pbos-webrtc
webrtc/test lgtm
3 years, 4 months ago (2017-08-18 14:57:13 UTC) #45
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/2990563002/220001
3 years, 4 months ago (2017-08-18 15:57:00 UTC) #47
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/external/webrtc/+/26e5cbd6bb38ed734559ab70cb7362870d76c923
3 years, 4 months ago (2017-08-18 16:00:14 UTC) #50
charujain1
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.webrtc.org/2998123002/ by charujain@google.com. ...
3 years, 4 months ago (2017-08-19 23:43:17 UTC) #51
charujain
3 years, 4 months ago (2017-08-20 19:10:40 UTC) #52
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.webrtc.org/2998133002/ by charujain@webrtc.org.

The reason for reverting is: Breaks webrtc.linux.

Powered by Google App Engine
This is Rietveld 408576698