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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_CPP_VIDEO_FRAME_H_
6 #define PPAPI_CPP_VIDEO_FRAME_H_
7
8 #include "ppapi/c/ppb_video_frame.h"
9 #include "ppapi/cpp/resource.h"
10 #include "ppapi/cpp/size.h"
11
12 namespace pp {
13
14 class VideoFrame : public Resource {
15 public:
16 VideoFrame(PassRef, PP_Resource resource);
17
18 virtual ~VideoFrame();
19
20 PP_TimeDelta GetTimestamp() const;
21 void SetTimestamp(PP_TimeDelta timestamp);
22
23 PP_VideoFrame_Format GetFormat() const;
24
25 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.
26
27 void* GetDataBuffer();
28
29 uint32_t GetDataBufferSize() const;
30 };
31
32 } // namespace pp
33
34 #endif // PPAPI_CPP_VIDEO_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698