Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sixel_frame_resize(): If width and height are unchanged, nothing to do. #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rokuyama
Copy link

@rokuyama rokuyama commented Sep 2, 2022

This significantly reduces floating-point calculations when used with,
e.g., w3m.

This significantly reduces floating-point calculations when used with,
e.g., w3m.
rokuyama added a commit to rokuyama/w3m that referenced this pull request Sep 2, 2022
With this fix combined with fix to libsixel:

saitoha/libsixel#170

browsing on slow machines (e.g., when floating-point calculation is
emulated by kernel) gets significantly speed up.

Note that if i->cache->a_width (i->cache->a_height) is zero, width
(height) should be set to zero. Otherwise, image in screen boundary
(i.e., partially displayed) becomes strangely resized.
@t-bltg
Copy link

t-bltg commented Sep 5, 2022

@rokuyama, you might want to check out #154, and open a copy of your PR at https://github.com/libsixel/libsixel.

bptato pushed a commit to bptato/w3m that referenced this pull request Jul 29, 2023
With this fix combined with fix to libsixel:

saitoha/libsixel#170

browsing on slow machines (e.g., when floating-point calculation is
emulated by kernel) gets significantly speed up.

Note that if i->cache->a_width (i->cache->a_height) is zero, width
(height) should be set to zero. Otherwise, image in screen boundary
(i.e., partially displayed) becomes strangely resized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants