Crop video before encoding with MediaCodec for Grafika’s “Continuous Capture” Activity

Take a look at the “texture from camera” activity. Note it allows you to manipulate the image in various ways, notably “zoom”. The “zoom” is done by modifying the texture coordinates. The ScaledDrawable2D class does this; the setScale() call changes the “zoom”, rather than scaling the rect itself. Texture coordinates range from 0.0 to 1.0 … Read more