| 130 | } |
| 131 | |
| 132 | void allocStream() { |
| 133 | if (! color) { |
| 134 | color = new ColorStream(this, dev, reg); |
| 135 | setStreamProperties(color, "color"); |
| 136 | } |
| 137 | if (! depth) { |
| 138 | depth = new DepthStream(this, dev, reg); |
| 139 | setStreamProperties(depth, "depth"); |
| 140 | } |
| 141 | if (! ir) { |
| 142 | ir = new IrStream(this, dev, reg); |
| 143 | setStreamProperties(ir, "ir"); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | void deallocStream() { |
| 148 | if (color != NULL) |
nothing calls this directly
no outgoing calls
no test coverage detected