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

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

Issue 1801343002: Revert of H264 HW encode using VideoToolbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
93 90
94 // IPC handlers, proxying media::VideoEncodeAccelerator for the renderer 91 // IPC handlers, proxying media::VideoEncodeAccelerator for the renderer
95 // process. 92 // process.
96 void OnEncode(const AcceleratedVideoEncoderMsg_Encode_Params& params); 93 void OnEncode(const AcceleratedVideoEncoderMsg_Encode_Params& params);
97 void OnEncode2(const AcceleratedVideoEncoderMsg_Encode_Params2& params); 94 void OnEncode2(const AcceleratedVideoEncoderMsg_Encode_Params2& params);
98 void OnUseOutputBitstreamBuffer(int32_t buffer_id, 95 void OnUseOutputBitstreamBuffer(int32_t buffer_id,
99 base::SharedMemoryHandle buffer_handle, 96 base::SharedMemoryHandle buffer_handle,
100 uint32_t buffer_size); 97 uint32_t buffer_size);
101 void OnRequestEncodingParametersChange(uint32_t bitrate, uint32_t framerate); 98 void OnRequestEncodingParametersChange(uint32_t bitrate, uint32_t framerate);
102 99
(...skipping 25 matching lines...) Expand all
128 125
129 // Weak pointer for media::VideoFrames that refer back to |this|. 126 // Weak pointer for media::VideoFrames that refer back to |this|.
130 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; 127 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_;
131 128
132 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); 129 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator);
133 }; 130 };
134 131
135 } // namespace content 132 } // namespace content
136 133
137 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 134 #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