| 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 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 struct PpsInfo { | 37 struct PpsInfo { |
| 38 int sps_id = -1; | 38 int sps_id = -1; |
| 39 size_t size = 0; | 39 size_t size = 0; |
| 40 std::unique_ptr<uint8_t[]> data; | 40 std::unique_ptr<uint8_t[]> data; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 struct SpsInfo { | 43 struct SpsInfo { |
| 44 size_t size = 0; | 44 size_t size = 0; |
| 45 int width = -1; |
| 46 int height = -1; |
| 45 std::unique_ptr<uint8_t[]> data; | 47 std::unique_ptr<uint8_t[]> data; |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 std::map<uint32_t, PpsInfo> pps_data_; | 50 std::map<uint32_t, PpsInfo> pps_data_; |
| 49 std::map<uint32_t, SpsInfo> sps_data_; | 51 std::map<uint32_t, SpsInfo> sps_data_; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace video_coding | 54 } // namespace video_coding |
| 53 } // namespace webrtc | 55 } // namespace webrtc |
| 54 | 56 |
| 55 #endif // WEBRTC_MODULES_VIDEO_CODING_H264_SPS_PPS_TRACKER_H_ | 57 #endif // WEBRTC_MODULES_VIDEO_CODING_H264_SPS_PPS_TRACKER_H_ |
| OLD | NEW |