Home | History | Annotate | Download | only in HAL3

Lines Matching refs:newStream

636         camera3_stream_t *newStream = streamList->streams[j];
642 switch (newStream->format) {
649 == (int32_t) newStream->width
651 == (int32_t) newStream->height) {
672 if ((int32_t)(newStream->width) == available_jpeg_sizes[i*2] &&
673 (int32_t)(newStream->height) == available_jpeg_sizes[i*2+1]) {
685 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
686 || newStream->stream_type == CAMERA3_STREAM_INPUT
687 || newStream->usage & GRALLOC_USAGE_HW_CAMERA_ZSL){
688 if ((int32_t)(newStream->width) ==
690 && (int32_t)(newStream->height) ==
705 if ((int32_t)(newStream->width) ==
707 && (int32_t)(newStream->height) ==
714 } /* End of switch(newStream->format) */
719 "type:%d", __func__, newStream->width, newStream->height,
720 newStream->format);
851 camera3_stream_t *newStream = streamList->streams[i];
853 __func__, i, newStream->stream_type, newStream->format,
854 newStream->width, newStream->height);
856 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
857 newStream->stream_type == CAMERA3_STREAM_INPUT){
860 if (newStream
861 inputStream = newStream;
864 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
865 if (newStream->width > VIDEO_4K_WIDTH ||
866 newStream->height > VIDEO_4K_HEIGHT)
870 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
871 (newStream->usage & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER)) {
874 if ((VIDEO_4K_WIDTH <= newStream->width) &&
875 (VIDEO_4K_HEIGHT <= newStream->height)) {
876 videoWidth = newStream->width;
877 videoHeight = newStream->height;
881 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
882 newStream->stream_type == CAMERA3_STREAM_OUTPUT) {
883 switch (newStream->format) {
886 if (newStream->width > (uint32_t)maxViewfinderSize.width ||
887 newStream->height > (uint32_t)maxViewfinderSize.height) {
899 if (newStream->width > (uint32_t)maxViewfinderSize.width ||
900 newStream->height > (uint32_t)maxViewfinderSize.height) {
901 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
902 newStream->usage & GRALLOC_USAGE_HW_CAMERA_ZSL) {
913 if (newStream->width > (uint32_t)maxViewfinderSize.width ||
914 newStream->height > (uint32_t)maxViewfinderSize.height) {
970 camera3_stream_t *newStream = streamList->streams[i];
971 CDBG_HIGH("%s: newStream type = %d, stream format = %d stream size : %d x %d",
972 __func__, newStream->stream_type, newStream->format,
973 newStream->width, newStream->height);
978 if ((*it)->stream == newStream) {
989 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) {
993 stream_info->stream = newStream;
999 if (newStream->usage & GRALLOC_USAGE_HW_CAMERA_ZSL
1000 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) {
1006 zslStream = newStream;
1010 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT
1011 && newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888
1013 && inputStream->width == newStream->width
1014 && inputStream->height == newStream->height) {
1025 zslStream = newStream;
1028 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1029 jpegStream = newStream;
1065 camera3_stream_t *newStream = streamList->streams[i];
1066 uint32_t stream_usage = newStream->usage;
1067 stream_config_info.stream_sizes[stream_config_info.num_streams].width = newStream->width;
1068 stream_config_info.stream_sizes[stream_config_info.num_streams].height = newStream->height;
1069 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
1070 || newStream->usage & GRALLOC_USAGE_HW_CAMERA_ZSL)
1071 && newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED
1086 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) {
1090 switch (newStream->format) {
1111 (newStream->width > (uint32_t)maxViewfinderSize.width ||
1112 newStream->height > (uint32_t)maxViewfinderSize.height)) {
1147 if (newStream->priv == NULL) {
1149 switch (newStream->stream_type) {
1151 newStream->usage = GRALLOC_USAGE_HW_CAMERA_READ;
1152 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's
1155 newStream->usage = GRALLOC_USAGE_HW_CAMERA_READ |
1161 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
1162 newStream->usage =
1166 else if (newStream->usage & GRALLOC_USAGE_HW_CAMERA_ZSL)
1169 newStream->usage = GRALLOC_USAGE_HW_CAMERA_WRITE;
1172 ALOGE("%s: Invalid stream_type %d", __func__, newStream->stream_type);
1176 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT ||
1177 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) {
1179 switch (newStream->format) {
1182 newStream->max_buffers = QCamera3RegularChannel::kMaxBuffers;
1187 newStream,
1196 newStream->priv = channel;
1201 newStream->max_buffers = QCamera3RawChannel::kMaxBuffers;
1206 this, newStream, CAM_QCOM_FEATURE_NONE,
1207 (newStream->format == HAL_PIXEL_FORMAT_RAW16));
1214 newStream->priv = (QCamera3Channel*)mRawChannel;
1217 newStream->max_buffers = QCamera3PicChannel::kMaxBuffers;
1220 &gCamCapability[mCameraId]->padding_info, this, newStream,
1228 newStream->priv = (QCamera3Channel*)mPictureChannel;
1232 ALOGE("%s: not a supported format 0x%x", __func__, newStream->format);
1235 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) {
1236 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS;
1244 if ((*it)->stream == newStream) {
1245 (*it)->channel = (QCamera3Channel*) newStream->priv;
1257 if (newStream->stream_type != CAMERA3_STREAM_INPUT)