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

Side by Side Diff: content/common/gpu/media/android_video_encode_accelerator.h

Issue 893333004: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting 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 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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 25
26 // Android-specific implementation of media::VideoEncodeAccelerator, enabling 26 // Android-specific implementation of media::VideoEncodeAccelerator, enabling
27 // hardware-acceleration of video encoding, based on Android's MediaCodec class 27 // hardware-acceleration of video encoding, based on Android's MediaCodec class
28 // (http://developer.android.com/reference/android/media/MediaCodec.html). This 28 // (http://developer.android.com/reference/android/media/MediaCodec.html). This
29 // class expects to live and be called on a single thread (the GPU process' 29 // class expects to live and be called on a single thread (the GPU process'
30 // ChildThread). 30 // ChildThread).
31 class CONTENT_EXPORT AndroidVideoEncodeAccelerator 31 class CONTENT_EXPORT AndroidVideoEncodeAccelerator
32 : public media::VideoEncodeAccelerator { 32 : public media::VideoEncodeAccelerator {
33 public: 33 public:
34 AndroidVideoEncodeAccelerator(); 34 AndroidVideoEncodeAccelerator();
35 virtual ~AndroidVideoEncodeAccelerator(); 35 ~AndroidVideoEncodeAccelerator() override;
36 36
37 // media::VideoEncodeAccelerator implementation. 37 // media::VideoEncodeAccelerator implementation.
38 virtual std::vector<media::VideoEncodeAccelerator::SupportedProfile> 38 std::vector<media::VideoEncodeAccelerator::SupportedProfile>
39 GetSupportedProfiles() override; 39 GetSupportedProfiles() override;
40 virtual bool Initialize(media::VideoFrame::Format format, 40 bool Initialize(media::VideoFrame::Format format,
41 const gfx::Size& input_visible_size, 41 const gfx::Size& input_visible_size,
42 media::VideoCodecProfile output_profile, 42 media::VideoCodecProfile output_profile,
43 uint32 initial_bitrate, 43 uint32 initial_bitrate,
44 Client* client) override; 44 Client* client) override;
45 virtual void Encode(const scoped_refptr<media::VideoFrame>& frame, 45 void Encode(const scoped_refptr<media::VideoFrame>& frame,
46 bool force_keyframe) override; 46 bool force_keyframe) override;
47 virtual void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) 47 void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) override;
48 override; 48 void RequestEncodingParametersChange(uint32 bitrate,
49 virtual void RequestEncodingParametersChange(uint32 bitrate, 49 uint32 framerate) override;
50 uint32 framerate) override; 50 void Destroy() override;
51 virtual void Destroy() override;
52 51
53 private: 52 private:
54 enum { 53 enum {
55 // Arbitrary choice. 54 // Arbitrary choice.
56 INITIAL_FRAMERATE = 30, 55 INITIAL_FRAMERATE = 30,
57 // Until there are non-realtime users, no need for unrequested I-frames. 56 // Until there are non-realtime users, no need for unrequested I-frames.
58 IFRAME_INTERVAL = kint32max, 57 IFRAME_INTERVAL = kint32max,
59 }; 58 };
60 59
61 // Impedance-mismatch fixers: MediaCodec is a poll-based API but VEA is a 60 // Impedance-mismatch fixers: MediaCodec is a poll-based API but VEA is a
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers. 104 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers.
106 105
107 uint32 last_set_bitrate_; // In bps. 106 uint32 last_set_bitrate_; // In bps.
108 107
109 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); 108 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator);
110 }; 109 };
111 110
112 } // namespace content 111 } // namespace content
113 112
114 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 113 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator_unittest.cc ('k') | content/common/gpu/stream_texture_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698