OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 struct Settings { | 44 struct Settings { |
45 bool hasFrameRate() { return frameRate >= 0.0; } | 45 bool hasFrameRate() { return frameRate >= 0.0; } |
46 bool hasWidth() { return width >= 0; } | 46 bool hasWidth() { return width >= 0; } |
47 bool hasHeight() { return height >= 0; } | 47 bool hasHeight() { return height >= 0; } |
48 // The variables are read from | 48 // The variables are read from |
49 // MediaStreamTrack::GetSettings only. | 49 // MediaStreamTrack::GetSettings only. |
50 double frameRate = -1.0; | 50 double frameRate = -1.0; |
51 long width = -1; | 51 long width = -1; |
52 long height = -1; | 52 long height = -1; |
53 WebString deviceId; | 53 WebString deviceId; |
| 54 // Media Capture Depth Stream Extensions. |
| 55 double focalLengthX = 0.0; |
| 56 double focalLengthY = 0.0; |
| 57 double depthNear = 0.0; |
| 58 double depthFar = 0.0; |
54 }; | 59 }; |
55 | 60 |
56 class TrackData { | 61 class TrackData { |
57 public: | 62 public: |
58 TrackData() {} | 63 TrackData() {} |
59 virtual ~TrackData() {} | 64 virtual ~TrackData() {} |
60 virtual void getSettings(Settings&) = 0; | 65 virtual void getSettings(Settings&) = 0; |
61 }; | 66 }; |
62 | 67 |
63 WebMediaStreamTrack() {} | 68 WebMediaStreamTrack() {} |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; | 107 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; |
103 #endif | 108 #endif |
104 | 109 |
105 private: | 110 private: |
106 WebPrivatePtr<MediaStreamComponent> m_private; | 111 WebPrivatePtr<MediaStreamComponent> m_private; |
107 }; | 112 }; |
108 | 113 |
109 } // namespace blink | 114 } // namespace blink |
110 | 115 |
111 #endif // WebMediaStreamTrack_h | 116 #endif // WebMediaStreamTrack_h |
OLD | NEW |