OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ | |
6 #define MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "gpu/command_buffer/service/gpu_preferences.h" | |
11 #include "media/gpu/media_gpu_export.h" | |
12 #include "media/video/video_encode_accelerator.h" | |
13 | |
14 namespace media { | |
15 | |
16 class MEDIA_GPU_EXPORT GpuVideoEncodeAcceleratorFactory { | |
17 public: | |
18 // Creates and Initializes an VideoEncodeAccelerator. Returns nullptr | |
19 // if there is no implementation available on the platform or calling | |
20 // VideoEncodeAccelerator::Initiailze() returns false. | |
Pawel Osciak
2017/05/18 04:33:37
s/Initiailze/Initialize/
Owen Lin
2017/05/18 06:14:34
Done.
| |
21 static std::unique_ptr<VideoEncodeAccelerator> CreateVEA( | |
22 VideoPixelFormat input_format, | |
23 const gfx::Size& input_visible_size, | |
24 VideoCodecProfile output_profile, | |
25 uint32_t initial_bitrate, | |
26 VideoEncodeAccelerator::Client* client, | |
27 const gpu::GpuPreferences& gpu_perferences); | |
28 | |
29 // Gets the supported codec profiles for video encoding on the platforms. | |
Pawel Osciak
2017/05/18 04:33:37
s/platforms/platform/
Owen Lin
2017/05/18 06:14:34
Done.
| |
30 static VideoEncodeAccelerator::SupportedProfiles GetSupportedProfiles( | |
31 const gpu::GpuPreferences& gpu_preferences); | |
32 | |
33 private: | |
34 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoEncodeAcceleratorFactory); | |
35 }; | |
36 | |
37 } // namespace media | |
38 | |
39 #endif // MEDIA_GPU_GPU_VIDEO_ENCODE_ACCELERATOR_FACTORY_H_ | |
OLD | NEW |