Lines Matching refs:pImgInf

110 static UShort imageGetPhysDPI( pScanData ps, pImgDef pImgInf, Bool fDpiX )
116 if (pImgInf->xyDpi.x > ps->LensInf.rDpiX.wPhyMax)
119 return pImgInf->xyDpi.x;
122 if (pImgInf->xyDpi.y > ps->LensInf.rDpiY.wPhyMax)
125 return pImgInf->xyDpi.y;
131 if (pImgInf->wDataType >= COLOR_TRUE24) {
132 if (pImgInf->xyDpi.x > ps->LensInf.rDpiX.wPhyMax)
135 return pImgInf->xyDpi.x;
137 if (pImgInf->xyDpi.x > (ps->LensInf.rDpiX.wPhyMax * 2))
140 return pImgInf->xyDpi.x;
144 if (pImgInf->wDataType >= COLOR_TRUE24 ) {
145 if (pImgInf->xyDpi.y > (ps->LensInf.rDpiY.wPhyMax / 2))
148 return pImgInf->xyDpi.y;
150 if (pImgInf->xyDpi.y > ps->LensInf.rDpiY.wPhyMax)
153 return pImgInf->xyDpi.y;
717 static void imageP98GetInfo( pScanData ps, pImgDef pImgInf )
721 ps->DataInf.xyPhyDpi.x = imageGetPhysDPI( ps, pImgInf, _TRUE );
722 ps->DataInf.xyPhyDpi.y = imageGetPhysDPI( ps, pImgInf, _FALSE );
728 pImgInf->crArea.x, pImgInf->crArea.y );
731 pImgInf->crArea.cx, pImgInf->crArea.cy );
735 pImgInf->xyDpi.x, pImgInf->xyDpi.y, ps->DataInf.XYRatio );
737 ps->DataInf.dwAppLinesPerArea = (ULong)pImgInf->crArea.cy *
738 pImgInf->xyDpi.y / _MEASURE_BASE;
740 ps->DataInf.dwAppPixelsPerLine = (ULong)pImgInf->crArea.cx *
741 pImgInf->xyDpi.x / _MEASURE_BASE;
743 ps->DataInf.dwPhysBytesPerLine = (ULong)pImgInf->crArea.cx *
746 if( pImgInf->wDataType <= COLOR_HALFTONE ) {
758 if( COLOR_TRUE48 == pImgInf->wDataType ) {
762 switch( pImgInf->wDataType ) {
811 if (pImgInf->dwFlag & SCANDEF_BoundaryDWORD) {
815 if (pImgInf->dwFlag & SCANDEF_BoundaryWORD) {
835 static void imageP96GetInfo( pScanData ps, pImgDef pImgInf )
839 ps->DataInf.xyPhyDpi.x = imageGetPhysDPI( ps, pImgInf, _TRUE );
840 ps->DataInf.xyPhyDpi.y = imageGetPhysDPI( ps, pImgInf, _FALSE );
846 pImgInf->crArea.x, pImgInf->crArea.y );
849 pImgInf->crArea.cx, pImgInf->crArea.cy );
853 pImgInf->xyDpi.x, pImgInf->xyDpi.y, ps->DataInf.XYRatio );
855 ps->DataInf.dwAppLinesPerArea = (ULong)pImgInf->crArea.cy *
856 pImgInf->xyDpi.y / _MEASURE_BASE;
859 pImgInf->crArea.cx / _MEASURE_BASE;
861 ps->DataInf.dwAppPixelsPerLine = (ULong)pImgInf->crArea.cx *
862 pImgInf->xyDpi.x / _MEASURE_BASE;
864 ps->DataInf.dwPhysBytesPerLine = (ULong)pImgInf->crArea.cx *
869 switch( pImgInf->wDataType ) {
905 if( pImgInf->dwFlag & SCANDEF_BoundaryDWORD ) {
909 if ( pImgInf->dwFlag & SCANDEF_BoundaryWORD ) {