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

Side by Side Diff: webrtc/test/fake_encoder.h

Issue 2780943003: Move video_encoder.h and video_decoder.h to /api and create GN targets for them (Closed)
Patch Set: Add missing TODO Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « webrtc/test/configurable_frame_size_encoder.h ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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_TEST_FAKE_ENCODER_H_ 11 #ifndef WEBRTC_TEST_FAKE_ENCODER_H_
12 #define WEBRTC_TEST_FAKE_ENCODER_H_ 12 #define WEBRTC_TEST_FAKE_ENCODER_H_
13 13
14 #include <vector> 14 #include <vector>
15 #include <memory> 15 #include <memory>
16 16
17 #include "webrtc/api/video_codecs/video_encoder.h"
17 #include "webrtc/base/criticalsection.h" 18 #include "webrtc/base/criticalsection.h"
18 #include "webrtc/base/sequenced_task_checker.h" 19 #include "webrtc/base/sequenced_task_checker.h"
19 #include "webrtc/base/task_queue.h" 20 #include "webrtc/base/task_queue.h"
20 #include "webrtc/common_types.h" 21 #include "webrtc/common_types.h"
21 #include "webrtc/system_wrappers/include/clock.h" 22 #include "webrtc/system_wrappers/include/clock.h"
22 #include "webrtc/video_encoder.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 namespace test { 25 namespace test {
26 26
27 class FakeEncoder : public VideoEncoder { 27 class FakeEncoder : public VideoEncoder {
28 public: 28 public:
29 explicit FakeEncoder(Clock* clock); 29 explicit FakeEncoder(Clock* clock);
30 virtual ~FakeEncoder() = default; 30 virtual ~FakeEncoder() = default;
31 31
32 // Sets max bitrate. Not thread-safe, call before registering the encoder. 32 // Sets max bitrate. Not thread-safe, call before registering the encoder.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int current_queue_ ACCESS_ON(sequence_checker_); 122 int current_queue_ ACCESS_ON(sequence_checker_);
123 std::unique_ptr<rtc::TaskQueue> queue1_ ACCESS_ON(sequence_checker_); 123 std::unique_ptr<rtc::TaskQueue> queue1_ ACCESS_ON(sequence_checker_);
124 std::unique_ptr<rtc::TaskQueue> queue2_ ACCESS_ON(sequence_checker_); 124 std::unique_ptr<rtc::TaskQueue> queue2_ ACCESS_ON(sequence_checker_);
125 rtc::SequencedTaskChecker sequence_checker_; 125 rtc::SequencedTaskChecker sequence_checker_;
126 }; 126 };
127 127
128 } // namespace test 128 } // namespace test
129 } // namespace webrtc 129 } // namespace webrtc
130 130
131 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ 131 #endif // WEBRTC_TEST_FAKE_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/test/configurable_frame_size_encoder.h ('k') | webrtc/video/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698