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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.h

Issue 10837225: chop the width/height to even number when incoming frame has odd number dimension. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/browser/renderer_host/media/video_capture_controller.h
===================================================================
--- content/browser/renderer_host/media/video_capture_controller.h (revision 151299)
+++ content/browser/renderer_host/media/video_capture_controller.h (working copy)
@@ -132,6 +132,10 @@
// It's modified on caller thread, assuming there is only one OnFrameInfo()
// call per StartCapture().
media::VideoCaptureCapability frame_info_;
+ // Chopped pixels in width/height in case video capture device has odd numbers
+ // for width/height.
+ int chopped_width_;
+ int chopped_height_;
// It's accessed only on IO thread.
bool frame_info_available_;

Powered by Google App Engine
This is Rietveld 408576698