android/camera-samples

Custom Transform using CameraX

carl0529 opened this issue · 0 comments

I need to transform the camera view to match the view of other camera. It is not a problem to do so by setting matrix transform on textureview using Camera 1 library.
However, it seems any matrix transform does not work other than scale on PreviewView using Camera X library. How can I set custom transform on the camera view with CameraX? Or at least can I set the starting top-left corner of the CameraX preview?

Screenshot 2024-08-28 181040