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

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

Issue 1147693002: Send bytes_used of v4l2 captured frame when video capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep payload in BufferTracker 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: media/video/capture/linux/v4l2_capture_delegate.cc
diff --git a/media/video/capture/linux/v4l2_capture_delegate.cc b/media/video/capture/linux/v4l2_capture_delegate.cc
index b2aa498eed4c523148df466dbfa432330bf64586..d298d6e98976e245b1aad3c9c3edd2e48a387d5a 100644
--- a/media/video/capture/linux/v4l2_capture_delegate.cc
+++ b/media/video/capture/linux/v4l2_capture_delegate.cc
@@ -141,6 +141,7 @@ void V4L2CaptureDelegate::BufferTracker::AddMmapedPlane(uint8_t* const start,
Plane plane;
plane.start = start;
plane.length = length;
+ plane.payload = 0;
planes_.push_back(plane);
}
@@ -399,6 +400,7 @@ void V4L2CaptureDelegate::DoCapture() {
return;
}
+ FetchBytesUsed(buffer_tracker_pool_[buffer.index], &buffer);
SendBuffer(buffer_tracker_pool_[buffer.index], video_fmt_);
if (HANDLE_EINTR(ioctl(device_fd_.get(), VIDIOC_QBUF, &buffer)) < 0) {

Powered by Google App Engine
This is Rietveld 408576698