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

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

Issue 82593005: Cast: Switching recevier to use media::VideoFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding media to DEPS + rebase 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_DECODER_H_ 5 #ifndef MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_ 6 #define MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "media/cast/cast_config.h" 10 #include "media/cast/cast_config.h"
11 #include "media/cast/cast_receiver.h" 11 #include "media/cast/cast_receiver.h"
12 12
13 namespace media { 13 namespace media {
14 class VideoFrame;
scherkus (not reviewing) 2013/11/27 22:21:54 nit: you can move this fwd decl to line 20
mikhal1 2013/11/27 22:41:30 Done.
15 }
16
17 namespace media {
14 namespace cast { 18 namespace cast {
15 19
16 class Vp8Decoder; 20 class Vp8Decoder;
17 21
18 // This class is not thread safe; it's only called from the cast video decoder 22 // This class is not thread safe; it's only called from the cast video decoder
19 // thread. 23 // thread.
20 class VideoDecoder : public base::NonThreadSafe { 24 class VideoDecoder : public base::NonThreadSafe {
scherkus (not reviewing) 2013/11/27 22:21:54 this is beyond the scope of this CL ... but is it
mikhal1 2013/11/27 22:41:30 As you say, not in the scope of this cl. Added a T
21 public: 25 public:
22 VideoDecoder(const VideoReceiverConfig& video_config, 26 VideoDecoder(const VideoReceiverConfig& video_config,
23 scoped_refptr<CastEnvironment> cast_environment); 27 scoped_refptr<CastEnvironment> cast_environment);
24 virtual ~VideoDecoder(); 28 virtual ~VideoDecoder();
25 29
26 // Decode a video frame. Decoded (raw) frame will be returned via the 30 // Decode a video frame. Decoded (raw) frame will be returned via the
27 // provided callback 31 // provided callback
28 bool DecodeVideoFrame(const EncodedVideoFrame* encoded_frame, 32 bool DecodeVideoFrame(const EncodedVideoFrame* encoded_frame,
29 const base::TimeTicks render_time, 33 const base::TimeTicks render_time,
30 const VideoFrameDecodedCallback& frame_decoded_cb); 34 const VideoFrameDecodedCallback& frame_decoded_cb);
31 35
32 private: 36 private:
33 VideoCodec codec_; 37 VideoCodec codec_;
34 scoped_ptr<Vp8Decoder> vp8_decoder_; 38 scoped_ptr<Vp8Decoder> vp8_decoder_;
35 39
36 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); 40 DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
37 }; 41 };
38 42
39 } // namespace cast 43 } // namespace cast
40 } // namespace media 44 } // namespace media
41 45
42 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_ 46 #endif // MEDIA_CAST_VIDEO_RECEIVER_VIDEO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698