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

Unified Diff: media/capture/video/mac/video_capture_device_qtkit_mac.h

Issue 1815983003: Remove deprecated QTKit Video Capture Support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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/capture/video/mac/video_capture_device_qtkit_mac.h
diff --git a/media/capture/video/mac/video_capture_device_qtkit_mac.h b/media/capture/video/mac/video_capture_device_qtkit_mac.h
deleted file mode 100644
index e4248b2ddf6e2be624b895f77002452a09abf487..0000000000000000000000000000000000000000
--- a/media/capture/video/mac/video_capture_device_qtkit_mac.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// VideoCaptureDeviceQTKit implements all QTKit related code for
-// communicating with a QTKit capture device.
-
-#ifndef MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_
-#define MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_
-
-#import <Foundation/Foundation.h>
-
-#include <vector>
-
-#import "media/capture/video/mac/platform_video_capturing_mac.h"
-
-namespace media {
-class VideoCaptureDeviceMac;
-}
-
-@class QTCaptureDeviceInput;
-@class QTCaptureSession;
-
-@interface VideoCaptureDeviceQTKit : NSObject<PlatformVideoCapturingMac> {
- @private
- // Settings.
- float frameRate_;
-
- NSLock* lock_;
- media::VideoCaptureDeviceMac* frameReceiver_;
-
- // QTKit variables.
- QTCaptureSession* captureSession_;
- QTCaptureDeviceInput* captureDeviceInput_;
-
- // Buffer for adjusting frames which do not fit receiver
- // assumptions. scoped_array<> might make more sense, if the size
- // can be proven invariant.
- std::vector<UInt8> adjustedFrame_;
-}
-
-// Fills up the |deviceNames| dictionary of capture devices with friendly name
-// and unique id. No thread assumptions, but this method should run in UI
-// thread, see http://crbug.com/139164
-+ (void)getDeviceNames:(NSMutableDictionary*)deviceNames;
-
-// Returns a dictionary of capture devices with friendly name and unique id, via
-// runing +getDeviceNames: on Main Thread.
-+ (NSDictionary*)deviceNames;
-
-// Initializes the instance and registers the frame receiver.
-- (id)initWithFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
-
-// Set the frame receiver.
-- (void)setFrameReceiver:(media::VideoCaptureDeviceMac*)frameReceiver;
-
-// Sets which capture device to use. Returns YES on success, NO otherwise.
-- (BOOL)setCaptureDevice:(NSString*)deviceId;
-
-// Configures the capture properties.
-- (BOOL)setCaptureHeight:(int)height
- width:(int)width
- frameRate:(float)frameRate;
-
-// Start video capturing. Returns YES on success, NO otherwise.
-- (BOOL)startCapture;
-
-// Stops video capturing.
-- (void)stopCapture;
-
-// Handle any QTCaptureSessionRuntimeErrorNotifications.
-- (void)handleNotification:(NSNotification*)errorNotification;
-
-@end
-
-#endif // MEDIA_CAPTURE_VIDEO_MAC_VIDEO_CAPTURE_DEVICE_QTKIT_MAC_H_
« no previous file with comments | « media/capture/video/mac/video_capture_device_mac.mm ('k') | media/capture/video/mac/video_capture_device_qtkit_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698