Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit256a27a

Browse files
committed
updates RGB driver
I am making a change to the RGB driver that will hopefully give a little bit better performance.I opted to look at the buffers as if it was a buffer full of pixel data instead of byte data. so now instead of moving one byte at a time I am moving 1 pixel at a time. I believe the way I was going about it before was negating the inline for the functions. If that was the case then it would cause a lot of additional overhead. Plus instead of copying 1 byte at a time I am now copying 1 pixel ata time which should hopefully give a speed bump. How much I am not sure.I also corrected the blank line that would appear in rotations other than 0 degrees. It was corrected in Python code but that is not the best place to handle it. Having to do an instance check and checking the rotation every single time the flush function was called is less than ideal. The execution time of Python code can be some 200 times slower than C code, it was best to handle the problem in C code. I was able to do it so no additional overhead was added in the process.I am hoping the changes work and there is some performance gains seen from doing it. We will find out.
1 parentd589b25 commit256a27a

File tree

2 files changed

+274
-87
lines changed

2 files changed

+274
-87
lines changed

‎api_drivers/py_api_drivers/frozen/display/display_driver_framework.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,6 @@ def _flush_cb(self, _, area, color_p):
566566
lv.color_format_get_size(self._color_space)
567567
)
568568

569-
ifisinstance(self._data_bus,lcd_bus.RGBBus)andself._rotation>0:
570-
y2+=1
571-
572569
cmd=self._set_memory_location(x1,y1,x2,y2)
573570

574571
# we have to use the __dereference__ method because this method is

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp