Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 05-22-2022, 02:28 PM   #1
gunny
Human being with feelings
 
gunny's Avatar
 
Join Date: May 2014
Location: Ostrava, Czechia
Posts: 72
Default Video: gfx_blit() parameters and rounding

I am trying to do a very slow zoom of a static image and it's still rather jerky.
I reduced the default code a bit and it seems the main problem is the rounding in gfx_blit.

Code:
gfx_blit(input[,preserve_aspect=0,x,y,w,h,srcx,srcy,srcw,srch])
Draws input to framebuffer. preserve_aspect=-1 for no fill in pad areas
It does not say what kind of parameters gfx_blit takes and it seems it accepts floats but:

1. Reaper crashed several time while I was twiddling with the zoom knob. I think it happened when srcw or srch got accidentally too big negative value but I am not really sure. Does Reaper check the range of the input parameters?

2. It seems gfx_blit rounds all parameters to whole numbers (i.e. integers). That make sense for x,y,w,h but srcx,srcy,srcw,srch should be more precise. As far as I remember DirectX takes floats <0; 1> for these coordinates and it does not round them to whole pixels. I think Reaper should change this behaviour.
gunny is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.