https://kotlinlang.org logo
Title
u

user

06/23/2022, 1:11 PM
CameraX preview usecase attachedSurfaceResolution property returns wrong resolution on some devices version: 1.1.0-beta03 problem devices: Samsung A51 A52 A70 S8 S21, One+ 6 correct devices: Mi 10T Pro, Redmi Note 10 Pro In our app we use preview usecase to transfer viewfinder frames from cameraX to openGL scene. We need to know strict resolution of frames in video stream to make correct scale and position transformation in openGL. On some samsung devices (see list and more) property returns 14401080 (aspect 4/3) and when we place unit on scene with 4/3 aspect we see stretched picture by...