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

Unified Diff: ppapi/cpp/video_frame.h

Issue 107083004: [PPAPI] API definition for video media stream artifacts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Update Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/video_frame.h
diff --git a/ppapi/cpp/video_frame.h b/ppapi/cpp/video_frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f1ffa42e6885a4dfd387fb0dc15883b6e64d77a
--- /dev/null
+++ b/ppapi/cpp/video_frame.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_CPP_VIDEO_FRAME_H_
+#define PPAPI_CPP_VIDEO_FRAME_H_
+
+#include "ppapi/c/ppb_video_frame.h"
+#include "ppapi/cpp/resource.h"
+#include "ppapi/cpp/size.h"
+
+namespace pp {
+
+class VideoFrame : public Resource {
+ public:
+ VideoFrame(PassRef, PP_Resource resource);
+
+ virtual ~VideoFrame();
+
+ PP_TimeDelta GetTimestamp() const;
+ void SetTimestamp(PP_TimeDelta timestamp);
+
+ PP_VideoFrame_Format GetFormat() const;
+
+ const Size GetSize() const;
yzshen1 2013/12/20 23:37:43 Is it better to use bool GetSize(Size* size) to be
Peng 2013/12/23 02:41:49 Done.
+
+ void* GetDataBuffer();
+
+ uint32_t GetDataBufferSize() const;
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_VIDEO_FRAME_H_

Powered by Google App Engine
This is Rietveld 408576698