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 | 11 |
12 #ifndef WEBRTC_COMMON_VIDEO_H264_SPS_VUI_REWRITER_H_ | 12 #ifndef WEBRTC_COMMON_VIDEO_H264_SPS_VUI_REWRITER_H_ |
13 #define WEBRTC_COMMON_VIDEO_H264_SPS_VUI_REWRITER_H_ | 13 #define WEBRTC_COMMON_VIDEO_H264_SPS_VUI_REWRITER_H_ |
14 | 14 |
| 15 #include "webrtc/base/buffer.h" |
| 16 #include "webrtc/base/optional.h" |
15 #include "webrtc/common_video/h264/sps_parser.h" | 17 #include "webrtc/common_video/h264/sps_parser.h" |
16 #include "webrtc/rtc_base/buffer.h" | |
17 #include "webrtc/rtc_base/optional.h" | |
18 | 18 |
19 namespace rtc { | 19 namespace rtc { |
20 class BitBuffer; | 20 class BitBuffer; |
21 } | 21 } |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 // A class that can parse an SPS block of a NAL unit and if necessary | 25 // A class that can parse an SPS block of a NAL unit and if necessary |
26 // creates a copy with updated settings to allow for faster decoding for streams | 26 // creates a copy with updated settings to allow for faster decoding for streams |
27 // that use picture order count type 0. Streams in that format incur additional | 27 // that use picture order count type 0. Streams in that format incur additional |
(...skipping 17 matching lines...) Expand all Loading... |
45 // decoding has been performed. | 45 // decoding has been performed. |
46 static ParseResult ParseAndRewriteSps(const uint8_t* buffer, | 46 static ParseResult ParseAndRewriteSps(const uint8_t* buffer, |
47 size_t length, | 47 size_t length, |
48 rtc::Optional<SpsParser::SpsState>* sps, | 48 rtc::Optional<SpsParser::SpsState>* sps, |
49 rtc::Buffer* destination); | 49 rtc::Buffer* destination); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace webrtc | 52 } // namespace webrtc |
53 | 53 |
54 #endif // WEBRTC_COMMON_VIDEO_H264_SPS_VUI_REWRITER_H_ | 54 #endif // WEBRTC_COMMON_VIDEO_H264_SPS_VUI_REWRITER_H_ |
OLD | NEW |