| 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 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
| 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 void DecodeVideoFrameThread( | 64 void DecodeVideoFrameThread( |
| 65 scoped_ptr<EncodedVideoFrame> encoded_frame, | 65 scoped_ptr<EncodedVideoFrame> encoded_frame, |
| 66 const base::TimeTicks render_time, | 66 const base::TimeTicks render_time, |
| 67 const VideoFrameDecodedCallback& frame_decoded_callback); | 67 const VideoFrameDecodedCallback& frame_decoded_callback); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 friend class LocalRtpVideoData; | 70 friend class LocalRtpVideoData; |
| 71 friend class LocalRtpVideoFeedback; | 71 friend class LocalRtpVideoFeedback; |
| 72 | 72 |
| 73 void InitDecoderThread(); |
| 74 |
| 73 void CastFeedback(const RtcpCastMessage& cast_message); | 75 void CastFeedback(const RtcpCastMessage& cast_message); |
| 74 | 76 |
| 75 void DecodeVideoFrame(const VideoFrameDecodedCallback& callback, | 77 void DecodeVideoFrame(const VideoFrameDecodedCallback& callback, |
| 76 scoped_ptr<EncodedVideoFrame> encoded_frame, | 78 scoped_ptr<EncodedVideoFrame> encoded_frame, |
| 77 const base::TimeTicks& render_time); | 79 const base::TimeTicks& render_time); |
| 78 | 80 |
| 79 bool DecryptVideoFrame(scoped_ptr<EncodedVideoFrame>* video_frame); | 81 bool DecryptVideoFrame(scoped_ptr<EncodedVideoFrame>* video_frame); |
| 80 | 82 |
| 81 bool PullEncodedVideoFrame(uint32 rtp_timestamp, | 83 bool PullEncodedVideoFrame(uint32 rtp_timestamp, |
| 82 bool next_frame, | 84 bool next_frame, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 126 |
| 125 base::WeakPtrFactory<VideoReceiver> weak_factory_; | 127 base::WeakPtrFactory<VideoReceiver> weak_factory_; |
| 126 | 128 |
| 127 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); | 129 DISALLOW_COPY_AND_ASSIGN(VideoReceiver); |
| 128 }; | 130 }; |
| 129 | 131 |
| 130 } // namespace cast | 132 } // namespace cast |
| 131 } // namespace media | 133 } // namespace media |
| 132 | 134 |
| 133 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ | 135 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_RECEIVER_H_ |
| OLD | NEW |