GifDecoder How to use the lvgl draw buffer

Dear Sir:
I am using LVGL 7.1 + Gif Decoder . I met 2 issues .one is PNG decoder and one is Gif Decoder…both are hit same big issue …no engouh memory…
So as I previous quesiton …we only have a big memory buffer for lvgl draw buffer…is it possiable to modify the code to match that?I am going through the source code of gifdec…not fully done yet…but I saw every frame end ,need memcpy the data to draw buffer…so is there a way to make it happen