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

Side by Side Diff: media/gpu/ipc/service/gpu_video_encode_accelerator.h

Issue 2172703002: Revert of H264 HW encode using MediaFoundation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_IPC_SERVICE_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #endif 85 #endif
86 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) 86 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)
87 static std::unique_ptr<VideoEncodeAccelerator> CreateVaapiVEA(); 87 static std::unique_ptr<VideoEncodeAccelerator> CreateVaapiVEA();
88 #endif 88 #endif
89 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) 89 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC)
90 static std::unique_ptr<VideoEncodeAccelerator> CreateAndroidVEA(); 90 static std::unique_ptr<VideoEncodeAccelerator> CreateAndroidVEA();
91 #endif 91 #endif
92 #if defined(OS_MACOSX) 92 #if defined(OS_MACOSX)
93 static std::unique_ptr<VideoEncodeAccelerator> CreateVTVEA(); 93 static std::unique_ptr<VideoEncodeAccelerator> CreateVTVEA();
94 #endif 94 #endif
95 #if defined(OS_WIN)
96 static std::unique_ptr<media::VideoEncodeAccelerator>
97 CreateMediaFoundationVEA();
98 #endif
99 95
100 // IPC handlers, proxying VideoEncodeAccelerator for the renderer 96 // IPC handlers, proxying VideoEncodeAccelerator for the renderer
101 // process. 97 // process.
102 void OnEncode(const AcceleratedVideoEncoderMsg_Encode_Params& params); 98 void OnEncode(const AcceleratedVideoEncoderMsg_Encode_Params& params);
103 void OnEncode2(const AcceleratedVideoEncoderMsg_Encode_Params2& params); 99 void OnEncode2(const AcceleratedVideoEncoderMsg_Encode_Params2& params);
104 void OnUseOutputBitstreamBuffer(int32_t buffer_id, 100 void OnUseOutputBitstreamBuffer(int32_t buffer_id,
105 base::SharedMemoryHandle buffer_handle, 101 base::SharedMemoryHandle buffer_handle,
106 uint32_t buffer_size); 102 uint32_t buffer_size);
107 void OnRequestEncodingParametersChange(uint32_t bitrate, uint32_t framerate); 103 void OnRequestEncodingParametersChange(uint32_t bitrate, uint32_t framerate);
108 104
(...skipping 23 matching lines...) Expand all
132 128
133 // Weak pointer for VideoFrames that refer back to |this|. 129 // Weak pointer for VideoFrames that refer back to |this|.
134 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_; 130 base::WeakPtrFactory<GpuVideoEncodeAccelerator> weak_this_factory_;
135 131
136 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator); 132 DISALLOW_COPY_AND_ASSIGN(GpuVideoEncodeAccelerator);
137 }; 133 };
138 134
139 } // namespace media 135 } // namespace media
140 136
141 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_ 137 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/dxva_video_decode_accelerator_win.cc ('k') | media/gpu/ipc/service/gpu_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698