OLD | NEW |
---|---|
(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_FRAME_OBJECT_H_ | |
12 #define WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ | |
13 | |
14 #include "webrtc/modules/video_coding/packet.h" | |
15 | |
16 namespace webrtc { | |
17 namespace video_coding { | |
18 | |
19 class FrameObject { | |
20 public: | |
21 virtual uint16_t PictureId() const = 0; | |
22 virtual bool GetBitstream(uint8_t* destination) const = 0; | |
23 virtual ~FrameObject() {} | |
24 }; | |
25 | |
26 class PacketBuffer; | |
27 | |
28 class RtpFrameObject : public FrameObject { | |
29 public: | |
30 RtpFrameObject(PacketBuffer* packet_buffer, | |
31 uint16_t first_packet, | |
stefan-webrtc
2016/03/17 12:06:31
git cl format
philipel
2016/03/17 15:00:35
Done.
| |
32 uint16_t last_packet); | |
33 ~RtpFrameObject(); | |
34 uint16_t FirstPacket() const; | |
stefan-webrtc
2016/03/17 12:06:31
For simple getters like this, name it first_packet
philipel
2016/03/17 15:00:35
Done.
| |
35 uint16_t LastPacket() const; | |
36 uint16_t PictureId() const override; | |
37 bool GetBitstream(uint8_t* destination) const override; | |
38 | |
39 private: | |
40 PacketBuffer* packet_buffer_; | |
41 uint16_t first_packet_; | |
42 uint16_t last_packet_; | |
43 }; | |
44 | |
45 } // namespace video_coding | |
46 } // namespace webrtc | |
47 | |
48 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ | |
OLD | NEW |