Lines Matching refs:newStream
818 camera3_stream_t *newStream = streamList->streams[j]; in validateStreamDimensions() local
820 uint32_t rotatedHeight = newStream->height; in validateStreamDimensions()
821 uint32_t rotatedWidth = newStream->width; in validateStreamDimensions()
822 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) || in validateStreamDimensions()
823 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) { in validateStreamDimensions()
824 rotatedHeight = newStream->width; in validateStreamDimensions()
825 rotatedWidth = newStream->height; in validateStreamDimensions()
832 switch (newStream->format) { in validateStreamDimensions()
872 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL in validateStreamDimensions()
873 || newStream->stream_type == CAMERA3_STREAM_INPUT in validateStreamDimensions()
874 || IS_USAGE_ZSL(newStream->usage)) { in validateStreamDimensions()
907 newStream->format); in validateStreamDimensions()
1231 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
1234 __func__, i, newStream->stream_type, newStream->format, in configureStreamsPerfLocked()
1235 newStream->width, newStream->height, newStream->rotation, in configureStreamsPerfLocked()
1236 newStream->usage); in configureStreamsPerfLocked()
1237 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL || in configureStreamsPerfLocked()
1238 newStream->stream_type == CAMERA3_STREAM_INPUT){ in configureStreamsPerfLocked()
1241 if (newStream->stream_type == CAMERA3_STREAM_INPUT){ in configureStreamsPerfLocked()
1242 inputStream = newStream; in configureStreamsPerfLocked()
1245 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) { in configureStreamsPerfLocked()
1247 jpegSize.width = newStream->width; in configureStreamsPerfLocked()
1248 jpegSize.height = newStream->height; in configureStreamsPerfLocked()
1249 if (newStream->width > VIDEO_4K_WIDTH || in configureStreamsPerfLocked()
1250 newStream->height > VIDEO_4K_HEIGHT) in configureStreamsPerfLocked()
1254 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) && in configureStreamsPerfLocked()
1255 (newStream->usage & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER)) { in configureStreamsPerfLocked()
1257 videoWidth = newStream->width; in configureStreamsPerfLocked()
1258 videoHeight = newStream->height; in configureStreamsPerfLocked()
1259 if ((VIDEO_4K_WIDTH <= newStream->width) && in configureStreamsPerfLocked()
1260 (VIDEO_4K_HEIGHT <= newStream->height)) { in configureStreamsPerfLocked()
1263 m_bEisSupportedSize = (newStream->width <= maxEisWidth) && in configureStreamsPerfLocked()
1264 (newStream->height <= maxEisHeight); in configureStreamsPerfLocked()
1266 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL || in configureStreamsPerfLocked()
1267 newStream->stream_type == CAMERA3_STREAM_OUTPUT) { in configureStreamsPerfLocked()
1268 switch (newStream->format) { in configureStreamsPerfLocked()
1271 if (isOnEncoder(maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
1272 newStream->height)) { in configureStreamsPerfLocked()
1285 if (isOnEncoder(maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
1286 newStream->height)) { in configureStreamsPerfLocked()
1287 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL || in configureStreamsPerfLocked()
1288 IS_USAGE_ZSL(newStream->usage)) { in configureStreamsPerfLocked()
1298 if (isOnEncoder(maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
1299 newStream->height)) { in configureStreamsPerfLocked()
1303 if (newStream->width <= VIDEO_4K_WIDTH && in configureStreamsPerfLocked()
1304 newStream->height <= VIDEO_4K_HEIGHT) { in configureStreamsPerfLocked()
1311 largeYuv888Size.width = newStream->width; in configureStreamsPerfLocked()
1312 largeYuv888Size.height = newStream->height; in configureStreamsPerfLocked()
1317 if (isOnEncoder(maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
1318 newStream->height)) { in configureStreamsPerfLocked()
1415 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
1418 __func__, newStream->stream_type, newStream->format, in configureStreamsPerfLocked()
1419 newStream->width, newStream->height, newStream->rotation); in configureStreamsPerfLocked()
1424 if ((*it)->stream == newStream) { in configureStreamsPerfLocked()
1435 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
1445 stream_info->stream = newStream; in configureStreamsPerfLocked()
1451 if (IS_USAGE_ZSL(newStream->usage) in configureStreamsPerfLocked()
1452 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) { in configureStreamsPerfLocked()
1458 zslStream = newStream; in configureStreamsPerfLocked()
1462 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT in configureStreamsPerfLocked()
1463 && newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888 in configureStreamsPerfLocked()
1465 && inputStream->width == newStream->width in configureStreamsPerfLocked()
1466 && inputStream->height == newStream->height) { in configureStreamsPerfLocked()
1477 zslStream = newStream; in configureStreamsPerfLocked()
1480 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) { in configureStreamsPerfLocked()
1481 jpegStream = newStream; in configureStreamsPerfLocked()
1561 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
1562 uint32_t stream_usage = newStream->usage; in configureStreamsPerfLocked()
1563 … mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width; in configureStreamsPerfLocked()
1564 … mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height; in configureStreamsPerfLocked()
1565 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL in configureStreamsPerfLocked()
1566 || IS_USAGE_ZSL(newStream->usage)) && in configureStreamsPerfLocked()
1567 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){ in configureStreamsPerfLocked()
1577 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
1581 switch (newStream->format) { in configureStreamsPerfLocked()
1604 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) || in configureStreamsPerfLocked()
1605 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) { in configureStreamsPerfLocked()
1607 newStream->height; in configureStreamsPerfLocked()
1609 newStream->width; in configureStreamsPerfLocked()
1615 if (isOnEncoder(maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
1616 newStream->height)) { in configureStreamsPerfLocked()
1635 isOnEncoder(maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
1636 newStream->height)) { in configureStreamsPerfLocked()
1679 if (newStream->priv == NULL) { in configureStreamsPerfLocked()
1681 switch (newStream->stream_type) { in configureStreamsPerfLocked()
1683 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ; in configureStreamsPerfLocked()
1684 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's in configureStreamsPerfLocked()
1687 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ | in configureStreamsPerfLocked()
1693 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) in configureStreamsPerfLocked()
1694 newStream->usage |= in configureStreamsPerfLocked()
1698 else if (IS_USAGE_ZSL(newStream->usage)) in configureStreamsPerfLocked()
1700 else if (newStream == zslStream in configureStreamsPerfLocked()
1701 || newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888) { in configureStreamsPerfLocked()
1702 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL; in configureStreamsPerfLocked()
1704 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE; in configureStreamsPerfLocked()
1707 ALOGE("%s: Invalid stream_type %d", __func__, newStream->stream_type); in configureStreamsPerfLocked()
1711 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT || in configureStreamsPerfLocked()
1712 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) { in configureStreamsPerfLocked()
1714 switch (newStream->format) { in configureStreamsPerfLocked()
1716 if ((newStream->usage & in configureStreamsPerfLocked()
1725 newStream, in configureStreamsPerfLocked()
1738 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS; in configureStreamsPerfLocked()
1739 newStream->priv = channel; in configureStreamsPerfLocked()
1748 mDummyBatchStream = *newStream; in configureStreamsPerfLocked()
1754 newStream, in configureStreamsPerfLocked()
1765 newStream->max_buffers = channel->getNumBuffers(); in configureStreamsPerfLocked()
1766 newStream->priv = channel; in configureStreamsPerfLocked()
1775 newStream, in configureStreamsPerfLocked()
1785 newStream->max_buffers = channel->getNumBuffers(); in configureStreamsPerfLocked()
1786 newStream->priv = channel; in configureStreamsPerfLocked()
1796 this, newStream, CAM_QCOM_FEATURE_NONE, in configureStreamsPerfLocked()
1798 (newStream->format == HAL_PIXEL_FORMAT_RAW16)); in configureStreamsPerfLocked()
1804 newStream->max_buffers = mRawChannel->getNumBuffers(); in configureStreamsPerfLocked()
1805 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel; in configureStreamsPerfLocked()
1814 &gCamCapability[mCameraId]->padding_info, this, newStream, in configureStreamsPerfLocked()
1823 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel; in configureStreamsPerfLocked()
1824 newStream->max_buffers = mPictureChannel->getNumBuffers(); in configureStreamsPerfLocked()
1831 ALOGE("%s: not a supported format 0x%x", __func__, newStream->format); in configureStreamsPerfLocked()
1834 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
1835 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS; in configureStreamsPerfLocked()
1843 if ((*it)->stream == newStream) { in configureStreamsPerfLocked()
1844 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv; in configureStreamsPerfLocked()
1856 if (newStream->stream_type != CAMERA3_STREAM_INPUT) in configureStreamsPerfLocked()
9293 camera3_stream_t *newStream = streamList->streams[j]; in validateStreamRotations() local
9295 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0); in validateStreamRotations()
9296 bool isImplDef = (newStream->format == in validateStreamRotations()
9298 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL && in validateStreamRotations()
9304 newStream->rotation, newStream->stream_type, in validateStreamRotations()
9305 newStream->format); in validateStreamRotations()