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 "webrtc/modules/video_coding/h264_sps_pps_tracker.h" | 11 #include "webrtc/modules/video_coding/h264_sps_pps_tracker.h" |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/base/logging.h" | |
18 #include "webrtc/common_video/h264/h264_common.h" | 16 #include "webrtc/common_video/h264/h264_common.h" |
19 #include "webrtc/common_video/h264/pps_parser.h" | 17 #include "webrtc/common_video/h264/pps_parser.h" |
20 #include "webrtc/common_video/h264/sps_parser.h" | 18 #include "webrtc/common_video/h264/sps_parser.h" |
21 #include "webrtc/modules/video_coding/frame_object.h" | 19 #include "webrtc/modules/video_coding/frame_object.h" |
22 #include "webrtc/modules/video_coding/packet_buffer.h" | 20 #include "webrtc/modules/video_coding/packet_buffer.h" |
| 21 #include "webrtc/rtc_base/checks.h" |
| 22 #include "webrtc/rtc_base/logging.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace video_coding { | 25 namespace video_coding { |
26 | 26 |
27 namespace { | 27 namespace { |
28 const uint8_t start_code_h264[] = {0, 0, 0, 1}; | 28 const uint8_t start_code_h264[] = {0, 0, 0, 1}; |
29 } // namespace | 29 } // namespace |
30 | 30 |
31 H264SpsPpsTracker::PacketAction H264SpsPpsTracker::CopyAndFixBitstream( | 31 H264SpsPpsTracker::PacketAction H264SpsPpsTracker::CopyAndFixBitstream( |
32 VCMPacket* packet) { | 32 VCMPacket* packet) { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 pps_info.data.reset(pps_data); | 235 pps_info.data.reset(pps_data); |
236 pps_data_[parsed_pps->id] = std::move(pps_info); | 236 pps_data_[parsed_pps->id] = std::move(pps_info); |
237 | 237 |
238 LOG(LS_INFO) << "Inserted SPS id " << parsed_sps->id << " and PPS id " | 238 LOG(LS_INFO) << "Inserted SPS id " << parsed_sps->id << " and PPS id " |
239 << parsed_pps->id << " (referencing SPS " << parsed_pps->sps_id | 239 << parsed_pps->id << " (referencing SPS " << parsed_pps->sps_id |
240 << ")"; | 240 << ")"; |
241 } | 241 } |
242 | 242 |
243 } // namespace video_coding | 243 } // namespace video_coding |
244 } // namespace webrtc | 244 } // namespace webrtc |
OLD | NEW |