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; | |
35 | 34 |
36 size_t num_references; | 35 size_t num_references; |
37 uint16_t references[kMaxFrameReferences]; | 36 uint16_t references[kMaxFrameReferences]; |
38 bool inter_layer_predicted; | 37 bool inter_layer_predicted; |
39 }; | 38 }; |
40 | 39 |
41 class PacketBuffer; | 40 class PacketBuffer; |
42 | 41 |
43 class RtpFrameObject : public FrameObject { | 42 class RtpFrameObject : public FrameObject { |
44 public: | 43 public: |
(...skipping 14 matching lines...) Expand all Loading... |
59 FrameType frame_type_; | 58 FrameType frame_type_; |
60 VideoCodecType codec_type_; | 59 VideoCodecType codec_type_; |
61 uint16_t first_seq_num_; | 60 uint16_t first_seq_num_; |
62 uint16_t last_seq_num_; | 61 uint16_t last_seq_num_; |
63 }; | 62 }; |
64 | 63 |
65 } // namespace video_coding | 64 } // namespace video_coding |
66 } // namespace webrtc | 65 } // namespace webrtc |
67 | 66 |
68 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ | 67 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ |
OLD | NEW |