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:
Bitmap
Bitmap
to your SurfaceView
This is not a very performant way. Maybe you can manipulate the byte[]
directly, but you will have to deal with picture formats like NV21.