GroovyBee Posted March 3, 2013 Share Posted March 3, 2013 Is there a version of imvtogif that outputs the image sequence in "fat pixel" mode similar to how jzintv displays the image normally? Otherwise the resultant *.gif file's aspect ratio looks very odd. Quote Link to comment https://forums.atariage.com/topic/209570-sdk1600s-imvtogif/ Share on other sites More sharing options...
+DZ-Jay Posted March 3, 2013 Share Posted March 3, 2013 Groovy, Not that I know of. However, I then open it in GIMP and re-scale it without any pixel interpolation to the proper size. -dZ. Quote Link to comment https://forums.atariage.com/topic/209570-sdk1600s-imvtogif/#findComment-2708056 Share on other sites More sharing options...
GroovyBee Posted March 3, 2013 Author Share Posted March 3, 2013 I just thought it would be neat if the extra manual step could be removed from the process. Quote Link to comment https://forums.atariage.com/topic/209570-sdk1600s-imvtogif/#findComment-2708071 Share on other sites More sharing options...
intvnut Posted March 8, 2013 Share Posted March 8, 2013 (edited) Yeah, I currently don't have a scaled mode for that tool. If you wanted to hack something in yourself, you could do the fat-bits compensation in a couple places in util/imvtogif.c: ret = gif_start(&gif, fo, movie.x_dim, movie.y_dim, map_palette, n_cols,1); Change "movie.x_dim" to "movie.x_dim * 2". Next: ret = gif_wr_frame_m(&gif, prev, delay, mode); Instead of coding directly from the buffer 'prev', create a new buffer (I'll call it 'scaled') and encode from there. Declare it as 'uint_8 scaled[MVI_MAX_X * MVI_MAX_Y * 2];' You don't want to disturb 'prev', as it gets used along with 'curr' for time-delta detection, as I recall. So, something like this works as a cheap hack: for (i = 0; i < movie.x_dim * movie.y_dim; i++) scaled[ i*2 + 0 ] = scaled[ i*2 + 1 ] = prev[i]; ret = gif_wr_frame_m(&gif, scaled, delay, mode); At least, I think that works. Completely untested. And, in fact, the computer I use to build the Windows builds of my code has died, so I can't even build a Windows binary for y'all to test if you're on Windows. Edited March 8, 2013 by intvnut 1 Quote Link to comment https://forums.atariage.com/topic/209570-sdk1600s-imvtogif/#findComment-2711395 Share on other sites More sharing options...
GroovyBee Posted March 8, 2013 Author Share Posted March 8, 2013 Thanks for the code change pointers. I did download the source code to it but got distracted by game coding to do anything else (as is the way). Quote Link to comment https://forums.atariage.com/topic/209570-sdk1600s-imvtogif/#findComment-2711421 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.