OLD | NEW |
---|---|
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 // This is the main interface for the cast sender. All configuration are done | 5 // This is the main interface for the cast sender. All configuration are done |
6 // at creation. | 6 // at creation. |
7 // | 7 // |
8 // The FrameInput and PacketReciever interfaces should normally be accessed from | 8 // The FrameInput and PacketReciever interfaces should normally be accessed from |
9 // the IO thread. However they are allowed to be called from any thread. | 9 // the IO thread. However they are allowed to be called from any thread. |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... | |
30 // the encoder is done with the frame; it does not mean that the encoded frame | 30 // the encoder is done with the frame; it does not mean that the encoded frame |
31 // has been sent out. | 31 // has been sent out. |
32 virtual void InsertRawVideoFrame(const I420VideoFrame* video_frame, | 32 virtual void InsertRawVideoFrame(const I420VideoFrame* video_frame, |
33 const base::TimeTicks& capture_time, | 33 const base::TimeTicks& capture_time, |
34 const base::Closure callback) = 0; | 34 const base::Closure callback) = 0; |
35 | 35 |
36 // The video_frame must be valid until the callback is called. | 36 // The video_frame must be valid until the callback is called. |
37 // The callback is called from the main cast thread as soon as | 37 // The callback is called from the main cast thread as soon as |
38 // the cast sender is done with the frame; it does not mean that the encoded | 38 // the cast sender is done with the frame; it does not mean that the encoded |
39 // frame has been sent out. | 39 // frame has been sent out. |
40 virtual void InsertCodedVideoFrame(const EncodedVideoFrame* video_frame, | 40 virtual void InsertCodedVideoFrame(EncodedVideoFrame* video_frame, |
Alpha Left Google
2013/11/07 01:10:11
Why remove the const?
pwestin
2013/11/07 17:16:04
Ohh I did padding in my first version; changed bac
| |
41 const base::TimeTicks& capture_time, | 41 const base::TimeTicks& capture_time, |
42 const base::Closure callback) = 0; | 42 const base::Closure callback) = 0; |
43 | 43 |
44 // The audio_frame must be valid until the callback is called. | 44 // The audio_frame must be valid until the callback is called. |
45 // The callback is called from the main cast thread as soon as | 45 // The callback is called from the main cast thread as soon as |
46 // the encoder is done with the frame; it does not mean that the encoded frame | 46 // the encoder is done with the frame; it does not mean that the encoded frame |
47 // has been sent out. | 47 // has been sent out. |
48 virtual void InsertRawAudioFrame(const PcmAudioFrame* audio_frame, | 48 virtual void InsertRawAudioFrame(const PcmAudioFrame* audio_frame, |
49 const base::TimeTicks& recorded_time, | 49 const base::TimeTicks& recorded_time, |
50 const base::Closure callback) = 0; | 50 const base::Closure callback) = 0; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 | 89 |
90 // All RTCP packets for the session should be inserted to this object. | 90 // All RTCP packets for the session should be inserted to this object. |
91 // Can be called from any thread. | 91 // Can be called from any thread. |
92 virtual scoped_refptr<PacketReceiver> packet_receiver() = 0; | 92 virtual scoped_refptr<PacketReceiver> packet_receiver() = 0; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace cast | 95 } // namespace cast |
96 } // namespace media | 96 } // namespace media |
97 | 97 |
98 #endif // MEDIA_CAST_CAST_SENDER_H_ | 98 #endif // MEDIA_CAST_CAST_SENDER_H_ |
OLD | NEW |