summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib_aux.pl
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-10-26 14:28:50 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-10-30 04:16:23 +0100
commit80352c2c2d7ff005e0ad63e1b56d1f6ff9af81d8 (patch)
tree71f5bda7502c5c9dad5cbf85e39228ab16d00f59 /apps/plugins/lua/rocklib_aux.pl
parent20b91a83d3078eeabc02a4d214f6d44c64282f89 (diff)
downloadrockbox-80352c2c2d7ff005e0ad63e1b56d1f6ff9af81d8.tar.gz
rockbox-80352c2c2d7ff005e0ad63e1b56d1f6ff9af81d8.zip
Lua rliimage optimize rli_marshal, rli_copy, lcd_xxx_bitmap
rli_marshal and rli_copy allow the use of a custom lua function instead of the built-ins, this custom function can signal to stop before the whole image is iterated. Originally it was checking for a return of 0 which was additional overhead for the built-in functions (which never stop early) as well. Now custom_transform sets the x & y deltas to 0 to indicate early exit removing an extra 'if' per cycle and return from all of the rli_transform functions The lcd_xxx_bitmap functions all require x, y, w, h, screen these calls have been consolidated into a single function get_bmp_bounds() Change-Id: I88de3149c58d1bfb40e9d1a91341fb86cbd63b51
Diffstat (limited to 'apps/plugins/lua/rocklib_aux.pl')
0 files changed, 0 insertions, 0 deletions