| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |