Lines Matching defs:filename
227 write_ppm(const char *filename, const GLubyte *buffer, int width, int height,
230 FILE *f = fopen( filename, "w" );
239 f = fopen( filename, "ab" ); /* reopen in binary append mode */
242 filename);
257 fprintf(stderr, "Unable to create %s in write_ppm()\n", filename);
288 /* make filename */
334 /* make filename */
454 _mesa_dump_color_buffer(const char *filename)
474 printf("Writing %d x %d color buffer to %s\n", w, h, filename);
475 write_ppm(filename, buf, w, h, 4, 0, 1, 2, GL_TRUE);
484 _mesa_dump_depth_buffer(const char *filename)
509 printf("Writing %d x %d depth buffer to %s\n", w, h, filename);
510 write_ppm(filename, buf2, w, h, 3, 0, 1, 2, GL_TRUE);
520 _mesa_dump_stencil_buffer(const char *filename)
544 printf("Writing %d x %d stencil buffer to %s\n", w, h, filename);
545 write_ppm(filename, buf2, w, h, 3, 0, 1, 2, GL_TRUE);
555 _mesa_dump_image(const char *filename, const void *image, GLuint w, GLuint h,
561 write_ppm(filename, image, w, h, 4, 0, 1, 2, invert);
564 write_ppm(filename, image, w, h, 4, 2, 1, 0, invert);
567 write_ppm(filename, image, w, h, 2, 1, 0, 0, invert);
570 write_ppm(filename, image, w, h, 1, 0, 0, 0, invert);
580 write_ppm(filename, buf, w, h, 4, 0, 1, 2, invert);
591 write_ppm(filename, buf, w, h, 1, 0, 0, 0, invert);