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 picture_id() const = 0; | |
22 virtual bool GetBitstream(uint8_t* destination) const = 0; | |
23 virtual ~FrameObject() {} | |
24 | |
25 protected: | |
26 uint16_t picture_id_; | |
27 }; | |
28 | |
29 class PacketBuffer; | |
30 | |
31 class RtpFrameObject : public FrameObject { | |
32 public: | |
33 RtpFrameObject(PacketBuffer* packet_buffer, | |
34 uint16_t picture_id, | |
35 uint16_t first_packet, | |
36 uint16_t last_packet); | |
37 ~RtpFrameObject(); | |
38 uint16_t first_packet() const; | |
39 uint16_t last_packet() const; | |
40 uint16_t picture_id() const override; | |
stefan-webrtc
2016/03/24 09:41:21
I don't think you have to override this method if
philipel
2016/03/30 09:44:54
Moved picture_id to RtpFrameObject.
| |
41 bool GetBitstream(uint8_t* destination) const override; | |
42 | |
43 private: | |
44 PacketBuffer* packet_buffer_; | |
45 uint16_t first_packet_; | |
46 uint16_t last_packet_; | |
47 }; | |
48 | |
49 } // namespace video_coding | |
50 } // namespace webrtc | |
51 | |
52 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ | |
OLD | NEW |