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

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

Issue 80383006: Cast: Forcing codec initialization on a designated thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responding to review Created 7 years 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
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698