Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera2 Matrix Rotation #1

Open
zhogar opened this issue Jun 21, 2018 · 0 comments
Open

Camera2 Matrix Rotation #1

zhogar opened this issue Jun 21, 2018 · 0 comments

Comments

@zhogar
Copy link

zhogar commented Jun 21, 2018

Hi,
it is not possible to rotate the camera matrix by 90 degrees. It is the data (matrix), not the TextureView. How to implement this for your project? I do not use the standard MediaRecorder, I use MediaCodec, this is the problem, in my opinion.

public static final float[] CAMERA_TRANSFORM_MATRIX;
static {
	CAMERA_TRANSFORM_MATRIX = new float[16];
	Matrix.setIdentityM(CAMERA_TRANSFORM_MATRIX, 0);
	// --> ???
}

untitled diagram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant