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

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

Issue 2199133004: PacketBuffer is now ref counted. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: #include <utility> for std::move Created 4 years, 4 months 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
« no previous file with comments | « webrtc/modules/modules.gyp ('k') | webrtc/modules/video_coding/packet_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 int times_nacked() const; 68 int times_nacked() const;
69 enum FrameType frame_type() const; 69 enum FrameType frame_type() const;
70 VideoCodecType codec_type() const; 70 VideoCodecType codec_type() const;
71 bool GetBitstream(uint8_t* destination) const override; 71 bool GetBitstream(uint8_t* destination) const override;
72 uint32_t Timestamp() const override; 72 uint32_t Timestamp() const override;
73 int64_t ReceivedTime() const override; 73 int64_t ReceivedTime() const override;
74 int64_t RenderTime() const override; 74 int64_t RenderTime() const override;
75 RTPVideoTypeHeader* GetCodecHeader() const; 75 RTPVideoTypeHeader* GetCodecHeader() const;
76 76
77 private: 77 private:
78 PacketBuffer* packet_buffer_; 78 rtc::scoped_refptr<PacketBuffer> packet_buffer_;
79 enum FrameType frame_type_; 79 enum FrameType frame_type_;
80 VideoCodecType codec_type_; 80 VideoCodecType codec_type_;
81 uint16_t first_seq_num_; 81 uint16_t first_seq_num_;
82 uint16_t last_seq_num_; 82 uint16_t last_seq_num_;
83 uint32_t timestamp_; 83 uint32_t timestamp_;
84 int64_t received_time_; 84 int64_t received_time_;
85 85
86 // Equal to times nacked of the packet with the highet times nacked 86 // Equal to times nacked of the packet with the highet times nacked
87 // belonging to this frame. 87 // belonging to this frame.
88 int times_nacked_; 88 int times_nacked_;
89 }; 89 };
90 90
91 } // namespace video_coding 91 } // namespace video_coding
92 } // namespace webrtc 92 } // namespace webrtc
93 93
94 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ 94 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
OLDNEW
« no previous file with comments | « webrtc/modules/modules.gyp ('k') | webrtc/modules/video_coding/packet_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698