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

Unified Diff: media/cast/framer/frame_buffer.h

Issue 288103002: [Cast] EncodedAudioFrame+EncodedVideoFrame+reference_time --> EncodedFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: media/cast/framer/frame_buffer.h
diff --git a/media/cast/framer/frame_buffer.h b/media/cast/framer/frame_buffer.h
index 65df021d2542c963f88ff370006942f9ac495b4b..ad7071416663adb74d3aeb78227cce79a8520fbe 100644
--- a/media/cast/framer/frame_buffer.h
+++ b/media/cast/framer/frame_buffer.h
@@ -25,11 +25,13 @@ class FrameBuffer {
const RtpCastHeader& rtp_header);
bool Complete() const;
- bool GetEncodedAudioFrame(transport::EncodedAudioFrame* audio_frame) const;
+ // If a frame is complete, sets the frame IDs and RTP timestamp in |frame|,
+ // and also copies the data from all packets into the data field in |frame|.
+ // Returns true if the frame was complete; false if incomplete and |frame|
+ // remains unchanged.
+ bool AssembleEncodedFrame(transport::EncodedFrame* frame) const;
- bool GetEncodedVideoFrame(transport::EncodedVideoFrame* video_frame) const;
-
- bool is_key_frame() const { return is_key_frame_; }
+ bool is_key_frame() const { return frame_id_ == last_referenced_frame_id_; }
Alpha Left Google 2014/05/15 22:11:23 I don't think we need to change this. A key frame
miu 2014/05/16 04:27:25 Done. You make an excellent point. I talked with
uint32 last_referenced_frame_id() const { return last_referenced_frame_id_; }
@@ -37,7 +39,6 @@ class FrameBuffer {
uint32 frame_id_;
uint16 max_packet_id_;
uint16 num_packets_received_;
- bool is_key_frame_;
size_t total_data_size_;
uint32 last_referenced_frame_id_;
uint32 rtp_timestamp_;

Powered by Google App Engine
This is Rietveld 408576698