Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98ccd61f authored by ramindani's avatar ramindani Committed by Ram Indani
Browse files

Use the height as width when there is a rotation needs to be applied for

the dst rect.

Removed if condition check for dstRect and srcRect.

The AOSP camera for a split second sends the actual dstRect while
switching camera and that when the image scales because I wasn't doing
the conversion of the rect from width to height.
This scaling basically gives the perception that switch is slow, while
last few frames are basically still frames aka last buffer queue.

BUG: 197262426
Test: Verified manually on AOSP that camera switch is smooth.
Change-Id: Ic4b0b2ff3be2056a0c90841ed880e49c34ea2781
parent 60a7931d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment