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

Unified Diff: media/cast/video_receiver/video_decoder.h

Issue 59753007: Passing frame decoded callback to the codec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 7 years, 1 month 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/video_receiver/video_decoder.h
diff --git a/media/cast/video_receiver/video_decoder.h b/media/cast/video_receiver/video_decoder.h
index e98768c215c840d8e2a04f1cd6c5608f094837ba..5778930c60779b76fe6d3fe1119210a7d713dd9f 100644
--- a/media/cast/video_receiver/video_decoder.h
+++ b/media/cast/video_receiver/video_decoder.h
@@ -19,14 +19,16 @@ class Vp8Decoder;
// thread.
class VideoDecoder : public base::NonThreadSafe {
public:
- explicit VideoDecoder(const VideoReceiverConfig& video_config);
+ VideoDecoder(const VideoReceiverConfig& video_config,
+ scoped_refptr<CastEnvironment> cast_environment);
virtual ~VideoDecoder();
- // Decode a video frame. Decoded (raw) frame will be returned in the
- // provided video_frame.
+ // Decode a video frame. Decoded (raw) frame will be returned via the
+ // provided callback
bool DecodeVideoFrame(const EncodedVideoFrame* encoded_frame,
const base::TimeTicks render_time,
- I420VideoFrame* video_frame);
+ const VideoFrameDecodedCallback&
Alpha Left Google 2013/11/06 02:22:06 Call back doesn't need to be const ref. You can pa
mikhal 2013/11/06 18:29:16 Done.
+ frame_decoded_callback);
private:
VideoCodec codec_;

Powered by Google App Engine
This is Rietveld 408576698