Lines Matching refs:fn
456 char fn[256]; in my_raw_callback() local
466 fn[0] = 0; in my_raw_callback()
467 sprintf(fn, "/sdcard/img%03d.raw", counter); in my_raw_callback()
468 fd = open(fn, O_CREAT | O_WRONLY | O_TRUNC, 0777); in my_raw_callback()
484 printf("Bad Write int a %s error (%d)%s\n", fn, errno, strerror(errno)); in my_raw_callback()
488 __FUNCTION__, (int)buff, size, fn); in my_raw_callback()
503 char fn[256]; in saveFile() local
510 fn[0] = 0; in saveFile()
511 sprintf(fn, "/sdcard/preview%03d.yuv", counter); in saveFile()
512 fd = open(fn, O_CREAT | O_WRONLY | O_TRUNC, 0777); in saveFile()
514 ALOGE("Unable to open file %s: %s", fn, strerror(fd)); in saveFile()
531 printf("Bad Write int a %s error (%d)%s\n", fn, errno, strerror(errno)); in saveFile()
589 char fn[256]; in my_jpeg_callback() local
599 fn[0] = 0; in my_jpeg_callback()
600 sprintf(fn, "%s/img%03d.jpg", dir_path,counter); in my_jpeg_callback()
601 fd = open(fn, O_CREAT | O_WRONLY | O_TRUNC, 0777); in my_jpeg_callback()
604 ALOGE("Unable to open file %s: %s", fn, strerror(fd)); in my_jpeg_callback()
621 printf("Bad Write int a %s error (%d)%s\n", fn, errno, strerror(errno)); in my_jpeg_callback()
625 __FUNCTION__, (int)buff, size, fn); in my_jpeg_callback()