Lines Matching refs:DataInf

171     ps->DataInf.wYSum += ps->DataInf.xyAppDpi.y;
173 if( ps->DataInf.wYSum >= ps->DataInf.xyPhyDpi.y ) {
175 ps->DataInf.wYSum -= ps->DataInf.xyPhyDpi.y;
184 ps->DataInf.wYSum += wPreviewScanned;
185 if( ps->DataInf.wYSum >= 150 ) {
187 ps->DataInf.wYSum -= 150;
202 ps->DataInf.dwAsicBytesPerPlane );
206 ps->DataInf.dwAsicBytesPerPlane );
211 ps->Scan.BufPut.green.bp += ps->DataInf.dwAsicBytesPerPlane;
219 ps->DataInf.dwAsicBytesPerPlane );
221 ps->Scan.BufPut.red.bp += ps->DataInf.dwAsicBytesPerPlane;
233 if( ps->DataInf.dwScanFlag & SCANDEF_ColorBGROrder ) {
241 ps->Scan.BufGet.red.bp += ps->DataInf.dwAsicBytesPerPlane;
242 ps->Scan.BufGet.green.bp += ps->DataInf.dwAsicBytesPerPlane;
262 ps->DataInf.dwAsicBytesPerPlane );
269 ps->DataInf.dwAsicBytesPerPlane);
275 ps->DataInf.dwAsicBytesPerPlane );
370 for ( bL = ps->DataInf.dwAsicPixelsPerPlane; bL; bL--, src++, dest++) {
373 dest->Green = src[ps->DataInf.dwAsicPixelsPerPlane];
374 dest->Blue = src[ps->DataInf.dwAsicPixelsPerPlane*2];
386 for ( bL = ps->DataInf.dwAsicPixelsPerPlane; bL; bL--, dest++, src++) {
389 dest->Green=ps->pbMapGreen[src[ps->DataInf.dwAsicPixelsPerPlane]];
390 dest->Blue =ps->pbMapBlue[src[ps->DataInf.dwAsicPixelsPerPlane*2]];
408 for ( i = ps->DataInf.dwAsicPixelsPerPlane; i; i--, src++, dest++) {
411 dest->Green = src[ps->DataInf.dwAsicPixelsPerPlane];
412 dest->Blue = src[ps->DataInf.dwAsicPixelsPerPlane * 2];
424 ps->DataInf.dwScanFlag = pInf->ImgDef.dwFlag;
425 ps->DataInf.dwVxdFlag = 0;
426 ps->DataInf.crImage = pInf->ImgDef.crArea;
434 ps->DataInf.crImage.x <<= 1;
436 ps->DataInf.xyAppDpi = pInf->ImgDef.xyDpi;
437 ps->DataInf.siBrightness = pInf->siBrightness;
438 ps->DataInf.wDither = pInf->wDither;
439 ps->DataInf.wAppDataType = pInf->ImgDef.wDataType;
443 if (ps->DataInf.dwVxdFlag & _VF_DATATOUSERBUFFER) {
446 if (ps->DataInf.dwScanFlag & SCANDEF_BmpStyle) {
447 ps->Scan.lBufferAdjust = -(Long)ps->DataInf.dwAppBytesPerLine;
449 ps->Scan.lBufferAdjust = (Long)ps->DataInf.dwAppBytesPerLine;
454 ps->DataInf.crImage.x, ps->DataInf.crImage.y,
455 ps->DataInf.crImage.cx, ps->DataInf.crImage.cy );
474 if( ps->DataInf.wPhyDataType != COLOR_BW ) {/* if not line art */
485 if (ps->DataInf.siBrightness < 0) {
487 (255 - _DEF_BW_THRESHOLD) * ps->DataInf.siBrightness /127);
490 _DEF_BW_THRESHOLD * ps->DataInf.siBrightness /127);
496 if( ps->DataInf.siBrightness >= 0 ) {
498 ps->DataInf.siBrightness) / 127 + _DEF_BW_THRESHOLD);
501 ps->DataInf.siBrightness) / 127 + _DEF_BW_THRESHOLD);
511 ps->DataInf.pCurrentBuffer = ps->pScanBuffer1;
520 memcpy( ps->pFilterBuf, pImage, ps->DataInf.dwAsicBytesPerPlane );
572 if (ps->fDoFilter && (ps->DataInf.xyAppDpi.x) >= 600UL) {
575 for (dw = 0; dw < ps->DataInf.dwAsicBytesPerPlane - 2; dw++, pPut++) {
615 b = (ps->DataInf.wPhyDataType >= COLOR_TRUE24) ?
628 IOReadScannerImageData( ps, ps->DataInf.pCurrentBuffer,
629 ps->DataInf.dwAsicBytesPerPlane );
631 imageP98CopyToFilterBuffer( ps, ps->DataInf.pCurrentBuffer );
635 if( ps->DataInf.dwScanFlag & SCANDEF_ColorBGROrder ) {
639 ps->DataInf.dwAsicBytesPerPlane * 2,
640 ps->DataInf.dwAsicBytesPerPlane );
644 ps->DataInf.dwAsicBytesPerPlane,
645 ps->DataInf.dwAsicBytesPerPlane );
649 ps->DataInf.dwAsicBytesPerPlane );
653 ps->DataInf.dwAsicBytesPerPlane );
662 imageP98DoFilter( ps, ps->DataInf.pCurrentBuffer );
665 ps->DataInf.pCurrentBuffer,
666 ps->DataInf.dwAppPhyBytesPerLine );
721 ps->DataInf.xyPhyDpi.x = imageGetPhysDPI( ps, pImgInf, _TRUE );
722 ps->DataInf.xyPhyDpi.y = imageGetPhysDPI( ps, pImgInf, _FALSE );
725 ps->DataInf.xyPhyDpi.x, ps->DataInf.xyPhyDpi.y );
733 ps->DataInf.XYRatio = 1000 * ps->DataInf.xyPhyDpi.y/ps->DataInf.xyPhyDpi.x;
735 pImgInf->xyDpi.x, pImgInf->xyDpi.y, ps->DataInf.XYRatio );
737 ps->DataInf.dwAppLinesPerArea = (ULong)pImgInf->crArea.cy *
740 ps->DataInf.dwAppPixelsPerLine = (ULong)pImgInf->crArea.cx *
743 ps->DataInf.dwPhysBytesPerLine = (ULong)pImgInf->crArea.cx *
744 ps->DataInf.xyPhyDpi.x / _MEASURE_BASE;
747 ps->DataInf.dwAsicPixelsPerPlane = (ps->DataInf.dwAppPixelsPerLine+7UL)&
749 ps->DataInf.dwAppPhyBytesPerLine =
750 ps->DataInf.dwAppBytesPerLine =
751 ps->DataInf.dwAsicBytesPerLine =
752 ps->DataInf.dwAsicBytesPerPlane = ps->DataInf.dwAsicPixelsPerPlane>>3;
754 ps->DataInf.dwAsicBytesPerPlane =
755 ps->DataInf.dwAsicPixelsPerPlane = ps->DataInf.dwAppPixelsPerLine;
759 ps->DataInf.dwAsicBytesPerPlane *= 2;
765 ps->DataInf.dwVxdFlag |= _VF_DATATOUSERBUFFER;
766 ps->DataInf.wPhyDataType = COLOR_BW;
771 if( ps->DataInf.wDither == 2 ) {
779 ps->DataInf.dwAsicBytesPerPlane =
780 ps->DataInf.dwAsicPixelsPerPlane = ps->DataInf.dwAppPixelsPerLine;
781 ps->DataInf.wPhyDataType = COLOR_256GRAY;
786 ps->DataInf.dwVxdFlag |= _VF_DATATOUSERBUFFER;
787 ps->DataInf.dwAsicBytesPerLine =
788 ps->DataInf.dwAppPhyBytesPerLine = ps->DataInf.dwAppPixelsPerLine;
789 ps->DataInf.wPhyDataType = COLOR_256GRAY;
795 ps->DataInf.dwAsicBytesPerLine =
796 ps->DataInf.dwAppPhyBytesPerLine = ps->DataInf.dwAppPixelsPerLine * 3;
797 ps->DataInf.wPhyDataType = COLOR_TRUE24;
803 ps->DataInf.dwAsicBytesPerLine =
804 ps->DataInf.dwAppPhyBytesPerLine = ps->DataInf.dwAppPixelsPerLine * 6;
805 ps->DataInf.wPhyDataType = COLOR_TRUE48;
812 ps->DataInf.dwAppBytesPerLine = (ps->DataInf.dwAppPhyBytesPerLine + 3) &
816 ps->DataInf.dwAppBytesPerLine = (ps->DataInf.dwAppPhyBytesPerLine + 1) &
819 ps->DataInf.dwAppBytesPerLine = ps->DataInf.dwAppPhyBytesPerLine;
823 DBG( DBG_LOW, "AppLinesPerArea = %u\n", ps->DataInf.dwAppLinesPerArea );
824 DBG( DBG_LOW, "AppPixelsPerLine = %u\n", ps->DataInf.dwAppPixelsPerLine );
825 DBG( DBG_LOW, "AppPhyBytesPerLine = %u\n", ps->DataInf.dwAppPhyBytesPerLine );
826 DBG( DBG_LOW, "AppBytesPerLine = %u\n", ps->DataInf.dwAppBytesPerLine );
827 DBG( DBG_LOW, "AsicPixelsPerPlane = %u\n", ps->DataInf.dwAsicPixelsPerPlane );
828 DBG( DBG_LOW, "AsicBytesPerPlane = %u\n", ps->DataInf.dwAsicBytesPerPlane );
829 DBG( DBG_LOW, "AsicBytesPerLine = %u\n", ps->DataInf.dwAsicBytesPerLine );
830 DBG( DBG_LOW, "Physical Bytes = %u\n", ps->DataInf.dwPhysBytesPerLine );
839 ps->DataInf.xyPhyDpi.x = imageGetPhysDPI( ps, pImgInf, _TRUE );
840 ps->DataInf.xyPhyDpi.y = imageGetPhysDPI( ps, pImgInf, _FALSE );
843 ps->DataInf.xyPhyDpi.x, ps->DataInf.xyPhyDpi.y );
851 ps->DataInf.XYRatio = 1000 * ps->DataInf.xyPhyDpi.y/ps->DataInf.xyPhyDpi.x;
853 pImgInf->xyDpi.x, pImgInf->xyDpi.y, ps->DataInf.XYRatio );
855 ps->DataInf.dwAppLinesPerArea = (ULong)pImgInf->crArea.cy *
857 ps->DataInf.dwAsicBytesPerPlane =
858 ps->DataInf.dwAsicPixelsPerPlane = (ULong)ps->DataInf.xyPhyDpi.x *
861 ps->DataInf.dwAppPixelsPerLine = (ULong)pImgInf->crArea.cx *
864 ps->DataInf.dwPhysBytesPerLine = (ULong)pImgInf->crArea.cx *
865 ps->DataInf.xyPhyDpi.x / _MEASURE_BASE;
867 ps->DataInf.wPhyDataType = ps->DataInf.wAppDataType;
872 ps->DataInf.dwAsicBytesPerPlane =
873 (ps->DataInf.dwAsicPixelsPerPlane + 7) >> 3;
874 ps->DataInf.dwAppPhyBytesPerLine =
875 (ps->DataInf.dwAppPixelsPerLine + 7) >> 3;
876 ps->DataInf.dwVxdFlag |= _VF_DATATOUSERBUFFER;
881 ps->DataInf.dwAppPhyBytesPerLine =
882 (ps->DataInf.dwAsicPixelsPerPlane + 7) >> 3;
883 if( ps->DataInf.wDither == 2 ) {
888 ps->DataInf.wPhyDataType = COLOR_256GRAY;
892 ps->DataInf.dwAppPhyBytesPerLine = ps->DataInf.dwAppPixelsPerLine;
902 ps->DataInf.dwAppPhyBytesPerLine = ps->DataInf.dwAppPixelsPerLine * 3;
906 ps->DataInf.dwAppBytesPerLine =
907 (ps->DataInf.dwAppPhyBytesPerLine + 3) & 0xfffffffc;
910 ps->DataInf.dwAppBytesPerLine =
911 (ps->DataInf.dwAppPhyBytesPerLine + 1) & 0xfffffffe;
913 ps->DataInf.dwAppBytesPerLine = ps->DataInf.dwAppPhyBytesPerLine;
917 if (ps->DataInf.wPhyDataType == COLOR_TRUE24)
918 ps->DataInf.dwAsicBytesPerLine = ps->DataInf.dwAsicBytesPerPlane * 3;
920 ps->DataInf.dwAsicBytesPerLine = ps->DataInf.dwAsicBytesPerPlane;
925 DBG( DBG_LOW, "AppLinesPerArea = %u\n", ps->DataInf.dwAppLinesPerArea );
926 DBG( DBG_LOW, "AppPixelsPerLine = %u\n", ps->DataInf.dwAppPixelsPerLine );
927 DBG( DBG_LOW, "AppPhyBytesPerLine = %u\n", ps->DataInf.dwAppPhyBytesPerLine );
928 DBG( DBG_LOW, "AppBytesPerLine = %u\n", ps->DataInf.dwAppBytesPerLine );
929 DBG( DBG_LOW, "AsicPixelsPerPlane = %u\n", ps->DataInf.dwAsicPixelsPerPlane );
930 DBG( DBG_LOW, "AsicBytesPerPlane = %u\n", ps->DataInf.dwAsicBytesPerPlane );
931 DBG( DBG_LOW, "AsicBytesPerLine = %u\n", ps->DataInf.dwAsicBytesPerLine );
932 DBG( DBG_LOW, "Physical Bytes = %u\n", ps->DataInf.dwPhysBytesPerLine );
984 if (ps->DataInf.wPhyDataType == COLOR_TRUE24) {
992 ps->DataInf.dwAsicBytesPerPlane);
1000 ps->DataInf.dwAsicBytesPerPlane);
1018 ps->DataInf.pCurrentBuffer +
1019 ps->DataInf.dwAsicBytesPerPlane,
1020 ps->DataInf.dwAsicBytesPerPlane);
1023 if (ps->DataInf.dwScanFlag & SCANDEF_BmpStyle) {
1026 ps->DataInf.pCurrentBuffer,
1027 ps->DataInf.dwAsicBytesPerPlane);
1030 IOReadScannerImageData (ps, ps->DataInf.pCurrentBuffer +
1031 ps->DataInf.dwAsicBytesPerPlane * 2,
1032 ps->DataInf.dwAsicBytesPerPlane);
1037 if (ps->DataInf.dwScanFlag & SCANDEF_BmpStyle) {
1039 memcpy( ps->DataInf.pCurrentBuffer +
1040 ps->DataInf.dwAsicBytesPerPlane * 2,
1041 ps->pGetBufR, ps->DataInf.dwAsicBytesPerPlane);
1044 memcpy( ps->DataInf.pCurrentBuffer,
1045 ps->pGetBufR, ps->DataInf.dwAsicBytesPerPlane );
1050 memcpy( ps->DataInf.pCurrentBuffer +
1051 ps->DataInf.dwAsicBytesPerPlane,
1052 ps->pGetBufG, ps->DataInf.dwAsicBytesPerPlane);
1055 if (ps->DataInf.dwScanFlag & SCANDEF_BmpStyle) {
1057 memcpy( ps->DataInf.pCurrentBuffer,
1059 ps->DataInf.dwAsicBytesPerPlane);
1062 memcpy( ps->DataInf.pCurrentBuffer +
1063 ps->DataInf.dwAsicBytesPerPlane * 2,
1065 ps->DataInf.dwAsicBytesPerPlane );
1089 IOReadScannerImageData( ps, ps->DataInf.pCurrentBuffer,
1090 ps->DataInf.dwAsicBytesPerPlane );
1105 ps->DataInf.pCurrentBuffer,
1106 ps->DataInf.dwAppPhyBytesPerLine );
1122 ps->DataInf.dwVxdFlag = 0;
1124 ps->DataInf.dwVxdFlag |= _VF_BUILDMAP;
1126 ps->DataInf.dwScanFlag = pInf->ImgDef.dwFlag;
1128 ps->DataInf.crImage = pInf->ImgDef.crArea;
1131 ps->DataInf.crImage.x *= ps->PhysicalDpi / _MEASURE_BASE;
1132 ps->DataInf.crImage.cx *= ps->PhysicalDpi / _MEASURE_BASE;
1134 if( ps->DataInf.dwScanFlag & SCANDEF_TPA ) {
1135 ps->DataInf.crImage.x += _Transparency48OriginOffsetX;
1136 ps->DataInf.crImage.y += _Transparency48OriginOffsetY;
1139 ps->DataInf.xyAppDpi = pInf->ImgDef.xyDpi;
1140 ps->DataInf.wAppDataType = pInf->ImgDef.wDataType;
1141 ps->DataInf.wDither = pInf->wDither;
1146 if (ps->DataInf.wPhyDataType != COLOR_BW) { /* if not line art */
1152 ps->DataInf.siBrightness = pInf->siBrightness;
1154 if (ps->DataInf.dwScanFlag & SCANDEF_BmpStyle)
1155 ps->Scan.lBufferAdjust = -(Long)ps->DataInf.dwAppBytesPerLine;
1157 ps->Scan.lBufferAdjust = (Long)ps->DataInf.dwAppBytesPerLine;
1159 if (ps->DataInf.siBrightness < 0)
1160 ps->DataInf.siBrightness = 255 - (_DEF_BW_THRESHOLD *
1161 ps->DataInf.siBrightness / 127 + _DEF_BW_THRESHOLD);
1163 ps->DataInf.siBrightness = 255 - ((255 - _DEF_BW_THRESHOLD) *
1164 ps->DataInf.siBrightness / 127 + _DEF_BW_THRESHOLD);
1166 ps->AsicReg.RD_ThresholdControl = (Byte)ps->DataInf.siBrightness;
1168 ps->DataInf.pCurrentBuffer = ps->pScanBuffer1;
1182 if( ps->DataInf.wPhyDataType <= COLOR_256GRAY ) {
1185 ps->DataInf.dwAsicBytesPerPlane );
1188 ps->DataInf.dwAsicBytesPerPlane );
1193 if( ps->DataInf.wPhyDataType <= COLOR_256GRAY ) {
1199 if( ps->DataInf.wAppDataType == COLOR_HALFTONE )
1202 IOReadScannerImageData( ps, pb, ps->DataInf.dwAsicBytesPerPlane );
1220 ps->DataInf.dwAppPhyBytesPerLine);
1307 if(!(ps->DataInf.dwScanFlag & SCANDEF_TPA)) {
1311 (ps->DataInf.wPhyDataType > COLOR_TRUE24) &&
1312 (ps->DataInf.xyAppDpi.y >= 600)) {
1326 if( ps->DataInf.dwScanFlag & SCANDEF_Transparency ) {
1338 if( ps->DataInf.wPhyDataType == COLOR_BW )
1341 if( ps->DataInf.wPhyDataType == COLOR_256GRAY )
1348 if((ps->DataInf.xyAppDpi.y >= 300) && var.dwValue &&
1349 (ps->DataInf.dwAsicBytesPerPlane <= var.dwValue)) {
1353 if( var.dwValue && ps->DataInf.dwAsicBytesPerPlane > var.dwValue ) {
1354 if((var.dwValue << 1) > ps->DataInf.dwAsicBytesPerPlane)
1357 if((var.dwValue << 2) > ps->DataInf.dwAsicBytesPerPlane)
1366 (ps->DataInf.wPhyDataType > COLOR_TRUE24) &&
1367 (ps->DataInf.xyAppDpi.y >= 600)) {
1371 if( ps->DataInf.wPhyDataType >= COLOR_TRUE24 ) {
1373 if( ps->DataInf.xyPhyDpi.y > 75U ) {
1375 ps->Scan.gd_gk.wGreenDiscard = ps->DataInf.xyPhyDpi.y / 75U;
1377 ps->Scan.gd_gk.wGreenDiscard = ps->DataInf.xyPhyDpi.y / 150U;
1398 if( !(ps->DataInf.dwScanFlag & SCANDEF_TPA )) {
1402 } else if( ps->DataInf.dwScanFlag & SCANDEF_Transparency) {
1413 if( ps->DataInf.xyAppDpi.y <= 75 ) {
1415 if( ps->DataInf.dwVxdFlag & _VF_PREVIEW ) {
1418 ps->DataInf.xyPhyDpi.y = 150;
1423 if( ps->DataInf.xyAppDpi.y >= 38 )
1428 if( ps->DataInf.wPhyDataType >= COLOR_256GRAY ) {
1433 if(!(ps->DataInf.dwScanFlag & SCANDEF_TPA) &&
1434 (ps->DataInf.xyAppDpi.y <= 50) &&
1435 (ps->DataInf.wPhyDataType >= COLOR_TRUE24)) {
1439 if((ps->DataInf.wPhyDataType<COLOR_TRUE24) || ps->Device.f0_8_16 ||
1443 ps->DataInf.xyPhyDpi.y = 75;
1447 ps->DataInf.xyPhyDpi.y = 150;
1452 if( ps->DataInf.xyAppDpi.y <= 150 ) {
1455 ps->DataInf.xyPhyDpi.y = 150;
1458 } else if( ps->DataInf.xyAppDpi.y <= 300 ) {
1461 ps->DataInf.xyPhyDpi.y = 300;
1464 } else if( ps->DataInf.xyAppDpi.y <= 600 ) {
1467 ps->DataInf.xyPhyDpi.y = 600;
1473 ps->DataInf.xyPhyDpi.y = 1200;
1479 if( ps->DataInf.xyAppDpi.y == ps->DataInf.xyPhyDpi.y ) {
1483 if( ps->DataInf.dwVxdFlag & _VF_PREVIEW ) {
1487 ps->DataInf.wYSum = 150;
1489 if( ps->DataInf.xyAppDpi.y >= 38 )
1490 wPreviewScanned = ps->DataInf.xyAppDpi.y * 2;
1491 else if( ps->DataInf.xyAppDpi.y >= 19 )
1492 wPreviewScanned = ps->DataInf.xyAppDpi.y * 4;
1494 wPreviewScanned = ps->DataInf.xyAppDpi.y * 8;
1498 ps->DataInf.xyPhyDpi.y, ps->DataInf.xyAppDpi.y );
1500 ps->DataInf.wYSum = ps->DataInf.xyPhyDpi.y - ps->DataInf.xyAppDpi.y;
1509 if( ps->DataInf.wPhyDataType >= COLOR_TRUE24 ) {
1514 ps->DataInf.dwAsicBytesPerPlane - ps->Scan.bd_rk.wRedKeep;
1516 ps->DataInf.dwAsicBytesPerPlane - ps->Scan.gd_gk.wGreenKeep;
1522 ps->DataInf.dwAsicBytesPerPlane;
1543 ps->DataInf.dwAsicBytesPerLine *
1547 ps->DataInf.dwAsicBytesPerLine *
1551 ps->DataInf.dwAsicBytesPerLine * 2;
1557 ps->DataInf.dwAsicBytesPerLine;
1559 ps->DataInf.dwAsicBytesPerLine;
1561 if( ps->DataInf.dwScanFlag & SCANDEF_ColorBGROrder ) {
1571 if( ps->DataInf.dwScanFlag & SCANDEF_Transparency) {
1585 else if( ps->DataInf.dwScanFlag & SCANDEF_Negative) {