Home | History | Annotate | Download | only in HAL3

Lines Matching full:newstream

1275         camera3_stream_t *newStream = streamList->streams[j];
1277 uint32_t rotatedHeight = newStream->height;
1278 uint32_t rotatedWidth = newStream->width;
1279 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
1280 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
1281 rotatedHeight = newStream->width;
1282 rotatedWidth = newStream->height;
1289 switch (newStream->format) {
1293 if ((HAL_DATASPACE_DEPTH == newStream->data_space) &&
1294 (ANDROID_SCALER_AVAILABLE_FORMATS_RAW16 == newStream->format) &&
1296 if ((depthWidth == newStream->width) &&
1297 (depthHeight == newStream->height)) {
1312 if ((newStream->data_space == HAL_DATASPACE_DEPTH) &&
1316 if ((depthSamplesCount == newStream->width) &&
1317 (1 == newStream->height)) {
1337 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
1338 || newStream->stream_type == CAMERA3_STREAM_INPUT
1339 || IS_USAGE_ZSL(newStream->usage)) {
1366 } /* End of switch(newStream->format) */
1371 rotatedWidth, rotatedHeight, newStream->format,
1398 const camera3_stream_t *newStream = streamList->streams[j];
1400 if (newStream->format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED ||
1401 (newStream->stream_type != CAMERA3_STREAM_OUTPUT &&
1402 newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL)) {
1414 bool isVideo = IS_USAGE_VIDEO(newStream->usage);
1415 bool isPreview = IS_USAGE_PREVIEW(newStream->usage);
1416 bool isZSL = IS_USAGE_ZSL(newStream->usage);
1422 CAM_STREAM_TYPE_VIDEO, newStream->width, newStream->height, forcePreviewUBWC, isType);
1424 CAM_STREAM_TYPE_PREVIEW, newStream->width, newStream->height, forcePreviewUBWC, isType);
1426 CAM_STREAM_TYPE_SNAPSHOT, newStream->width, newStream->height, forcePreviewUBWC, isType);
1465 const camera3_stream_t *newStream = streamList->streams[j];
1467 bool isVideo = IS_USAGE_VIDEO(newStream->usage);
1468 bool isPreview = IS_USAGE_PREVIEW(newStream->usage);
1996 camera3_stream_t *newStream = streamList->streams[i];
1999 i, newStream->stream_type, newStream->format,
2000 newStream->width, newStream->height, newStream->rotation,
2001 newStream->usage);
2002 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
2003 newStream->stream_type == CAMERA3_STREAM_INPUT){
2006 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
2007 IS_USAGE_PREVIEW(newStream->usage)) {
2011 if (newStream->stream_type == CAMERA3_STREAM_INPUT){
2012 inputStream = newStream;
2015 if ((newStream->format == HAL_PIXEL_FORMAT_BLOB) &&
2016 (newStream->data_space != HAL_DATASPACE_DEPTH)) {
2018 jpegSize.width = newStream->width;
2019 jpegSize.height = newStream->height;
2020 if (newStream->width > VIDEO_4K_WIDTH ||
2021 newStream->height > VIDEO_4K_HEIGHT)
2025 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
2026 (IS_USAGE_PREVIEW(newStream->usage) || IS_USAGE_VIDEO(newStream->usage))) {
2027 if (IS_USAGE_VIDEO(newStream->usage)) {
2032 if (videoWidth < newStream->width || videoHeight < newStream->height) {
2033 videoWidth = newStream->width;
2034 videoHeight = newStream->height;
2036 if ((VIDEO_4K_WIDTH <= newStream->width) &&
2037 (VIDEO_4K_HEIGHT <= newStream->height)) {
2041 m_bEisSupportedSize &= (newStream->width <= maxEisWidth) &&
2042 (newStream->height <= maxEisHeight);
2044 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
2045 newStream->stream_type == CAMERA3_STREAM_OUTPUT) {
2046 switch (newStream->format) {
2048 if (newStream->data_space == HAL_DATASPACE_DEPTH) {
2053 if (isOnEncoder(maxViewfinderSize, newStream->width,
2054 newStream->height)) {
2059 newStream->width);
2061 newStream->height);;
2074 if ((HAL_DATASPACE_DEPTH == newStream->data_space) &&
2075 (HAL_PIXEL_FORMAT_RAW16 == newStream->format)) {
2081 if (isOnEncoder(maxViewfinderSize, newStream->width,
2082 newStream->height)) {
2083 if (newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL &&
2084 !IS_USAGE_ZSL(newStream->usage)) {
2092 if (isOnEncoder(maxViewfinderSize, newStream->width,
2093 newStream->height)) {
2097 if (newStream->width <= VIDEO_4K_WIDTH &&
2098 newStream->height <= VIDEO_4K_HEIGHT) {
2103 largeYuv888Size.width = newStream->width;
2104 largeYuv888Size.height = newStream->height;
2109 if (isOnEncoder(maxViewfinderSize, newStream->width,
2110 newStream->height)) {
2247 camera3_stream_t *newStream = streamList->streams[i];
2248 LOGH("newStream type = %d, stream format = %d "
2250 newStream->stream_type, newStream->format,
2251 newStream->width, newStream->height, newStream->rotation);
2256 if ((*it)->stream == newStream) {
2267 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) {
2277 stream_info->stream = newStream;
2284 if (IS_USAGE_ZSL(newStream->usage)
2285 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) {
2291 zslStream = newStream;
2295 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT
2296 && newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888
2298 && inputStream->width == newStream->width
2299 && inputStream->height == newStream->height) {
2310 zslStream = newStream;
2407 camera3_stream_t *newStream = streamList->streams[i];
2408 uint32_t stream_usage = newStream->usage;
2409 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT &&
2410 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) {
2437 camera3_stream_t *newStream = streamList->streams[i];
2438 uint32_t stream_usage = newStream->usage;
2439 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width;
2440 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height;
2445 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
2446 || IS_USAGE_ZSL(newStream->usage)) &&
2447 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){
2450 if (isOnEncoder(maxViewfinderSize, newStream->width, newStream->height)) {
2462 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) {
2467 switch (newStream->format) {
2515 previewSize.width = (int32_t)newStream->width;
2516 previewSize.height = (int32_t)newStream->height;
2518 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
2519 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
2521 newStream->height;
2523 newStream->width;
2530 if (isOnEncoder(maxViewfinderSize, newStream->width, newStream->height)) {
2558 isOnEncoder(maxViewfinderSize, newStream->width,
2559 newStream->height)) {
2594 if ((HAL_DATASPACE_DEPTH == newStream->data_space) &&
2595 (HAL_PIXEL_FORMAT_RAW16 == newStream->format)) {
2618 if (newStream->priv == NULL) {
2620 switch (newStream->stream_type) {
2622 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ;
2623 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's
2626 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ |
2632 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
2633 newStream->usage |=
2637 else if (IS_USAGE_ZSL(newStream->usage))
2641 else if (newStream == zslStream
2642 || newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
2643 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL;
2645 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;
2648 LOGE("Invalid stream_type %d", newStream->stream_type);
2653 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT ||
2654 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) {
2656 switch (newStream->format) {
2658 if ((newStream->usage &
2667 newStream,
2680 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS;
2681 newStream->priv = channel;
2690 mDummyBatchStream = *newStream;
2707 newStream,
2732 newStream->max_buffers = channel->getNumBuffers();
2733 newStream->priv = channel;
2742 newStream,
2752 newStream->max_buffers = channel->getNumBuffers();
2753 newStream->priv = channel;
2759 bool isRAW16 = ((newStream->format == HAL_PIXEL_FORMAT_RAW16) &&
2760 (HAL_DATASPACE_DEPTH != newStream->data_space))
2766 newStream,
2774 newStream->max_buffers = mRawChannel->getNumBuffers();
2775 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel;
2779 if (newStream->data_space == HAL_DATASPACE_DEPTH) {
2783 0, this, MAX_INFLIGHT_REQUESTS, newStream,
2790 newStream->priv = mDepthChannel;
2791 newStream->max_buffers = MAX_INFLIGHT_REQUESTS;
2799 setBufferErrorStatus, &padding_info, this, newStream,
2808 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel;
2809 newStream->max_buffers = mPictureChannel->getNumBuffers();
2817 LOGE("not a supported format 0x%x", newStream->format);
2821 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) {
2822 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS;
2829 QCamera3Channel *channel = (QCamera3Channel*) newStream->priv;
2838 newStream->width, newStream->height, forcePreviewUBWC, isType);
2840 newStream->usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
2846 if ((*it)->stream == newStream) {
2847 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv;
2860 if ((newStream->stream_type != CAMERA3_STREAM_INPUT) &&
2861 !((newStream->data_space == HAL_DATASPACE_DEPTH) &&
2862 (newStream->format == HAL_PIXEL_FORMAT_BLOB))) {
14506 camera3_stream_t *newStream = streamList->streams[j];
14508 switch(newStream->rotation) {
14518 newStream->rotation, newStream->stream_type,
14519 newStream->format);
14523 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0);
14524 bool isImplDef = (newStream->format ==
14526 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL &&
14532 newStream->rotation, newStream->stream_type,
14533 newStream->format);