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

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

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing includes Created 6 years, 5 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 | « media/cast/framer/cast_message_builder_unittest.cc ('k') | media/cast/framer/frame_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/framer/frame_buffer.h
diff --git a/media/cast/framer/frame_buffer.h b/media/cast/framer/frame_buffer.h
deleted file mode 100644
index d4d5dedbbde41b00412fb65d815737ce8d47fded..0000000000000000000000000000000000000000
--- a/media/cast/framer/frame_buffer.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_CAST_FRAMER_FRAME_BUFFER
-#define MEDIA_CAST_FRAMER_FRAME_BUFFER
-
-#include <map>
-#include <vector>
-
-#include "media/cast/cast_config.h"
-#include "media/cast/rtp_receiver/rtp_receiver_defines.h"
-
-namespace media {
-namespace cast {
-
-typedef std::map<uint16, std::vector<uint8> > PacketMap;
-
-class FrameBuffer {
- public:
- FrameBuffer();
- ~FrameBuffer();
- void InsertPacket(const uint8* payload_data,
- size_t payload_size,
- const RtpCastHeader& rtp_header);
- bool Complete() 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 is_key_frame() const { return is_key_frame_; }
-
- uint32 last_referenced_frame_id() const { return last_referenced_frame_id_; }
-
- private:
- 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_;
- PacketMap packets_;
-
- DISALLOW_COPY_AND_ASSIGN(FrameBuffer);
-};
-
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_FRAMER_FRAME_BUFFER
« no previous file with comments | « media/cast/framer/cast_message_builder_unittest.cc ('k') | media/cast/framer/frame_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698