I have a TextureView with a fixed width and height and I want to show a camera preview inside of it. I need to crop the camera preview so that it doesn\'t look stretched ins
you could manipulate the byte[] data from onPreview().
I think you'll have to:
BitmapBitmap to your SurfaceViewThis is not a very performant way. Maybe you can manipulate the byte[] directly, but you will have to deal with picture formats like NV21.