| commit | cb59749294f78eb3728f5fdabc78290b30335342 | [log] [tgz] |
|---|---|---|
| author | Chong Zhang <chz@google.com> | Tue Feb 18 12:12:13 2020 -0800 |
| committer | Chong Zhang <chz@google.com> | Wed Feb 19 17:27:17 2020 +0000 |
| tree | 937efbe1afca132666789eceaad49783fc0740c9 | |
| parent | 371c9749317fb1dbcbd762f4adf26eda70992ed9 [diff] |
Fix dst crop used in color converter
The dst frame is allocated according to the actual crop size.
When top-left is non-zero, the convert needs to use the dst
rect with top-left adjusted to {0, 0}.
bug: 149667324
test: vendor testing on devices that uses non-zero top-left crop;
CTS MediaMetadataRetrieverTest.
Change-Id: I98ea2e398cf6bb17a6e76116caa145e9be5a110e