/*Configure Pre_scale*/\r
if((IPP_ROT_90 == rotate) || (IPP_ROT_270 == rotate))\r
{\r
- pre_scale = ((req->dst0.w < req->src0.h) ? 1 : 0)||((req->dst0.h < req->src0.w) ? 1 : 0);\r
+ pre_scale = ((req->dst0.w <= req->src0.h/2) ? 1 : 0)||((req->dst0.h <= req->src0.w/2) ? 1 : 0);\r
}\r
else //other degree\r
{\r
- pre_scale = ((req->dst0.w < req->src0.w) ? 1 : 0)||((req->dst0.h < req->src0.h) ? 1 : 0);\r
+ pre_scale = ((req->dst0.w <= req->src0.w/2) ? 1 : 0)||((req->dst0.h <= req->src0.h/2) ? 1 : 0);\r
}\r
\r
if(pre_scale)\r
if((IPP_ROT_90 == rotate) || (IPP_ROT_270 == rotate))\r
{\r
if (( (req->src0.h%req->dst0.w)!=0)||( (req->src0.w%req->dst0.h)!= 0)//non-interger down-scaling \r
- ||((req->src0.h/req->dst0.w)>8)||((req->src0.h%req->dst0.w)>8) //down-scaling ratio > 8\r
+ ||((req->src0.h/req->dst0.w)>8)||((req->src0.h/req->dst0.w)>8) //down-scaling ratio > 8\r
||(req->dst0.w > req->src0.h) ||(req->dst0.h > req->src0.w)) //up-scaling\r
\r
{\r
else //0 180 x-flip y-flip\r
{\r
if (( (req->src0.w%req->dst0.w)!=0)||( (req->src0.h%req->dst0.h)!= 0)//non-interger down-scaling \r
- ||((req->src0.w/req->dst0.w)>8)||((req->src0.h%req->dst0.h)>8) //down-scaling ratio > 8\r
+ ||((req->src0.w/req->dst0.w)>8)||((req->src0.h/req->dst0.h)>8) //down-scaling ratio > 8\r
||(req->dst0.w > req->src0.w) ||(req->dst0.h > req->src0.h)) //up-scaling\r
{\r
post_scale = 1;\r