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; | 18 struct PP_Rect; |
dmichael (off chromium)
2014/11/05 23:06:04
I don't think this is needed
bbudge
2014/11/06 00:26:37
Done.
| |
19 | 19 |
20 namespace pp { | 20 namespace pp { |
21 | 21 |
22 class InstanceHandle; | 22 class InstanceHandle; |
23 | 23 |
24 /// Video decoder interface. | 24 /// Video decoder interface. |
25 /// | 25 /// |
26 /// Typical usage: | 26 /// Typical usage: |
27 /// - Call Create() to create a new video decoder resource. | 27 /// - Call Create() to create a new video decoder resource. |
28 /// - Call Initialize() to initialize it with a 3d graphics context and the | 28 /// - Call Initialize() to initialize it with a 3d graphics context and the |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 /// completion. | 169 /// completion. |
170 /// | 170 /// |
171 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 171 /// @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. | 172 /// Returns PP_ERROR_FAILED if the decoder isn't initialized. |
173 int32_t Reset(const CompletionCallback& callback); | 173 int32_t Reset(const CompletionCallback& callback); |
174 }; | 174 }; |
175 | 175 |
176 } // namespace pp | 176 } // namespace pp |
177 | 177 |
178 #endif // PPAPI_CPP_VIDEO_DECODER_H_ | 178 #endif // PPAPI_CPP_VIDEO_DECODER_H_ |
OLD | NEW |