Lines Matching full:newstream
966 camera3_stream_t *newStream = streamList->streams[j];
968 uint32_t rotatedHeight = newStream->height;
969 uint32_t rotatedWidth = newStream->width;
970 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
971 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
972 rotatedHeight = newStream->width;
973 rotatedWidth = newStream->height;
980 switch (newStream->format) {
1009 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
1010 || newStream->stream_type == CAMERA3_STREAM_INPUT
1011 || IS_USAGE_ZSL(newStream->usage)) {
1038 } /* End of switch(newStream->format) */
1043 rotatedWidth, rotatedHeight, newStream->format,
1070 const camera3_stream_t *newStream = streamList->streams[j];
1072 if (newStream->format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED ||
1073 (newStream->stream_type != CAMERA3_STREAM_OUTPUT &&
1074 newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL)) {
1078 bool isVideo = IS_USAGE_VIDEO(newStream->usage);
1079 bool isPreview = IS_USAGE_PREVIEW(newStream->usage);
1080 bool isZSL = IS_USAGE_ZSL(newStream->usage);
1082 CAM_STREAM_TYPE_VIDEO, newStream->width, newStream->height);
1084 CAM_STREAM_TYPE_PREVIEW, newStream->width, newStream->height);
1086 CAM_STREAM_TYPE_SNAPSHOT, newStream->width, newStream->height);
1125 const camera3_stream_t *newStream = streamList->streams[j];
1127 bool isVideo = IS_USAGE_VIDEO(newStream->usage);
1128 bool isPreview = IS_USAGE_PREVIEW(newStream->usage);
1606 camera3_stream_t *newStream = streamList->streams[i];
1609 i, newStream->stream_type, newStream->format,
1610 newStream->width, newStream->height, newStream->rotation,
1611 newStream->usage);
1612 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1613 newStream->stream_type == CAMERA3_STREAM_INPUT){
1616 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
1617 IS_USAGE_PREVIEW(newStream->usage)) {
1621 if (newStream->stream_type == CAMERA3_STREAM_INPUT){
1622 inputStream = newStream;
1625 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1627 jpegSize.width = newStream->width;
1628 jpegSize.height = newStream->height;
1629 if (newStream->width > VIDEO_4K_WIDTH ||
1630 newStream->height > VIDEO_4K_HEIGHT)
1634 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
1635 (IS_USAGE_PREVIEW(newStream->usage) || IS_USAGE_VIDEO(newStream->usage))) {
1636 if (IS_USAGE_VIDEO(newStream->usage)) {
1637 videoWidth = newStream->width;
1638 videoHeight = newStream->height;
1640 if ((VIDEO_4K_WIDTH <= newStream->width) &&
1641 (VIDEO_4K_HEIGHT <= newStream->height)) {
1645 m_bEisSupportedSize &= (newStream->width <= maxEisWidth) &&
1646 (newStream->height <= maxEisHeight);
1648 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1649 newStream->stream_type == CAMERA3_STREAM_OUTPUT) {
1650 switch (newStream->format) {
1653 if (isOnEncoder(maxViewfinderSize, newStream->width,
1654 newStream->height)) {
1659 newStream->width);
1661 newStream->height);;
1677 if (isOnEncoder(maxViewfinderSize, newStream->width,
1678 newStream->height)) {
1679 if (newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL &&
1680 !IS_USAGE_ZSL(newStream->usage)) {
1688 if (isOnEncoder(maxViewfinderSize, newStream->width,
1689 newStream->height)) {
1693 if (newStream->width <= VIDEO_4K_WIDTH &&
1694 newStream->height <= VIDEO_4K_HEIGHT) {
1699 largeYuv888Size.width = newStream->width;
1700 largeYuv888Size.height = newStream->height;
1705 if (isOnEncoder(maxViewfinderSize, newStream->width,
1706 newStream->height)) {
1805 camera3_stream_t *newStream = streamList->streams[i];
1806 LOGH("newStream type = %d, stream format = %d "
1808 newStream->stream_type, newStream->format,
1809 newStream->width, newStream->height, newStream->rotation);
1814 if ((*it)->stream == newStream) {
1825 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) {
1835 stream_info->stream = newStream;
1841 if (IS_USAGE_ZSL(newStream->usage)
1842 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) {
1848 zslStream = newStream;
1852 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT
1853 && newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888
1855 && inputStream->width == newStream->width
1856 && inputStream->height == newStream->height) {
1867 zslStream = newStream;
1870 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1871 jpegStream = newStream;
1977 camera3_stream_t *newStream = streamList->streams[i];
1978 uint32_t stream_usage = newStream->usage;
1979 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width;
1980 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height;
1981 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
1982 || IS_USAGE_ZSL(newStream->usage)) &&
1983 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){
1993 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) {
1997 switch (newStream->format) {
2029 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
2030 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
2032 newStream->height;
2034 newStream->width;
2040 if (isOnEncoder(maxViewfinderSize, newStream->width, newStream->height)) {
2060 isOnEncoder(maxViewfinderSize, newStream->width,
2061 newStream->height)) {
2106 if (newStream->priv == NULL) {
2108 switch (newStream->stream_type) {
2110 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ;
2111 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's
2114 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ |
2120 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
2121 newStream->usage |=
2125 else if (IS_USAGE_ZSL(newStream->usage))
2129 else if (newStream == zslStream
2130 || newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
2131 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL;
2133 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;
2136 LOGE("Invalid stream_type %d", newStream->stream_type);
2140 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT ||
2141 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) {
2143 switch (newStream->format) {
2145 if ((newStream->usage &
2154 newStream,
2167 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS;
2168 newStream->priv = channel;
2177 mDummyBatchStream = *newStream;
2184 newStream,
2195 newStream->max_buffers = MAX_INFLIGHT_60FPS_REQUESTS;
2196 newStream->priv = channel;
2205 newStream,
2215 newStream->max_buffers = channel->getNumBuffers();
2216 newStream->priv = channel;
2226 this, newStream,
2229 (newStream->format == HAL_PIXEL_FORMAT_RAW16));
2235 newStream->max_buffers = mRawChannel->getNumBuffers();
2236 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel;
2245 setBufferErrorStatus, &padding_info, this, newStream,
2254 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel;
2255 newStream->max_buffers = mPictureChannel->getNumBuffers();
2262 LOGE("not a supported format 0x%x", newStream->format);
2266 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) {
2267 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS;
2274 QCamera3Channel *channel = (QCamera3Channel*) newStream->priv;
2278 newStream->width, newStream->height);
2280 newStream->usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
2286 if ((*it)->stream == newStream) {
2287 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv;
2300 if (newStream->stream_type != CAMERA3_STREAM_INPUT)
10803 camera3_stream_t *newStream = streamList->streams[j];
10805 switch(newStream->rotation) {
10815 newStream->rotation, newStream->stream_type,
10816 newStream->format);
10820 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0);
10821 bool isImplDef = (newStream->format ==
10823 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL &&
10829 newStream->rotation, newStream->stream_type,
10830 newStream->format);