Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: ppapi/cpp/video_encoder.h

Issue 901733002: Pepper: Make C++ pp::VideoEncoder wrapper compilable on non-C++11 builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ppapi/cpp/video_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_ENCODER_H_ 5 #ifndef PPAPI_CPP_VIDEO_ENCODER_H_
6 #define PPAPI_CPP_VIDEO_ENCODER_H_ 6 #define PPAPI_CPP_VIDEO_ENCODER_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"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 /// Gets an array of supported video encoder profiles. 61 /// Gets an array of supported video encoder profiles.
62 /// These can be used to choose a profile before calling Initialize(). 62 /// These can be used to choose a profile before calling Initialize().
63 /// 63 ///
64 /// @param[in] callback A <code>CompletionCallbackWithOutput</code> to be 64 /// @param[in] callback A <code>CompletionCallbackWithOutput</code> to be
65 /// called upon completion with the PP_VideoProfileDescription structs. 65 /// called upon completion with the PP_VideoProfileDescription structs.
66 /// 66 ///
67 /// @return If >= 0, the number of supported profiles returned, otherwise an 67 /// @return If >= 0, the number of supported profiles returned, otherwise an
68 /// error code from <code>pp_errors.h</code>. 68 /// error code from <code>pp_errors.h</code>.
69 int32_t GetSupportedProfiles(const CompletionCallbackWithOutput< 69 int32_t GetSupportedProfiles(const CompletionCallbackWithOutput<
70 std::vector<PP_VideoProfileDescription>>& cc); 70 std::vector<PP_VideoProfileDescription> >& cc);
71 71
72 /// Initializes a video encoder resource. This should be called after 72 /// Initializes a video encoder resource. This should be called after
73 /// GetSupportedProfiles() and before any functions below. 73 /// GetSupportedProfiles() and before any functions below.
74 /// 74 ///
75 /// @param[in] input_format The <code>PP_VideoFrame_Format</code> of the 75 /// @param[in] input_format The <code>PP_VideoFrame_Format</code> of the
76 /// frames which will be encoded. 76 /// frames which will be encoded.
77 /// @param[in] input_visible_size A <code>PP_Size</code> specifying the 77 /// @param[in] input_visible_size A <code>PP_Size</code> specifying the
78 /// dimensions of the visible part of the input frames. 78 /// dimensions of the visible part of the input frames.
79 /// @param[in] output_profile A <code>PP_VideoProfile</code> specifying the 79 /// @param[in] output_profile A <code>PP_VideoProfile</code> specifying the
80 /// codec profile of the encoded output stream. 80 /// codec profile of the encoded output stream.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 /// callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> . It is 166 /// callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> . It is
167 /// not valid to call any encoder functions after a call to this method. 167 /// not valid to call any encoder functions after a call to this method.
168 /// <strong>Note:</strong> Destroying the video encoder closes it implicitly, 168 /// <strong>Note:</strong> Destroying the video encoder closes it implicitly,
169 /// so you are not required to call Close(). 169 /// so you are not required to call Close().
170 void Close(); 170 void Close();
171 }; 171 };
172 172
173 } // namespace pp 173 } // namespace pp
174 174
175 #endif // PPAPI_CPP_VIDEO_ENCODER_H_ 175 #endif // PPAPI_CPP_VIDEO_ENCODER_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698