OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "webrtc/test/gtest.h" |
12 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 12 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
13 #include "webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.h" | 13 #include "webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.h" |
14 | 14 |
15 #include "vpx/vpx_encoder.h" | 15 #include "vpx/vpx_encoder.h" |
16 #include "vpx/vp8cx.h" | 16 #include "vpx/vp8cx.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 enum { | 20 enum { |
21 kTemporalUpdateLast = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | | 21 kTemporalUpdateLast = VP8_EFLAG_NO_UPD_GF | VP8_EFLAG_NO_UPD_ARF | |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 EXPECT_EQ(expected_temporal_idx[i], vp8_info.temporalIdx); | 197 EXPECT_EQ(expected_temporal_idx[i], vp8_info.temporalIdx); |
198 EXPECT_EQ(true, vp8_info.layerSync); | 198 EXPECT_EQ(true, vp8_info.layerSync); |
199 timestamp += 3000; | 199 timestamp += 3000; |
200 } | 200 } |
201 EXPECT_EQ(expected_flags[7], tl.EncodeFlags(timestamp)); | 201 EXPECT_EQ(expected_flags[7], tl.EncodeFlags(timestamp)); |
202 tl.PopulateCodecSpecific(false, &vp8_info, 0); | 202 tl.PopulateCodecSpecific(false, &vp8_info, 0); |
203 EXPECT_EQ(expected_temporal_idx[7], vp8_info.temporalIdx); | 203 EXPECT_EQ(expected_temporal_idx[7], vp8_info.temporalIdx); |
204 EXPECT_EQ(true, vp8_info.layerSync); | 204 EXPECT_EQ(true, vp8_info.layerSync); |
205 } | 205 } |
206 } // namespace webrtc | 206 } // namespace webrtc |
OLD | NEW |