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

Issue 1566533003: V4L2(S)VDA: Check if device handles profile for supported fourccs on init. (Closed)

Created:
4 years, 11 months ago by Pawel Osciak
Modified:
4 years, 11 months ago
Reviewers:
wuchengli, henryhsu
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

V4L2(S)VDA: Check if device handles profile for supported fourccs on init. A media::VideoCodecProfile can be supported by a device via different V4L2 fourccs. For example, H264 profiles may be supported via V4L2_PIX_FMT_H264 or V4L2_PIX_FMT_H264_SLICE. A single VDA type may only support a subset of these fourccs however. When querying for supported profiles, we return a sum of all supported profiles for all VDAs on the system, and then rely on VDA selection code to instantiate each VDA one by one and find the first one that does not fail for the requested profile. In V4L2 VDAs, this effectively happens when querying supported resolutions, resulting in confusing error messages in the logs about the VDA not being able to query supported resolutions. To prevent this, check if the requested profile is handled in the device via fourccs that the VDA supports earlier, on VDA::Initialize(). BUG=None TEST=vdatest, crosvideo.appspot Committed: https://crrev.com/ce4fe47570a6fe94438791c8b16de92283b6e6f6 Cr-Commit-Position: refs/heads/master@{#368835}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -33 lines) Patch
M content/common/gpu/media/v4l2_device.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/gpu/media/v4l2_device.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M content/common/gpu/media/v4l2_slice_video_decode_accelerator.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc View 4 chunks +17 lines, -7 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 3 chunks +16 lines, -26 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Pawel Osciak
ptal
4 years, 11 months ago (2016-01-06 04:02:20 UTC) #2
wuchengli
lgtm https://chromiumcodereview.appspot.com/1566533003/diff/1/content/common/gpu/media/v4l2_device.h File content/common/gpu/media/v4l2_device.h (right): https://chromiumcodereview.appspot.com/1566533003/diff/1/content/common/gpu/media/v4l2_device.h#newcode127 content/common/gpu/media/v4l2_device.h:127: // fourcss from the given array of |pixelformats| ...
4 years, 11 months ago (2016-01-12 07:35:13 UTC) #3
Pawel Osciak
https://chromiumcodereview.appspot.com/1566533003/diff/1/content/common/gpu/media/v4l2_device.h File content/common/gpu/media/v4l2_device.h (right): https://chromiumcodereview.appspot.com/1566533003/diff/1/content/common/gpu/media/v4l2_device.h#newcode127 content/common/gpu/media/v4l2_device.h:127: // fourcss from the given array of |pixelformats| of ...
4 years, 11 months ago (2016-01-12 08:03:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566533003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566533003/20001
4 years, 11 months ago (2016-01-12 08:04:25 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/6732) chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-12 08:14:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1566533003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1566533003/20001
4 years, 11 months ago (2016-01-12 08:44:26 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-12 09:03:21 UTC) #12
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 09:04:44 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ce4fe47570a6fe94438791c8b16de92283b6e6f6
Cr-Commit-Position: refs/heads/master@{#368835}

Powered by Google App Engine
This is Rietveld 408576698