Home
last modified time | relevance | path

Searched refs:newStreams (Results 1 – 2 of 2) sorted by relevance

/hardware/libhardware/modules/camera/3_0/
DCamera.cpp147 Stream **newStreams = NULL; in configureStreams() local
163 newStreams = new Stream*[stream_config->num_streams]; in configureStreams()
175 newStreams[i] = reuseStream(astream); in configureStreams()
178 newStreams[i] = new Stream(mId, astream); in configureStreams()
181 if (newStreams[i] == NULL) { in configureStreams()
185 astream->priv = newStreams[i]; in configureStreams()
189 if (!isValidStreamSet(newStreams, stream_config->num_streams)) { in configureStreams()
195 setupStreams(newStreams, stream_config->num_streams); in configureStreams()
199 mStreams = newStreams; in configureStreams()
208 destroyStreams(newStreams, stream_config->num_streams); in configureStreams()
/hardware/libhardware/modules/usbcamera/
DCamera.cpp203 android::Vector<Stream *> newStreams; in configureStreams() local
233 newStreams.add(reuseStreamLocked(astream)); in configureStreams()
236 newStreams.add(new Stream(mId, astream)); in configureStreams()
239 if (newStreams[i] == NULL) { in configureStreams()
243 astream->priv = reinterpret_cast<void *>(newStreams[i]); in configureStreams()
247 if (!isValidStreamSetLocked(newStreams)) { in configureStreams()
253 setupStreamsLocked(newStreams); in configureStreams()
257 mStreams = newStreams; in configureStreams()
265 destroyStreamsLocked(newStreams); in configureStreams()