OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 <vector> | 11 #include <vector> |
12 | 12 |
13 #include "webrtc/test/gtest.h" | |
14 | |
15 #include "webrtc/base/bitbuffer.h" | 13 #include "webrtc/base/bitbuffer.h" |
16 #include "webrtc/base/buffer.h" | 14 #include "webrtc/base/buffer.h" |
17 #include "webrtc/base/fileutils.h" | 15 #include "webrtc/base/fileutils.h" |
18 #include "webrtc/base/logging.h" | 16 #include "webrtc/base/logging.h" |
19 #include "webrtc/base/pathutils.h" | 17 #include "webrtc/base/pathutils.h" |
20 #include "webrtc/base/stream.h" | 18 #include "webrtc/base/stream.h" |
21 | 19 #include "webrtc/common_video/h264/h264_common.h" |
22 #include "webrtc/common_video/h264/sps_vui_rewriter.h" | 20 #include "webrtc/common_video/h264/sps_vui_rewriter.h" |
23 #include "webrtc/common_video/h264/h264_common.h" | 21 #include "webrtc/test/gtest.h" |
24 | 22 |
25 namespace webrtc { | 23 namespace webrtc { |
26 | 24 |
27 enum SpsMode { | 25 enum SpsMode { |
28 kNoRewriteRequired_PocCorrect, | 26 kNoRewriteRequired_PocCorrect, |
29 kNoRewriteRequired_VuiOptimal, | 27 kNoRewriteRequired_VuiOptimal, |
30 kRewriteRequired_NoVui, | 28 kRewriteRequired_NoVui, |
31 kRewriteRequired_NoBitstreamRestriction, | 29 kRewriteRequired_NoBitstreamRestriction, |
32 kRewriteRequired_VuiSuboptimal, | 30 kRewriteRequired_VuiSuboptimal, |
33 }; | 31 }; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 kRewriteRequired_NoVui, | 183 kRewriteRequired_NoVui, |
186 SpsVuiRewriter::ParseResult::kVuiRewritten); | 184 SpsVuiRewriter::ParseResult::kVuiRewritten); |
187 REWRITE_TEST(AddBitstreamRestriction, | 185 REWRITE_TEST(AddBitstreamRestriction, |
188 kRewriteRequired_NoBitstreamRestriction, | 186 kRewriteRequired_NoBitstreamRestriction, |
189 SpsVuiRewriter::ParseResult::kVuiRewritten); | 187 SpsVuiRewriter::ParseResult::kVuiRewritten); |
190 REWRITE_TEST(RewriteSuboptimalVui, | 188 REWRITE_TEST(RewriteSuboptimalVui, |
191 kRewriteRequired_VuiSuboptimal, | 189 kRewriteRequired_VuiSuboptimal, |
192 SpsVuiRewriter::ParseResult::kVuiRewritten); | 190 SpsVuiRewriter::ParseResult::kVuiRewritten); |
193 | 191 |
194 } // namespace webrtc | 192 } // namespace webrtc |
OLD | NEW |