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 13 matching lines...) Expand all Loading... |
24 FrameObject(); | 24 FrameObject(); |
25 | 25 |
26 virtual bool GetBitstream(uint8_t* destination) const = 0; | 26 virtual bool GetBitstream(uint8_t* destination) const = 0; |
27 virtual ~FrameObject() {} | 27 virtual ~FrameObject() {} |
28 | 28 |
29 // The tuple (|picture_id|, |spatial_layer|) uniquely identifies a frame | 29 // The tuple (|picture_id|, |spatial_layer|) uniquely identifies a frame |
30 // object. For codec types that don't necessarily have picture ids they | 30 // object. For codec types that don't necessarily have picture ids they |
31 // have to be constructed from the header data relevant to that codec. | 31 // have to be constructed from the header data relevant to that codec. |
32 uint16_t picture_id; | 32 uint16_t picture_id; |
33 uint8_t spatial_layer; | 33 uint8_t spatial_layer; |
| 34 uint32_t timestamp; |
34 | 35 |
35 size_t num_references; | 36 size_t num_references; |
36 uint16_t references[kMaxFrameReferences]; | 37 uint16_t references[kMaxFrameReferences]; |
37 bool inter_layer_predicted; | 38 bool inter_layer_predicted; |
38 }; | 39 }; |
39 | 40 |
40 class PacketBuffer; | 41 class PacketBuffer; |
41 | 42 |
42 class RtpFrameObject : public FrameObject { | 43 class RtpFrameObject : public FrameObject { |
43 public: | 44 public: |
(...skipping 14 matching lines...) Expand all Loading... |
58 FrameType frame_type_; | 59 FrameType frame_type_; |
59 VideoCodecType codec_type_; | 60 VideoCodecType codec_type_; |
60 uint16_t first_seq_num_; | 61 uint16_t first_seq_num_; |
61 uint16_t last_seq_num_; | 62 uint16_t last_seq_num_; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace video_coding | 65 } // namespace video_coding |
65 } // namespace webrtc | 66 } // namespace webrtc |
66 | 67 |
67 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ | 68 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ |
OLD | NEW |