3131#include "PixelBuf.h"
3232#include <string.h>
3333
34- void pixelbuf_set_pixel_int (uint8_t * buf , mp_int_t value , pixelbuf_byteorder_obj_t * byteorder ) {
34+ void pixelbuf_set_pixel_int (uint8_t * buf , mp_int_t value , pixelbuf_byteorder_details_t * byteorder ) {
3535 buf [byteorder -> byteorder .r ] = value >> 16 & 0xff ;
3636 buf [byteorder -> byteorder .g ] = (value >> 8 ) & 0xff ;
3737 buf [byteorder -> byteorder .b ] = value & 0xff ;
@@ -43,7 +43,7 @@ void pixelbuf_set_pixel_int(uint8_t *buf, mp_int_t value, pixelbuf_byteorder_obj
4343 }
4444}
4545
46- void pixelbuf_set_pixel (uint8_t * buf , uint8_t * rawbuf , float brightness , mp_obj_t * item , pixelbuf_byteorder_obj_t * byteorder , bool dotstar ) {
46+ void pixelbuf_set_pixel (uint8_t * buf , uint8_t * rawbuf , float brightness , mp_obj_t * item , pixelbuf_byteorder_details_t * byteorder , bool dotstar ) {
4747 if (MP_OBJ_IS_INT (item )) {
4848 uint8_t * target = rawbuf ? rawbuf : buf ;
4949 pixelbuf_set_pixel_int (target , mp_obj_get_int_truncated (item ), byteorder );
@@ -94,7 +94,7 @@ void pixelbuf_set_pixel(uint8_t *buf, uint8_t *rawbuf, float brightness, mp_obj_
9494 }
9595}
9696
97- mp_obj_t * pixelbuf_get_pixel_array (uint8_t * buf , uint len , pixelbuf_byteorder_obj_t * byteorder , uint8_t step , bool dotstar ) {
97+ mp_obj_t * pixelbuf_get_pixel_array (uint8_t * buf , uint len , pixelbuf_byteorder_details_t * byteorder , uint8_t step , bool dotstar ) {
9898 mp_obj_t elems [len ];
9999 for (uint i = 0 ; i < len ; i ++ ) {
100100 elems [i ] = pixelbuf_get_pixel (buf + (i * step ), byteorder , dotstar );
0 commit comments