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

Issue 1286983002: Save both original frame and output frame into files if the absolute differences is larger than the…

Created:
5 years, 4 months ago by hsiaochingc
Modified:
4 years, 11 months ago
Reviewers:
Owen Lin
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Save both original frame and output frame into files if the absolute differences is larger than the threshold Add VideoFrameQualityValidator::SaveFrameToFile(). It converts frame format from yuv to rgb and then saves frames into png files. BUG=

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase and address review comments #

Total comments: 4

Patch Set 3 : Address review comments #

Total comments: 1

Patch Set 4 : Address review comments #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -3 lines) Patch
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 7 chunks +49 lines, -3 lines 9 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 16 (7 generated)
Owen Lin
https://codereview.chromium.org/1286983002/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/1286983002/diff/1/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode714 content/common/gpu/media/video_encode_accelerator_unittest.cc:714: CHECK(difference < kDecodeSimilarityThreshold) I thought we will crash at ...
5 years, 4 months ago (2015-08-12 08:07:48 UTC) #2
wuchengli
Please rebase and address the review comments.
5 years, 3 months ago (2015-09-04 01:44:15 UTC) #3
hsiaochingc
PTAL
5 years, 3 months ago (2015-09-04 03:01:49 UTC) #5
Owen Lin
https://codereview.chromium.org/1286983002/diff/60001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://codereview.chromium.org/1286983002/diff/60001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode783 content/common/gpu/media/video_encode_accelerator_unittest.cc:783: SaveFrameToFile(output_frame, base::FilePath::FromUTF8Unsafe(filename)); Remove EXPECT_TRUE at l.773 Add the following ...
5 years, 3 months ago (2015-09-04 03:34:47 UTC) #7
Owen Lin
lgtm % one nit https://chromiumcodereview.appspot.com/1286983002/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc File content/common/gpu/media/video_encode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/1286983002/diff/80001/content/common/gpu/media/video_encode_accelerator_unittest.cc#newcode810 content/common/gpu/media/video_encode_accelerator_unittest.cc:810: base::AlignedFree(rgb_pixels); move to the line ...
5 years, 3 months ago (2015-09-04 07:03:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1286983002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1286983002/100001
5 years, 3 months ago (2015-09-04 07:11:34 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/96556)
5 years, 3 months ago (2015-09-04 07:20:19 UTC) #13
Owen Lin
On 2015/09/04 07:20:19, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 3 months ago (2015-09-04 08:05:33 UTC) #14
wuchengli
5 years, 3 months ago (2015-09-04 11:59:44 UTC) #15
https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
File content/common/gpu/media/video_encode_accelerator_unittest.cc (right):

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:1: // Copyright
2013 The Chromium Authors. All rights reserved.
IIRC, the first line of the change description will be git subject. Please use a
shorter subject (<70chars).

Add BUG number.

Add TESTS=

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:636: 
Document if the id starts from 0. It's confusing line 654 initializes it to 0
and the first id will be 1. Let's start at 0 because input_id_ also starts at 0.

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:773: // Save both
origin and output frames to files if its difference is larger
s/its/their/

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:774: // than
kDecodeSimilarityThreshold
add . at the end.

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:792:
base::AlignedAlloc(row_bytes * frame->coded_size().height() +
Why do we need the alignment?

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:793:
media::VideoFrame::kFrameSizePadding,
Is this required?

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:801:
frame->stride(media::VideoFrame::kUPlane), row_bytes, media::YV12);
Is the original frame also YV12? We should document it.

s/kUPlane/kUVPlane/

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:805: rgb_pixels,
gfx::PNGCodec::FORMAT_RGBA, frame->coded_size(),
why this is not visible_rect()?

https://codereview.chromium.org/1286983002/diff/100001/content/common/gpu/med...
content/common/gpu/media/video_encode_accelerator_unittest.cc:811: 
remove blank line

https://codereview.chromium.org/1286983002/diff/100001/content/content_tests....
File content/content_tests.gypi (right):

https://codereview.chromium.org/1286983002/diff/100001/content/content_tests....
content/content_tests.gypi:1763: '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
Why do we need this? for which include?

Powered by Google App Engine
This is Rietveld 408576698