OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ | 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ |
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ | 12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 | 15 |
16 #include "webrtc/api/video_codecs/video_decoder.h" | 16 #include "webrtc/api/video_codecs/video_decoder.h" |
17 #include "webrtc/api/video_codecs/video_encoder.h" | 17 #include "webrtc/api/video_codecs/video_encoder.h" |
| 18 #include "webrtc/base/criticalsection.h" |
| 19 #include "webrtc/base/event.h" |
| 20 #include "webrtc/base/thread_annotations.h" |
18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 21 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
19 #include "webrtc/modules/video_coding/utility/vp8_header_parser.h" | 22 #include "webrtc/modules/video_coding/utility/vp8_header_parser.h" |
20 #include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h" | 23 #include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h" |
21 #include "webrtc/rtc_base/criticalsection.h" | |
22 #include "webrtc/rtc_base/event.h" | |
23 #include "webrtc/rtc_base/thread_annotations.h" | |
24 #include "webrtc/test/gtest.h" | 24 #include "webrtc/test/gtest.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 class VideoCodecTest : public ::testing::Test { | 28 class VideoCodecTest : public ::testing::Test { |
29 public: | 29 public: |
30 VideoCodecTest() | 30 VideoCodecTest() |
31 : encode_complete_callback_(this), | 31 : encode_complete_callback_(this), |
32 decode_complete_callback_(this), | 32 decode_complete_callback_(this), |
33 encoded_frame_event_(false /* manual reset */, | 33 encoded_frame_event_(false /* manual reset */, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 rtc::Event decoded_frame_event_; | 101 rtc::Event decoded_frame_event_; |
102 rtc::CriticalSection decoded_frame_section_; | 102 rtc::CriticalSection decoded_frame_section_; |
103 rtc::Optional<VideoFrame> decoded_frame_ GUARDED_BY(decoded_frame_section_); | 103 rtc::Optional<VideoFrame> decoded_frame_ GUARDED_BY(decoded_frame_section_); |
104 rtc::Optional<uint8_t> decoded_qp_ GUARDED_BY(decoded_frame_section_); | 104 rtc::Optional<uint8_t> decoded_qp_ GUARDED_BY(decoded_frame_section_); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace webrtc | 107 } // namespace webrtc |
108 | 108 |
109 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ | 109 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ |
OLD | NEW |