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

Side by Side Diff: webrtc/video/video_capture_input.h

Issue 1420043008: Create rtc::AtomicInt POD struct. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: newlines Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ 11 #ifndef WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
12 #define WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ 12 #define WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/base/atomicops.h"
16 #include "webrtc/base/criticalsection.h" 17 #include "webrtc/base/criticalsection.h"
17 #include "webrtc/base/scoped_ptr.h" 18 #include "webrtc/base/scoped_ptr.h"
18 #include "webrtc/base/thread_annotations.h" 19 #include "webrtc/base/thread_annotations.h"
19 #include "webrtc/common_types.h" 20 #include "webrtc/common_types.h"
20 #include "webrtc/engine_configurations.h" 21 #include "webrtc/engine_configurations.h"
21 #include "webrtc/modules/video_capture/include/video_capture.h" 22 #include "webrtc/modules/video_capture/include/video_capture.h"
22 #include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h" 23 #include "webrtc/modules/video_coding/codecs/interface/video_codec_interface.h"
23 #include "webrtc/modules/video_coding/main/interface/video_coding.h" 24 #include "webrtc/modules/video_coding/main/interface/video_coding.h"
24 #include "webrtc/modules/video_processing/main/interface/video_processing.h" 25 #include "webrtc/modules/video_processing/main/interface/video_processing.h"
25 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" 26 #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 VideoRenderer* const local_renderer_; 76 VideoRenderer* const local_renderer_;
76 SendStatisticsProxy* const stats_proxy_; 77 SendStatisticsProxy* const stats_proxy_;
77 78
78 // Frame used in IncomingFrameI420. 79 // Frame used in IncomingFrameI420.
79 rtc::scoped_ptr<CriticalSectionWrapper> incoming_frame_cs_; 80 rtc::scoped_ptr<CriticalSectionWrapper> incoming_frame_cs_;
80 VideoFrame incoming_frame_; 81 VideoFrame incoming_frame_;
81 82
82 rtc::scoped_ptr<ThreadWrapper> encoder_thread_; 83 rtc::scoped_ptr<ThreadWrapper> encoder_thread_;
83 rtc::scoped_ptr<EventWrapper> capture_event_; 84 rtc::scoped_ptr<EventWrapper> capture_event_;
84 85
85 volatile int stop_; 86 rtc::AtomicInt stop_;
86 87
87 VideoFrame captured_frame_ GUARDED_BY(capture_cs_.get()); 88 VideoFrame captured_frame_ GUARDED_BY(capture_cs_.get());
88 // Used to make sure incoming time stamp is increasing for every frame. 89 // Used to make sure incoming time stamp is increasing for every frame.
89 int64_t last_captured_timestamp_; 90 int64_t last_captured_timestamp_;
90 // Delta used for translating between NTP and internal timestamps. 91 // Delta used for translating between NTP and internal timestamps.
91 const int64_t delta_ntp_internal_ms_; 92 const int64_t delta_ntp_internal_ms_;
92 93
93 rtc::scoped_ptr<OveruseFrameDetector> overuse_detector_; 94 rtc::scoped_ptr<OveruseFrameDetector> overuse_detector_;
94 EncodingTimeObserver* const encoding_time_observer_; 95 EncodingTimeObserver* const encoding_time_observer_;
95 }; 96 };
96 97
97 } // namespace internal 98 } // namespace internal
98 } // namespace webrtc 99 } // namespace webrtc
99 100
100 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ 101 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698