google / google/jetpack-camera-app

Two streams in Single Stream mode

Open
#186 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
341
Forks
71
Avg merge
4d 17h
Merged PRs (30d)
7

Description

#### Device:
Pixel 7 Pro

#### Version:
JCA 1.0.0-rc01

#### Issue description:
Based on dumpsys log, it seems like JCA is actually 2 streams, not 1, in case of Single Stream mode.
```
    Stream[0]: Output
      Consumer name: ImageReader-4080x3072f21m4-4182-4
      Dims: 4080 x 3072, format 0x21, dataspace 0x8c20000
...
    Stream[1]: Output
      Consumer name: SurfaceTexture-1-4182-6
      Dims: 1600 x 1200, format 0x23, dataspace 0x8810000
...
```

#### Reproduce steps:
1. Open JCA
2. Set Single Stream mode from settings
3. Use a command like `adb shell dumpsys media.camera | egrep -A 40 "Stream configuration"` to confirm the correct streams are configured.

Extra: Capture an image and record a video to confirm the resolutions.

#### Others:
A major side-effect of this is that JCA has less video recording resolution than supported in single stream, due to accommodating an extra image capture stream.

For example, in the Pixel 7 pro, video recorded with CameraX core-test-app with Preview + VideoCapture being bound is 1026x1920. In JCA single stream case, it's only 720x1280.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.