Lines Matching refs:p
191 char *p; in DEMOGfxInit() local
248 p = strstr(argv[i], "DEMO_WIDTH"); in DEMOGfxInit()
249 if (p != 0){ in DEMOGfxInit()
250 renderWidth = (u32)atoi(p+10+SKIP_NON_DIGIT(p[10])); in DEMOGfxInit()
252 p = strstr(argv[i], "DEMO_HEIGHT"); in DEMOGfxInit()
253 if (p != 0){ in DEMOGfxInit()
254 renderHeight = (u32)atoi(p+11+SKIP_NON_DIGIT(p[11])); in DEMOGfxInit()
256 p = strstr(argv[i], "DEMO_CB_FORMAT"); in DEMOGfxInit()
257 if (p != 0){ in DEMOGfxInit()
258 p = p+14+SKIP_NON_DIGIT(p[14]); in DEMOGfxInit()
259 if(strncmp(p, "10_10_10_2", 10) == 0){ in DEMOGfxInit()
261 } else if(strncmp(p, "2_10_10_10", 10) == 0){ in DEMOGfxInit()
263 } else if(strncmp(p, "8_8_8_8_SRGB", 12) == 0){ in DEMOGfxInit()
265 } else if(strncmp(p, "8_8_8_8", 7) == 0){ in DEMOGfxInit()
267 } else if(strncmp(p, "16_16_16_16F", 12) == 0){ in DEMOGfxInit()
269 } else if(strncmp(p, "32_32_32_32F", 12) == 0){ in DEMOGfxInit()
271 } else if(strncmp(p, "16", 2) == 0){ in DEMOGfxInit()
273 } else if(strncmp(p, "32F", 3) == 0){ in DEMOGfxInit()
276 DEMOPrintf("Unrecognized CB format: %s\n",p); in DEMOGfxInit()
279 p = strstr(argv[i], "DEMO_SCAN_FORMAT"); in DEMOGfxInit()
280 if (p != 0){ in DEMOGfxInit()
281 p = p+16+SKIP_NON_DIGIT(p[16]); in DEMOGfxInit()
282 if(strncmp(p, "10_10_10_2", 10) == 0){ in DEMOGfxInit()
284 }else if(strncmp(p, "2_10_10_10", 10) == 0){ in DEMOGfxInit()
286 }else if(strncmp(p, "8_8_8_8_SRGB", 12) == 0){ in DEMOGfxInit()
288 }else if(strncmp(p, "8_8_8_8", 7) == 0){ in DEMOGfxInit()
291 DEMOPrintf("Unrecognized SCAN format: %s\n",p); in DEMOGfxInit()
294 p = strstr(argv[i], "DEMO_DB_FORMAT"); in DEMOGfxInit()
295 if (p != 0){ in DEMOGfxInit()
296 p = p+14+SKIP_NON_DIGIT(p[14]); in DEMOGfxInit()
297 if(strncmp(p, "16", 2) == 0){ in DEMOGfxInit()
299 }else if(strncmp(p, "8_24F", 5) == 0){ in DEMOGfxInit()
301 }else if(strncmp(p, "8_24", 4) == 0){ in DEMOGfxInit()
303 }else if(strncmp(p, "X24_8_32F", 9) == 0){ in DEMOGfxInit()
305 }else if(strncmp(p, "32F", 3) == 0){ in DEMOGfxInit()
308 DEMOPrintf("Unrecognized DB format: %s\n",p); in DEMOGfxInit()
311 p = strstr(argv[i], "DEMO_AA_MODE"); in DEMOGfxInit()
312 if (p != 0){ in DEMOGfxInit()
313 renderAAMode = (GX2AAMode)atoi(p+12+SKIP_NON_DIGIT(p[12])); in DEMOGfxInit()
316 p = strstr(argv[i], "DEMO_FONT_DISABLE"); in DEMOGfxInit()
317 if (p != 0){ in DEMOGfxInit()
321 p = strstr(argv[i], "DEMO_HIZ_DISABLE"); in DEMOGfxInit()
322 if (p != 0){ in DEMOGfxInit()
327 p = strstr(argv[i], "DEMO_GX2_DEBUG_MODE"); in DEMOGfxInit()
328 if (p != 0) in DEMOGfxInit()
330 … sscanf(p+strlen("DEMO_GX2_DEBUG_MODE="), "%i", &gx2DebugMode); // allows hex notation in DEMOGfxInit()
333 p = strstr(argv[i], "DEMO_GX2R_DEBUG_OPTIONS"); in DEMOGfxInit()
334 if (p != 0) in DEMOGfxInit()
336 … sscanf(p+strlen("DEMO_GX2R_DEBUG_OPTIONS="), "%i", &gx2rDebugOptions); // allows hex notation in DEMOGfxInit()
339 p = strstr(argv[i], "DEMO_SWAP_INTERVAL"); in DEMOGfxInit()
340 if (p != 0) in DEMOGfxInit()
343 swapInterval = atoi(p+offset+SKIP_NON_DIGIT(p[offset])); in DEMOGfxInit()
347 p = strstr(argv[i], "DEMO_FORCE_MEM2"); in DEMOGfxInit()
348 if (p != 0){ in DEMOGfxInit()
355 p = strstr(argv[i], "DEMO_ASSETS_DIR="); in DEMOGfxInit()
356 if (p != 0){ in DEMOGfxInit()
360 strncpy(tempBuffer, p+strlen("DEMO_ASSETS_DIR="), MAX_ASSET_DIR_LEN - 2); in DEMOGfxInit()