@@ -275,17 +275,12 @@ class LIBFREENECT2_API Freenect2
275
275
Freenect2& operator =(const Freenect2&);
276
276
};
277
277
278
- class Freenect2ReplayDevice ;
278
+ class Freenect2ReplayImpl ;
279
279
280
280
/* *
281
281
* Library context to create and open replay devices.
282
282
*
283
- * You openDevice() and control the device with returned Freenect2ReplayDevice object.
284
- *
285
- * You may open devices with custom PacketPipeline.
286
- * After passing a PacketPipeline object to libfreenect2 do not use or free the object,
287
- * libfreenect2 will take care. If openDevice() fails the PacketPipeline object will get
288
- * deleted. A new PacketPipeline object has to be created each time a device is opened.
283
+ * Call openDevice() and control the device with the returned Freenect2ReplayDevice object.
289
284
*/
290
285
class LIBFREENECT2_API Freenect2Replay
291
286
{
@@ -296,12 +291,7 @@ class LIBFREENECT2_API Freenect2Replay
296
291
Freenect2Replay ();
297
292
virtual ~Freenect2Replay ();
298
293
299
- /* *
300
- * @return Replay device serial number.
301
- */
302
- std::string getDefaultDeviceSerialNumber ();
303
-
304
- /* * Open device by a collection of stored frame filenames with default pipeline.
294
+ /* * Open a device by a collection of stored frame filenames with default pipeline.
305
295
* See filename format below.
306
296
* @param frame_filenames A list of filenames for stored frames.
307
297
* @return New device object, or NULL on failure
@@ -314,24 +304,16 @@ class LIBFREENECT2_API Freenect2Replay
314
304
* <prefix> - a string of the filename, anything
315
305
* <timestamp> -- packet timestamp as in pipeline packets
316
306
* <sequence> -- frame sequence number in the packet
317
- * <suffix> -- .depth, .jpg, or .jpeg (case insensitive)
307
+ * <suffix> -- .depth, .jpg, or .jpeg (case sensitive)
318
308
* @param frame_filenames A list of filenames for stored frames.
319
309
* @param factory New PacketPipeline instance. This is always automatically freed.
320
310
* @return New device object, or NULL on failure
321
311
*/
322
312
Freenect2Device *openDevice (const std::vector<std::string>& frame_filenames, const PacketPipeline *factory);
323
313
324
314
private:
325
- typedef std::vector<Freenect2ReplayDevice*> DeviceVector;
326
- DeviceVector devices_;
327
-
328
- bool initialized;
315
+ Freenect2ReplayImpl *impl_;
329
316
330
- void addDevice (Freenect2ReplayDevice *device);
331
- void removeDevice (Freenect2ReplayDevice *device);
332
- void clearDevices ();
333
- int getNumDevices ();
334
-
335
317
/* Disable copy and assignment constructors */
336
318
Freenect2Replay (const Freenect2Replay&);
337
319
Freenect2Replay& operator =(const Freenect2Replay&);
0 commit comments