# HG changeset patch # User nenolod # Date 1163974267 28800 # Node ID a1517b09cb3ace2f2749145633ffc97b485010df # Parent ebc4497b8044c0e5c7c48bcfdbc7ba9cda7ab0b9 [svn] - add an option to make it only render the downscaled image. diff -r ebc4497b8044 -r a1517b09cb3a ChangeLog --- a/ChangeLog Sun Nov 19 12:38:53 2006 -0800 +++ b/ChangeLog Sun Nov 19 14:11:07 2006 -0800 @@ -1,3 +1,12 @@ +2006-11-19 20:38:53 +0000 Kiyoshi Aman + revision [576] + Another demo of the halfrender transform. + + trunk/src/paranormal/presets/Makefile | 3 + + trunk/src/paranormal/presets/aerdan_-_telestatic.pnv | 30 +++++++++++++++++++ + 2 files changed, 32 insertions(+), 1 deletion(-) + + 2006-11-19 20:06:20 +0000 William Pitcock revision [574] - add halfrender transform, and a new preset which demonstrates what it can do. diff -r ebc4497b8044 -r a1517b09cb3a src/paranormal/xform.c --- a/src/paranormal/xform.c Sun Nov 19 12:38:53 2006 -0800 +++ b/src/paranormal/xform.c Sun Nov 19 14:11:07 2006 -0800 @@ -388,6 +388,8 @@ { { "direction", "Negative is horizontal, positive is vertical.", OPT_TYPE_INT, { ival: 1 } }, + { "render_twice", "Render the second image.", + OPT_TYPE_BOOLEAN, { bval: TRUE } }, { NULL } }; @@ -405,8 +407,11 @@ { pn_image_data->surface[1][PN_IMG_INDEX(x, y / 2)] = pn_image_data->surface[0][PN_IMG_INDEX(x, y)]; - pn_image_data->surface[1][PN_IMG_INDEX(x, (y / 2) + (pn_image_data->height / 2))] = - pn_image_data->surface[0][PN_IMG_INDEX(x, y)]; + if (opts[1].val.bval) + { + pn_image_data->surface[1][PN_IMG_INDEX(x, (y / 2) + (pn_image_data->height / 2))] = + pn_image_data->surface[0][PN_IMG_INDEX(x, y)]; + } } } } @@ -418,8 +423,11 @@ { pn_image_data->surface[1][PN_IMG_INDEX(x / 2, y)] = pn_image_data->surface[0][PN_IMG_INDEX(x, y)]; - pn_image_data->surface[1][PN_IMG_INDEX((x / 2) + (pn_image_data->width / 2), y)] = - pn_image_data->surface[0][PN_IMG_INDEX(x, y)]; + if (opts[1].val.bval) + { + pn_image_data->surface[1][PN_IMG_INDEX((x / 2) + (pn_image_data->width / 2), y)] = + pn_image_data->surface[0][PN_IMG_INDEX(x, y)]; + } } } }