tilt-shift-camera/app/src/main/java/no/naiv/tiltshift
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
..
camera Reapply "Revert orientation tracking on the camera image" 2026-05-11 15:57:32 +02:00
effect Make camera image follow device rotation (4-orientation texcoord table) 2026-05-11 16:12:29 +02:00
storage Remove unnecessary ProGuard keep rule and extract SaveResult to own file 2026-03-18 16:45:22 +01:00
ui Make camera image follow device rotation (4-orientation texcoord table) 2026-05-11 16:12:29 +02:00
util Fix landscape preview by rebinding on rotation change 2026-05-11 14:05:45 +02:00
MainActivity.kt Replace Accompanist Permissions with first-party activity-compose API 2026-03-18 16:43:56 +01:00