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

Side by Side Diff: media/gpu/gpu_video_encode_accelerator_factory.h

Issue 2858193002: Refactor: Extract gpu_video_encode_accelerator_factory. (Closed)
Patch Set: Try Again. Fix compiling errors on Windows. Created 3 years, 7 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
« no previous file with comments | « media/gpu/BUILD.gn ('k') | media/gpu/gpu_video_encode_accelerator_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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::Initialize() returns false.
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 platform.
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_
OLDNEW
« no previous file with comments | « media/gpu/BUILD.gn ('k') | media/gpu/gpu_video_encode_accelerator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698