Lines Matching full:stream
25 #include "Stream.h"
301 Stream **newStreams = NULL;
307 ALOGE("%s:%d: NULL stream configuration array", __func__, mId);
311 ALOGE("%s:%d: Empty stream configuration array", __func__, mId);
315 // Create new stream array
316 newStreams = new Stream*[stream_config->num_streams];
325 // Fill new stream array with reused streams and new streams
329 ALOGV("%s:%d: Reusing stream %d", __func__, mId, i);
332 ALOGV("%s:%d: Creating new stream %d", __func__, mId, i);
333 newStreams[i] = new Stream(mId, astream);
337 ALOGE("%s:%d: Error processing stream %d", __func__, mId, i);
345 ALOGE("%s:%d: Invalid stream set", __func__, mId);
352 // Destroy all old streams and replace stream array with new one
370 void Camera::destroyStreams(Stream **streams, int count)
382 Stream *Camera::reuseStream(camera3_stream_t *astream)
384 Stream *priv = reinterpret_cast<Stream*>(astream->priv);
385 // Verify the re-used stream's parameters match
387 ALOGE("%s:%d: Mismatched parameter in reused stream", __func__, mId);
390 // Mark stream to be reused
395 bool Camera::isValidStreamSet(Stream **streams, int count)
401 ALOGE("%s:%d: NULL stream configuration streams", __func__, mId);
405 ALOGE("%s:%d: Zero count stream configuration streams", __func__, mId);
408 // Validate there is at most one input stream and at least one output stream
410 // A stream may be both input and output (bidirectional)
419 ALOGE("%s:%d: Stream config must have >= 1 output", __func__, mId);
423 ALOGE("%s:%d: Stream config must have <= 1 input", __func__, mId);
430 void Camera::setupStreams(Stream **streams, int count)
434 * streams, and then produce usage and max_buffer values for each stream.
435 * Note, the stream array has been checked before this point for ALL invalid
436 * conditions, so it must find a successful configuration for this stream
464 if (buf_set->stream == NULL) {
465 ALOGE("%s:%d: NULL stream handle", __func__, mId);
468 Stream *stream = reinterpret_cast<Stream*>(buf_set->stream->priv);
469 return stream->registerBuffers(buf_set);
598 out->stream = in->stream;