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

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

Issue 2668293002: VPX HW encode using MediaFoundation
Patch Set: adding all Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ 5 #ifndef MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_
6 #define MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ 6 #define MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_
7 7
8 #include <mfapi.h> 8 #include <mfapi.h>
9 #include <mfidl.h> 9 #include <mfidl.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Releases resources encoder holds. 111 // Releases resources encoder holds.
112 void ReleaseEncoderResources(); 112 void ReleaseEncoderResources();
113 113
114 // Bitstream buffers ready to be used to return encoded output as a FIFO. 114 // Bitstream buffers ready to be used to return encoded output as a FIFO.
115 std::deque<std::unique_ptr<BitstreamBufferRef>> bitstream_buffer_queue_; 115 std::deque<std::unique_ptr<BitstreamBufferRef>> bitstream_buffer_queue_;
116 116
117 // EncodeOutput needs to be copied into a BitstreamBufferRef as a FIFO. 117 // EncodeOutput needs to be copied into a BitstreamBufferRef as a FIFO.
118 std::deque<std::unique_ptr<EncodeOutput>> encoder_output_queue_; 118 std::deque<std::unique_ptr<EncodeOutput>> encoder_output_queue_;
119 119
120 // Parse command line values to see the supported codecs.
121 const bool h264_enabled_;
122 const bool vpx_enabled_;
123
124 VideoCodecProfile output_profile_;
120 gfx::Size input_visible_size_; 125 gfx::Size input_visible_size_;
121 size_t bitstream_buffer_size_; 126 size_t bitstream_buffer_size_;
122 uint32_t frame_rate_; 127 uint32_t frame_rate_;
123 uint32_t target_bitrate_; 128 uint32_t target_bitrate_;
124 size_t u_plane_offset_; 129 size_t u_plane_offset_;
125 size_t v_plane_offset_; 130 size_t v_plane_offset_;
126 131
127 base::win::ScopedComPtr<IMFTransform> encoder_; 132 base::win::ScopedComPtr<IMFTransform> encoder_;
128 base::win::ScopedComPtr<ICodecAPI> codec_api_; 133 base::win::ScopedComPtr<ICodecAPI> codec_api_;
129 134
(...skipping 28 matching lines...) Expand all
158 // other destructors run. 163 // other destructors run.
159 base::WeakPtrFactory<MediaFoundationVideoEncodeAccelerator> 164 base::WeakPtrFactory<MediaFoundationVideoEncodeAccelerator>
160 encoder_task_weak_factory_; 165 encoder_task_weak_factory_;
161 166
162 DISALLOW_COPY_AND_ASSIGN(MediaFoundationVideoEncodeAccelerator); 167 DISALLOW_COPY_AND_ASSIGN(MediaFoundationVideoEncodeAccelerator);
163 }; 168 };
164 169
165 } // namespace media 170 } // namespace media
166 171
167 #endif // MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_ 172 #endif // MEDIA_GPU_MEDIA_FOUNDATION_VIDEO_ENCODE_ACCELERATOR_WIN_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/gpu_video_encode_accelerator.cc ('k') | media/gpu/media_foundation_video_encode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698