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

Unified Diff: webrtc/modules/video_coding/frame_object.h

Issue 1847193003: Convert Vp8 Rtp headers to frame references. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 2a68293d638332ee8799e79201e53de2732bbd8b..d75d220cc8c0c2a024a841b61adb07e4d6316e19 100644
--- a/webrtc/modules/video_coding/frame_object.h
+++ b/webrtc/modules/video_coding/frame_object.h
@@ -18,9 +18,12 @@ namespace video_coding {
class FrameObject {
public:
- virtual uint16_t picture_id() const = 0;
virtual bool GetBitstream(uint8_t* destination) const = 0;
virtual ~FrameObject() {}
+
+ uint16_t picture_id;
+ uint8_t num_references;
pbos-webrtc 2016/04/01 14:24:44 size_t (unless this is bits put on the wire)
philipel 2016/04/05 12:40:49 Done.
+ uint16_t references[5];
pbos-webrtc 2016/04/01 14:24:44 Comment what 5 comes from.
philipel 2016/04/05 12:40:49 Done.
};
class PacketBuffer;
@@ -28,18 +31,16 @@ class PacketBuffer;
class RtpFrameObject : public FrameObject {
public:
RtpFrameObject(PacketBuffer* packet_buffer,
- uint16_t picture_id,
uint16_t first_packet,
uint16_t last_packet);
+
~RtpFrameObject();
uint16_t first_packet() const;
uint16_t last_packet() const;
- uint16_t picture_id() const override;
bool GetBitstream(uint8_t* destination) const override;
private:
PacketBuffer* packet_buffer_;
- uint16_t picture_id_;
uint16_t first_packet_;
uint16_t last_packet_;
};
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | webrtc/modules/video_coding/packet_buffer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698