Lines Matching refs:newStream

1295         camera3_stream_t *newStream = streamList->streams[j];  in validateStreamDimensions()  local
1297 uint32_t rotatedHeight = newStream->height; in validateStreamDimensions()
1298 uint32_t rotatedWidth = newStream->width; in validateStreamDimensions()
1299 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) || in validateStreamDimensions()
1300 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) { in validateStreamDimensions()
1301 rotatedHeight = newStream->width; in validateStreamDimensions()
1302 rotatedWidth = newStream->height; in validateStreamDimensions()
1309 switch (newStream->format) { in validateStreamDimensions()
1313 if ((HAL_DATASPACE_DEPTH == newStream->data_space) && in validateStreamDimensions()
1314 (ANDROID_SCALER_AVAILABLE_FORMATS_RAW16 == newStream->format) && in validateStreamDimensions()
1316 if ((depthWidth == newStream->width) && in validateStreamDimensions()
1317 (depthHeight == newStream->height)) { in validateStreamDimensions()
1332 if ((newStream->data_space == HAL_DATASPACE_DEPTH) && in validateStreamDimensions()
1336 if ((depthSamplesCount == newStream->width) && in validateStreamDimensions()
1337 (1 == newStream->height)) { in validateStreamDimensions()
1358 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL in validateStreamDimensions()
1359 || newStream->stream_type == CAMERA3_STREAM_INPUT in validateStreamDimensions()
1360 || IS_USAGE_ZSL(newStream->usage)) { in validateStreamDimensions()
1392 rotatedWidth, rotatedHeight, newStream->format, in validateStreamDimensions()
1420 const camera3_stream_t *newStream = streamList->streams[j]; in validateUsageFlags() local
1422 if (newStream->format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED || in validateUsageFlags()
1423 (newStream->stream_type != CAMERA3_STREAM_OUTPUT && in validateUsageFlags()
1424 newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL)) { in validateUsageFlags()
1437 bool isVideo = IS_USAGE_VIDEO(newStream->usage); in validateUsageFlags()
1438 bool isPreview = IS_USAGE_PREVIEW(newStream->usage); in validateUsageFlags()
1439 bool isZSL = IS_USAGE_ZSL(newStream->usage); in validateUsageFlags()
1445 … CAM_STREAM_TYPE_VIDEO, newStream->width, newStream->height, forcePreviewUBWC, isType); in validateUsageFlags()
1447 … CAM_STREAM_TYPE_PREVIEW, newStream->width, newStream->height, forcePreviewUBWC, isType); in validateUsageFlags()
1449 … CAM_STREAM_TYPE_SNAPSHOT, newStream->width, newStream->height, forcePreviewUBWC, isType); in validateUsageFlags()
1491 const camera3_stream_t *newStream = streamList->streams[j]; in validateUsageFlagsForEis() local
1493 bool isVideo = IS_USAGE_VIDEO(newStream->usage); in validateUsageFlagsForEis()
1494 bool isPreview = IS_USAGE_PREVIEW(newStream->usage); in validateUsageFlagsForEis()
1931 camera3_stream_t *newStream = streamList->streams[i]; in validateStreamCombination() local
1934 i, newStream->stream_type, newStream->format, in validateStreamCombination()
1935 newStream->width, newStream->height, newStream->rotation, in validateStreamCombination()
1936 newStream->usage); in validateStreamCombination()
1937 if (newStream->stream_type == CAMERA3_STREAM_INPUT){ in validateStreamCombination()
1939 status->inputStream = newStream; in validateStreamCombination()
1942 if (IS_USAGE_ZSL(newStream->usage)) { in validateStreamCombination()
1947 zslStream = newStream; in validateStreamCombination()
1950 if ((newStream->format == HAL_PIXEL_FORMAT_BLOB) && in validateStreamCombination()
1951 (newStream->data_space != HAL_DATASPACE_DEPTH)) { in validateStreamCombination()
1953 jpegSize.width = newStream->width; in validateStreamCombination()
1954 jpegSize.height = newStream->height; in validateStreamCombination()
1955 if (newStream->width > VIDEO_4K_WIDTH || in validateStreamCombination()
1956 newStream->height > VIDEO_4K_HEIGHT) in validateStreamCombination()
1960 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) && in validateStreamCombination()
1961 (IS_USAGE_PREVIEW(newStream->usage) || IS_USAGE_VIDEO(newStream->usage))) { in validateStreamCombination()
1962 if (IS_USAGE_VIDEO(newStream->usage)) { in validateStreamCombination()
1967 if (status->videoWidth < newStream->width || in validateStreamCombination()
1968 status->videoHeight < newStream->height) { in validateStreamCombination()
1969 status->videoWidth = newStream->width; in validateStreamCombination()
1970 status->videoHeight = newStream->height; in validateStreamCombination()
1972 if ((VIDEO_4K_WIDTH <= newStream->width) && in validateStreamCombination()
1973 (VIDEO_4K_HEIGHT <= newStream->height)) { in validateStreamCombination()
1977 status->bEisSupportedSize &= (newStream->width <= maxEisWidth) && in validateStreamCombination()
1978 (newStream->height <= maxEisHeight); in validateStreamCombination()
1980 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT) { in validateStreamCombination()
1981 switch (newStream->format) { in validateStreamCombination()
1983 if (newStream->data_space == HAL_DATASPACE_DEPTH) { in validateStreamCombination()
1988 if (isOnEncoder(status->maxViewfinderSize, newStream->width, in validateStreamCombination()
1989 newStream->height)) { in validateStreamCombination()
1994 newStream->width); in validateStreamCombination()
1996 newStream->height);; in validateStreamCombination()
2009 if ((HAL_DATASPACE_DEPTH == newStream->data_space) && in validateStreamCombination()
2010 (HAL_PIXEL_FORMAT_RAW16 == newStream->format)) { in validateStreamCombination()
2016 if (isOnEncoder(status->maxViewfinderSize, newStream->width, in validateStreamCombination()
2017 newStream->height)) { in validateStreamCombination()
2018 if (newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL && in validateStreamCombination()
2019 !IS_USAGE_ZSL(newStream->usage)) { in validateStreamCombination()
2028 if (isOnEncoder(status->maxViewfinderSize, newStream->width, in validateStreamCombination()
2029 newStream->height)) { in validateStreamCombination()
2033 if (newStream->width <= VIDEO_4K_WIDTH && in validateStreamCombination()
2034 newStream->height <= VIDEO_4K_HEIGHT) { in validateStreamCombination()
2037 if (newStream->format == HAL_PIXEL_FORMAT_Y8) { in validateStreamCombination()
2042 status->largeYuv888Size.width = newStream->width; in validateStreamCombination()
2043 status->largeYuv888Size.height = newStream->height; in validateStreamCombination()
2047 LOGE("not a supported format 0x%x", newStream->format); in validateStreamCombination()
2293 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
2296 newStream->stream_type, newStream->format, in configureStreamsPerfLocked()
2297 newStream->width, newStream->height, newStream->rotation); in configureStreamsPerfLocked()
2302 if ((*it)->stream == newStream) { in configureStreamsPerfLocked()
2313 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
2323 stream_info->stream = newStream; in configureStreamsPerfLocked()
2330 if (IS_USAGE_ZSL(newStream->usage) in configureStreamsPerfLocked()
2331 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) { in configureStreamsPerfLocked()
2337 zslStream = newStream; in configureStreamsPerfLocked()
2341 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT in configureStreamsPerfLocked()
2342 && ((newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888 in configureStreamsPerfLocked()
2344 || (newStream->format == HAL_PIXEL_FORMAT_Y8 in configureStreamsPerfLocked()
2346 && streamStatus.inputStream->width == newStream->width in configureStreamsPerfLocked()
2347 && streamStatus.inputStream->height == newStream->height) { in configureStreamsPerfLocked()
2358 zslStream = newStream; in configureStreamsPerfLocked()
2455 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
2456 uint32_t stream_usage = newStream->usage; in configureStreamsPerfLocked()
2457 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT && in configureStreamsPerfLocked()
2458 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) { in configureStreamsPerfLocked()
2485 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
2486 uint32_t stream_usage = newStream->usage; in configureStreamsPerfLocked()
2487 … mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width; in configureStreamsPerfLocked()
2488 … mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height; in configureStreamsPerfLocked()
2493 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL in configureStreamsPerfLocked()
2494 || IS_USAGE_ZSL(newStream->usage)) && in configureStreamsPerfLocked()
2495 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){ in configureStreamsPerfLocked()
2498 if (isOnEncoder(streamStatus.maxViewfinderSize, newStream->width, newStream->height)) { in configureStreamsPerfLocked()
2510 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
2515 switch (newStream->format) { in configureStreamsPerfLocked()
2563 previewSize.width = (int32_t)newStream->width; in configureStreamsPerfLocked()
2564 previewSize.height = (int32_t)newStream->height; in configureStreamsPerfLocked()
2566 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) || in configureStreamsPerfLocked()
2567 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) { in configureStreamsPerfLocked()
2569 newStream->height; in configureStreamsPerfLocked()
2571 newStream->width; in configureStreamsPerfLocked()
2579 if (isOnEncoder(streamStatus.maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
2580 newStream->height)) { in configureStreamsPerfLocked()
2609 isOnEncoder(streamStatus.maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
2610 newStream->height)) { in configureStreamsPerfLocked()
2648 if ((HAL_DATASPACE_DEPTH == newStream->data_space) && in configureStreamsPerfLocked()
2649 (HAL_PIXEL_FORMAT_RAW16 == newStream->format)) { in configureStreamsPerfLocked()
2672 if (newStream->priv == NULL) { in configureStreamsPerfLocked()
2674 switch (newStream->stream_type) { in configureStreamsPerfLocked()
2676 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ; in configureStreamsPerfLocked()
2677 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's in configureStreamsPerfLocked()
2680 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ | in configureStreamsPerfLocked()
2686 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) in configureStreamsPerfLocked()
2687 newStream->usage |= in configureStreamsPerfLocked()
2691 else if (IS_USAGE_ZSL(newStream->usage)) in configureStreamsPerfLocked()
2695 else if (newStream == zslStream in configureStreamsPerfLocked()
2696 || (newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888 || in configureStreamsPerfLocked()
2697 newStream->format == HAL_PIXEL_FORMAT_Y8)) { in configureStreamsPerfLocked()
2698 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL; in configureStreamsPerfLocked()
2700 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE; in configureStreamsPerfLocked()
2703 LOGE("Invalid stream_type %d", newStream->stream_type); in configureStreamsPerfLocked()
2708 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT || in configureStreamsPerfLocked()
2709 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) { in configureStreamsPerfLocked()
2711 switch (newStream->format) { in configureStreamsPerfLocked()
2713 if ((newStream->usage & in configureStreamsPerfLocked()
2722 newStream, in configureStreamsPerfLocked()
2735 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS; in configureStreamsPerfLocked()
2736 newStream->priv = channel; in configureStreamsPerfLocked()
2745 mDummyBatchStream = *newStream; in configureStreamsPerfLocked()
2762 newStream, in configureStreamsPerfLocked()
2787 newStream->max_buffers = channel->getNumBuffers(); in configureStreamsPerfLocked()
2788 newStream->priv = channel; in configureStreamsPerfLocked()
2798 newStream, in configureStreamsPerfLocked()
2808 newStream->max_buffers = channel->getNumBuffers(); in configureStreamsPerfLocked()
2809 newStream->priv = channel; in configureStreamsPerfLocked()
2815 bool isRAW16 = ((newStream->format == HAL_PIXEL_FORMAT_RAW16) && in configureStreamsPerfLocked()
2816 (HAL_DATASPACE_DEPTH != newStream->data_space)) in configureStreamsPerfLocked()
2822 this, newStream, in configureStreamsPerfLocked()
2830 newStream->max_buffers = mRawChannel->getNumBuffers(); in configureStreamsPerfLocked()
2831 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel; in configureStreamsPerfLocked()
2835 if (newStream->data_space == HAL_DATASPACE_DEPTH) { in configureStreamsPerfLocked()
2839 0, this, MAX_INFLIGHT_REQUESTS, newStream, in configureStreamsPerfLocked()
2846 newStream->priv = mDepthChannel; in configureStreamsPerfLocked()
2847 newStream->max_buffers = MAX_INFLIGHT_REQUESTS; in configureStreamsPerfLocked()
2855 setBufferErrorStatus, &padding_info, this, newStream, in configureStreamsPerfLocked()
2864 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel; in configureStreamsPerfLocked()
2865 newStream->max_buffers = mPictureChannel->getNumBuffers(); in configureStreamsPerfLocked()
2873 LOGE("not a supported format 0x%x", newStream->format); in configureStreamsPerfLocked()
2877 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
2878 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS; in configureStreamsPerfLocked()
2885 QCamera3Channel *channel = (QCamera3Channel*) newStream->priv; in configureStreamsPerfLocked()
2894 newStream->width, newStream->height, forcePreviewUBWC, isType); in configureStreamsPerfLocked()
2896 newStream->usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; in configureStreamsPerfLocked()
2902 if ((*it)->stream == newStream) { in configureStreamsPerfLocked()
2903 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv; in configureStreamsPerfLocked()
2916 if ((newStream->stream_type != CAMERA3_STREAM_INPUT) && in configureStreamsPerfLocked()
2917 !((newStream->data_space == HAL_DATASPACE_DEPTH) && in configureStreamsPerfLocked()
2918 (newStream->format == HAL_PIXEL_FORMAT_BLOB))) { in configureStreamsPerfLocked()
14883 camera3_stream_t *newStream = streamList->streams[j]; in validateStreamRotations() local
14885 switch(newStream->rotation) { in validateStreamRotations()
14895 newStream->rotation, newStream->stream_type, in validateStreamRotations()
14896 newStream->format); in validateStreamRotations()
14900 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0); in validateStreamRotations()
14901 bool isImplDef = (newStream->format == in validateStreamRotations()
14903 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL && in validateStreamRotations()
14909 newStream->rotation, newStream->stream_type, in validateStreamRotations()
14910 newStream->format); in validateStreamRotations()