In simple words, how to rotate Surface created by MediaCodec.

On Wednesday, September 21, 2016 at 3:42:43 PM UTC+5:30, AJ wrote:
> Hi,
> I am developing a Camera related App and I am using Camera2 APIs. I have 
> two surfaces added as target. One for the camera preview and second for 
> getting the encoded frames. The camera preview orientation can be easily 
> manipulated using the setTransform() method. But, how can the orientation 
> of the surface used for encoding be changed? In my case, for reverse 
> landscape orientation, the encoded frame is upside down.
> Best regards,
> Ajay

You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to