File must be passed in as a processing source ImageFrameHandler build = new ImageFrameHandler.FileHandlerBuilder(file.listFiles()) Create a FileHandlerBuilder that is similar to API and Android system AlertDialog Memory occupies only one image memory, and CPU occupies about 14%, which has met most of the project scenarios, and has no compatibility and decoding efficiency 一.Configure and start using (3)After the adoption of this project, the memory footprint on x9007 is as follows: (2)Read while write, memory on OPPO x9007 is as follows: (1)Read directly from the 200 diagram, direct OOM The basic principle is still a two thread collaboration, the child thread is responsible for decoding pictures, the main thread is responsible for receiving pictures after setting to the View, because of internal memory reuse, and only occupy a picture of memoryĢ.Performance tests, memory usage, CPU occupancy Since the Tencent article has always been described only without specific code, this project is the specific implementation of this article, Of course, webP and Apng may be good, but also some WebP low version compatibility in Android, Apng in the realization of both memory Android occupy a large, low decoding efficiency, until later see an article of the Tencent The program is designed because of their long live projects, some places use some PNG frames to synthesize some animation needs.Efficient memory province to play the serial frame control, support from the file, resource read sequence frames, memory reuse, read multiple, just a picture of memory, streaming API, a line of code can achieve serial frame animation 一 Project description:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |