Lines Matching refs:rpath
200 NEOERR *rotate_image(char *path, char *file, int degree, char *rpath) in rotate_image() argument
211 snprintf (rpath, _POSIX_PATH_MAX, "%s/%s", path, file); in rotate_image()
212 ch = strrchr(rpath, '.'); in rotate_image()
227 strcat(rpath, "_r"); in rotate_image()
232 strcat(rpath, "_l"); in rotate_image()
237 strcat(rpath, "_u"); in rotate_image()
246 strcat(rpath, ".jpg"); in rotate_image()
247 …printf(cmd, sizeof(cmd), "djpeg -pnm %s | pnmflip %s | cjpeg -quality 85 > %s", ofile, opt, rpath); in rotate_image()
251 strcat(rpath, ".gif"); in rotate_image()
252 snprintf(cmd, sizeof(cmd), "giftopnm %s | pnmflip %s | ppmtogif > %s", ofile, opt, rpath); in rotate_image()
255 if (!stat(rpath, &s)) in rotate_image()