Lines Matching defs:xinfo
1193 jpeg_transform_info *xinfo=NULL;
1218 if((xinfo=(jpeg_transform_info *)malloc(sizeof(jpeg_transform_info)*n))
1221 MEMZERO(xinfo, sizeof(jpeg_transform_info)*n);
1225 xinfo[i].transform=xformtypes[t[i].op];
1226 xinfo[i].perfect=(t[i].options&TJXOPT_PERFECT)? 1:0;
1227 xinfo[i].trim=(t[i].options&TJXOPT_TRIM)? 1:0;
1228 xinfo[i].force_grayscale=(t[i].options&TJXOPT_GRAY)? 1:0;
1229 xinfo[i].crop=(t[i].options&TJXOPT_CROP)? 1:0;
1230 if(n!=1 && t[i].op==TJXOP_HFLIP) xinfo[i].slow_hflip=1;
1231 else xinfo[i].slow_hflip=0;
1233 if(xinfo[i].crop)
1235 xinfo[i].crop_xoffset=t[i].r.x; xinfo[i].crop_xoffset_set=JCROP_POS;
1236 xinfo[i].crop_yoffset=t[i].r.y; xinfo[i].crop_yoffset_set=JCROP_POS;
1239 xinfo[i].crop_width=t[i].r.w; xinfo[i].crop_width_set=JCROP_POS;
1241 else xinfo[i].crop_width=JCROP_UNSET;
1244 xinfo[i].crop_height=t[i].r.h; xinfo[i].crop_height_set=JCROP_POS;
1246 else xinfo[i].crop_height=JCROP_UNSET;
1258 if(!jtransform_request_workspace(dinfo, &xinfo[i]))
1261 if(xinfo[i].crop)
1263 if((t[i].r.x%xinfo[i].iMCU_sample_width)!=0
1264 || (t[i].r.y%xinfo[i].iMCU_sample_height)!=0)
1269 xinfo[i].iMCU_sample_width, xinfo[i].iMCU_sample_height);
1280 if(!xinfo[i].crop)
1286 w=xinfo[i].crop_width; h=xinfo[i].crop_height;
1296 &xinfo[i]);
1304 &xinfo[i]);
1338 if(xinfo) free(xinfo);