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

Issue 2398883002: Add support for multiple V4L2 video devices of the same type. (Closed)

Created:
4 years, 2 months ago by Pawel Osciak
Modified:
4 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, jln+watch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, rickyz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for multiple V4L2 video devices of the same type. Platforms may expose multiple video decoders/encoders/etc. via separate V4L2 video nodes. Each of them may support different codecs/formats. Instead of handling only single /dev/video-dec, /dev/video-enc etc. device nodes, enumerate all /dev/video-dec[0-9], /dev/video-enc[0-9] device nodes present and choose one based on requested format/type. BUG=chrome-os-partner:55497 TEST=vdatest,veatest,crosvideo.appspot Committed: https://crrev.com/8eb65c7347b12340aacbee7dafe9783588a359ab Cr-Commit-Position: refs/heads/master@{#424655}

Patch Set 1 #

Patch Set 2 : Fixes for image processor. #

Total comments: 32

Patch Set 3 : Address comments, reorganize V4L2Device::Type. #

Total comments: 45

Patch Set 4 : comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -337 lines) Patch
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 2 chunks +11 lines, -3 lines 0 comments Download
M media/gpu/generic_v4l2_device.h View 1 2 3 4 chunks +49 lines, -4 lines 0 comments Download
M media/gpu/generic_v4l2_device.cc View 1 2 6 chunks +213 lines, -47 lines 0 comments Download
M media/gpu/gpu_video_decode_accelerator_factory.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M media/gpu/ipc/service/gpu_jpeg_decode_accelerator.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_encode_accelerator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/tegra_v4l2_device.h View 1 2 3 3 chunks +25 lines, -5 lines 0 comments Download
M media/gpu/tegra_v4l2_device.cc View 1 2 3 5 chunks +69 lines, -24 lines 0 comments Download
M media/gpu/v4l2_device.h View 1 2 3 5 chunks +50 lines, -20 lines 1 comment Download
M media/gpu/v4l2_device.cc View 1 2 3 5 chunks +127 lines, -64 lines 0 comments Download
M media/gpu/v4l2_image_processor.h View 1 2 3 1 chunk +17 lines, -15 lines 0 comments Download
M media/gpu/v4l2_image_processor.cc View 1 2 3 2 chunks +41 lines, -19 lines 0 comments Download
M media/gpu/v4l2_jpeg_decode_accelerator.cc View 1 2 5 chunks +20 lines, -10 lines 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/gpu/v4l2_slice_video_decode_accelerator.cc View 1 2 3 10 chunks +40 lines, -41 lines 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/gpu/v4l2_video_decode_accelerator.cc View 1 2 3 16 chunks +40 lines, -32 lines 0 comments Download
M media/gpu/v4l2_video_encode_accelerator.cc View 1 2 3 9 chunks +38 lines, -47 lines 0 comments Download
M media/gpu/video_encode_accelerator_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (22 generated)
Pawel Osciak
rickyz@chromium.org: PTAL content/common/sandbox_linux/bpf_gpu_policy_linux.cc Thank you!
4 years, 2 months ago (2016-10-06 01:14:34 UTC) #2
rickyz (no longer on Chrome)
content/common/sandbox_linux/bpf_gpu_policy_linux.cc lgtm
4 years, 2 months ago (2016-10-06 01:32:56 UTC) #3
Pawel Osciak
PTAL
4 years, 2 months ago (2016-10-06 07:52:19 UTC) #5
kcwu
https://chromiumcodereview.appspot.com/2398883002/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://chromiumcodereview.appspot.com/2398883002/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode161 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:161: static const base::FilePath::CharType kVideoDecPattern[] = "video-dec[0-9]"; How about video-enc[0-9], ...
4 years, 2 months ago (2016-10-06 10:40:00 UTC) #10
Pawel Osciak
https://chromiumcodereview.appspot.com/2398883002/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://chromiumcodereview.appspot.com/2398883002/diff/20001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode161 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:161: static const base::FilePath::CharType kVideoDecPattern[] = "video-dec[0-9]"; On 2016/10/06 10:39:59, ...
4 years, 2 months ago (2016-10-07 08:30:24 UTC) #15
wuchengli1
v4l2_video_decode_accelerator.cc LGTM
4 years, 2 months ago (2016-10-07 08:40:29 UTC) #19
kcwu
https://chromiumcodereview.appspot.com/2398883002/diff/120001/media/gpu/generic_v4l2_device.h File media/gpu/generic_v4l2_device.h (right): https://chromiumcodereview.appspot.com/2398883002/diff/120001/media/gpu/generic_v4l2_device.h#newcode27 media/gpu/generic_v4l2_device.h:27: bool Initialize() override; This method is not expected call ...
4 years, 2 months ago (2016-10-07 11:19:05 UTC) #22
Pawel Osciak
https://chromiumcodereview.appspot.com/2398883002/diff/120001/media/gpu/generic_v4l2_device.h File media/gpu/generic_v4l2_device.h (right): https://chromiumcodereview.appspot.com/2398883002/diff/120001/media/gpu/generic_v4l2_device.h#newcode27 media/gpu/generic_v4l2_device.h:27: bool Initialize() override; On 2016/10/07 11:19:04, kcwu wrote: > ...
4 years, 2 months ago (2016-10-11 06:13:46 UTC) #23
kcwu
lgtm https://chromiumcodereview.appspot.com/2398883002/diff/120001/media/gpu/v4l2_device.h File media/gpu/v4l2_device.h (right): https://chromiumcodereview.appspot.com/2398883002/diff/120001/media/gpu/v4l2_device.h#newcode57 media/gpu/v4l2_device.h:57: // Create and initialize an appropriate V4L2Device instance ...
4 years, 2 months ago (2016-10-11 06:45:06 UTC) #26
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/2398883002/140001
4 years, 2 months ago (2016-10-12 02:30:13 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years, 2 months ago (2016-10-12 02:34:25 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 02:37:48 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8eb65c7347b12340aacbee7dafe9783588a359ab
Cr-Commit-Position: refs/heads/master@{#424655}

Powered by Google App Engine
This is Rietveld 408576698