Lines Matching defs: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);
1605 camera3_stream_t *newStream = streamList->streams[i];
1608 i, newStream->stream_type, newStream->format,
1609 newStream->width, newStream->height, newStream->rotation,
1610 newStream->usage);
1611 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1612 newStream->stream_type == CAMERA3_STREAM_INPUT){
1615 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
1616 IS_USAGE_PREVIEW(newStream->usage)) {
1620 if (newStream->stream_type == CAMERA3_STREAM_INPUT){
1621 inputStream = newStream;
1624 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1626 jpegSize.width = newStream->width;
1627 jpegSize.height = newStream->height;
1628 if (newStream->width > VIDEO_4K_WIDTH ||
1629 newStream->height > VIDEO_4K_HEIGHT)
1633 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
1634 (newStream->usage & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER)) {
1636 videoWidth = newStream->width;
1637 videoHeight = newStream->height;
1638 if ((VIDEO_4K_WIDTH <= newStream->width) &&
1639 (VIDEO_4K_HEIGHT <= newStream->height)) {
1642 m_bEisSupportedSize = (newStream->width <= maxEisWidth) &&
1643 (newStream->height <= maxEisHeight);
1646 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1647 newStream->stream_type == CAMERA3_STREAM_OUTPUT) {
1648 switch (newStream->format) {
1651 if (isOnEncoder(maxViewfinderSize, newStream->width,
1652 newStream->height)) {
1657 newStream->width);
1659 newStream->height);;
1675 if (isOnEncoder(maxViewfinderSize, newStream->width,
1676 newStream->height)) {
1677 if (newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL &&
1678 !IS_USAGE_ZSL(newStream->usage)) {
1686 if (isOnEncoder(maxViewfinderSize, newStream->width,
1687 newStream->height)) {
1691 if (newStream->width <= VIDEO_4K_WIDTH &&
1692 newStream->height <= VIDEO_4K_HEIGHT) {
1697 largeYuv888Size.width = newStream->width;
1698 largeYuv888Size.height = newStream->height;
1703 if (isOnEncoder(maxViewfinderSize, newStream->width,
1704 newStream->height)) {
1808 camera3_stream_t *newStream = streamList->streams[i];
1809 LOGH("newStream type = %d, stream format = %d "
1811 newStream->stream_type, newStream->format,
1812 newStream->width, newStream->height, newStream->rotation);
1817 if ((*it)->stream == newStream) {
1828 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) {
1838 stream_info->stream = newStream;
1844 if (IS_USAGE_ZSL(newStream->usage)
1845 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) {
1851 zslStream = newStream;
1855 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT
1856 && newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888
1858 && inputStream->width == newStream->width
1859 && inputStream->height == newStream->height) {
1870 zslStream = newStream;
1873 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1874 jpegStream = newStream;
1980 camera3_stream_t *newStream = streamList->streams[i];
1981 uint32_t stream_usage = newStream->usage;
1982 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width;
1983 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height;
1984 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
1985 || IS_USAGE_ZSL(newStream->usage)) &&
1986 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){
1996 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) {
2000 switch (newStream->format) {
2032 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
2033 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
2035 newStream->height;
2037 newStream->width;
2043 if (isOnEncoder(maxViewfinderSize, newStream->width, newStream->height)) {
2063 isOnEncoder(maxViewfinderSize, newStream->width,
2064 newStream->height)) {
2109 if (newStream->priv == NULL) {
2111 switch (newStream->stream_type) {
2113 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ;
2114 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's
2117 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ |
2123 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
2124 newStream->usage |=
2128 else if (IS_USAGE_ZSL(newStream->usage))
2132 else if (newStream == zslStream
2133 || newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
2134 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL;
2136 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;
2139 LOGE("Invalid stream_type %d", newStream->stream_type);
2143 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT ||
2144 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) {
2146 switch (newStream->format) {
2148 if ((newStream->usage &
2157 newStream,
2170 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS;
2171 newStream->priv = channel;
2180 mDummyBatchStream = *newStream;
2186 newStream,
2197 newStream->max_buffers = MAX_INFLIGHT_60FPS_REQUESTS;
2198 newStream->priv = channel;
2207 newStream,
2217 newStream->max_buffers = channel->getNumBuffers();
2218 newStream->priv = channel;
2228 this, newStream,
2231 (newStream->format == HAL_PIXEL_FORMAT_RAW16));
2237 newStream->max_buffers = mRawChannel->getNumBuffers();
2238 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel;
2247 setBufferErrorStatus, &padding_info, this, newStream,
2256 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel;
2257 newStream->max_buffers = mPictureChannel->getNumBuffers();
2264 LOGE("not a supported format 0x%x", newStream->format);
2268 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) {
2269 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS;
2276 QCamera3Channel *channel = (QCamera3Channel*) newStream->priv;
2280 newStream->width, newStream->height);
2282 newStream->usage |= GRALLOC_USAGE_PRIVATE_ALLOC_UBWC;
2288 if ((*it)->stream == newStream) {
2289 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv;
2302 if (newStream->stream_type != CAMERA3_STREAM_INPUT)
10805 camera3_stream_t *newStream = streamList->streams[j];
10807 switch(newStream->rotation) {
10817 newStream->rotation, newStream->stream_type,
10818 newStream->format);
10822 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0);
10823 bool isImplDef = (newStream->format ==
10825 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL &&
10831 newStream->rotation, newStream->stream_type,
10832 newStream->format);