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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 Client* client) override; | 58 Client* client) override; |
59 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; | 59 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; |
60 void AssignPictureBuffers( | 60 void AssignPictureBuffers( |
61 const std::vector<media::PictureBuffer>& buffers) override; | 61 const std::vector<media::PictureBuffer>& buffers) override; |
62 void ReusePictureBuffer(int32 picture_buffer_id) override; | 62 void ReusePictureBuffer(int32 picture_buffer_id) override; |
63 void Flush() override; | 63 void Flush() override; |
64 void Reset() override; | 64 void Reset() override; |
65 void Destroy() override; | 65 void Destroy() override; |
66 bool CanDecodeOnIOThread() override; | 66 bool CanDecodeOnIOThread() override; |
67 | 67 |
| 68 static std::vector<media::VideoDecodeAccelerator::SupportedProfile> |
| 69 GetSupportedProfiles(); |
| 70 |
68 private: | 71 private: |
69 // Notify the client that an error has occurred and decoding cannot continue. | 72 // Notify the client that an error has occurred and decoding cannot continue. |
70 void NotifyError(Error error); | 73 void NotifyError(Error error); |
71 | 74 |
72 // Map the received input buffer into this process' address space and | 75 // Map the received input buffer into this process' address space and |
73 // queue it for decode. | 76 // queue it for decode. |
74 void MapAndQueueNewInputBuffer( | 77 void MapAndQueueNewInputBuffer( |
75 const media::BitstreamBuffer& bitstream_buffer); | 78 const media::BitstreamBuffer& bitstream_buffer); |
76 | 79 |
77 // Get a new input buffer from the queue and set it up in decoder. This will | 80 // Get a new input buffer from the queue and set it up in decoder. This will |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 279 |
277 // The WeakPtrFactory for |weak_this_|. | 280 // The WeakPtrFactory for |weak_this_|. |
278 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; | 281 base::WeakPtrFactory<VaapiVideoDecodeAccelerator> weak_this_factory_; |
279 | 282 |
280 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); | 283 DISALLOW_COPY_AND_ASSIGN(VaapiVideoDecodeAccelerator); |
281 }; | 284 }; |
282 | 285 |
283 } // namespace content | 286 } // namespace content |
284 | 287 |
285 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ | 288 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |