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

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

Issue 899583002: Revert of [Cast] Software encoder support for varying video frame sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_EXTERNAL_VIDEO_ENCODER_H_ 5 #ifndef MEDIA_CAST_SENDER_EXTERNAL_VIDEO_ENCODER_H_
6 #define MEDIA_CAST_SENDER_EXTERNAL_VIDEO_ENCODER_H_ 6 #define MEDIA_CAST_SENDER_EXTERNAL_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 "media/cast/cast_config.h" 10 #include "media/cast/cast_config.h"
(...skipping 14 matching lines...) Expand all
25 const scoped_refptr<CastEnvironment>& cast_environment, 25 const scoped_refptr<CastEnvironment>& cast_environment,
26 const VideoSenderConfig& video_config, 26 const VideoSenderConfig& video_config,
27 const gfx::Size& frame_size, 27 const gfx::Size& frame_size,
28 const CastInitializationCallback& initialization_cb, 28 const CastInitializationCallback& initialization_cb,
29 const CreateVideoEncodeAcceleratorCallback& create_vea_cb, 29 const CreateVideoEncodeAcceleratorCallback& create_vea_cb,
30 const CreateVideoEncodeMemoryCallback& create_video_encode_memory_cb); 30 const CreateVideoEncodeMemoryCallback& create_video_encode_memory_cb);
31 31
32 ~ExternalVideoEncoder() override; 32 ~ExternalVideoEncoder() override;
33 33
34 // VideoEncoder implementation. 34 // VideoEncoder implementation.
35 bool CanEncodeVariedFrameSizes() const override;
36 bool EncodeVideoFrame( 35 bool EncodeVideoFrame(
37 const scoped_refptr<media::VideoFrame>& video_frame, 36 const scoped_refptr<media::VideoFrame>& video_frame,
38 const base::TimeTicks& reference_time, 37 const base::TimeTicks& reference_time,
39 const FrameEncodedCallback& frame_encoded_callback) override; 38 const FrameEncodedCallback& frame_encoded_callback) override;
40 void SetBitRate(int new_bit_rate) override; 39 void SetBitRate(int new_bit_rate) override;
41 void GenerateKeyFrame() override; 40 void GenerateKeyFrame() override;
42 void LatestFrameIdToReference(uint32 frame_id) override; 41 void LatestFrameIdToReference(uint32 frame_id) override;
43 42
44 private: 43 private:
45 class VEAClientImpl; 44 class VEAClientImpl;
(...skipping 20 matching lines...) Expand all
66 // NOTE: Weak pointers must be invalidated before all other member variables. 65 // NOTE: Weak pointers must be invalidated before all other member variables.
67 base::WeakPtrFactory<ExternalVideoEncoder> weak_factory_; 66 base::WeakPtrFactory<ExternalVideoEncoder> weak_factory_;
68 67
69 DISALLOW_COPY_AND_ASSIGN(ExternalVideoEncoder); 68 DISALLOW_COPY_AND_ASSIGN(ExternalVideoEncoder);
70 }; 69 };
71 70
72 } // namespace cast 71 } // namespace cast
73 } // namespace media 72 } // namespace media
74 73
75 #endif // MEDIA_CAST_SENDER_EXTERNAL_VIDEO_ENCODER_H_ 74 #endif // MEDIA_CAST_SENDER_EXTERNAL_VIDEO_ENCODER_H_
OLDNEW
« no previous file with comments | « media/cast/receiver/video_decoder_unittest.cc ('k') | media/cast/sender/external_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698