FrameReleaser.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 import java.util.ArrayList;
4 import java.util.List;
5 
6 public class FrameReleaser implements AutoCloseable {
7  private List<Frame> mFrames = new ArrayList<>();
8  private List<FrameSet> mFramesets = new ArrayList<>();
9 
10  public void addFrame(Frame frame){
11  mFrames.add(frame);
12  }
13 
14  public void addFrame(FrameSet frames){
15  mFramesets.add(frames);
16  }
17 
18  @Override
19  public void close() {
20  for(Frame f : mFrames){
21  f.close();
22  }
23 
24  for(FrameSet f : mFramesets){
25  f.close();
26  }
27  }
28 }
GLdouble f


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:14