Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |