Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Side by Side Diff: webrtc/modules/video_coding/frame_object.h

Issue 1969403007: FrameBuffer for the new jitter buffer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 FrameObject(); 26 FrameObject();
27 27
28 virtual bool GetBitstream(uint8_t* destination) const = 0; 28 virtual bool GetBitstream(uint8_t* destination) const = 0;
29 virtual ~FrameObject() {} 29 virtual ~FrameObject() {}
30 30
31 // The tuple (|picture_id|, |spatial_layer|) uniquely identifies a frame 31 // The tuple (|picture_id|, |spatial_layer|) uniquely identifies a frame
32 // object. For codec types that don't necessarily have picture ids they 32 // object. For codec types that don't necessarily have picture ids they
33 // have to be constructed from the header data relevant to that codec. 33 // have to be constructed from the header data relevant to that codec.
34 uint16_t picture_id; 34 uint16_t picture_id;
35 uint8_t spatial_layer; 35 uint8_t spatial_layer;
36 uint32_t timestamp;
danilchap 2016/05/13 13:31:05 do not forget to initialize this new member in con
philipel 2016/05/16 12:10:22 Done.
36 37
37 size_t num_references; 38 size_t num_references;
38 uint16_t references[kMaxFrameReferences]; 39 uint16_t references[kMaxFrameReferences];
39 bool inter_layer_predicted; 40 bool inter_layer_predicted;
40 }; 41 };
41 42
42 class PacketBuffer; 43 class PacketBuffer;
43 44
44 class RtpFrameObject : public FrameObject { 45 class RtpFrameObject : public FrameObject {
45 public: 46 public:
46 RtpFrameObject(PacketBuffer* packet_buffer, 47 RtpFrameObject(PacketBuffer* packet_buffer,
47 uint16_t first_packet, 48 uint16_t first_packet,
48 uint16_t last_packet); 49 uint16_t last_packet);
49 50
50 ~RtpFrameObject(); 51 ~RtpFrameObject();
51 uint16_t first_seq_num() const; 52 uint16_t first_seq_num() const;
52 uint16_t last_seq_num() const; 53 uint16_t last_seq_num() const;
53 bool GetBitstream(uint8_t* destination) const override; 54 bool GetBitstream(uint8_t* destination) const override;
54 55
55 private: 56 private:
56 PacketBuffer* packet_buffer_; 57 PacketBuffer* packet_buffer_;
57 uint16_t first_packet_; 58 uint16_t first_packet_;
58 uint16_t last_packet_; 59 uint16_t last_packet_;
59 }; 60 };
60 61
61 } // namespace video_coding 62 } // namespace video_coding
62 } // namespace webrtc 63 } // namespace webrtc
63 64
64 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ 65 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698