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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 base::Thread decoder_thread_; | 201 base::Thread decoder_thread_; |
202 content::VaapiH264Decoder decoder_; | 202 content::VaapiH264Decoder decoder_; |
203 | 203 |
204 int num_frames_at_client_; | 204 int num_frames_at_client_; |
205 int num_stream_bufs_at_decoder_; | 205 int num_stream_bufs_at_decoder_; |
206 | 206 |
207 // Posted onto ChildThread by the decoder to submit a GPU job to decode | 207 // Posted onto ChildThread by the decoder to submit a GPU job to decode |
208 // and put the decoded picture into output buffer. Takes ownership of | 208 // and put the decoded picture into output buffer. Takes ownership of |
209 // the queues' memory. | 209 // the queues' memory. |
210 void SubmitDecode(int32 output_id, | 210 void SubmitDecode(int32 output_id, |
211 std::queue<VABufferID>* va_bufs, | 211 scoped_ptr<std::queue<VABufferID> > va_bufs, |
212 std::queue<VABufferID>* slice_bufs); | 212 scoped_ptr<std::queue<VABufferID> > slice_bufs); |
213 | 213 |
214 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); | 214 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); |
215 }; | 215 }; |
216 | 216 |
217 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 217 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |