OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VT_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void Reset() override; | 51 void Reset() override; |
52 void Destroy() override; | 52 void Destroy() override; |
53 bool CanDecodeOnIOThread() override; | 53 bool CanDecodeOnIOThread() override; |
54 | 54 |
55 // Called by OutputThunk() when VideoToolbox finishes decoding a frame. | 55 // Called by OutputThunk() when VideoToolbox finishes decoding a frame. |
56 void Output( | 56 void Output( |
57 void* source_frame_refcon, | 57 void* source_frame_refcon, |
58 OSStatus status, | 58 OSStatus status, |
59 CVImageBufferRef image_buffer); | 59 CVImageBufferRef image_buffer); |
60 | 60 |
| 61 static media::VideoDecodeAccelerator::SupportedProfiles |
| 62 GetSupportedProfiles(); |
| 63 |
61 private: | 64 private: |
62 // Logged to UMA, so never reuse values. Make sure to update | 65 // Logged to UMA, so never reuse values. Make sure to update |
63 // VTVDASessionFailureType in histograms.xml to match. | 66 // VTVDASessionFailureType in histograms.xml to match. |
64 enum VTVDASessionFailureType { | 67 enum VTVDASessionFailureType { |
65 SFT_SUCCESSFULLY_INITIALIZED = 0, | 68 SFT_SUCCESSFULLY_INITIALIZED = 0, |
66 SFT_PLATFORM_ERROR = 1, | 69 SFT_PLATFORM_ERROR = 1, |
67 SFT_INVALID_STREAM = 2, | 70 SFT_INVALID_STREAM = 2, |
68 SFT_UNSUPPORTED_STREAM_PARAMETERS = 3, | 71 SFT_UNSUPPORTED_STREAM_PARAMETERS = 3, |
69 SFT_DECODE_ERROR = 4, | 72 SFT_DECODE_ERROR = 4, |
70 SFT_UNSUPPORTED_STREAM = 5, | 73 SFT_UNSUPPORTED_STREAM = 5, |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Declared last to ensure that all weak pointers are invalidated before | 242 // Declared last to ensure that all weak pointers are invalidated before |
240 // other destructors run. | 243 // other destructors run. |
241 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; | 244 base::WeakPtrFactory<VTVideoDecodeAccelerator> weak_this_factory_; |
242 | 245 |
243 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); | 246 DISALLOW_COPY_AND_ASSIGN(VTVideoDecodeAccelerator); |
244 }; | 247 }; |
245 | 248 |
246 } // namespace content | 249 } // namespace content |
247 | 250 |
248 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ | 251 #endif // CONTENT_COMMON_GPU_MEDIA_VT_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |