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

Unified Diff: media/video/capture/linux/video_capture_device_linux.cc

Issue 1016773002: MJPEG acceleration for video capture using VAAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix many thread issues Created 5 years, 9 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: media/video/capture/linux/video_capture_device_linux.cc
diff --git a/media/video/capture/linux/video_capture_device_linux.cc b/media/video/capture/linux/video_capture_device_linux.cc
index 60d8f77d55cfe0497fe3835cdfe76f6016ff037a..99eae83582cb3afeab4a67c46676865c19b3a278 100644
--- a/media/video/capture/linux/video_capture_device_linux.cc
+++ b/media/video/capture/linux/video_capture_device_linux.cc
@@ -325,6 +325,7 @@ void VideoCaptureDeviceLinux::V4L2CaptureDelegate::AllocateAndStart(
// Now check if the device is able to accept a capture framerate set.
if (streamparm.parm.capture.capability & V4L2_CAP_TIMEPERFRAME) {
// |frame_rate| is float, approximate by a fraction.
+ LOG(ERROR) << " frame_rate = " << frame_rate;
streamparm.parm.capture.timeperframe.numerator =
media::kFrameRatePrecision;
streamparm.parm.capture.timeperframe.denominator = (frame_rate) ?
@@ -339,6 +340,9 @@ void VideoCaptureDeviceLinux::V4L2CaptureDelegate::AllocateAndStart(
DVLOG(2) << "Actual camera driverframerate: "
<< streamparm.parm.capture.timeperframe.denominator << "/"
<< streamparm.parm.capture.timeperframe.numerator;
+ LOG(ERROR) << "Actual camera driverframerate: "
+ << streamparm.parm.capture.timeperframe.denominator << "/"
+ << streamparm.parm.capture.timeperframe.numerator;
}
}
// TODO(mcasas): what should be done if the camera driver does not allow
@@ -408,6 +412,7 @@ void VideoCaptureDeviceLinux::V4L2CaptureDelegate::SetRotation(int rotation) {
}
void VideoCaptureDeviceLinux::V4L2CaptureDelegate::DoCapture() {
+ DVLOG(3) << __func__;
DCHECK(v4l2_task_runner_->BelongsToCurrentThread());
if (!is_capturing_)
return;

Powered by Google App Engine
This is Rietveld 408576698