Z
Z
zhogar2018-07-14 20:11:18
Android
zhogar, 2018-07-14 20:11:18

How to flip data coming from Camera2 APIs to MediaCodec and TextureView?

Hello,
in an Android application, I cannot flip the incoming MediaCodec from Camera2 to landscape orientation, .
The point is that the TextureView itself seems to be oriented correctly when the device is rotated
, but the data itself arrives in the wrong orientation, you need to do something like setDisplayOrientation, which was in the regular Camera API. The application also uses OpenGL textures, and actually works through them. I tried to rotate GLES textures, it turns out some kind of nonsense.
What can be, who faced similar?
p/s.
1) I can’t attach the code, because part of the project.
2) Standard solutions (methods and implementations) like configureTransform don't help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question