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

Side by Side Diff: media/cast/video_sender/video_encoder.h

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Injecting TaskRunner Created 6 years, 12 months 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_SENDER_VIDEO_ENCODER_H_ 5 #ifndef MEDIA_CAST_VIDEO_SENDER_VIDEO_ENCODER_H_
6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_ENCODER_H_ 6 #define MEDIA_CAST_VIDEO_SENDER_VIDEO_ENCODER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "media/cast/cast_config.h" 11 #include "media/cast/cast_config.h"
12 #include "media/cast/cast_environment.h" 12 #include "media/cast/cast_environment.h"
13 #include "media/cast/video_sender/codecs/vp8/vp8_encoder.h" 13 #include "media/cast/video_sender/codecs/vp8/vp8_encoder.h"
14 14
15 namespace media { 15 namespace media {
16 class VideoFrame; 16 class VideoFrame;
17 } 17 }
18 18
19 namespace media { 19 namespace media {
20 namespace cast { 20 namespace cast {
21 21
22 // This object is called external from the main cast thread and internally from 22 // This object is called external from the main cast thread and internally from
23 // the video encoder thread. 23 // the video encoder thread.
24 class VideoEncoder : public VideoEncoderController { 24 class VideoEncoder : public VideoEncoderController {
25 public: 25 public:
26 typedef base::Callback<void(scoped_ptr<EncodedVideoFrame>, 26 typedef base::Callback<void(scoped_ptr<transport::EncodedVideoFrame>,
27 const base::TimeTicks&)> FrameEncodedCallback; 27 const base::TimeTicks&)> FrameEncodedCallback;
28 28
29 VideoEncoder(scoped_refptr<CastEnvironment> cast_environment, 29 VideoEncoder(scoped_refptr<CastEnvironment> cast_environment,
30 const VideoSenderConfig& video_config, 30 const VideoSenderConfig& video_config,
31 uint8 max_unacked_frames); 31 uint8 max_unacked_frames);
32 32
33 virtual ~VideoEncoder(); 33 virtual ~VideoEncoder();
34 34
35 // Called from the main cast thread. This function post the encode task to the 35 // Called from the main cast thread. This function post the encode task to the
36 // video encoder thread; 36 // video encoder thread;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool skip_next_frame_; 74 bool skip_next_frame_;
75 int skip_count_; 75 int skip_count_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(VideoEncoder); 77 DISALLOW_COPY_AND_ASSIGN(VideoEncoder);
78 }; 78 };
79 79
80 } // namespace cast 80 } // namespace cast
81 } // namespace media 81 } // namespace media
82 82
83 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_ENCODER_H_ 83 #endif // MEDIA_CAST_VIDEO_SENDER_VIDEO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698