OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ |
| 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ |
| 7 |
| 8 #include "ppapi/c/ppb_video_frame.h" |
| 9 #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 10 |
| 11 namespace ppapi { |
| 12 |
| 13 class PPAPI_SHARED_EXPORT MediaStreamVideoTrackShared { |
| 14 public: |
| 15 struct Attributes { |
| 16 enum { |
| 17 MASK_BUFFERS = 1, |
| 18 MASK_WIDTH = (1 << 1), |
| 19 MASK_HEIGHT = (1 << 2), |
| 20 MASK_FORMAT = (1 << 3), |
| 21 }; |
| 22 Attributes() |
| 23 : mask(0), |
| 24 buffers(0), |
| 25 width(0), |
| 26 height(0), |
| 27 format(PP_VIDEOFRAME_FORMAT_UNKNOWN) {} |
| 28 uint32_t mask; |
| 29 int32_t buffers; |
| 30 int32_t width; |
| 31 int32_t height; |
| 32 PP_VideoFrame_Format format; |
| 33 }; |
| 34 |
| 35 static bool VerifyAttributes(const Attributes& attributes); |
| 36 |
| 37 }; |
| 38 |
| 39 } // namespace ppapi |
| 40 |
| 41 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_VIDEO_TRACK_SHARED_H_ |
OLD | NEW |