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

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: Created 5 years, 7 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
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 0cf00a2712d2a99a907a27097eb5bd95b2b65c9f..96a6f62bc463864540801e690bf8375f29d4e606 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/gsc0";
+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;

Powered by Google App Engine
This is Rietveld 408576698