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

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: Responding to review 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..46fe080d0db1b09236281ffd11982449608aea7c 100644
--- a/media/cast/video_receiver/video_decoder.h
+++ b/media/cast/video_receiver/video_decoder.h
@@ -19,14 +19,15 @@ 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 frame_decoded_cb);
Alpha Left Google 2013/11/06 18:41:49 Sorry again this should be const ref, you were rig
mikhal 2013/11/06 18:53:07 Done.
private:
VideoCodec codec_;

Powered by Google App Engine
This is Rietveld 408576698