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

Side by Side Diff: media/cast/framer/framer.h

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/cast/framer/frame_buffer_unittest.cc ('k') | media/cast/framer/framer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_FRAMER_FRAMER_H_ 5 #ifndef MEDIA_CAST_FRAMER_FRAMER_H_
6 #define MEDIA_CAST_FRAMER_FRAMER_H_ 6 #define MEDIA_CAST_FRAMER_FRAMER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
37 // received, the function returns false but sets |duplicate| to true. 37 // received, the function returns false but sets |duplicate| to true.
38 bool InsertPacket(const uint8* payload_data, 38 bool InsertPacket(const uint8* payload_data,
39 size_t payload_size, 39 size_t payload_size,
40 const RtpCastHeader& rtp_header, 40 const RtpCastHeader& rtp_header,
41 bool* duplicate); 41 bool* duplicate);
42 42
43 // Extracts a complete encoded frame - will only return a complete continuous 43 // Extracts a complete encoded frame - will only return a complete continuous
44 // frame. 44 // frame.
45 // Returns false if the frame does not exist or if the frame is not complete 45 // Returns false if the frame does not exist or if the frame is not complete
46 // within the given time frame. 46 // within the given time frame.
47 bool GetEncodedVideoFrame(EncodedVideoFrame* video_frame, 47 bool GetEncodedVideoFrame(transport::EncodedVideoFrame* video_frame,
48 uint32* rtp_timestamp, 48 uint32* rtp_timestamp,
49 bool* next_frame); 49 bool* next_frame);
50 50
51 bool GetEncodedAudioFrame(EncodedAudioFrame* audio_frame, 51 bool GetEncodedAudioFrame(transport::EncodedAudioFrame* audio_frame,
52 uint32* rtp_timestamp, 52 uint32* rtp_timestamp,
53 bool* next_frame); 53 bool* next_frame);
54 54
55 void ReleaseFrame(uint32 frame_id); 55 void ReleaseFrame(uint32 frame_id);
56 56
57 // Reset framer state to original state and flush all pending buffers. 57 // Reset framer state to original state and flush all pending buffers.
58 void Reset(); 58 void Reset();
59 bool TimeToSendNextCastMessage(base::TimeTicks* time_to_send); 59 bool TimeToSendNextCastMessage(base::TimeTicks* time_to_send);
60 void SendCastMessage(); 60 void SendCastMessage();
61 61
62 private: 62 private:
63 const bool decoder_faster_than_max_frame_rate_; 63 const bool decoder_faster_than_max_frame_rate_;
64 FrameList frames_; 64 FrameList frames_;
65 FrameIdMap frame_id_map_; 65 FrameIdMap frame_id_map_;
66 66
67 scoped_ptr<CastMessageBuilder> cast_msg_builder_; 67 scoped_ptr<CastMessageBuilder> cast_msg_builder_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(Framer); 69 DISALLOW_COPY_AND_ASSIGN(Framer);
70 }; 70 };
71 71
72 } // namespace cast 72 } // namespace cast
73 } // namespace media 73 } // namespace media
74 74
75 #endif // MEDIA_CAST_FRAMER_FRAMER_H_ 75 #endif // MEDIA_CAST_FRAMER_FRAMER_H_
OLDNEW
« no previous file with comments | « media/cast/framer/frame_buffer_unittest.cc ('k') | media/cast/framer/framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698