Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: webrtc/modules/video_coding/h264_sps_pps_tracker.h

Issue 2466993003: H264SpsPpsTracker class which keep tracks of SPS/PPS. (Closed)
Patch Set: Free copied data Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_H264_SPS_PPS_TRACKER_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_H264_SPS_PPS_TRACKER_H_
13
14 #include <cstdint>
15 #include <map>
16 #include <memory>
17
18 #include "webrtc/modules/include/module_common_types.h"
19
20 namespace webrtc {
21
22 class VCMPacket;
23
24 namespace video_coding {
25
26 class H264SpsPpsTracker {
27 public:
28 bool CopyAndFixBitstream(VCMPacket* packet);
29
30 private:
31 struct PpsInfo {
32 int sps_id = -1;
33 size_t size = 0;
34 std::unique_ptr<uint8_t[]> data;
35 };
36
37 struct SpsInfo {
38 size_t size = 0;
39 std::unique_ptr<uint8_t[]> data;
40 };
41
42 std::map<uint32_t, PpsInfo> pps_data_;
43 std::map<uint32_t, SpsInfo> sps_data_;
44 };
45
46 } // namespace video_coding
47 } // namespace webrtc
48
49 #endif // WEBRTC_MODULES_VIDEO_CODING_H264_SPS_PPS_TRACKER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/h264_sps_pps_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698