summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib_img.c (follow)
Commit message (Collapse)AuthorAge
* lua fix rlimage FB_SCALARPACK()William Wilgus2018-11-02
| | | | | | FB_SCALARPACK(lua_tointeger()) was calling lua_tointeger 3x on color targets Change-Id: I7b3d73bba5dbc0aa4388b123de11410572fe67c5
* Lua expand multiple screen supportWilliam Wilgus2018-10-30
| | | | | | | | | | Some of the lcd functions had support for multiple screens but this wasn't very safe since the screen number wasn't bounded within the screens[] array This adds support for all the lcd functions along with checking that screen# is bounded properly, adds around 600 bytes to devices with a remote screen devices without a remote screen lock to SCREEN_MAIN Change-Id: I618bbc7b3919c7b0ff375fb2d71949d7cab43c87
* Lua rliimage optimize rli_marshal, rli_copy, lcd_xxx_bitmapWilliam Wilgus2018-10-30
| | | | | | | | | | | | | | | | | | 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
* Lua Rlimage metatableWilliam Wilgus2018-10-25
| | | | | | Put rliimage functions into the rb.image metatable instead of the rb. table Change-Id: Iecdc564c2ea9739656e2025b51bb5d5c62e3dbc1
* lua move rocklib_img to its own separate loadable moduleWilliam Wilgus2018-10-22
| | | | | | | | | allows rocklib_img to be excluded if needed stops rocklib_aux from generating redundant prototypes for lcd_mono_bitmap[_part] Change-Id: Ie208ad71ab5f9a7deb026dc01a5b0a0631a0d29c
* Fix red rocklib_img 32-24 bit targetsWilliam Wilgus2018-10-08
| | | | | | | int is an incompatible type for targets that have 32bit fb_data need to use FB_SCALARPACK for them Change-Id: Ib3b5ff19c54d8d1bb76af33d0538a17a71301514
* Clean up rocklib_imgWilliam Wilgus2018-10-09
| | | | | | | optimize both size and speed fix invert for color screens Change-Id: I7edecae32dcb3daf5b3ed984a0e5b3d463269e60
* lua move RLIMAGE to own fileWilliam Wilgus2018-09-14
Change-Id: Icd10e4c348deec7729d4a6e2bf1152e1dfc70243