commit | 410464f12ec5459e9a43b67bdadc5879393a2490 | [log] [tgz] |
---|---|---|
author | John Pan <johnpan@google.com> | Fri Feb 25 18:32:20 2022 +0800 |
committer | John Pan <johnpan@google.com> | Thu Mar 10 03:12:39 2022 +0000 |
tree | 823253f69cedb47f48b7d8521a135afbc0a293de | |
parent | 45627aae094252bb49bf40f1e3743f0b28b2020b [diff] |
Fix thumbnail missing When loading data in ResourceAssetFetcher, sample the and decode resource to bitmap first, and then convert to inputstream Videos: -Before: https://drive.google.com/file/d/19YSshHS64jKOvUG_11cFriRiFUolClzh/view?usp=sharing&resourcekey=0-HZdurYHK6sBSRkcVR1lOxg -SampleSize = 4: https://drive.google.com/file/d/1UmhhbhfDvtSEGyQi0MxAy6z78J1mCWIU/view?usp=sharing&resourcekey=0-2JB3DPR5HkPhsXjSM_fbJg -SampleSize = 8: https://drive.google.com/file/d/1l4_lwxvJv5hAcXTa3Yut-g8ITIQE1JVt/view?usp=sharing&resourcekey=0-TVGiVjXMh9ldN2A8Sgi7UA Screenshots: -Before: https://screenshot.googleplex.com/7nBBbXzkTxFUMfL -SampleSize = 4: https://screenshot.googleplex.com/3VMJ4CScGP6ST8D -SampleSize = 8: https://screenshot.googleplex.com/9cYTZyxH97Y8mSo Bug: 218865087 Test: Manual Change-Id: I319ae79767de7e8ffac9e02d766e0878576f39b4