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

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 comment and rebased. 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 13 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/frame_buffer2_unittest.cc ('k') | webrtc/modules/video_coding/frame_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698