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

Unified Diff: media/video/capture/linux/v4l2_capture_delegate_multi_plane.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: 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_multi_plane.cc
diff --git a/media/video/capture/linux/v4l2_capture_delegate_multi_plane.cc b/media/video/capture/linux/v4l2_capture_delegate_multi_plane.cc
index 7551bed434c7f7b5603a12bb842715616aa95e00..99f70cebdd785c2ce80ac54d337ce397d2ceb32d 100644
--- a/media/video/capture/linux/v4l2_capture_delegate_multi_plane.cc
+++ b/media/video/capture/linux/v4l2_capture_delegate_multi_plane.cc
@@ -55,6 +55,13 @@ void V4L2CaptureDelegateMultiPlane::FinishFillingV4L2Buffer(
buffer->m.planes = v4l2_planes_.data();
}
+void V4L2CaptureDelegateMultiPlane::SetPayloadSize(
+ const scoped_refptr<BufferTracker>& buffer_tracker,
+ const v4l2_buffer& buffer) const {
+ for (size_t i = 0; i < v4l2_planes_.size() && i < buffer.length; i++)
+ buffer_tracker->SetPlanePayloadSize(i, buffer.m.planes[i].bytesused);
+}
+
void V4L2CaptureDelegateMultiPlane::SendBuffer(
const scoped_refptr<BufferTracker>& buffer_tracker,
const v4l2_format& format) const {

Powered by Google App Engine
This is Rietveld 408576698