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

Unified Diff: trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm

Issue 84393002: Revert 236927 "Reorganize media::VideoCapture* types" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm
===================================================================
--- trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm (revision 236934)
+++ trunk/src/media/video/capture/mac/video_capture_device_qtkit_mac.mm (working copy)
@@ -281,11 +281,12 @@
addressToPass = adjustedAddress;
frameSize = frameHeight * expectedBytesPerRow;
}
+ media::VideoCaptureCapability captureCapability;
+ captureCapability.width = frameWidth;
+ captureCapability.height = frameHeight;
+ captureCapability.frame_rate = frameRate_;
+ captureCapability.color = media::PIXEL_FORMAT_UYVY;
- media::VideoCaptureFormat captureFormat(gfx::Size(frameWidth, frameHeight),
- frameRate_,
- media::PIXEL_FORMAT_UYVY);
-
// The aspect ratio dictionary is often missing, in which case we report
// a pixel aspect ratio of 0:0.
int aspectNumerator = 0, aspectDenominator = 0;
@@ -304,7 +305,7 @@
}
// Deliver the captured video frame.
- frameReceiver_->ReceiveFrame(addressToPass, frameSize, captureFormat,
+ frameReceiver_->ReceiveFrame(addressToPass, frameSize, captureCapability,
aspectNumerator, aspectDenominator);
CVPixelBufferUnlockBaseAddress(videoFrame, kLockFlags);
« no previous file with comments | « trunk/src/media/video/capture/mac/video_capture_device_mac.mm ('k') | trunk/src/media/video/capture/video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698