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

Unified 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: Feedback fixes. 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/frame_object.h
diff --git a/webrtc/modules/video_coding/frame_object.h b/webrtc/modules/video_coding/frame_object.h
index e8bb4811e6ecd7dd319f707852f4276df553f065..02d73428423a37176419a027b89a9475419b16a6 100644
--- a/webrtc/modules/video_coding/frame_object.h
+++ b/webrtc/modules/video_coding/frame_object.h
@@ -36,6 +36,8 @@ class FrameObject {
size_t num_references;
uint16_t references[kMaxFrameReferences];
bool inter_layer_predicted;
+
+ size_t size;
};
class PacketBuffer;
@@ -44,11 +46,14 @@ class RtpFrameObject : public FrameObject {
public:
RtpFrameObject(PacketBuffer* packet_buffer,
uint16_t first_seq_num,
- uint16_t last_seq_num);
+ uint16_t last_seq_num,
+ size_t frame_size,
+ int times_nacked);
~RtpFrameObject();
uint16_t first_seq_num() const;
uint16_t last_seq_num() const;
+ int times_nacked() const;
FrameType frame_type() const;
VideoCodecType codec_type() const;
bool GetBitstream(uint8_t* destination) const override;
@@ -60,6 +65,10 @@ class RtpFrameObject : public FrameObject {
VideoCodecType codec_type_;
uint16_t first_seq_num_;
uint16_t last_seq_num_;
+
+ // Equal to times nacked of the packet with the highet times nacked
+ // belonging to this frame.
+ int times_nacked_;
};
} // namespace video_coding
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | webrtc/modules/video_coding/frame_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698