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

Issue 2926593002: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client (Closed)

Created:
3 years, 6 months ago by johnylin1
Modified:
3 years, 6 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client The visible size (render size) should be obtained from header parsing of decoders. Pass visible size format to Android container to get correct rendering size. BUG=chromium:402760, b:37288674, b:37769238 TEST=play video on ARC++ which has different on visible and coded size (e.g. 320x180). Check the format decoded from Chrome has correct visible and coded size. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2926593002 Cr-Commit-Position: refs/heads/master@{#480416} Committed: https://chromium.googlesource.com/chromium/src/+/744108776ca82c0a86b3049042e68daf3f2c82c2

Patch Set 1 #

Patch Set 2 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Patch Set 3 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 16

Patch Set 4 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Patch Set 5 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 7

Patch Set 6 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Patch Set 7 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 12

Patch Set 8 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Patch Set 9 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 2

Patch Set 10 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 11

Patch Set 11 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 2

Patch Set 12 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Total comments: 6

Patch Set 13 : V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -26 lines) Patch
M media/gpu/h264_decoder.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M media/gpu/h264_decoder.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M media/gpu/h264_dpb.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 chunks +18 lines, -13 lines 0 comments Download
M media/gpu/vaapi_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -2 lines 0 comments Download
M media/gpu/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 chunks +16 lines, -10 lines 0 comments Download
M media/gpu/vp8_decoder.cc View 1 2 3 4 5 9 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/vp8_picture.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M media/gpu/vp9_decoder.cc View 1 2 3 4 5 6 7 8 9 10 12 1 chunk +12 lines, -0 lines 0 comments Download
M media/gpu/vp9_picture.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (10 generated)
johnylin1
3 years, 6 months ago (2017-06-06 13:46:43 UTC) #3
Owen Lin
https://codereview.chromium.org/2926593002/diff/40001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/40001/media/gpu/h264_decoder.cc#newcode1097 media/gpu/h264_decoder.cc:1097: if (new_visible_rect.IsEmpty()) { I think we shouldn't fail in ...
3 years, 6 months ago (2017-06-07 06:11:00 UTC) #6
kcwu
https://codereview.chromium.org/2926593002/diff/40001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/40001/media/gpu/h264_decoder.cc#newcode1097 media/gpu/h264_decoder.cc:1097: if (new_visible_rect.IsEmpty()) { On 2017/06/07 06:10:59, Owen Lin wrote: ...
3 years, 6 months ago (2017-06-07 07:15:28 UTC) #7
johnylin1
https://codereview.chromium.org/2926593002/diff/40001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/40001/media/gpu/h264_decoder.cc#newcode1097 media/gpu/h264_decoder.cc:1097: if (new_visible_rect.IsEmpty()) { On 2017/06/07 07:15:27, kcwu wrote: > ...
3 years, 6 months ago (2017-06-07 15:38:38 UTC) #8
Pawel Osciak
https://codereview.chromium.org/2926593002/diff/40001/media/gpu/vaapi_video_decode_accelerator.cc File media/gpu/vaapi_video_decode_accelerator.cc (right): https://codereview.chromium.org/2926593002/diff/40001/media/gpu/vaapi_video_decode_accelerator.cc#newcode430 media/gpu/vaapi_video_decode_accelerator.cc:430: gfx::Rect visible_rect = decoder_->GetVisibleRect(); On 2017/06/07 15:38:37, johnylin1 wrote: ...
3 years, 6 months ago (2017-06-08 04:58:25 UTC) #9
Owen Lin
https://codereview.chromium.org/2926593002/diff/40001/media/gpu/vaapi_video_decode_accelerator.cc File media/gpu/vaapi_video_decode_accelerator.cc (right): https://codereview.chromium.org/2926593002/diff/40001/media/gpu/vaapi_video_decode_accelerator.cc#newcode430 media/gpu/vaapi_video_decode_accelerator.cc:430: gfx::Rect visible_rect = decoder_->GetVisibleRect(); On 2017/06/08 04:58:24, Pawel Osciak ...
3 years, 6 months ago (2017-06-09 02:03:17 UTC) #10
johnylin1
https://codereview.chromium.org/2926593002/diff/40001/media/gpu/vaapi_video_decode_accelerator.cc File media/gpu/vaapi_video_decode_accelerator.cc (right): https://codereview.chromium.org/2926593002/diff/40001/media/gpu/vaapi_video_decode_accelerator.cc#newcode430 media/gpu/vaapi_video_decode_accelerator.cc:430: gfx::Rect visible_rect = decoder_->GetVisibleRect(); On 2017/06/09 02:03:17, Owen Lin ...
3 years, 6 months ago (2017-06-12 13:41:53 UTC) #11
Owen Lin
https://codereview.chromium.org/2926593002/diff/120001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/120001/media/gpu/h264_decoder.cc#newcode1098 media/gpu/h264_decoder.cc:1098: DVLOG(1) << "New visible rect: " << new_visible_rect.ToString(); level ...
3 years, 6 months ago (2017-06-13 03:00:15 UTC) #12
johnylin1
https://codereview.chromium.org/2926593002/diff/120001/media/gpu/vaapi_video_decode_accelerator.cc File media/gpu/vaapi_video_decode_accelerator.cc (right): https://codereview.chromium.org/2926593002/diff/120001/media/gpu/vaapi_video_decode_accelerator.cc#newcode439 media/gpu/vaapi_video_decode_accelerator.cc:439: << " is ready. visible rect: " << visible_rect.ToString(); ...
3 years, 6 months ago (2017-06-13 07:10:30 UTC) #13
johnylin1
https://codereview.chromium.org/2926593002/diff/120001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/120001/media/gpu/h264_decoder.cc#newcode1098 media/gpu/h264_decoder.cc:1098: DVLOG(1) << "New visible rect: " << new_visible_rect.ToString(); On ...
3 years, 6 months ago (2017-06-13 07:21:22 UTC) #14
johnylin1
https://codereview.chromium.org/2926593002/diff/80001/media/gpu/vp8_decoder.cc File media/gpu/vp8_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/80001/media/gpu/vp8_decoder.cc#newcode68 media/gpu/vp8_decoder.cc:68: gfx::Size new_pic_size(curr_frame_hdr_->width, curr_frame_hdr_->height); On 2017/06/12 13:41:53, johnylin1 wrote: > ...
3 years, 6 months ago (2017-06-13 15:23:56 UTC) #15
Owen Lin
https://codereview.chromium.org/2926593002/diff/120001/media/gpu/vp9_decoder.cc File media/gpu/vp9_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/120001/media/gpu/vp9_decoder.cc#newcode117 media/gpu/vp9_decoder.cc:117: // Due to specification render size should be set ...
3 years, 6 months ago (2017-06-14 02:28:25 UTC) #16
johnylin1
https://codereview.chromium.org/2926593002/diff/120001/media/gpu/vp9_decoder.cc File media/gpu/vp9_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/120001/media/gpu/vp9_decoder.cc#newcode117 media/gpu/vp9_decoder.cc:117: // Due to specification render size should be set ...
3 years, 6 months ago (2017-06-14 14:11:22 UTC) #17
Pawel Osciak
https://codereview.chromium.org/2926593002/diff/180001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/180001/media/gpu/h264_decoder.cc#newcode1096 media/gpu/h264_decoder.cc:1096: gfx::Rect new_visible_rect = sps->GetVisibleRect().value_or(gfx::Rect()); Would it make sense to ...
3 years, 6 months ago (2017-06-16 07:14:01 UTC) #18
johnylin1
https://codereview.chromium.org/2926593002/diff/180001/media/gpu/h264_decoder.cc File media/gpu/h264_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/180001/media/gpu/h264_decoder.cc#newcode1096 media/gpu/h264_decoder.cc:1096: gfx::Rect new_visible_rect = sps->GetVisibleRect().value_or(gfx::Rect()); On 2017/06/16 07:14:00, Pawel Osciak ...
3 years, 6 months ago (2017-06-16 08:15:10 UTC) #19
Owen Lin
lgtm % nit https://codereview.chromium.org/2926593002/diff/200001/media/gpu/vp9_decoder.cc File media/gpu/vp9_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/200001/media/gpu/vp9_decoder.cc#newcode146 media/gpu/vp9_decoder.cc:146: << new_render_rect.ToString() How about DVLOG(2) since ...
3 years, 6 months ago (2017-06-16 09:07:33 UTC) #20
johnylin1
https://codereview.chromium.org/2926593002/diff/200001/media/gpu/vp9_decoder.cc File media/gpu/vp9_decoder.cc (right): https://codereview.chromium.org/2926593002/diff/200001/media/gpu/vp9_decoder.cc#newcode146 media/gpu/vp9_decoder.cc:146: << new_render_rect.ToString() On 2017/06/16 09:07:33, Owen Lin wrote: > ...
3 years, 6 months ago (2017-06-16 11:43:53 UTC) #21
Pawel Osciak
https://codereview.chromium.org/2926593002/diff/220001/media/gpu/vaapi_video_decode_accelerator.h File media/gpu/vaapi_video_decode_accelerator.h (right): https://codereview.chromium.org/2926593002/diff/220001/media/gpu/vaapi_video_decode_accelerator.h#newcode148 media/gpu/vaapi_video_decode_accelerator.h:148: // Puts contents of |va_surface| and set |visible_rect| into ...
3 years, 6 months ago (2017-06-19 06:27:41 UTC) #22
johnylin1
https://codereview.chromium.org/2926593002/diff/220001/media/gpu/vaapi_video_decode_accelerator.h File media/gpu/vaapi_video_decode_accelerator.h (right): https://codereview.chromium.org/2926593002/diff/220001/media/gpu/vaapi_video_decode_accelerator.h#newcode148 media/gpu/vaapi_video_decode_accelerator.h:148: // Puts contents of |va_surface| and set |visible_rect| into ...
3 years, 6 months ago (2017-06-19 07:13:28 UTC) #23
Pawel Osciak
lgtm
3 years, 6 months ago (2017-06-19 07:19:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2926593002/240001
3 years, 6 months ago (2017-06-19 07:23:31 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/252575)
3 years, 6 months ago (2017-06-19 08:08:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2926593002/240001
3 years, 6 months ago (2017-06-19 12:11:41 UTC) #31
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 13:05:47 UTC) #34
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/744108776ca82c0a86b3049042e6...

Powered by Google App Engine
This is Rietveld 408576698