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