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

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: Rebase Created 4 years, 8 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
« no previous file with comments | « no previous file | webrtc/modules/video_coding/frame_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c5cdd6eb1125c2a8ef5fb35c1f441f747c307c4d 100644
--- a/webrtc/modules/video_coding/frame_object.h
+++ b/webrtc/modules/video_coding/frame_object.h
@@ -11,16 +11,25 @@
#ifndef WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
#define WEBRTC_MODULES_VIDEO_CODING_FRAME_OBJECT_H_
-#include "webrtc/modules/video_coding/packet.h"
+#include <stddef.h>
+#include <stdint.h>
+
+#include <array>
namespace webrtc {
namespace video_coding {
class FrameObject {
public:
- virtual uint16_t picture_id() const = 0;
+ static const uint8_t kMaxFrameReferences = 5;
+
virtual bool GetBitstream(uint8_t* destination) const = 0;
virtual ~FrameObject() {}
+
+ uint16_t picture_id;
+ size_t num_references;
+ std::array<uint16_t, kMaxFrameReferences> referencesr;
+ uint16_t references[kMaxFrameReferences];
};
class PacketBuffer;
@@ -28,18 +37,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;
+ uint16_t first_seq_num() const;
+ uint16_t last_seq_num() const;
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698