Home | History | Annotate | Download | only in device2

Lines Matching full:stream

247     sp<StreamAdapter> stream = new StreamAdapter(mHal2Device);
249 res = stream->connectToDevice(consumer, width, height, format, size);
251 ALOGE("%s: Camera %d: Unable to create stream (%d x %d, format %x):"
257 *id = stream->getId();
259 mStreams.push_back(stream);
278 ALOGE("%s: Camera %d: Output stream %d doesn't exist; can't create "
279 "reprocess stream from it!", __FUNCTION__, mId, outputId);
283 sp<ReprocessStreamAdapter> stream = new ReprocessStreamAdapter(mHal2Device);
285 res = stream->connectToDevice((*streamI));
287 ALOGE("%s: Camera %d: Unable to create reprocessing stream from "\
288 "stream %d: %s (%d)", __FUNCTION__, mId, outputId,
293 *id = stream->getId();
295 mReprocessStreams.push_back(stream);
314 ALOGE("%s: Camera %d: Stream %d does not exist",
340 ALOGE("%s: Camera %d: Stream %d does not exist",
357 ALOGE("%s: Unable to release stream %d from HAL device: "
367 ALOGE("%s: Camera %d: Unable to find stream %d to delete",
383 ALOGE("%s: Unable to release reprocess stream %d from "
394 ALOGE("%s: Camera %d: Unable to find stream %d to delete",
556 ALOGE("%s: Unable to push buffer to reprocess stream %d: %s (%d)",
565 ALOGE("%s: Camera %d: Unable to find reprocess stream %d",
822 result.append(" Stream slot: Empty\n");
825 result.appendFormat(" Stream slot: %d entries\n",
830 result = String8::format(" Stream slot buffer %d:\n", i);
999 ALOGE("%s: Null consumer passed to stream adapter", __FUNCTION__);
1003 ALOGV("%s: New stream parameters %d x %d, format 0x%x, size %d",
1012 // Allocate device-side stream interface
1022 ALOGE("%s: Device stream allocation failed: %s (%d)",
1027 ALOGV("%s: Allocated stream id %d, actual format 0x%x, "
1042 ALOGE("%s: Unable to connect to native window for stream %d",
1052 ALOGE("%s: Unable to configure usage %08x for stream %d",
1060 ALOGE("%s: Unable to configure stream scaling: %s (%d)",
1074 ALOGE("%s: Unable to configure compressed stream buffer geometry"
1075 " %d x %d, size %d for stream %d",
1083 ALOGE("%s: Unable to configure stream buffer geometry"
1084 " %d x %d, format 0x%x for stream %d",
1095 " buffer count for stream %d", __FUNCTION__, mId);
1111 ALOGE("%s: Unable to set buffer count for stream %d",
1125 "stream %d", __FUNCTION__, bufferIdx, mId);
1139 ALOGE("%s: Unable to register buffers with HAL device for stream %d",
1164 ALOGV("%s: Releasing stream %d (%d x %d, format %d)", __FUNCTION__, mId,
1169 ALOGE("%s: Unable to release stream %d",
1182 ALOGW("%s: While disconnecting stream %d from native window, the"
1186 ALOGE("%s: Unable to disconnect stream %d from native window (error %d %s)",
1200 ALOGE("%s: Cannot set transform on unconnected stream", __FUNCTION__);
1206 ALOGE("%s: Unable to configure stream transform to %x: %s (%d)",
1215 String8 result = String8::format(" Stream %d: %d x %d, format 0x%x\n",
1240 StreamAdapter* stream =
1242 if (stream->mState != ACTIVE) {
1243 ALOGE("%s: Called when in bad state: %d", __FUNCTION__, stream->mState);
1251 ALOGE("Stream %d dequeue: Error from native_window: %s (%d)", stream->mId,
1257 stream->mActiveBuffers++;
1259 ALOGVV("Stream %d dequeue: Buffer %p dequeued", stream->mId, (void*)(**buffer));
1267 StreamAdapter *stream =
1269 stream->mFrameCount++;
1270 ALOGVV("Stream %d enqueue: Frame %d (%p) captured at %lld ns",
1271 stream->mId, stream->mFrameCount, (void*)(*buffer), timestamp);
1272 int state = stream->mState;
1294 stream->mActiveBuffers--;
1295 stream->mLastTimestamp = timestamp;
1302 StreamAdapter *stream =
1304 ALOGVV("Stream %d cancel: Buffer %p",
1305 stream->mId, (void*)(*buffer));
1306 if (stream->mState != ACTIVE) {
1307 ALOGE("%s: Called when in bad state: %d", __FUNCTION__, stream->mState);
1320 stream->mActiveBuffers--;
1374 ALOGE("%s: Null base stream passed to reprocess stream adapter",
1384 ALOGV("%s: New reprocess stream parameters %d x %d, format 0x%x",
1387 // Allocate device-side stream interface
1394 ALOGE("%s: Device reprocess stream allocation failed: %s (%d)",
1399 ALOGV("%s: Allocated reprocess stream id %d based on stream %d",
1412 ALOGV("%s: Releasing stream %d", __FUNCTION__, mId);
1416 ALOGE("%s: Unable to release stream %d",
1442 ALOGV("%s: Pushing buffer %p to stream", __FUNCTION__, (void*)(*handle));
1455 String8::format(" Reprocess stream %d: %d x %d, fmt 0x%x\n",
1474 ReprocessStreamAdapter* stream =
1477 if (stream->mState != ACTIVE) {
1478 ALOGE("%s: Called when in bad state: %d", __FUNCTION__, stream->mState);
1482 if (stream->mQueue.empty()) {
1487 QueueEntry &entry = *(stream->mQueue.begin());
1491 stream->mInFlightQueue.push_back(entry);
1492 stream->mQueue.erase(stream->mQueue.begin());
1494 stream->mActiveBuffers++;
1496 ALOGV("Stream %d acquire: Buffer %p acquired", stream->mId,
1505 ReprocessStreamAdapter *stream =
1508 stream->mFrameCount++;
1509 ALOGV("Reprocess stream %d release: Frame %d (%p)",
1510 stream->mId, stream->mFrameCount, (void*)*buffer);
1511 int state = stream->mState;
1516 stream->mActiveBuffers--;
1519 for (s = stream->mInFlightQueue.begin(); s != stream->mInFlightQueue.end(); s++) {
1522 if (s == stream->mInFlightQueue.end()) {
1534 stream->mInFlightQueue.erase(s);