OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 PPAPI_CPP_VIDEO_DECODER_H_ | 5 #ifndef PPAPI_CPP_VIDEO_DECODER_H_ |
6 #define PPAPI_CPP_VIDEO_DECODER_H_ | 6 #define PPAPI_CPP_VIDEO_DECODER_H_ |
7 | 7 |
8 #include "ppapi/c/pp_codecs.h" | 8 #include "ppapi/c/pp_codecs.h" |
9 #include "ppapi/c/pp_size.h" | 9 #include "ppapi/c/pp_size.h" |
10 #include "ppapi/cpp/completion_callback.h" | 10 #include "ppapi/cpp/completion_callback.h" |
11 #include "ppapi/cpp/graphics_3d.h" | 11 #include "ppapi/cpp/graphics_3d.h" |
12 #include "ppapi/cpp/resource.h" | 12 #include "ppapi/cpp/resource.h" |
13 #include "ppapi/cpp/size.h" | 13 #include "ppapi/cpp/size.h" |
14 | 14 |
15 /// @file | 15 /// @file |
16 /// This file defines the API to create and use a VideoDecoder resource. | 16 /// This file defines the API to create and use a VideoDecoder resource. |
17 | 17 |
18 struct PP_FileInfo; | |
19 | |
20 namespace pp { | 18 namespace pp { |
21 | 19 |
22 class InstanceHandle; | 20 class InstanceHandle; |
23 | 21 |
24 /// Video decoder interface. | 22 /// Video decoder interface. |
25 /// | 23 /// |
26 /// Typical usage: | 24 /// Typical usage: |
27 /// - Call Create() to create a new video decoder resource. | 25 /// - Call Create() to create a new video decoder resource. |
28 /// - Call Initialize() to initialize it with a 3d graphics context and the | 26 /// - Call Initialize() to initialize it with a 3d graphics context and the |
29 /// desired codec profile. | 27 /// desired codec profile. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 /// completion. | 167 /// completion. |
170 /// | 168 /// |
171 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 169 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. |
172 /// Returns PP_ERROR_FAILED if the decoder isn't initialized. | 170 /// Returns PP_ERROR_FAILED if the decoder isn't initialized. |
173 int32_t Reset(const CompletionCallback& callback); | 171 int32_t Reset(const CompletionCallback& callback); |
174 }; | 172 }; |
175 | 173 |
176 } // namespace pp | 174 } // namespace pp |
177 | 175 |
178 #endif // PPAPI_CPP_VIDEO_DECODER_H_ | 176 #endif // PPAPI_CPP_VIDEO_DECODER_H_ |
OLD | NEW |