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

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

Issue 1636083003: H264 HW encode using VideoToolbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & posciak nits. Created 4 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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/media/gpu_video_encode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const gpu::GpuPreferences& gpu_preferences); 80 const gpu::GpuPreferences& gpu_preferences);
81 #if defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC) 81 #if defined(OS_CHROMEOS) && defined(USE_V4L2_CODEC)
82 static scoped_ptr<media::VideoEncodeAccelerator> CreateV4L2VEA(); 82 static scoped_ptr<media::VideoEncodeAccelerator> CreateV4L2VEA();
83 #endif 83 #endif
84 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) 84 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)
85 static scoped_ptr<media::VideoEncodeAccelerator> CreateVaapiVEA(); 85 static scoped_ptr<media::VideoEncodeAccelerator> CreateVaapiVEA();
86 #endif 86 #endif
87 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) 87 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC)
88 static scoped_ptr<media::VideoEncodeAccelerator> CreateAndroidVEA(); 88 static scoped_ptr<media::VideoEncodeAccelerator> CreateAndroidVEA();
89 #endif 89 #endif
90 #if defined(OS_MACOSX)
91 static scoped_ptr<media::VideoEncodeAccelerator> CreateVTVEA();
92 #endif
90 93
91 // IPC handlers, proxying media::VideoEncodeAccelerator for the renderer 94 // IPC handlers, proxying media::VideoEncodeAccelerator for the renderer
92 // process. 95 // process.
93 void OnEncode(const AcceleratedVideoEncoderMsg_Encode_Params& params); 96 void OnEncode(const AcceleratedVideoEncoderMsg_Encode_Params& params);
94 void OnEncode2(const AcceleratedVideoEncoderMsg_Encode_Params2& params); 97 void OnEncode2(const AcceleratedVideoEncoderMsg_Encode_Params2& params);
95 void OnUseOutputBitstreamBuffer(int32_t buffer_id, 98 void OnUseOutputBitstreamBuffer(int32_t buffer_id,
96 base::SharedMemoryHandle buffer_handle, 99 base::SharedMemoryHandle buffer_handle,
97 uint32_t buffer_size); 100 uint32_t buffer_size);
98 void OnRequestEncodingParametersChange(uint32_t bitrate, uint32_t framerate); 101 void OnRequestEncodingParametersChange(uint32_t bitrate, uint32_t framerate);
99 102
(...skipping 25 matching lines...) Expand all
125 128
126 // Weak pointer for media::VideoFrames that refer back to |this|. 129 // Weak pointer for media::VideoFrames that refer back to |this|.
127 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; 130 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_;
128 131
129 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); 132 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator);
130 }; 133 };
131 134
132 } // namespace content 135 } // namespace content
133 136
134 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 137 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/media/gpu_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698