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

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

Issue 1988653002: PacketBuffer now can save how many times a packet has been nacked. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: combined_size to frame_size 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 18 matching lines...) Expand all
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 uint32_t timestamp;
35 35
36 size_t num_references; 36 size_t num_references;
37 uint16_t references[kMaxFrameReferences]; 37 uint16_t references[kMaxFrameReferences];
38 bool inter_layer_predicted; 38 bool inter_layer_predicted;
39
40 size_t size;
39 }; 41 };
40 42
41 class PacketBuffer; 43 class PacketBuffer;
42 44
43 class RtpFrameObject : public FrameObject { 45 class RtpFrameObject : public FrameObject {
44 public: 46 public:
45 RtpFrameObject(PacketBuffer* packet_buffer, 47 RtpFrameObject(PacketBuffer* packet_buffer,
46 uint16_t first_seq_num, 48 uint16_t first_seq_num,
47 uint16_t last_seq_num); 49 uint16_t last_seq_num,
50 size_t frame_size,
51 int8_t max_nack_count);
stefan-webrtc 2016/05/23 13:01:24 int
philipel 2016/05/23 13:34:17 Done.
48 52
49 ~RtpFrameObject(); 53 ~RtpFrameObject();
50 uint16_t first_seq_num() const; 54 uint16_t first_seq_num() const;
51 uint16_t last_seq_num() const; 55 uint16_t last_seq_num() const;
56 int8_t max_nack_count() const;
stefan-webrtc 2016/05/23 13:01:24 int
philipel 2016/05/23 13:34:17 Done.
52 FrameType frame_type() const; 57 FrameType frame_type() const;
53 VideoCodecType codec_type() const; 58 VideoCodecType codec_type() const;
54 bool GetBitstream(uint8_t* destination) const override; 59 bool GetBitstream(uint8_t* destination) const override;
55 RTPVideoTypeHeader* GetCodecHeader() const; 60 RTPVideoTypeHeader* GetCodecHeader() const;
56 61
57 private: 62 private:
58 PacketBuffer* packet_buffer_; 63 PacketBuffer* packet_buffer_;
59 FrameType frame_type_; 64 FrameType frame_type_;
60 VideoCodecType codec_type_; 65 VideoCodecType codec_type_;
61 uint16_t first_seq_num_; 66 uint16_t first_seq_num_;
62 uint16_t last_seq_num_; 67 uint16_t last_seq_num_;
68 int max_nack_count_;
terelius 2016/05/23 11:49:55 Could you document that this is the maximum nack c
philipel 2016/05/23 13:34:17 Done.
63 }; 69 };
64 70
65 } // namespace video_coding 71 } // namespace video_coding
66 } // namespace webrtc 72 } // namespace webrtc
67 73
68 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_ 74 #endif // WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | webrtc/modules/video_coding/packet.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698