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

Unified Diff: media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.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
Index: media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h
diff --git a/media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h b/media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h
deleted file mode 100644
index b3c8164110b6d0430ae3b2e1106e64d8f568ba92..0000000000000000000000000000000000000000
--- a/media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer.h
+++ /dev/null
@@ -1,77 +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_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
-#define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_
-
-#include <cmath>
-#include <list>
-#include <map>
-
-#include "base/time/time.h"
-#include "media/cast/transport/rtp_sender/packet_storage/packet_storage.h"
-
-namespace base {
-class TickClock;
-}
-
-namespace media {
-namespace cast {
-
-namespace transport {
-
-class PacedSender;
-
-struct RtpPacketizerConfig {
- RtpPacketizerConfig();
- ~RtpPacketizerConfig();
-
- // General.
- int payload_type;
- uint16 max_payload_length;
- uint16 sequence_number;
-
- // SSRC.
- unsigned int ssrc;
-};
-
-// This object is only called from the main cast thread.
-// This class break encoded audio and video frames into packets and add an RTP
-// header to each packet.
-class RtpPacketizer {
- public:
- RtpPacketizer(PacedSender* const transport,
- PacketStorage* packet_storage,
- RtpPacketizerConfig rtp_packetizer_config);
- ~RtpPacketizer();
-
- void SendFrameAsPackets(const EncodedFrame& frame);
-
- // Return the next sequence number, and increment by one. Enables unique
- // incremental sequence numbers for every packet (including retransmissions).
- uint16 NextSequenceNumber();
-
- size_t send_packet_count() const { return send_packet_count_; }
- size_t send_octet_count() const { return send_octet_count_; }
-
- private:
- void BuildCommonRTPheader(Packet* packet, bool marker_bit, uint32 time_stamp);
-
- RtpPacketizerConfig config_;
- PacedSender* const transport_; // Not owned by this class.
- PacketStorage* packet_storage_;
-
- uint16 sequence_number_;
- uint32 rtp_timestamp_;
- uint16 packet_id_;
-
- size_t send_packet_count_;
- size_t send_octet_count_;
-};
-
-} // namespace transport
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_PACKETIZER_RTP_PACKETIZER_H_

Powered by Google App Engine
This is Rietveld 408576698