home *** CD-ROM | disk | FTP | other *** search
/ ftp.xmission.com / 2014.06.ftp.xmission.com.tar / ftp.xmission.com / pub / lists / fractdev / archive / fractdev.9804 < prev    next >
Internet Message Format  |  1998-04-27  |  16KB

  1. From: DeRobertis <derobert@erols.com>
  2. Subject: Re: (fractdev) DiskVid.c vs. The Prototypes File
  3. Date: 04 Apr 1998 15:39:53 -0500
  4.  
  5. >DeRobertis wrote:
  6. >
  7. >> For XFRACT, DiskVid.c and the file with all the prototypes do not agree
  8. >> with each other.
  9. >
  10. >First of all, how should I address you? I can't parse your name from
  11. >your email address :-)
  12.  
  13. My full name is Anthony Stephen DeRobertis.
  14.  
  15. >
  16. >Second, I'm really asleep at the switch. You are doing a Mac port,
  17. >right? How is it going?  I hope you haven't given up yet, lots of
  18. >folks are asking for this.
  19.  
  20. Its progressing, albeit slowly. There have been a few peoblems over here
  21. (ie, getting a replacement 32MB DIMM). One does not have fun with a 16MB
  22. PowerPC :(
  23.  
  24. >
  25. >Thirdly, for XFRACT, diskvid.c is not used. We went to a lot of
  26. >trouble under DOS to make disk video modes, and even wroyte our own
  27. >cache. Since UNIX has plenty of memory, Xfractint just makes a big
  28. >array. All the routines are in diskvidu.c.
  29. >
  30. >I will, however, check that the prototypes match. This afternoon I
  31. >got my Xfract version up to 1961 patch 35 with no difficulties.
  32. >
  33. >I did leave the makefile out of the x1961p28.zip file at my FTP site.
  34. >I'll update this file soon.
  35.  
  36. I'll worry about that as soon as it compiles :(
  37.  
  38.  
  39.  
  40. -
  41. Thanks for using Fractdev, The Fractint Developer's Discussion List
  42. Post Message:   fractdev@xmission.com
  43. Get Commands:   majordomo@xmission.com "help"
  44. Administrator:  twegner@phoenix.net
  45. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  46.  
  47.  
  48. -------------------------------------------------------------------------------
  49.  
  50. From: DeRobertis <derobert@erols.com>
  51. Subject: (fractdev) CMDFILES.c
  52. Date: 05 Apr 1998 04:07:05 -0400
  53.  
  54. Question 1: What do all these variables which are initialized do?
  55.  
  56. Can I make my own printer type for the Macintosh printing? If so, which
  57. value should I use?
  58.  
  59.    Printer_Type = DEFAULT_PRINTER;      /* assume an IBM/EPSON    */
  60.    Printer_Resolution = PRT_RESOLUTION; /* assume low resolution  */
  61.  
  62. Is resolution in pixels per inch?
  63.  
  64.  
  65. Question 2: What is with:
  66.  
  67.     int getpower10(LDBL x)
  68.         {
  69.             char string[11]; /* space for "+x.xe-xxxx" */
  70.             int p;
  71.  
  72.     #ifdef USE_LONG_DOUBLE
  73.              sprintf(string,"%+.1Le", x);
  74.     #else
  75.             sprintf(string,"%+.1le", x);
  76.     #endif
  77.               p = atoi(string+5);
  78.             return p;
  79.         }
  80.  
  81. Is this just returning the exponent field? Must it work negitive numbers?
  82.     When x is positive, what's wrong with
  83.         return(int(ciel(log10(x))); ?
  84.     is it faster to do the above?
  85.  
  86.  
  87.  
  88. -
  89. Thanks for using Fractdev, The Fractint Developer's Discussion List
  90. Post Message:   fractdev@xmission.com
  91. Get Commands:   majordomo@xmission.com "help"
  92. Administrator:  twegner@phoenix.net
  93. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  94.  
  95.  
  96. -------------------------------------------------------------------------------
  97.  
  98. From: DeRobertis <derobert@erols.com>
  99. Subject: (fractdev) XZoomWaiting
  100. Date: 05 Apr 1998 06:10:14 -0400
  101.  
  102. Yet Another Question:
  103.     What is "XZoomWaiting"?
  104.  
  105. It seems to be an extern int out of the blue.
  106.  
  107.  
  108. Is this some X thing? Could someone provide me a list of these and what
  109. they do?
  110.  
  111.  
  112.  
  113. And does int main() not get called under X? It has a lot of DOS stuff in it...
  114.  
  115.  
  116.  
  117. -
  118. Thanks for using Fractdev, The Fractint Developer's Discussion List
  119. Post Message:   fractdev@xmission.com
  120. Get Commands:   majordomo@xmission.com "help"
  121. Administrator:  twegner@phoenix.net
  122. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  123.  
  124.  
  125. -------------------------------------------------------------------------------
  126.  
  127. From: "Tim Wegner" <twegner@phoenix.net>
  128. Subject: Re: (fractdev) CMDFILES.c
  129. Date: 06 Apr 1998 22:39:52 -0600
  130.  
  131. Anthony asked:
  132.  
  133. > Question 1: What do all these variables which are initialized do?
  134. > Can I make my own printer type for the Macintosh printing? If so, which
  135. > value should I use?
  136. >    Printer_Type = DEFAULT_PRINTER;      /* assume an IBM/EPSON    */
  137. >    Printer_Resolution = PRT_RESOLUTION; /* assume low resolution  */
  138. > Is resolution in pixels per inch?
  139.  
  140. Fractint's printing facilities are horrible. While as literal a port 
  141. as possible is a good idea at first, in this case I'd say you should 
  142. implement a completely separate printing facility using MacIntosh 
  143. resources. You should have some Mac-only files for this code, and not 
  144. put it in the shared files.
  145.  
  146.  
  147. > Question 2: What is with:
  148. >     int getpower10(LDBL x)
  149. >         {
  150. >             char string[11]; /* space for "+x.xe-xxxx" */
  151. >             int p;
  152. >     #ifdef USE_LONG_DOUBLE
  153. >              sprintf(string,"%+.1Le", x);
  154. >     #else
  155. >             sprintf(string,"%+.1le", x);
  156. >     #endif
  157. >               p = atoi(string+5);
  158. >             return p;
  159. >         }
  160. > Is this just returning the exponent field? 
  161.  
  162. Yes.
  163.  
  164. >Must it work negitive numbers?
  165.  
  166. Good question! In principle yes, although we've not systematically 
  167. considered zooming out. 
  168.  
  169. >     When x is positive, what's wrong with
  170. >         return(int(ciel(log10(x))); ?
  171.  
  172. We are at present still using standard C functions. You can use C++ 
  173. functions in Mac-specific files, but please don't in shared modules, 
  174. unless you are giving up staying synched with Fractint sources.
  175.  
  176. >     is it faster to do the above?
  177.  
  178. Speed is a non-issue for this function. It's just a quick and dirty 
  179. way to extract the expoenet for various precision estimates. The 
  180. function is never used where speed is important.
  181.  
  182. This whole precision area needs work. It's not easy.
  183.  
  184. Tim
  185.  
  186.  
  187. -
  188. Thanks for using Fractdev, The Fractint Developer's Discussion List
  189. Post Message:   fractdev@xmission.com
  190. Get Commands:   majordomo@xmission.com "help"
  191. Administrator:  twegner@phoenix.net
  192. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  193.  
  194.  
  195. -------------------------------------------------------------------------------
  196.  
  197. From: "Tim Wegner" <twegner@phoenix.net>
  198. Subject: Re: (fractdev) XZoomWaiting
  199. Date: 06 Apr 1998 22:39:52 -0600
  200.  
  201.  
  202. > Yet Another Question:
  203. >     What is "XZoomWaiting"?
  204. > It seems to be an extern int out of the blue.
  205. > Is this some X thing? Could someone provide me a list of these and what
  206. > they do?
  207. > And does int main() not get called under X? It has a lot of DOS stuff in it...
  208.  
  209. I need help with your X questions. I'm totally ignorant of X.
  210.  
  211. I would assume that you would not port any of the X-specific code, 
  212. but only the shared DOS/UNIX code. 
  213.  
  214. Tim
  215.  
  216. -
  217. Thanks for using Fractdev, The Fractint Developer's Discussion List
  218. Post Message:   fractdev@xmission.com
  219. Get Commands:   majordomo@xmission.com "help"
  220. Administrator:  twegner@phoenix.net
  221. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  222.  
  223.  
  224. -------------------------------------------------------------------------------
  225.  
  226. From: Sylvie Gallet <Sylvie_Gallet@compuserve.com>
  227. Subject: (fractdev) Colormap bug: a suggestion
  228. Date: 12 Apr 1998 11:33:14 -0400
  229.  
  230. Hi Tim,
  231.  
  232.   Could you add the following lines between lines 1002 and 1003 in
  233. Miscovl.c?
  234.  
  235.                        if (scanc > 4 && scanc < maxcolor-5)
  236.                           if (abs(2*dacbox[scanc][j] - dacbox[scanc-5][j]=
  237.  
  238.                               - dacbox[scanc+5][j]) >=3D 2)
  239.                              break;
  240.  
  241.   (Forgive my ignorance, I don't know the difference between
  242. dacbox[scanc][j]  and (int)dacbox[scanc][j]...)
  243.  
  244.   The loop should look like that:
  245.   =
  246.  
  247.                for (k =3D 0; k <=3D i; ++k) {
  248.                   for (j =3D 0; j < 3; ++j) { /* check pattern of chg per=
  249.  
  250. color */
  251.                      delta =3D (int)dacbox[scanc][j] -
  252. (int)dacbox[scanc-k-1][j];
  253.                      if (k =3D=3D scanc - curc)
  254.                         diff1[k][j] =3D diff2[k][j] =3D delta;
  255.                      else
  256.                         if (delta !=3D diff1[k][j] && delta !=3D diff2[k]=
  257. [j]) {
  258.                            diffmag =3D abs(delta - diff1[k][j]);
  259.                            if (diff1[k][j] !=3D diff2[k][j] || diffmag !=3D=
  260.  1)
  261.                               break;
  262.                            diff2[k][j] =3D delta;
  263.                         if (scanc > 4 && scanc < maxcolor-5)
  264.                            if (abs(2*dacbox[scanc][j] - dacbox[scanc-5][j=
  265. ]
  266.                                - dacbox[scanc+5][j]) >=3D 2)
  267.                               break;
  268.                            }
  269.                      }
  270.                   if (j < 3) break; /* must've exited from inner loop abo=
  271. ve
  272. */
  273.                   }
  274.  
  275.   Cheers,
  276.  
  277.         - Sylvie
  278.  
  279. -
  280. Thanks for using Fractdev, The Fractint Developer's Discussion List
  281. Post Message:   fractdev@xmission.com
  282. Get Commands:   majordomo@xmission.com "help"
  283. Administrator:  twegner@phoenix.net
  284. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  285.  
  286.  
  287. -------------------------------------------------------------------------------
  288.  
  289. From: "Tim Wegner" <twegner@phoenix.net>
  290. Subject: Re: (fractdev) Colormap bug: a suggestion
  291. Date: 12 Apr 1998 14:25:57 -0600
  292.  
  293. Sylvie wrote:
  294.  
  295. >   Could you add the following lines between lines 1002 and 1003 in
  296. > Miscovl.c?
  297.  
  298. Will do. Can you tell me what you are trying to 
  299. accomplish with this? Will get back to you shortly.
  300.  
  301. I have already learned that changing the the line
  302.  
  303. >  if (diff1[k][j] != diff2[k][j] || diffmag != 1)
  304.  
  305. to
  306.  
  307. >  if (diff1[k][j] != diff2[k][j] || diffmag >= 1)
  308.  
  309. Causes lossless compression with a worsening of compression 
  310. ratio.
  311.  
  312. Tim
  313.  
  314.  
  315. -
  316. Thanks for using Fractdev, The Fractint Developer's Discussion List
  317. Post Message:   fractdev@xmission.com
  318. Get Commands:   majordomo@xmission.com "help"
  319. Administrator:  twegner@phoenix.net
  320. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  321.  
  322.  
  323. -------------------------------------------------------------------------------
  324.  
  325. From: "Tim Wegner" <twegner@phoenix.net>
  326. Subject: Re: (fractdev) Colormap bug: a suggestion
  327. Date: 12 Apr 1998 14:25:57 -0600
  328.  
  329. Sylvie:
  330.  
  331. >   Could you add the following lines between lines 1002 and 1003 in
  332. > Miscovl.c?
  333.  
  334. The result with lyapunov.map is:
  335.  
  336. colors=000zk0zk0zk0zk0<250>000
  337.  
  338. which still has some big errors. If you want to see the executable or 
  339. see the results of a different test case let me know.
  340.  
  341. >   (Forgive my ignorance, I don't know the difference between
  342. > dacbox[scanc][j]  and (int)dacbox[scanc][j]...)
  343.  
  344. There is no difference. The "(int)" explicity converts dacbox[][] 
  345. from unsigned char to integer, but C would make that conversion 
  346. anyway.
  347.  
  348. I appreciate your looking at the color map stuff. I seem to have had 
  349. an aversion to diving into this code, but I'm overcoming it <g!>
  350.  
  351. Tim
  352.  
  353.  
  354. -
  355. Thanks for using Fractdev, The Fractint Developer's Discussion List
  356. Post Message:   fractdev@xmission.com
  357. Get Commands:   majordomo@xmission.com "help"
  358. Administrator:  twegner@phoenix.net
  359. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  360.  
  361.  
  362. -------------------------------------------------------------------------------
  363.  
  364. From: Sylvie Gallet <Sylvie_Gallet@compuserve.com>
  365. Subject: Re: (fractdev) Colormap bug: a suggestion
  366. Date: 12 Apr 1998 18:41:52 -0400
  367.  
  368. Tim,
  369.  
  370. >> The result with lyapunov.map is:
  371. >>
  372. >> colors=3D000zk0zk0zk0zk0<250>000
  373. >>
  374. >> which still has some big errors.
  375.  
  376.   Nearly the same errors than before!
  377.  
  378.   Now, maybe I could explain what I was trying to do...  Consider a map i=
  379. n
  380. which the first 32 colors have the following red components:
  381.  
  382.  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4
  383.  
  384.   the resulting color string is:
  385.  
  386.   000<30>400...
  387.  
  388.   and the map becomes:
  389.  
  390.  0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4
  391.  
  392.   My idea was to compare the value of color #c with the average of color
  393. #(c-5) and #(c+5), the second line shows the value of
  394.   a =3D abs[2*color#c - color#(c-5) - #(c+5)]
  395.  
  396.  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4
  397.            0 0 0 0 0 0 1 1 1 1 2 0 0 0 1 1 0 0 1 1 0 0
  398.  
  399.   and to exit the loop when this value is >=3D 2.
  400.  
  401.   BTW, the first test should be:
  402.  
  403.                        if (scanc > (curc+4) && scanc < (maxcolor-5))
  404.  
  405. >> If you want to see the executable or see the results of a different
  406. >> test case let me know.
  407.  
  408.   Let me know the result with lyapunov.map and with the example above.
  409.  
  410. >> I appreciate your looking at the color map stuff. I seem to have had =
  411.  
  412. >> an aversion to diving into this code, but I'm overcoming it <g!>
  413.  
  414.   It's a bit obscure... <g!>
  415.  
  416.   Cheers,
  417.  
  418.         - Sylvie
  419.  
  420. -
  421. Thanks for using Fractdev, The Fractint Developer's Discussion List
  422. Post Message:   fractdev@xmission.com
  423. Get Commands:   majordomo@xmission.com "help"
  424. Administrator:  twegner@phoenix.net
  425. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  426.  
  427.  
  428. -------------------------------------------------------------------------------
  429.  
  430. From: "Tim Wegner" <twegner@phoenix.net>
  431. Subject: Re: (fractdev) Colormap bug: a suggestion
  432. Date: 12 Apr 1998 17:49:01 -0600
  433.  
  434. Sylvie, your suggested change helps with the default palette. I have 
  435. sent you:
  436.  
  437. 1. Modified fractint executable. by using debug= you can select your 
  438. change or the "perfect" mode or both. See what's new for debug 
  439. values.
  440.  
  441. 2. A utility maperrs.exe that shows the exact differences between two 
  442. map files, as well as statistics (total rss difference/colors, and 
  443. max error per color.
  444.  
  445. 3. Source code for miscovl.c so you can see exactly what I did.
  446.  
  447. I think I need to make a little map to PAR and back utility for 
  448. optimizing the colors= compression algorithm.
  449.  
  450. Tim
  451.  
  452. -
  453. Thanks for using Fractdev, The Fractint Developer's Discussion List
  454. Post Message:   fractdev@xmission.com
  455. Get Commands:   majordomo@xmission.com "help"
  456. Administrator:  twegner@phoenix.net
  457. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  458.  
  459.  
  460. -------------------------------------------------------------------------------
  461.  
  462. From: "Tim Wegner" <twegner@phoenix.net>
  463. Subject: Re: (fractdev) Colormap bug: a suggestion
  464. Date: 12 Apr 1998 17:54:10 -0600
  465.  
  466. > Date:          Sun, 12 Apr 1998 18:41:52 -0400
  467. > From:          Sylvie Gallet <Sylvie_Gallet@compuserve.com>
  468. > Subject:       Re: (fractdev) Colormap bug: a suggestion
  469. > To:            Blind.Copy.Receiver@compuserve.com
  470. > Reply-to:      fractdev@lists.xmission.com
  471.  
  472. > Tim,
  473. > >> The result with lyapunov.map is:
  474. > >>
  475. > >> colors=000zk0zk0zk0zk0<250>000
  476. > >>
  477. > >> which still has some big errors.
  478. >   Nearly the same errors than before!
  479. >   Now, maybe I could explain what I was trying to do...  Consider a map in
  480. > which the first 32 colors have the following red components:
  481. >  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4
  482. >   the resulting color string is:
  483. >   000<30>400...
  484. >   and the map becomes:
  485. >  0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4
  486. >   My idea was to compare the value of color #c with the average of color
  487. > #(c-5) and #(c+5), the second line shows the value of
  488. >   a = abs[2*color#c - color#(c-5) - #(c+5)]
  489. >  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4
  490. >            0 0 0 0 0 0 1 1 1 1 2 0 0 0 1 1 0 0 1 1 0 0
  491. Sylvie wrote:
  492.  
  493. >   BTW, the first test should be:
  494. >                        if (scanc > (curc+4) && scanc < (maxcolor-5))
  495.  
  496. Our mail crossed! I'll change your proposal accordingly and resend 
  497. the file.
  498.  
  499. Tim
  500.  
  501.  
  502.  
  503. -
  504. Thanks for using Fractdev, The Fractint Developer's Discussion List
  505. Post Message:   fractdev@xmission.com
  506. Get Commands:   majordomo@xmission.com "help"
  507. Administrator:  twegner@phoenix.net
  508. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  509.  
  510.  
  511. -------------------------------------------------------------------------------
  512.  
  513. From: RBarn0001 <RBarn0001@aol.com>
  514. Subject: (fractdev) test
  515. Date: 28 Apr 1998 18:32:17 EDT
  516.  
  517.  
  518. I have been unable to use my computer most of this month and my mail box
  519. filled up. I am just checking to see if I was knocked of the list because of
  520. returned mail.
  521. Ron Barnett
  522.  
  523. -
  524. Thanks for using Fractdev, The Fractint Developer's Discussion List
  525. Post Message:   fractdev@xmission.com
  526. Get Commands:   majordomo@xmission.com "help"
  527. Administrator:  twegner@phoenix.net
  528. Unsubscribe:    majordomo@xmission.com "unsubscribe fractdev"
  529.  
  530.