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

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

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 56683e7a Rebase. Created 6 years, 9 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 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 20 matching lines...) Expand all
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 virtual ~AndroidVideoEncodeAccelerator();
36 36
37 static std::vector<media::VideoEncodeAccelerator::SupportedProfile> 37 static std::vector<media::VideoEncodeAccelerator::SupportedProfile>
38 GetSupportedProfiles(); 38 GetSupportedProfiles();
39 39
40 // media::VideoEncodeAccelerator implementation. 40 // media::VideoEncodeAccelerator implementation.
41 virtual void Initialize(media::VideoFrame::Format format, 41 virtual bool Initialize(media::VideoFrame::Format format,
42 const gfx::Size& input_visible_size, 42 const gfx::Size& input_visible_size,
43 media::VideoCodecProfile output_profile, 43 media::VideoCodecProfile output_profile,
44 uint32 initial_bitrate, 44 uint32 initial_bitrate,
45 Client* client) OVERRIDE; 45 Client* client) OVERRIDE;
46 virtual void Encode(const scoped_refptr<media::VideoFrame>& frame, 46 virtual void Encode(const scoped_refptr<media::VideoFrame>& frame,
47 bool force_keyframe) OVERRIDE; 47 bool force_keyframe) OVERRIDE;
48 virtual void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer) 48 virtual void UseOutputBitstreamBuffer(const media::BitstreamBuffer& buffer)
49 OVERRIDE; 49 OVERRIDE;
50 virtual void RequestEncodingParametersChange(uint32 bitrate, 50 virtual void RequestEncodingParametersChange(uint32 bitrate,
51 uint32 framerate) OVERRIDE; 51 uint32 framerate) OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers. 106 size_t output_buffers_capacity_; // 0 until RequireBitstreamBuffers.
107 107
108 uint32 last_set_bitrate_; // In bps. 108 uint32 last_set_bitrate_; // In bps.
109 109
110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); 110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 115 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698