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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |