Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: mperdue@iquest.net (Mario Perdue) Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: TIM File Date: Thu, 29 May 1997 14:58:57 GMT Organization: SCEA Net Yaroze News Lines: 53 Message-ID: <338d9990.23910984@205.149.189.29> References: <01bc6987$18ba5f60$3da2cdcd@default> <338CDAE0.434B@earthlink.net> NNTP-Posting-Host: filter-hrtc1.nortel.net X-Newsreader: Forte Free Agent 1.1/32.230 Thanks Jack. On Wed, 28 May 1997 21:24:49 -0400, Jack Copper wrote: >Nelson, >If you loaded a standard TIM file at 0x80110000, you want to point 4 >bytes past that address when you pass it to GsGetTimInfo. You need to >skip the file size that is in the first 4 bytes (a 32 bit integer). See >page 113 in the Library Reference. > >Your call should be: >GsGetTimInfo( (u_long *)(PICTURE+4), &Image ); > >The stuff below is bogus because the address you passed wasn't right. > >Try the right address and the numbers you get should make more sense.. > >Jack Copper > >> printf("Pixel Mode: %u\n",Image.pmode); >> printf(" Pixel X: %u\n",Image.px); >> printf(" Pixel Y: %u\n",Image.py); >> printf(" Pixel *: %x\n",Image.pixel); >> printf(" CLUT CX: %u\n",Image.cx); >> printf(" CLUT CY: %u\n",Image.cy); >> printf(" CLUT CW: %u\n",Image.cw); >> printf(" CLUT CH: %u\n",Image.ch); >> printf(" CLUT *: %x\n",Image.clut); >> } >> //----------------------------------------- >> >> This is the output produced: >> >> Pixel Mode: 16 >> Pixel X: 22540 >> Pixel Y: 2 >> Pixel *: 80110010 >> CLUT CX: 17 >> CLUT CY: 4294963200 >> CLUT CW: 8192 >> CLUT CH: 0 >> CLUT *: 2000 >> >> Aside from "Pixel Mode" and "Pixel *", the rest of these values make NO >> SENSE to me. "Pixel Mode", according to the Library Reference Page 30, >> should be between 0 and 4. I'm getting 16. I'm assuming this means 16 bit >> and there is an error in the Library Reference. >> >> HELP! Please clarify the rest of these numbers for me! Thanks! >> >> Nelson.