Lines Matching refs:src_dim
724 p_jobparams->main_dim.src_dim.width;
726 p_jobparams->main_dim.src_dim.height;
747 p_jobparams->thumb_dim.src_dim.width;
749 p_jobparams->thumb_dim.src_dim.height;
822 cropped_height = p_thumb_dim->src_dim.height;
827 cropped_width = p_thumb_dim->src_dim.width;
831 p_thumb_dim->crop.left = floor(p_thumb_dim->src_dim.width - cropped_width)/2;
832 p_thumb_dim->crop.top = floor(p_thumb_dim->src_dim.height - cropped_height)/2;
880 if ((p_thumb_dim->src_dim.width == 0) || (p_thumb_dim->src_dim.height == 0)) {
887 p_thumb_dim->crop.width = p_thumb_dim->src_dim.width;
888 p_thumb_dim->crop.height = p_thumb_dim->src_dim.height;
892 if ((p_thumb_dim->crop.width + p_thumb_dim->crop.left > p_thumb_dim->src_dim.width) ||
893 (p_thumb_dim->crop.height + p_thumb_dim->crop.top > p_thumb_dim->src_dim.height)) {
900 p_thumb_dim->src_dim.width,
901 p_thumb_dim->src_dim.height);
916 thumbnail_info.input_width = p_thumb_dim->src_dim.width;
917 thumbnail_info.input_height = p_thumb_dim->src_dim.height;
920 if ((p_main_dim->src_dim.width < p_thumb_dim->src_dim.width) ||
921 (p_main_dim->src_dim.height < p_thumb_dim->src_dim.height)) {
924 p_thumb_dim->src_dim.width,
925 p_thumb_dim->src_dim.height,
926 p_main_dim->src_dim.width,
927 p_main_dim->src_dim.height);
928 thumbnail_info.input_width = p_main_dim->src_dim.width;
929 thumbnail_info.input_height = p_main_dim->src_dim.height;
960 if ((p_main_dim->crop.width != p_main_dim->src_dim.width) ||
961 (p_main_dim->crop.height != p_main_dim->src_dim.height)) {
981 if ((p_thumb_dim->dst_dim.width > p_thumb_dim->src_dim.width)
982 || (p_thumb_dim->dst_dim.height > p_thumb_dim->src_dim.height)) {
987 p_thumb_dim->src_dim.width,
988 p_thumb_dim->src_dim.height);
989 thumbnail_info.output_width = p_thumb_dim->src_dim.width;
990 thumbnail_info.output_height = p_thumb_dim->src_dim.height;
1035 dim->crop.width = dim->src_dim.width;
1036 dim->crop.height = dim->src_dim.height;
1039 if ((dim->crop.width + dim->crop.left > dim->src_dim.width) ||
1040 (dim->crop.height + dim->crop.top > dim->src_dim.height)) {
1045 dim->src_dim.width,
1046 dim->src_dim.height);
1055 if ((dim->src_dim.width != dim->crop.width) ||
1056 (dim->src_dim.height != dim->crop.height) ||
1057 (dim->src_dim.width != dim->dst_dim.width) ||
1058 (dim->src_dim.height != dim->dst_dim.height)) {