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/base/bitbuffer.h" | |
14 #include "webrtc/base/buffer.h" | |
15 #include "webrtc/base/fileutils.h" | |
16 #include "webrtc/base/logging.h" | |
17 #include "webrtc/base/pathutils.h" | |
18 #include "webrtc/common_video/h264/h264_common.h" | 13 #include "webrtc/common_video/h264/h264_common.h" |
19 #include "webrtc/common_video/h264/sps_vui_rewriter.h" | 14 #include "webrtc/common_video/h264/sps_vui_rewriter.h" |
| 15 #include "webrtc/rtc_base/bitbuffer.h" |
| 16 #include "webrtc/rtc_base/buffer.h" |
| 17 #include "webrtc/rtc_base/fileutils.h" |
| 18 #include "webrtc/rtc_base/logging.h" |
| 19 #include "webrtc/rtc_base/pathutils.h" |
20 #include "webrtc/test/gtest.h" | 20 #include "webrtc/test/gtest.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 enum SpsMode { | 24 enum SpsMode { |
25 kNoRewriteRequired_PocCorrect, | 25 kNoRewriteRequired_PocCorrect, |
26 kNoRewriteRequired_VuiOptimal, | 26 kNoRewriteRequired_VuiOptimal, |
27 kRewriteRequired_NoVui, | 27 kRewriteRequired_NoVui, |
28 kRewriteRequired_NoBitstreamRestriction, | 28 kRewriteRequired_NoBitstreamRestriction, |
29 kRewriteRequired_VuiSuboptimal, | 29 kRewriteRequired_VuiSuboptimal, |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 kRewriteRequired_NoVui, | 182 kRewriteRequired_NoVui, |
183 SpsVuiRewriter::ParseResult::kVuiRewritten); | 183 SpsVuiRewriter::ParseResult::kVuiRewritten); |
184 REWRITE_TEST(AddBitstreamRestriction, | 184 REWRITE_TEST(AddBitstreamRestriction, |
185 kRewriteRequired_NoBitstreamRestriction, | 185 kRewriteRequired_NoBitstreamRestriction, |
186 SpsVuiRewriter::ParseResult::kVuiRewritten); | 186 SpsVuiRewriter::ParseResult::kVuiRewritten); |
187 REWRITE_TEST(RewriteSuboptimalVui, | 187 REWRITE_TEST(RewriteSuboptimalVui, |
188 kRewriteRequired_VuiSuboptimal, | 188 kRewriteRequired_VuiSuboptimal, |
189 SpsVuiRewriter::ParseResult::kVuiRewritten); | 189 SpsVuiRewriter::ParseResult::kVuiRewritten); |
190 | 190 |
191 } // namespace webrtc | 191 } // namespace webrtc |
OLD | NEW |