Skip to content

Commit

Permalink
lv_img_conv_py: 3 bytes are 24 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroBurner committed Sep 28, 2023
1 parent 0292036 commit daf02fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/lv_img_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_classify_pixel():
buf[i + 3] = a

elif args.color_format == "CF_TRUE_COLOR_ALPHA" and args.binary_format == "ARGB8565_RBSWAP":
buf = bytearray(img_height*img_width*3) # 3 bytes (21 bit) per pixel
buf = bytearray(img_height*img_width*3) # 3 bytes (24 bit) per pixel
for y in range(img_height):
for x in range(img_width):
i = (y*img_width + x)*3 # buffer-index
Expand Down

0 comments on commit daf02fd

Please sign in to comment.