Home | History | Annotate | Download | only in HAL3

Lines Matching defs:newStream

820         camera3_stream_t *newStream = streamList->streams[j];
822 uint32_t rotatedHeight = newStream->height;
823 uint32_t rotatedWidth = newStream->width;
824 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
825 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
826 rotatedHeight = newStream->width;
827 rotatedWidth = newStream->height;
834 switch (newStream->format) {
874 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
875 || newStream->stream_type == CAMERA3_STREAM_INPUT
876 || IS_USAGE_ZSL(newStream->usage)) {
903 } /* End of switch(newStream->format) */
909 newStream->format);
937 const camera3_stream_t *newStream = streamList->streams[j];
939 if (newStream->format != HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED ||
940 (newStream->stream_type != CAMERA3_STREAM_OUTPUT &&
941 newStream->stream_type != CAMERA3_STREAM_BIDIRECTIONAL)) {
945 bool isVideo = IS_USAGE_VIDEO(newStream->usage);
946 bool isPreview = IS_USAGE_PREVIEW(newStream->usage);
947 bool isZSL = IS_USAGE_ZSL(newStream->usage);
1287 camera3_stream_t *newStream = streamList->streams[i];
1290 __func__, i, newStream->stream_type, newStream->format,
1291 newStream->width, newStream->height, newStream->rotation,
1292 newStream->usage);
1293 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1294 newStream->stream_type == CAMERA3_STREAM_INPUT){
1297 if (newStream->stream_type == CAMERA3_STREAM_INPUT){
1298 inputStream = newStream;
1301 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1303 jpegSize.width = newStream->width;
1304 jpegSize.height = newStream->height;
1305 newStream->width > VIDEO_4K_WIDTH ||
1306 newStream->height > VIDEO_4K_HEIGHT)
1310 if ((HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED == newStream->format) &&
1311 (newStream->usage & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER)) {
1313 videoWidth = newStream->width;
1314 videoHeight = newStream->height;
1315 if ((VIDEO_4K_WIDTH <= newStream->width) &&
1316 (VIDEO_4K_HEIGHT <= newStream->height)) {
1319 m_bEisSupportedSize = (newStream->width <= maxEisWidth) &&
1320 (newStream->height <= maxEisHeight);
1322 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1323 newStream->stream_type == CAMERA3_STREAM_OUTPUT) {
1324 switch (newStream->format) {
1327 if (isOnEncoder(maxViewfinderSize, newStream->width,
1328 newStream->height)) {
1341 if (isOnEncoder(maxViewfinderSize, newStream->width,
1342 newStream->height)) {
1343 if (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ||
1344 IS_USAGE_ZSL(newStream->usage)) {
1354 if (isOnEncoder(maxViewfinderSize, newStream->width,
1355 newStream->height)) {
1359 if (newStream->width <= VIDEO_4K_WIDTH &&
1360 newStream->height <= VIDEO_4K_HEIGHT) {
1367 largeYuv888Size.width = newStream->width;
1368 largeYuv888Size.height = newStream->height;
1373 if (isOnEncoder(maxViewfinderSize, newStream->width,
1374 newStream->height)) {
1471 camera3_stream_t *newStream = streamList->streams[i];
1472 CDBG_HIGH("%s: newStream type = %d, stream format = %d "
1474 __func__, newStream->stream_type, newStream->format,
1475 newStream->width, newStream->height, newStream->rotation);
1480 if ((*it)->stream == newStream) {
1491 if (!stream_exists && newStream->stream_type != CAMERA3_STREAM_INPUT) {
1501 stream_info->stream = newStream;
1507 if (IS_USAGE_ZSL(newStream->usage)
1508 || newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL ) {
1514 zslStream = newStream;
1518 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT
1519 && newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888
1521 && inputStream->width == newStream->width
1522 && inputStream->height == newStream->height) {
1533 zslStream = newStream;
1536 if (newStream->format == HAL_PIXEL_FORMAT_BLOB) {
1537 jpegStream = newStream;
1617 camera3_stream_t *newStream = streamList->streams[i];
1618 uint32_t stream_usage = newStream->usage;
1619 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].width = (int32_t)newStream->width;
1620 mStreamConfigInfo.stream_sizes[mStreamConfigInfo.num_streams].height = (int32_t)newStream->height;
1621 if ((newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL
1622 || IS_USAGE_ZSL(newStream->usage)) &&
1623 newStream->format == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED){
1633 } else if(newStream->stream_type == CAMERA3_STREAM_INPUT) {
1637 switch (newStream->format) {
1660 if ((newStream->rotation == CAMERA3_STREAM_ROTATION_90) ||
1661 (newStream->rotation == CAMERA3_STREAM_ROTATION_270)) {
1663 newStream->height;
1665 newStream->width;
1671 if (isOnEncoder(maxViewfinderSize, newStream->width,
1672 newStream
1691 isOnEncoder(maxViewfinderSize, newStream->width,
1692 newStream->height)) {
1735 if (newStream->priv == NULL) {
1737 switch (newStream->stream_type) {
1739 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ;
1740 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;//WR for inplace algo's
1743 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_READ |
1749 if (newStream->usage & GRALLOC_USAGE_HW_VIDEO_ENCODER)
1750 newStream->usage |=
1754 else if (IS_USAGE_ZSL(newStream->usage))
1756 else if (newStream == zslStream
1757 || newStream->format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
1758 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_ZSL;
1760 newStream->usage |= GRALLOC_USAGE_HW_CAMERA_WRITE;
1763 ALOGE("%s: Invalid stream_type %d", __func__, newStream->stream_type);
1767 if (newStream->stream_type == CAMERA3_STREAM_OUTPUT ||
1768 newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL) {
1770 switch (newStream->format) {
1772 if ((newStream->usage &
1781 newStream,
1794 newStream->max_buffers = MAX_INFLIGHT_HFR_REQUESTS;
1795 newStream->priv = channel;
1804 mDummyBatchStream = *newStream;
1810 newStream,
1821 newStream->max_buffers = channel->getNumBuffers();
1822 newStream->priv = channel;
1831 newStream,
1841 newStream->max_buffers = channel->getNumBuffers();
1842 newStream->priv = channel;
1852 this, newStream, CAM_QCOM_FEATURE_NONE,
1854 (newStream->format == HAL_PIXEL_FORMAT_RAW16));
1860 newStream->max_buffers = mRawChannel->getNumBuffers();
1861 newStream->priv = (QCamera3ProcessingChannel*)mRawChannel;
1870 &gCamCapability[mCameraId]->padding_info, this, newStream,
1879 newStream->priv = (QCamera3ProcessingChannel*)mPictureChannel;
1880 newStream->max_buffers = mPictureChannel->getNumBuffers();
1887 ALOGE("%s: not a supported format 0x%x", __func__, newStream->format);
1891 } else if (newStream->stream_type == CAMERA3_STREAM_INPUT) {
1892 newStream->max_buffers = MAX_INFLIGHT_REPROCESS_REQUESTS;
1901 if ((*it)->stream == newStream) {
1902 (*it)->channel = (QCamera3ProcessingChannel*) newStream->priv;
1914 if (newStream->stream_type != CAMERA3_STREAM_INPUT)
9451 camera3_stream_t *newStream = streamList->streams[j];
9453 switch(newStream->rotation) {
9463 newStream->rotation, newStream->stream_type,
9464 newStream->format);
9468 bool isRotated = (newStream->rotation != CAMERA3_STREAM_ROTATION_0);
9469 bool isImplDef = (newStream->format ==
9471 bool isZsl = (newStream->stream_type == CAMERA3_STREAM_BIDIRECTIONAL &&
9477 newStream->rotation, newStream->stream_type,
9478 newStream->format);