OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // stored in this order in the memory. | 157 // stored in this order in the memory. |
158 VIDEOCOLORFORMAT_RGBA = 0, | 158 VIDEOCOLORFORMAT_RGBA = 0, |
159 }; | 159 }; |
160 | 160 |
161 // Video decoder interface. | 161 // Video decoder interface. |
162 // This interface is extended by the various components that ultimately | 162 // This interface is extended by the various components that ultimately |
163 // implement the backend of PPB_VideoDecode_Dev. | 163 // implement the backend of PPB_VideoDecode_Dev. |
164 // | 164 // |
165 // No thread-safety guarantees are implied by the use of RefCountedThreadSafe | 165 // No thread-safety guarantees are implied by the use of RefCountedThreadSafe |
166 // below. | 166 // below. |
167 class MEDIA_EXPORT VideoDecodeAccelerator | 167 class VideoDecodeAccelerator |
168 : public base::RefCountedThreadSafe<VideoDecodeAccelerator> { | 168 : public base::RefCountedThreadSafe<VideoDecodeAccelerator> { |
169 public: | 169 public: |
170 // Enumeration of potential errors generated by the API. | 170 // Enumeration of potential errors generated by the API. |
171 // Note: Keep these in sync with PP_VideoDecodeError_Dev. | 171 // Note: Keep these in sync with PP_VideoDecodeError_Dev. |
172 enum Error { | 172 enum Error { |
173 // An operation was attempted during an incompatible decoder state. | 173 // An operation was attempted during an incompatible decoder state. |
174 ILLEGAL_STATE = 1, | 174 ILLEGAL_STATE = 1, |
175 // Invalid argument was passed to an API method. | 175 // Invalid argument was passed to an API method. |
176 INVALID_ARGUMENT, | 176 INVALID_ARGUMENT, |
177 // Encoded input is unreadable. | 177 // Encoded input is unreadable. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 virtual void Destroy() = 0; | 275 virtual void Destroy() = 0; |
276 | 276 |
277 protected: | 277 protected: |
278 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; | 278 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; |
279 virtual ~VideoDecodeAccelerator(); | 279 virtual ~VideoDecodeAccelerator(); |
280 }; | 280 }; |
281 | 281 |
282 } // namespace media | 282 } // namespace media |
283 | 283 |
284 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 284 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |