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

Unified Diff: content/common/gpu/media/generic_v4l2_device.cc

Issue 1125263005: MJPEG acceleration for V4L2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/media/gpu_jpeg_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/generic_v4l2_device.cc
diff --git a/content/common/gpu/media/generic_v4l2_device.cc b/content/common/gpu/media/generic_v4l2_device.cc
index 578ee0d8894766d296571b3a62b3ebc3b8ca596f..a0f329af4b95020602ace35fe2fc1a395f6c5b9f 100644
--- a/content/common/gpu/media/generic_v4l2_device.cc
+++ b/content/common/gpu/media/generic_v4l2_device.cc
@@ -37,6 +37,7 @@ namespace {
const char kDecoderDevice[] = "/dev/video-dec";
const char kEncoderDevice[] = "/dev/video-enc";
const char kImageProcessorDevice[] = "/dev/image-proc0";
+const char kJpegDecoderDevice[] = "/dev/jpeg-dec";
}
GenericV4L2Device::GenericV4L2Device(Type type)
@@ -143,6 +144,9 @@ bool GenericV4L2Device::Initialize() {
case kImageProcessor:
device_path = kImageProcessorDevice;
break;
+ case kJpegDecoder:
+ device_path = kJpegDecoderDevice;
+ break;
}
DVLOG(2) << "Initialize(): opening device: " << device_path;
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/media/gpu_jpeg_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698