Lines Matching refs:newStream

600         camera3_stream_t *newStream = streamList->streams[j];  in validateStreamDimensions()  local
606 switch (newStream->format) { in validateStreamDimensions()
613 == (int32_t) newStream->width in validateStreamDimensions()
615 == (int32_t) newStream->height) { in validateStreamDimensions()
636 if ((int32_t)(newStream->width) == available_jpeg_sizes[i*2] && in validateStreamDimensions()
637 (int32_t)(newStream->height) == available_jpeg_sizes[i*2+1]) { in validateStreamDimensions()
649 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) { in validateStreamDimensions()
650 if ((int32_t)(newStream->width) == in validateStreamDimensions()
652 && (int32_t)(newStream->height) == in validateStreamDimensions()
667 if ((int32_t)(newStream->width) == in validateStreamDimensions()
669 && (int32_t)(newStream->height) == in validateStreamDimensions()
681 "type:%d", __func__, newStream->width, newStream->height, in validateStreamDimensions()
682 newStream->format); in validateStreamDimensions()
797 camera3_stream_t *newStream = streamList->streams[i]; in configureStreams() local
799 __func__, i, newStream->stream_type, newStream->format, in configureStreams()
800 newStream->width, newStream->height); in configureStreams()
801 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL && in configureStreams()
802 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){ in configureStreams()
805 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) { in configureStreams()
806 if (newStream->width > VIDEO_4K_WIDTH || in configureStreams()
807 newStream->height > VIDEO_4K_HEIGHT) in configureStreams()
811 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) && in configureStreams()
812 (newStream->usage & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER)) { in configureStreams()
815 if ((VIDEO_4K_WIDTH <= newStream->width) && in configureStreams()
816 (VIDEO_4K_HEIGHT <= newStream->height)) { in configureStreams()
817 videoWidth = newStream->width; in configureStreams()
818 videoHeight = newStream->height; in configureStreams()
822 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL || in configureStreams()
823 newStream->stream_type == CAMERA3_STREAM_OUTPUT) { in configureStreams()
824 switch (newStream->format) { in configureStreams()
827 if (newStream->width > (uint32_t)maxViewfinderSize.width || in configureStreams()
828 newStream->height > (uint32_t)maxViewfinderSize.height) { in configureStreams()
840 if (newStream->width > (uint32_t)maxViewfinderSize.width || in configureStreams()
841 newStream->height > (uint32_t)maxViewfinderSize.height) { in configureStreams()
842 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) { in configureStreams()
853 if (newStream->width > (uint32_t)maxViewfinderSize.width || in configureStreams()
854 newStream->height > (uint32_t)maxViewfinderSize.height) { in configureStreams()
909 camera3_stream_t *newStream = streamList->streams[i]; in configureStreams() local
911 __func__, newStream->stream_type, newStream->format, in configureStreams()
912 newStream->width, newStream->height); in configureStreams()
917 if ((*it)->stream == newStream) { in configureStreams()
931 stream_info->stream = newStream; in configureStreams()
936 if (newStream->stream_type == CAMERA3_STREAM_INPUT in configureStreams()
937 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) { in configureStreams()
943 inputStream = newStream; in configureStreams()
945 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) { in configureStreams()
946 jpegStream = newStream; in configureStreams()
998 camera3_stream_t *newStream = streamList->streams[i]; in configureStreams() local
999 uint32_t stream_usage = newStream->usage; in configureStreams()
1000 stream_config_info.stream_sizes[i].width = newStream->width; in configureStreams()
1001 stream_config_info.stream_sizes[i].height = newStream->height; in configureStreams()
1002 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL && in configureStreams()
1003 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED && jpegStream){ in configureStreams()
1011 switch (newStream->format) { in configureStreams()
1032 (newStream->width > (uint32_t)maxViewfinderSize.width || in configureStreams()
1033 newStream->height > (uint32_t)maxViewfinderSize.height)) { in configureStreams()
1056 if (newStream->priv == NULL) { in configureStreams()
1058 switch (newStream->stream_type) { in configureStreams()
1060 newStream->usage = GRALLOC_USAGE_HW_CAMERA_READ; in configureStreams()
1063 newStream->usage = GRALLOC_USAGE_HW_CAMERA_READ | in configureStreams()
1069 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) in configureStreams()
1070 newStream->usage = in configureStreams()
1075 newStream->usage = GRALLOC_USAGE_HW_CAMERA_WRITE; in configureStreams()
1078 ALOGE("%s: Invalid stream_type %d", __func__, newStream->stream_type); in configureStreams()
1082 if (newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED && in configureStreams()
1083 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL && in configureStreams()
1086 newStream->max_buffers = QCamera3RegularChannel::kMaxBuffers; in configureStreams()
1091 newStream, in configureStreams()
1100 newStream->priv = channel; in configureStreams()
1101 } else if (newStream->stream_type == CAMERA3_STREAM_OUTPUT) { in configureStreams()
1103 switch (newStream->format) { in configureStreams()
1106 newStream->max_buffers = QCamera3RegularChannel::kMaxBuffers; in configureStreams()
1111 newStream, in configureStreams()
1120 newStream->priv = channel; in configureStreams()
1125 newStream->max_buffers = QCamera3RawChannel::kMaxBuffers; in configureStreams()
1130 this, newStream, CAM_QCOM_FEATURE_NONE, in configureStreams()
1131 (newStream->format == HAL_PIXEL_FORMAT_RAW16)); in configureStreams()
1138 newStream->priv = (QCamera3Channel*)mRawChannel; in configureStreams()
1141 newStream->max_buffers = QCamera3PicChannel::kMaxBuffers; in configureStreams()
1144 &gCamCapability[mCameraId]->padding_info, this, newStream, in configureStreams()
1152 newStream->priv = (QCamera3Channel*)mPictureChannel; in configureStreams()
1156 ALOGE("%s: not a supported format 0x%x", __func__, newStream->format); in configureStreams()
1163 if ((*it)->stream == newStream) { in configureStreams()
1164 (*it)->channel = (QCamera3Channel*) newStream->priv; in configureStreams()