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

Side by Side Diff: media/cast/sender/video_encoder_impl.h

Issue 901833004: [Cast] Repurpose CastInitializationStatus for variable frame size support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes. Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SENDER_VIDEO_ENCODER_IMPL_H_ 5 #ifndef MEDIA_CAST_SENDER_VIDEO_ENCODER_IMPL_H_
6 #define MEDIA_CAST_SENDER_VIDEO_ENCODER_IMPL_H_ 6 #define MEDIA_CAST_SENDER_VIDEO_ENCODER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "media/cast/cast_config.h" 9 #include "media/cast/cast_config.h"
10 #include "media/cast/cast_environment.h" 10 #include "media/cast/cast_environment.h"
(...skipping 13 matching lines...) Expand all
24 bool key_frame_requested; 24 bool key_frame_requested;
25 uint32 latest_frame_id_to_reference; 25 uint32 latest_frame_id_to_reference;
26 int bit_rate; 26 int bit_rate;
27 }; 27 };
28 28
29 typedef base::Callback<void(scoped_ptr<EncodedFrame>)> 29 typedef base::Callback<void(scoped_ptr<EncodedFrame>)>
30 FrameEncodedCallback; 30 FrameEncodedCallback;
31 31
32 VideoEncoderImpl(scoped_refptr<CastEnvironment> cast_environment, 32 VideoEncoderImpl(scoped_refptr<CastEnvironment> cast_environment,
33 const VideoSenderConfig& video_config, 33 const VideoSenderConfig& video_config,
34 const CastInitializationCallback& initialization_cb); 34 const StatusChangeCallback& status_change_cb);
35 35
36 ~VideoEncoderImpl() override; 36 ~VideoEncoderImpl() override;
37 37
38 // VideoEncoder implementation. 38 // VideoEncoder implementation.
39 bool CanEncodeVariedFrameSizes() const override; 39 bool CanEncodeVariedFrameSizes() const override;
40 bool EncodeVideoFrame( 40 bool EncodeVideoFrame(
41 const scoped_refptr<media::VideoFrame>& video_frame, 41 const scoped_refptr<media::VideoFrame>& video_frame,
42 const base::TimeTicks& reference_time, 42 const base::TimeTicks& reference_time,
43 const FrameEncodedCallback& frame_encoded_callback) override; 43 const FrameEncodedCallback& frame_encoded_callback) override;
44 void SetBitRate(int new_bit_rate) override; 44 void SetBitRate(int new_bit_rate) override;
(...skipping 10 matching lines...) Expand all
55 // video encoder thread and video encoder thread can out-live the main thread. 55 // video encoder thread and video encoder thread can out-live the main thread.
56 scoped_ptr<SoftwareVideoEncoder> encoder_; 56 scoped_ptr<SoftwareVideoEncoder> encoder_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(VideoEncoderImpl); 58 DISALLOW_COPY_AND_ASSIGN(VideoEncoderImpl);
59 }; 59 };
60 60
61 } // namespace cast 61 } // namespace cast
62 } // namespace media 62 } // namespace media
63 63
64 #endif // MEDIA_CAST_SENDER_VIDEO_ENCODER_IMPL_H_ 64 #endif // MEDIA_CAST_SENDER_VIDEO_ENCODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698