/work/obj-fuzz/ipc/ipdl/PCameras.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/dom/PContentParent.h" |
8 | | #include "mozilla/dom/PContentChild.h" |
9 | | #include "mozilla/ipc/PBackgroundParent.h" |
10 | | #include "mozilla/ipc/PBackgroundChild.h" |
11 | | #include "mozilla/camera/PCameras.h" |
12 | | |
13 | | namespace mozilla { |
14 | | namespace camera { |
15 | | namespace PCameras { |
16 | | |
17 | | nsresult |
18 | | CreateEndpoints( |
19 | | base::ProcessId aParentDestPid, |
20 | | base::ProcessId aChildDestPid, |
21 | | mozilla::ipc::Endpoint<mozilla::camera::PCamerasParent>* aParent, |
22 | | mozilla::ipc::Endpoint<mozilla::camera::PCamerasChild>* aChild) |
23 | 0 | { |
24 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
25 | 0 | } |
26 | | IPC::Message* |
27 | | Msg_DeliverFrame(int32_t routingId) |
28 | 0 | { |
29 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_DeliverFrame__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
30 | 0 | } |
31 | | IPC::Message* |
32 | | Msg_DeviceChange(int32_t routingId) |
33 | 0 | { |
34 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_DeviceChange__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
35 | 0 | } |
36 | | IPC::Message* |
37 | | Msg_ReplyNumberOfCaptureDevices(int32_t routingId) |
38 | 0 | { |
39 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplyNumberOfCaptureDevices__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
40 | 0 | } |
41 | | IPC::Message* |
42 | | Msg_ReplyNumberOfCapabilities(int32_t routingId) |
43 | 0 | { |
44 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplyNumberOfCapabilities__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
45 | 0 | } |
46 | | IPC::Message* |
47 | | Msg_ReplyAllocateCaptureDevice(int32_t routingId) |
48 | 0 | { |
49 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplyAllocateCaptureDevice__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
50 | 0 | } |
51 | | IPC::Message* |
52 | | Msg_ReplyGetCaptureCapability(int32_t routingId) |
53 | 0 | { |
54 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplyGetCaptureCapability__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
55 | 0 | } |
56 | | IPC::Message* |
57 | | Msg_ReplyGetCaptureDevice(int32_t routingId) |
58 | 0 | { |
59 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplyGetCaptureDevice__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
60 | 0 | } |
61 | | IPC::Message* |
62 | | Msg_ReplyFailure(int32_t routingId) |
63 | 0 | { |
64 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplyFailure__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
65 | 0 | } |
66 | | IPC::Message* |
67 | | Msg_ReplySuccess(int32_t routingId) |
68 | 0 | { |
69 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReplySuccess__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
70 | 0 | } |
71 | | IPC::Message* |
72 | | Msg___delete__(int32_t routingId) |
73 | 0 | { |
74 | 0 | return IPC::Message::IPDLMessage(routingId, Msg___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
75 | 0 | } |
76 | | IPC::Message* |
77 | | Reply___delete__(int32_t routingId) |
78 | 0 | { |
79 | 0 | return IPC::Message::IPDLMessage(routingId, Reply___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
80 | 0 | } |
81 | | IPC::Message* |
82 | | Msg_NumberOfCaptureDevices(int32_t routingId) |
83 | 0 | { |
84 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_NumberOfCaptureDevices__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
85 | 0 | } |
86 | | IPC::Message* |
87 | | Msg_NumberOfCapabilities(int32_t routingId) |
88 | 0 | { |
89 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_NumberOfCapabilities__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
90 | 0 | } |
91 | | IPC::Message* |
92 | | Msg_GetCaptureCapability(int32_t routingId) |
93 | 0 | { |
94 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_GetCaptureCapability__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
95 | 0 | } |
96 | | IPC::Message* |
97 | | Msg_GetCaptureDevice(int32_t routingId) |
98 | 0 | { |
99 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_GetCaptureDevice__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
100 | 0 | } |
101 | | IPC::Message* |
102 | | Msg_AllocateCaptureDevice(int32_t routingId) |
103 | 0 | { |
104 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_AllocateCaptureDevice__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
105 | 0 | } |
106 | | IPC::Message* |
107 | | Msg_ReleaseCaptureDevice(int32_t routingId) |
108 | 0 | { |
109 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReleaseCaptureDevice__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
110 | 0 | } |
111 | | IPC::Message* |
112 | | Msg_StartCapture(int32_t routingId) |
113 | 0 | { |
114 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_StartCapture__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
115 | 0 | } |
116 | | IPC::Message* |
117 | | Msg_FocusOnSelectedSource(int32_t routingId) |
118 | 0 | { |
119 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_FocusOnSelectedSource__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
120 | 0 | } |
121 | | IPC::Message* |
122 | | Msg_StopCapture(int32_t routingId) |
123 | 0 | { |
124 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_StopCapture__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
125 | 0 | } |
126 | | IPC::Message* |
127 | | Msg_ReleaseFrame(int32_t routingId) |
128 | 0 | { |
129 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ReleaseFrame__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
130 | 0 | } |
131 | | IPC::Message* |
132 | | Msg_AllDone(int32_t routingId) |
133 | 0 | { |
134 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_AllDone__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
135 | 0 | } |
136 | | IPC::Message* |
137 | | Msg_EnsureInitialized(int32_t routingId) |
138 | 0 | { |
139 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_EnsureInitialized__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
140 | 0 | } |
141 | | |
142 | | } // namespace PCameras |
143 | | } // namespace camera |
144 | | } // namespace mozilla |
145 | | |
146 | | //----------------------------------------------------------------------------- |
147 | | // Method definitions for the IPDL type |struct VideoCaptureCapability| |
148 | | // |
149 | | namespace mozilla { |
150 | | namespace camera { |
151 | | auto VideoCaptureCapability::operator==(const VideoCaptureCapability& _o) const -> bool |
152 | 0 | { |
153 | 0 | if ((!((width()) == ((_o).width())))) { |
154 | 0 | return false; |
155 | 0 | } |
156 | 0 | if ((!((height()) == ((_o).height())))) { |
157 | 0 | return false; |
158 | 0 | } |
159 | 0 | if ((!((maxFPS()) == ((_o).maxFPS())))) { |
160 | 0 | return false; |
161 | 0 | } |
162 | 0 | if ((!((expectedCaptureDelay()) == ((_o).expectedCaptureDelay())))) { |
163 | 0 | return false; |
164 | 0 | } |
165 | 0 | if ((!((rawType()) == ((_o).rawType())))) { |
166 | 0 | return false; |
167 | 0 | } |
168 | 0 | if ((!((codecType()) == ((_o).codecType())))) { |
169 | 0 | return false; |
170 | 0 | } |
171 | 0 | if ((!((interlaced()) == ((_o).interlaced())))) { |
172 | 0 | return false; |
173 | 0 | } |
174 | 0 | return true; |
175 | 0 | } |
176 | | |
177 | | auto VideoCaptureCapability::operator!=(const VideoCaptureCapability& _o) const -> bool |
178 | 0 | { |
179 | 0 | return (!(operator==(_o))); |
180 | 0 | } |
181 | | |
182 | | } // namespace camera |
183 | | } // namespace mozilla |
184 | | |
185 | | namespace mozilla { |
186 | | namespace ipc { |
187 | | auto IPDLParamTraits<mozilla::camera::VideoCaptureCapability>::Write( |
188 | | IPC::Message* aMsg, |
189 | | mozilla::ipc::IProtocol* aActor, |
190 | | const paramType& aVar) -> void |
191 | 0 | { |
192 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).width()); |
193 | 0 | // Sentinel = 'width' |
194 | 0 | (aMsg)->WriteSentinel(1444841265); |
195 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).height()); |
196 | 0 | // Sentinel = 'height' |
197 | 0 | (aMsg)->WriteSentinel(440091919); |
198 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).maxFPS()); |
199 | 0 | // Sentinel = 'maxFPS' |
200 | 0 | (aMsg)->WriteSentinel(455546781); |
201 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).expectedCaptureDelay()); |
202 | 0 | // Sentinel = 'expectedCaptureDelay' |
203 | 0 | (aMsg)->WriteSentinel(1711170115); |
204 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).rawType()); |
205 | 0 | // Sentinel = 'rawType' |
206 | 0 | (aMsg)->WriteSentinel(112604069); |
207 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).codecType()); |
208 | 0 | // Sentinel = 'codecType' |
209 | 0 | (aMsg)->WriteSentinel(133774863); |
210 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).interlaced()); |
211 | 0 | // Sentinel = 'interlaced' |
212 | 0 | (aMsg)->WriteSentinel(3391760415); |
213 | 0 | } |
214 | | |
215 | | auto IPDLParamTraits<mozilla::camera::VideoCaptureCapability>::Read( |
216 | | const IPC::Message* aMsg, |
217 | | PickleIterator* aIter, |
218 | | mozilla::ipc::IProtocol* aActor, |
219 | | paramType* aVar) -> bool |
220 | 0 | { |
221 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->width())))))) { |
222 | 0 | (aActor)->FatalError("Error deserializing 'width' (int) member of 'VideoCaptureCapability'"); |
223 | 0 | return false; |
224 | 0 | } |
225 | 0 | // Sentinel = 'width' |
226 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1444841265)))) { |
227 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'width' (int) member of 'VideoCaptureCapability'"); |
228 | 0 | return false; |
229 | 0 | } |
230 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->height())))))) { |
231 | 0 | (aActor)->FatalError("Error deserializing 'height' (int) member of 'VideoCaptureCapability'"); |
232 | 0 | return false; |
233 | 0 | } |
234 | 0 | // Sentinel = 'height' |
235 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 440091919)))) { |
236 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'height' (int) member of 'VideoCaptureCapability'"); |
237 | 0 | return false; |
238 | 0 | } |
239 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->maxFPS())))))) { |
240 | 0 | (aActor)->FatalError("Error deserializing 'maxFPS' (int) member of 'VideoCaptureCapability'"); |
241 | 0 | return false; |
242 | 0 | } |
243 | 0 | // Sentinel = 'maxFPS' |
244 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 455546781)))) { |
245 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'maxFPS' (int) member of 'VideoCaptureCapability'"); |
246 | 0 | return false; |
247 | 0 | } |
248 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->expectedCaptureDelay())))))) { |
249 | 0 | (aActor)->FatalError("Error deserializing 'expectedCaptureDelay' (int) member of 'VideoCaptureCapability'"); |
250 | 0 | return false; |
251 | 0 | } |
252 | 0 | // Sentinel = 'expectedCaptureDelay' |
253 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1711170115)))) { |
254 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'expectedCaptureDelay' (int) member of 'VideoCaptureCapability'"); |
255 | 0 | return false; |
256 | 0 | } |
257 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->rawType())))))) { |
258 | 0 | (aActor)->FatalError("Error deserializing 'rawType' (int) member of 'VideoCaptureCapability'"); |
259 | 0 | return false; |
260 | 0 | } |
261 | 0 | // Sentinel = 'rawType' |
262 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 112604069)))) { |
263 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'rawType' (int) member of 'VideoCaptureCapability'"); |
264 | 0 | return false; |
265 | 0 | } |
266 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->codecType())))))) { |
267 | 0 | (aActor)->FatalError("Error deserializing 'codecType' (int) member of 'VideoCaptureCapability'"); |
268 | 0 | return false; |
269 | 0 | } |
270 | 0 | // Sentinel = 'codecType' |
271 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 133774863)))) { |
272 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'codecType' (int) member of 'VideoCaptureCapability'"); |
273 | 0 | return false; |
274 | 0 | } |
275 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->interlaced())))))) { |
276 | 0 | (aActor)->FatalError("Error deserializing 'interlaced' (bool) member of 'VideoCaptureCapability'"); |
277 | 0 | return false; |
278 | 0 | } |
279 | 0 | // Sentinel = 'interlaced' |
280 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3391760415)))) { |
281 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'interlaced' (bool) member of 'VideoCaptureCapability'"); |
282 | 0 | return false; |
283 | 0 | } |
284 | 0 | return true; |
285 | 0 | } |
286 | | |
287 | | } // namespace ipc |
288 | | } // namespace mozilla |
289 | | |
290 | | //----------------------------------------------------------------------------- |
291 | | // Method definitions for the IPDL type |struct VideoFrameProperties| |
292 | | // |
293 | | namespace mozilla { |
294 | | namespace camera { |
295 | | auto VideoFrameProperties::operator==(const VideoFrameProperties& _o) const -> bool |
296 | 0 | { |
297 | 0 | if ((!((bufferSize()) == ((_o).bufferSize())))) { |
298 | 0 | return false; |
299 | 0 | } |
300 | 0 | if ((!((timeStamp()) == ((_o).timeStamp())))) { |
301 | 0 | return false; |
302 | 0 | } |
303 | 0 | if ((!((ntpTimeMs()) == ((_o).ntpTimeMs())))) { |
304 | 0 | return false; |
305 | 0 | } |
306 | 0 | if ((!((renderTimeMs()) == ((_o).renderTimeMs())))) { |
307 | 0 | return false; |
308 | 0 | } |
309 | 0 | if ((!((rotation()) == ((_o).rotation())))) { |
310 | 0 | return false; |
311 | 0 | } |
312 | 0 | if ((!((yAllocatedSize()) == ((_o).yAllocatedSize())))) { |
313 | 0 | return false; |
314 | 0 | } |
315 | 0 | if ((!((uAllocatedSize()) == ((_o).uAllocatedSize())))) { |
316 | 0 | return false; |
317 | 0 | } |
318 | 0 | if ((!((vAllocatedSize()) == ((_o).vAllocatedSize())))) { |
319 | 0 | return false; |
320 | 0 | } |
321 | 0 | if ((!((width()) == ((_o).width())))) { |
322 | 0 | return false; |
323 | 0 | } |
324 | 0 | if ((!((height()) == ((_o).height())))) { |
325 | 0 | return false; |
326 | 0 | } |
327 | 0 | if ((!((yStride()) == ((_o).yStride())))) { |
328 | 0 | return false; |
329 | 0 | } |
330 | 0 | if ((!((uStride()) == ((_o).uStride())))) { |
331 | 0 | return false; |
332 | 0 | } |
333 | 0 | if ((!((vStride()) == ((_o).vStride())))) { |
334 | 0 | return false; |
335 | 0 | } |
336 | 0 | return true; |
337 | 0 | } |
338 | | |
339 | | auto VideoFrameProperties::operator!=(const VideoFrameProperties& _o) const -> bool |
340 | 0 | { |
341 | 0 | return (!(operator==(_o))); |
342 | 0 | } |
343 | | |
344 | | } // namespace camera |
345 | | } // namespace mozilla |
346 | | |
347 | | namespace mozilla { |
348 | | namespace ipc { |
349 | | auto IPDLParamTraits<mozilla::camera::VideoFrameProperties>::Write( |
350 | | IPC::Message* aMsg, |
351 | | mozilla::ipc::IProtocol* aActor, |
352 | | const paramType& aVar) -> void |
353 | 0 | { |
354 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).bufferSize()); |
355 | 0 | // Sentinel = 'bufferSize' |
356 | 0 | (aMsg)->WriteSentinel(3444538779); |
357 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).timeStamp()); |
358 | 0 | // Sentinel = 'timeStamp' |
359 | 0 | (aMsg)->WriteSentinel(988250409); |
360 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).ntpTimeMs()); |
361 | 0 | // Sentinel = 'ntpTimeMs' |
362 | 0 | (aMsg)->WriteSentinel(2007070548); |
363 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).renderTimeMs()); |
364 | 0 | // Sentinel = 'renderTimeMs' |
365 | 0 | (aMsg)->WriteSentinel(1309514403); |
366 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).rotation()); |
367 | 0 | // Sentinel = 'rotation' |
368 | 0 | (aMsg)->WriteSentinel(289872474); |
369 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).yAllocatedSize()); |
370 | 0 | // Sentinel = 'yAllocatedSize' |
371 | 0 | (aMsg)->WriteSentinel(328682969); |
372 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).uAllocatedSize()); |
373 | 0 | // Sentinel = 'uAllocatedSize' |
374 | 0 | (aMsg)->WriteSentinel(304689277); |
375 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).vAllocatedSize()); |
376 | 0 | // Sentinel = 'vAllocatedSize' |
377 | 0 | (aMsg)->WriteSentinel(3141825636); |
378 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).width()); |
379 | 0 | // Sentinel = 'width' |
380 | 0 | (aMsg)->WriteSentinel(1444841265); |
381 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).height()); |
382 | 0 | // Sentinel = 'height' |
383 | 0 | (aMsg)->WriteSentinel(440091919); |
384 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).yStride()); |
385 | 0 | // Sentinel = 'yStride' |
386 | 0 | (aMsg)->WriteSentinel(2975587197); |
387 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).uStride()); |
388 | 0 | // Sentinel = 'uStride' |
389 | 0 | (aMsg)->WriteSentinel(4174183513); |
390 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).vStride()); |
391 | 0 | // Sentinel = 'vStride' |
392 | 0 | (aMsg)->WriteSentinel(1758048210); |
393 | 0 | } |
394 | | |
395 | | auto IPDLParamTraits<mozilla::camera::VideoFrameProperties>::Read( |
396 | | const IPC::Message* aMsg, |
397 | | PickleIterator* aIter, |
398 | | mozilla::ipc::IProtocol* aActor, |
399 | | paramType* aVar) -> bool |
400 | 0 | { |
401 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->bufferSize())))))) { |
402 | 0 | (aActor)->FatalError("Error deserializing 'bufferSize' (size_t) member of 'VideoFrameProperties'"); |
403 | 0 | return false; |
404 | 0 | } |
405 | 0 | // Sentinel = 'bufferSize' |
406 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3444538779)))) { |
407 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (size_t) member of 'VideoFrameProperties'"); |
408 | 0 | return false; |
409 | 0 | } |
410 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->timeStamp())))))) { |
411 | 0 | (aActor)->FatalError("Error deserializing 'timeStamp' (uint32_t) member of 'VideoFrameProperties'"); |
412 | 0 | return false; |
413 | 0 | } |
414 | 0 | // Sentinel = 'timeStamp' |
415 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 988250409)))) { |
416 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'timeStamp' (uint32_t) member of 'VideoFrameProperties'"); |
417 | 0 | return false; |
418 | 0 | } |
419 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->ntpTimeMs())))))) { |
420 | 0 | (aActor)->FatalError("Error deserializing 'ntpTimeMs' (int64_t) member of 'VideoFrameProperties'"); |
421 | 0 | return false; |
422 | 0 | } |
423 | 0 | // Sentinel = 'ntpTimeMs' |
424 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2007070548)))) { |
425 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ntpTimeMs' (int64_t) member of 'VideoFrameProperties'"); |
426 | 0 | return false; |
427 | 0 | } |
428 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->renderTimeMs())))))) { |
429 | 0 | (aActor)->FatalError("Error deserializing 'renderTimeMs' (int64_t) member of 'VideoFrameProperties'"); |
430 | 0 | return false; |
431 | 0 | } |
432 | 0 | // Sentinel = 'renderTimeMs' |
433 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1309514403)))) { |
434 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'renderTimeMs' (int64_t) member of 'VideoFrameProperties'"); |
435 | 0 | return false; |
436 | 0 | } |
437 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->rotation())))))) { |
438 | 0 | (aActor)->FatalError("Error deserializing 'rotation' (int) member of 'VideoFrameProperties'"); |
439 | 0 | return false; |
440 | 0 | } |
441 | 0 | // Sentinel = 'rotation' |
442 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 289872474)))) { |
443 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'rotation' (int) member of 'VideoFrameProperties'"); |
444 | 0 | return false; |
445 | 0 | } |
446 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->yAllocatedSize())))))) { |
447 | 0 | (aActor)->FatalError("Error deserializing 'yAllocatedSize' (int) member of 'VideoFrameProperties'"); |
448 | 0 | return false; |
449 | 0 | } |
450 | 0 | // Sentinel = 'yAllocatedSize' |
451 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 328682969)))) { |
452 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'yAllocatedSize' (int) member of 'VideoFrameProperties'"); |
453 | 0 | return false; |
454 | 0 | } |
455 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uAllocatedSize())))))) { |
456 | 0 | (aActor)->FatalError("Error deserializing 'uAllocatedSize' (int) member of 'VideoFrameProperties'"); |
457 | 0 | return false; |
458 | 0 | } |
459 | 0 | // Sentinel = 'uAllocatedSize' |
460 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 304689277)))) { |
461 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uAllocatedSize' (int) member of 'VideoFrameProperties'"); |
462 | 0 | return false; |
463 | 0 | } |
464 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->vAllocatedSize())))))) { |
465 | 0 | (aActor)->FatalError("Error deserializing 'vAllocatedSize' (int) member of 'VideoFrameProperties'"); |
466 | 0 | return false; |
467 | 0 | } |
468 | 0 | // Sentinel = 'vAllocatedSize' |
469 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3141825636)))) { |
470 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'vAllocatedSize' (int) member of 'VideoFrameProperties'"); |
471 | 0 | return false; |
472 | 0 | } |
473 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->width())))))) { |
474 | 0 | (aActor)->FatalError("Error deserializing 'width' (int) member of 'VideoFrameProperties'"); |
475 | 0 | return false; |
476 | 0 | } |
477 | 0 | // Sentinel = 'width' |
478 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1444841265)))) { |
479 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'width' (int) member of 'VideoFrameProperties'"); |
480 | 0 | return false; |
481 | 0 | } |
482 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->height())))))) { |
483 | 0 | (aActor)->FatalError("Error deserializing 'height' (int) member of 'VideoFrameProperties'"); |
484 | 0 | return false; |
485 | 0 | } |
486 | 0 | // Sentinel = 'height' |
487 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 440091919)))) { |
488 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'height' (int) member of 'VideoFrameProperties'"); |
489 | 0 | return false; |
490 | 0 | } |
491 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->yStride())))))) { |
492 | 0 | (aActor)->FatalError("Error deserializing 'yStride' (int) member of 'VideoFrameProperties'"); |
493 | 0 | return false; |
494 | 0 | } |
495 | 0 | // Sentinel = 'yStride' |
496 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2975587197)))) { |
497 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'yStride' (int) member of 'VideoFrameProperties'"); |
498 | 0 | return false; |
499 | 0 | } |
500 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->uStride())))))) { |
501 | 0 | (aActor)->FatalError("Error deserializing 'uStride' (int) member of 'VideoFrameProperties'"); |
502 | 0 | return false; |
503 | 0 | } |
504 | 0 | // Sentinel = 'uStride' |
505 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4174183513)))) { |
506 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uStride' (int) member of 'VideoFrameProperties'"); |
507 | 0 | return false; |
508 | 0 | } |
509 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->vStride())))))) { |
510 | 0 | (aActor)->FatalError("Error deserializing 'vStride' (int) member of 'VideoFrameProperties'"); |
511 | 0 | return false; |
512 | 0 | } |
513 | 0 | // Sentinel = 'vStride' |
514 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1758048210)))) { |
515 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'vStride' (int) member of 'VideoFrameProperties'"); |
516 | 0 | return false; |
517 | 0 | } |
518 | 0 | return true; |
519 | 0 | } |
520 | | |
521 | | } // namespace ipc |
522 | | } // namespace mozilla |