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

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: nits and reverting callback change 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
« no previous file with comments | « media/cast/video_receiver/codecs/vp8/vp8_decoder.cc ('k') | media/cast/video_receiver/video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e23a86b76bc23650d6d11064c9c210962b555bbe 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);
private:
VideoCodec codec_;
« no previous file with comments | « media/cast/video_receiver/codecs/vp8/vp8_decoder.cc ('k') | media/cast/video_receiver/video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698