Lines Matching refs:newStream

1294         camera3_stream_t *newStream = streamList->streams[j];  in validateStreamDimensions()  local
1296 uint32_t rotatedHeight = newStream->height; in validateStreamDimensions()
1297 uint32_t rotatedWidth = newStream->width; in validateStreamDimensions()
1298 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) || in validateStreamDimensions()
1299 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) { in validateStreamDimensions()
1300 rotatedHeight = newStream->width; in validateStreamDimensions()
1301 rotatedWidth = newStream->height; in validateStreamDimensions()
1308 switch (newStream->format) { in validateStreamDimensions()
1312 if ((HAL_DATASPACE_DEPTH == newStream->data_space) && in validateStreamDimensions()
1313 (ANDROID_SCALER_AVAILABLE_FORMATS_RAW16 == newStream->format) && in validateStreamDimensions()
1315 if ((depthWidth == newStream->width) && in validateStreamDimensions()
1316 (depthHeight == newStream->height)) { in validateStreamDimensions()
1331 if ((newStream->data_space == HAL_DATASPACE_DEPTH) && in validateStreamDimensions()
1335 if ((depthSamplesCount == newStream->width) && in validateStreamDimensions()
1336 (1 == newStream->height)) { in validateStreamDimensions()
1357 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL in validateStreamDimensions()
1358 || newStream->stream_type == CAMERA3_STREAM_INPUT in validateStreamDimensions()
1359 || IS_USAGE_ZSL(newStream->usage)) { in validateStreamDimensions()
1391 rotatedWidth, rotatedHeight, newStream->format, in validateStreamDimensions()
1419 const camera3_stream_t *newStream = streamList->streams[j]; in validateUsageFlags() local
1421 if (newStream->format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED || in validateUsageFlags()
1422 (newStream->stream_type != CAMERA3_STREAM_OUTPUT && in validateUsageFlags()
1423 newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL)) { in validateUsageFlags()
1436 bool isVideo = IS_USAGE_VIDEO(newStream->usage); in validateUsageFlags()
1437 bool isPreview = IS_USAGE_PREVIEW(newStream->usage); in validateUsageFlags()
1438 bool isZSL = IS_USAGE_ZSL(newStream->usage); in validateUsageFlags()
1444 … CAM_STREAM_TYPE_VIDEO, newStream->width, newStream->height, forcePreviewUBWC, isType); in validateUsageFlags()
1446 … CAM_STREAM_TYPE_PREVIEW, newStream->width, newStream->height, forcePreviewUBWC, isType); in validateUsageFlags()
1448 … CAM_STREAM_TYPE_SNAPSHOT, newStream->width, newStream->height, forcePreviewUBWC, isType); in validateUsageFlags()
1490 const camera3_stream_t *newStream = streamList->streams[j]; in validateUsageFlagsForEis() local
1492 bool isVideo = IS_USAGE_VIDEO(newStream->usage); in validateUsageFlagsForEis()
1493 bool isPreview = IS_USAGE_PREVIEW(newStream->usage); in validateUsageFlagsForEis()
1930 camera3_stream_t *newStream = streamList->streams[i]; in validateStreamCombination() local
1933 i, newStream->stream_type, newStream->format, in validateStreamCombination()
1934 newStream->width, newStream->height, newStream->rotation, in validateStreamCombination()
1935 newStream->usage); in validateStreamCombination()
1936 if (newStream->stream_type == CAMERA3_STREAM_INPUT){ in validateStreamCombination()
1938 status->inputStream = newStream; in validateStreamCombination()
1941 if (IS_USAGE_ZSL(newStream->usage)) { in validateStreamCombination()
1946 zslStream = newStream; in validateStreamCombination()
1949 if ((newStream->format == HAL_PIXEL_FORMAT_BLOB) && in validateStreamCombination()
1950 (newStream->data_space != HAL_DATASPACE_DEPTH)) { in validateStreamCombination()
1952 jpegSize.width = newStream->width; in validateStreamCombination()
1953 jpegSize.height = newStream->height; in validateStreamCombination()
1954 if (newStream->width > VIDEO_4K_WIDTH || in validateStreamCombination()
1955 newStream->height > VIDEO_4K_HEIGHT) in validateStreamCombination()
1959 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) && in validateStreamCombination()
1960 (IS_USAGE_PREVIEW(newStream->usage) || IS_USAGE_VIDEO(newStream->usage))) { in validateStreamCombination()
1961 if (IS_USAGE_VIDEO(newStream->usage)) { in validateStreamCombination()
1966 if (status->videoWidth < newStream->width || in validateStreamCombination()
1967 status->videoHeight < newStream->height) { in validateStreamCombination()
1968 status->videoWidth = newStream->width; in validateStreamCombination()
1969 status->videoHeight = newStream->height; in validateStreamCombination()
1971 if ((VIDEO_4K_WIDTH <= newStream->width) && in validateStreamCombination()
1972 (VIDEO_4K_HEIGHT <= newStream->height)) { in validateStreamCombination()
1976 status->bEisSupportedSize &= (newStream->width <= maxEisWidth) && in validateStreamCombination()
1977 (newStream->height <= maxEisHeight); in validateStreamCombination()
1979 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT) { in validateStreamCombination()
1980 switch (newStream->format) { in validateStreamCombination()
1982 if (newStream->data_space == HAL_DATASPACE_DEPTH) { in validateStreamCombination()
1987 if (isOnEncoder(status->maxViewfinderSize, newStream->width, in validateStreamCombination()
1988 newStream->height)) { in validateStreamCombination()
1993 newStream->width); in validateStreamCombination()
1995 newStream->height);; in validateStreamCombination()
2008 if ((HAL_DATASPACE_DEPTH == newStream->data_space) && in validateStreamCombination()
2009 (HAL_PIXEL_FORMAT_RAW16 == newStream->format)) { in validateStreamCombination()
2015 if (isOnEncoder(status->maxViewfinderSize, newStream->width, in validateStreamCombination()
2016 newStream->height)) { in validateStreamCombination()
2017 if (newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL && in validateStreamCombination()
2018 !IS_USAGE_ZSL(newStream->usage)) { in validateStreamCombination()
2027 if (isOnEncoder(status->maxViewfinderSize, newStream->width, in validateStreamCombination()
2028 newStream->height)) { in validateStreamCombination()
2032 if (newStream->width <= VIDEO_4K_WIDTH && in validateStreamCombination()
2033 newStream->height <= VIDEO_4K_HEIGHT) { in validateStreamCombination()
2036 if (newStream->format == HAL_PIXEL_FORMAT_Y8) { in validateStreamCombination()
2041 status->largeYuv888Size.width = newStream->width; in validateStreamCombination()
2042 status->largeYuv888Size.height = newStream->height; in validateStreamCombination()
2046 LOGE("not a supported format 0x%x", newStream->format); in validateStreamCombination()
2292 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
2295 newStream->stream_type, newStream->format, in configureStreamsPerfLocked()
2296 newStream->width, newStream->height, newStream->rotation); in configureStreamsPerfLocked()
2301 if ((*it)->stream == newStream) { in configureStreamsPerfLocked()
2312 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
2322 stream_info->stream = newStream; in configureStreamsPerfLocked()
2329 if (IS_USAGE_ZSL(newStream->usage) in configureStreamsPerfLocked()
2330 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) { in configureStreamsPerfLocked()
2336 zslStream = newStream; in configureStreamsPerfLocked()
2340 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT in configureStreamsPerfLocked()
2341 && ((newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888 in configureStreamsPerfLocked()
2343 || (newStream->format == HAL_PIXEL_FORMAT_Y8 in configureStreamsPerfLocked()
2345 && streamStatus.inputStream->width == newStream->width in configureStreamsPerfLocked()
2346 && streamStatus.inputStream->height == newStream->height) { in configureStreamsPerfLocked()
2357 zslStream = newStream; in configureStreamsPerfLocked()
2454 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
2455 uint32_t stream_usage = newStream->usage; in configureStreamsPerfLocked()
2456 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT && in configureStreamsPerfLocked()
2457 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) { in configureStreamsPerfLocked()
2484 camera3_stream_t *newStream = streamList->streams[i]; in configureStreamsPerfLocked() local
2485 uint32_t stream_usage = newStream->usage; in configureStreamsPerfLocked()
2486 … mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width; in configureStreamsPerfLocked()
2487 … mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height; in configureStreamsPerfLocked()
2492 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL in configureStreamsPerfLocked()
2493 || IS_USAGE_ZSL(newStream->usage)) && in configureStreamsPerfLocked()
2494 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){ in configureStreamsPerfLocked()
2497 if (isOnEncoder(streamStatus.maxViewfinderSize, newStream->width, newStream->height)) { in configureStreamsPerfLocked()
2509 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
2514 switch (newStream->format) { in configureStreamsPerfLocked()
2562 previewSize.width = (int32_t)newStream->width; in configureStreamsPerfLocked()
2563 previewSize.height = (int32_t)newStream->height; in configureStreamsPerfLocked()
2565 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) || in configureStreamsPerfLocked()
2566 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) { in configureStreamsPerfLocked()
2568 newStream->height; in configureStreamsPerfLocked()
2570 newStream->width; in configureStreamsPerfLocked()
2578 if (isOnEncoder(streamStatus.maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
2579 newStream->height)) { in configureStreamsPerfLocked()
2608 isOnEncoder(streamStatus.maxViewfinderSize, newStream->width, in configureStreamsPerfLocked()
2609 newStream->height)) { in configureStreamsPerfLocked()
2647 if ((HAL_DATASPACE_DEPTH == newStream->data_space) && in configureStreamsPerfLocked()
2648 (HAL_PIXEL_FORMAT_RAW16 == newStream->format)) { in configureStreamsPerfLocked()
2671 if (newStream->priv == NULL) { in configureStreamsPerfLocked()
2673 switch (newStream->stream_type) { in configureStreamsPerfLocked()
2675 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ; in configureStreamsPerfLocked()
2676 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's in configureStreamsPerfLocked()
2679 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ | in configureStreamsPerfLocked()
2685 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) in configureStreamsPerfLocked()
2686 newStream->usage |= in configureStreamsPerfLocked()
2690 else if (IS_USAGE_ZSL(newStream->usage)) in configureStreamsPerfLocked()
2694 else if (newStream == zslStream in configureStreamsPerfLocked()
2695 || (newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888 || in configureStreamsPerfLocked()
2696 newStream->format == HAL_PIXEL_FORMAT_Y8)) { in configureStreamsPerfLocked()
2697 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL; in configureStreamsPerfLocked()
2699 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE; in configureStreamsPerfLocked()
2702 LOGE("Invalid stream_type %d", newStream->stream_type); in configureStreamsPerfLocked()
2707 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT || in configureStreamsPerfLocked()
2708 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) { in configureStreamsPerfLocked()
2710 switch (newStream->format) { in configureStreamsPerfLocked()
2712 if ((newStream->usage & in configureStreamsPerfLocked()
2721 newStream, in configureStreamsPerfLocked()
2734 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS; in configureStreamsPerfLocked()
2735 newStream->priv = channel; in configureStreamsPerfLocked()
2744 mDummyBatchStream = *newStream; in configureStreamsPerfLocked()
2761 newStream, in configureStreamsPerfLocked()
2786 newStream->max_buffers = channel->getNumBuffers(); in configureStreamsPerfLocked()
2787 newStream->priv = channel; in configureStreamsPerfLocked()
2797 newStream, in configureStreamsPerfLocked()
2807 newStream->max_buffers = channel->getNumBuffers(); in configureStreamsPerfLocked()
2808 newStream->priv = channel; in configureStreamsPerfLocked()
2814 bool isRAW16 = ((newStream->format == HAL_PIXEL_FORMAT_RAW16) && in configureStreamsPerfLocked()
2815 (HAL_DATASPACE_DEPTH != newStream->data_space)) in configureStreamsPerfLocked()
2821 this, newStream, in configureStreamsPerfLocked()
2829 newStream->max_buffers = mRawChannel->getNumBuffers(); in configureStreamsPerfLocked()
2830 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel; in configureStreamsPerfLocked()
2834 if (newStream->data_space == HAL_DATASPACE_DEPTH) { in configureStreamsPerfLocked()
2838 0, this, MAX_INFLIGHT_REQUESTS, newStream, in configureStreamsPerfLocked()
2845 newStream->priv = mDepthChannel; in configureStreamsPerfLocked()
2846 newStream->max_buffers = MAX_INFLIGHT_REQUESTS; in configureStreamsPerfLocked()
2854 setBufferErrorStatus, &padding_info, this, newStream, in configureStreamsPerfLocked()
2863 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel; in configureStreamsPerfLocked()
2864 newStream->max_buffers = mPictureChannel->getNumBuffers(); in configureStreamsPerfLocked()
2872 LOGE("not a supported format 0x%x", newStream->format); in configureStreamsPerfLocked()
2876 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) { in configureStreamsPerfLocked()
2877 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS; in configureStreamsPerfLocked()
2884 QCamera3Channel *channel = (QCamera3Channel*) newStream->priv; in configureStreamsPerfLocked()
2893 newStream->width, newStream->height, forcePreviewUBWC, isType); in configureStreamsPerfLocked()
2895 newStream->usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; in configureStreamsPerfLocked()
2901 if ((*it)->stream == newStream) { in configureStreamsPerfLocked()
2902 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv; in configureStreamsPerfLocked()
2915 if ((newStream->stream_type != CAMERA3_STREAM_INPUT) && in configureStreamsPerfLocked()
2916 !((newStream->data_space == HAL_DATASPACE_DEPTH) && in configureStreamsPerfLocked()
2917 (newStream->format == HAL_PIXEL_FORMAT_BLOB))) { in configureStreamsPerfLocked()
14825 camera3_stream_t *newStream = streamList->streams[j]; in validateStreamRotations() local
14827 switch(newStream->rotation) { in validateStreamRotations()
14837 newStream->rotation, newStream->stream_type, in validateStreamRotations()
14838 newStream->format); in validateStreamRotations()
14842 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0); in validateStreamRotations()
14843 bool isImplDef = (newStream->format == in validateStreamRotations()
14845 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL && in validateStreamRotations()
14851 newStream->rotation, newStream->stream_type, in validateStreamRotations()
14852 newStream->format); in validateStreamRotations()