Not expecting this to be fixed, but this is just for future reference and/or if anyone is curious why a lot of memory is allocated for any filter, no matter what image size.
(lldb) print sizeof(xbr_data)
(unsigned long) $0 = 67108864
xbr_data is allocated at:
|
xbrData = malloc(sizeof(xbr_data)); |
due to a massive array size (64 mb):
|
uint32_t rgbtoyuv[1<<24]; |
Not expecting this to be fixed, but this is just for future reference and/or if anyone is curious why a lot of memory is allocated for any filter, no matter what image size.
xbr_datais allocated at:libxbr-standalone/test_app.c
Line 101 in 3835e97
due to a massive array size (64 mb):
libxbr-standalone/filters.h
Line 54 in 3835e97