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

Commit 0969354b authored by Ram Mohan M's avatar Ram Mohan M
Browse files

MediaCodec: Signal crop attrb correctly to MediaImage during instantiation

The getOutputImage() of MediaCodec API translates the decoded image data
and MediaImage2 metadata to MediaImage. MediaImage is constructed by
copying only the display section of the decoded data. For images with
cropRect set, the display section needs to be correctly identified with
fields xOffset and yOffset which correspond to cropLeft and cropTop
respectively. This was missing causing issues in the final image
received from the API. This is addressed.

Bug: 163299340
Test: atest CtsMediaV2TestCases:CodecDecoderValidationTest
Test: atest MctsMediaV2TestCases:CodecDecoderValidationTest
Flag: EXEMPT bugfix
Change-Id: I99b92821f7585da2504dfc66df7af8fc96941fdd
parent cfa9a2a5
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