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

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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_controller.h
===================================================================
--- content/browser/renderer_host/media/video_capture_controller.h (revision 151718)
+++ content/browser/renderer_host/media/video_capture_controller.h (working copy)
@@ -88,7 +88,7 @@
// Worker functions on IO thread.
void DoIncomingCapturedFrameOnIOThread(int buffer_id, base::Time timestamp);
- void DoFrameInfoOnIOThread(const media::VideoCaptureCapability& info);
+ void DoFrameInfoOnIOThread();
void DoErrorOnIOThread();
void DoDeviceStoppedOnIOThread();
@@ -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_;
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698