tilt-shift-camera/app
Ole-Morten Duesund a2dfa7db3d Make camera image follow device rotation (4-orientation texcoord table)
Re-add landscape support, this time via four precomputed texcoord
buffers — one per Surface.ROTATION_* — instead of going through
SurfaceTexture.getTransformMatrix() (which doesn't honour
Preview.targetRotation for custom SurfaceProviders) or the manual
matrix composition attempts in v1.1.6–1.1.11.

For each device orientation the renderer picks the texcoord set that
both compensates for the 90° CW sensor mount and the activity's own
rotation under screenOrientation="fullSensor", so world-up stays at
clip-space-top. recomputeVertices swaps effective camera dimensions
between portrait and landscape so crop-to-fill picks the right aspect.

Verified empirically in the emulator across all four Display.rotation
values (sky-yellow band always lands at the top of the screen).

Bump to 1.1.12.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 16:12:29 +02:00
..
src Make camera image follow device rotation (4-orientation texcoord table) 2026-05-11 16:12:29 +02:00
build.gradle.kts Update all dependencies to March 2026 versions 2026-03-18 17:46:37 +01:00
proguard-rules.pro Remove unnecessary ProGuard keep rule and extract SaveResult to own file 2026-03-18 16:45:22 +01:00