| 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;
|
| +
|
| + void* GetDataBuffer();
|
| +
|
| + uint32_t GetDataBufferSize() const;
|
| +};
|
| +
|
| +} // namespace pp
|
| +
|
| +#endif // PPAPI_CPP_VIDEO_FRAME_H_
|
|
|