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

Unified Diff: webrtc/video/video_capture_input.h

Issue 2248713003: Revert of Add task queue to Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@move_getpadding
Patch Set: Created 4 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 | « webrtc/video/send_statistics_proxy.cc ('k') | webrtc/video/video_capture_input.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_capture_input.h
diff --git a/webrtc/video/video_capture_input.h b/webrtc/video/video_capture_input.h
new file mode 100644
index 0000000000000000000000000000000000000000..5877f6c94fd00f14581e689f74987f888721c1cf
--- /dev/null
+++ b/webrtc/video/video_capture_input.h
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
+#define WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
+
+#include <memory>
+#include <vector>
+
+#include "webrtc/base/criticalsection.h"
+#include "webrtc/base/event.h"
+#include "webrtc/base/platform_thread.h"
+#include "webrtc/base/thread_annotations.h"
+#include "webrtc/common_types.h"
+#include "webrtc/engine_configurations.h"
+#include "webrtc/modules/video_capture/video_capture.h"
+#include "webrtc/modules/video_coding/include/video_codec_interface.h"
+#include "webrtc/modules/video_coding/include/video_coding.h"
+#include "webrtc/modules/video_processing/include/video_processing.h"
+#include "webrtc/system_wrappers/include/clock.h"
+#include "webrtc/typedefs.h"
+#include "webrtc/video_send_stream.h"
+
+namespace webrtc {
+
+class Config;
+class OveruseFrameDetector;
+class SendStatisticsProxy;
+
+namespace internal {
+class VideoCaptureInput : public webrtc::VideoCaptureInput {
+ public:
+ VideoCaptureInput(rtc::Event* capture_event,
+ rtc::VideoSinkInterface<VideoFrame>* local_renderer,
+ SendStatisticsProxy* send_stats_proxy,
+ OveruseFrameDetector* overuse_detector);
+ ~VideoCaptureInput();
+
+ void IncomingCapturedFrame(const VideoFrame& video_frame) override;
+
+ bool GetVideoFrame(VideoFrame* frame);
+
+ private:
+ rtc::CriticalSection crit_;
+
+ rtc::VideoSinkInterface<VideoFrame>* const local_renderer_;
+ SendStatisticsProxy* const stats_proxy_;
+ rtc::Event* const capture_event_;
+
+ std::unique_ptr<VideoFrame> captured_frame_ GUARDED_BY(crit_);
+ Clock* const clock_;
+ // Used to make sure incoming time stamp is increasing for every frame.
+ int64_t last_captured_timestamp_;
+ // Delta used for translating between NTP and internal timestamps.
+ const int64_t delta_ntp_internal_ms_;
+
+ OveruseFrameDetector* const overuse_detector_;
+};
+
+} // namespace internal
+} // namespace webrtc
+
+#endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
« no previous file with comments | « webrtc/video/send_statistics_proxy.cc ('k') | webrtc/video/video_capture_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698