Skip to content

Per-slot Mirror in the camera settings (needs a GL or TextureView path) #226

Closed

Description

@compot-dev

Split out of #201: a per-slot Mirror (flip left↔right) in the camera settings, next to Turn (PR #225).

Why it is not in #225: the hardware decoder draws straight onto a SurfaceView, and setScaleX(-1) on that view does not mirror the picture on the Aceline AG-216 (Android 10) — the surface is composed by the system, the negative scale is ignored. MediaFormat.KEY_ROTATION has no mirror flag either.

What it needs: a separate drawing path for a mirrored slot, for example

MJPEG on the software path can be mirrored while drawing (a Matrix with preScale(-1, 1)), so it could come first.

Things to keep working: snapshots and long-press screenshots (PixelCopy), the grid, and the frame rate on the TV boxes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestin progressBeing worked on right now (open PR)todayTasks for today

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions