OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains an implementation of VideoDecoderAccelerator | 5 // This file contains an implementation of VideoDecoderAccelerator |
6 // that utilizes hardware video decoder present on Intel CPUs. | 6 // that utilizes hardware video decoder present on Intel CPUs. |
7 | 7 |
8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
10 | 10 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 base::Thread decoder_thread_; | 203 base::Thread decoder_thread_; |
204 VaapiH264Decoder decoder_; | 204 VaapiH264Decoder decoder_; |
205 | 205 |
206 int num_frames_at_client_; | 206 int num_frames_at_client_; |
207 int num_stream_bufs_at_decoder_; | 207 int num_stream_bufs_at_decoder_; |
208 | 208 |
209 // Posted onto ChildThread by the decoder to submit a GPU job to decode | 209 // Posted onto ChildThread by the decoder to submit a GPU job to decode |
210 // and put the decoded picture into output buffer. Takes ownership of | 210 // and put the decoded picture into output buffer. Takes ownership of |
211 // the queues' memory. | 211 // the queues' memory. |
212 void SubmitDecode(int32 output_id, | 212 void SubmitDecode(int32 output_id, |
213 std::queue<VABufferID>* va_bufs, | 213 scoped_ptr<std::queue<VABufferID> > va_bufs, |
214 std::queue<VABufferID>* slice_bufs); | 214 scoped_ptr<std::queue<VABufferID> > slice_bufs); |
215 | 215 |
216 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); | 216 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); |
217 }; | 217 }; |
218 | 218 |
219 } // namespace content | 219 } // namespace content |
220 | 220 |
221 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 221 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |