Lines Matching +full:int16 +full:- +full:matrix

2 // Copyright 2006-2009 Adobe Systems Incorporated
404 int16 *dPtr, in RefCopyArea8_S16()
420 int16 *dPtr1 = dPtr; in RefCopyArea8_S16()
426 int16 *dPtr2 = dPtr1; in RefCopyArea8_S16()
431 int16 x = *sPtr; in RefCopyArea8_S16()
504 int16 *dPtr, in RefCopyArea16_S16()
520 int16 *dPtr1 = dPtr; in RefCopyArea16_S16()
526 int16 *dPtr2 = dPtr1; in RefCopyArea16_S16()
705 void RefCopyAreaS16_R32 (const int16 *sPtr, in RefCopyAreaS16_R32()
724 const int16 *sPtr1 = sPtr; in RefCopyAreaS16_R32()
730 const int16 *sPtr2 = sPtr1; in RefCopyAreaS16_R32()
864 int16 *dPtr, in RefCopyAreaR32_S16()
883 int16 *dPtr1 = dPtr; in RefCopyAreaR32_S16()
889 int16 *dPtr2 = dPtr1; in RefCopyAreaR32_S16()
896 *dPtr2 = (int16) (x ^ 0x8000); in RefCopyAreaR32_S16()
934 int32 backStepV = (repeatV - 1) * rowStep; in RefRepeatArea8()
935 int32 backStepH = (repeatH - 1) * colStep; in RefRepeatArea8()
964 sPtr1 -= backStepH; in RefRepeatArea8()
978 sPtr0 -= backStepV; in RefRepeatArea8()
1010 int32 backStepV = (repeatV - 1) * rowStep; in RefRepeatArea16()
1011 int32 backStepH = (repeatH - 1) * colStep; in RefRepeatArea16()
1040 sPtr1 -= backStepH; in RefRepeatArea16()
1054 sPtr0 -= backStepV; in RefRepeatArea16()
1086 int32 backStepV = (repeatV - 1) * rowStep; in RefRepeatArea32()
1087 int32 backStepH = (repeatH - 1) * colStep; in RefRepeatArea32()
1116 sPtr1 -= backStepH; in RefRepeatArea32()
1130 sPtr0 -= backStepV; in RefRepeatArea32()
1422 real32 sScale = (real32) ((int32) satDivisions - 1); in RefBaselineHueSatMap()
1423 real32 vScale = (real32) ((int32) valDivisions - 1); in RefBaselineHueSatMap()
1425 int32 maxHueIndex0 = (int32) hueDivisions - 1; in RefBaselineHueSatMap()
1426 int32 maxSatIndex0 = (int32) satDivisions - 2; in RefBaselineHueSatMap()
1427 int32 maxValIndex0 = (int32) valDivisions - 2; in RefBaselineHueSatMap()
1429 const bool hasEncodeTable = ((encodeTable != NULL) && (encodeTable->Table () != NULL)); in RefBaselineHueSatMap()
1430 const bool hasDecodeTable = ((decodeTable != NULL) && (decodeTable->Table () != NULL)); in RefBaselineHueSatMap()
1485 real32 hFract1 = hScaled - (real32) hIndex0; in RefBaselineHueSatMap()
1486 real32 sFract1 = sScaled - (real32) sIndex0; in RefBaselineHueSatMap()
1488 real32 hFract0 = 1.0f - hFract1; in RefBaselineHueSatMap()
1489 real32 sFract0 = 1.0f - sFract1; in RefBaselineHueSatMap()
1494 const dng_hue_sat_map::HSBModify *entry01 = entry00 + (hIndex1 - hIndex0) * hueStep; in RefBaselineHueSatMap()
1496 real32 hueShift0 = hFract0 * entry00->fHueShift + in RefBaselineHueSatMap()
1497 hFract1 * entry01->fHueShift; in RefBaselineHueSatMap()
1499 real32 satScale0 = hFract0 * entry00->fSatScale + in RefBaselineHueSatMap()
1500 hFract1 * entry01->fSatScale; in RefBaselineHueSatMap()
1502 real32 valScale0 = hFract0 * entry00->fValScale + in RefBaselineHueSatMap()
1503 hFract1 * entry01->fValScale; in RefBaselineHueSatMap()
1508 real32 hueShift1 = hFract0 * entry00->fHueShift + in RefBaselineHueSatMap()
1509 hFract1 * entry01->fHueShift; in RefBaselineHueSatMap()
1511 real32 satScale1 = hFract0 * entry00->fSatScale + in RefBaselineHueSatMap()
1512 hFract1 * entry01->fSatScale; in RefBaselineHueSatMap()
1514 real32 valScale1 = hFract0 * entry00->fValScale + in RefBaselineHueSatMap()
1515 hFract1 * entry01->fValScale; in RefBaselineHueSatMap()
1528 vEncoded = encodeTable->Interpolate (Pin_real32 (v)); in RefBaselineHueSatMap()
1550 real32 hFract1 = hScaled - (real32) hIndex0; in RefBaselineHueSatMap()
1551 real32 sFract1 = sScaled - (real32) sIndex0; in RefBaselineHueSatMap()
1552 real32 vFract1 = vScaled - (real32) vIndex0; in RefBaselineHueSatMap()
1554 real32 hFract0 = 1.0f - hFract1; in RefBaselineHueSatMap()
1555 real32 sFract0 = 1.0f - sFract1; in RefBaselineHueSatMap()
1556 real32 vFract0 = 1.0f - vFract1; in RefBaselineHueSatMap()
1562 const dng_hue_sat_map::HSBModify *entry01 = entry00 + (hIndex1 - hIndex0) * hueStep; in RefBaselineHueSatMap()
1567 real32 hueShift0 = vFract0 * (hFract0 * entry00->fHueShift + in RefBaselineHueSatMap()
1568 hFract1 * entry01->fHueShift) + in RefBaselineHueSatMap()
1569 vFract1 * (hFract0 * entry10->fHueShift + in RefBaselineHueSatMap()
1570 hFract1 * entry11->fHueShift); in RefBaselineHueSatMap()
1572 real32 satScale0 = vFract0 * (hFract0 * entry00->fSatScale + in RefBaselineHueSatMap()
1573 hFract1 * entry01->fSatScale) + in RefBaselineHueSatMap()
1574 vFract1 * (hFract0 * entry10->fSatScale + in RefBaselineHueSatMap()
1575 hFract1 * entry11->fSatScale); in RefBaselineHueSatMap()
1577 real32 valScale0 = vFract0 * (hFract0 * entry00->fValScale + in RefBaselineHueSatMap()
1578 hFract1 * entry01->fValScale) + in RefBaselineHueSatMap()
1579 vFract1 * (hFract0 * entry10->fValScale + in RefBaselineHueSatMap()
1580 hFract1 * entry11->fValScale); in RefBaselineHueSatMap()
1587 real32 hueShift1 = vFract0 * (hFract0 * entry00->fHueShift + in RefBaselineHueSatMap()
1588 hFract1 * entry01->fHueShift) + in RefBaselineHueSatMap()
1589 vFract1 * (hFract0 * entry10->fHueShift + in RefBaselineHueSatMap()
1590 hFract1 * entry11->fHueShift); in RefBaselineHueSatMap()
1592 real32 satScale1 = vFract0 * (hFract0 * entry00->fSatScale + in RefBaselineHueSatMap()
1593 hFract1 * entry01->fSatScale) + in RefBaselineHueSatMap()
1594 vFract1 * (hFract0 * entry10->fSatScale + in RefBaselineHueSatMap()
1595 hFract1 * entry11->fSatScale); in RefBaselineHueSatMap()
1597 real32 valScale1 = vFract0 * (hFract0 * entry00->fValScale + in RefBaselineHueSatMap()
1598 hFract1 * entry01->fValScale) + in RefBaselineHueSatMap()
1599 vFract1 * (hFract0 * entry10->fValScale + in RefBaselineHueSatMap()
1600 hFract1 * entry11->fValScale); in RefBaselineHueSatMap()
1616 v = hasTable ? decodeTable->Interpolate (vEncoded) : vEncoded; in RefBaselineHueSatMap()
1635 const dng_matrix &matrix) in RefBaselineRGBtoGray() argument
1638 real32 m00 = (real32) matrix [0] [0]; in RefBaselineRGBtoGray()
1639 real32 m01 = (real32) matrix [0] [1]; in RefBaselineRGBtoGray()
1640 real32 m02 = (real32) matrix [0] [2]; in RefBaselineRGBtoGray()
1668 const dng_matrix &matrix) in RefBaselineRGBtoRGB() argument
1671 real32 m00 = (real32) matrix [0] [0]; in RefBaselineRGBtoRGB()
1672 real32 m01 = (real32) matrix [0] [1]; in RefBaselineRGBtoRGB()
1673 real32 m02 = (real32) matrix [0] [2]; in RefBaselineRGBtoRGB()
1675 real32 m10 = (real32) matrix [1] [0]; in RefBaselineRGBtoRGB()
1676 real32 m11 = (real32) matrix [1] [1]; in RefBaselineRGBtoRGB()
1677 real32 m12 = (real32) matrix [1] [2]; in RefBaselineRGBtoRGB()
1679 real32 m20 = (real32) matrix [2] [0]; in RefBaselineRGBtoRGB()
1680 real32 m21 = (real32) matrix [2] [1]; in RefBaselineRGBtoRGB()
1681 real32 m22 = (real32) matrix [2] [2]; in RefBaselineRGBtoRGB()
1758 gg = bb + ((rr - bb) * (g - b) / (r - b));\ in RefBaselineRGBTone()
1855 const int16 *wPtr, in RefResampleDown16()
1911 for (uint32 j = 1; j < wCount - 1; j++) in RefResampleDown32()
1929 w = wPtr [wCount - 1]; in RefResampleDown32()
1948 const int16 *wPtr, in RefResampleAcross16()
1962 const int16 *w = wPtr + sFract * wStep; in RefResampleAcross16()
2200 uint32 tShift = 32 - tBits; in RefVignetteMask16()
2201 uint32 tRound = (1 << (tShift - 1)); in RefVignetteMask16()
2238 void RefVignette16 (int16 *sPtr, in RefVignette16()
2249 const uint32 mRound = 1 << (mBits - 1); in RefVignette16()
2271 sPtr [col] = (int16) (s - 32768); in RefVignette16()
2288 int16 *rPtr = sPtr; in RefVignette16()
2289 int16 *gPtr = rPtr + sPlaneStep; in RefVignette16()
2290 int16 *bPtr = gPtr + sPlaneStep; in RefVignette16()
2312 rPtr [col] = (int16) (r - 32768); in RefVignette16()
2313 gPtr [col] = (int16) (g - 32768); in RefVignette16()
2314 bPtr [col] = (int16) (b - 32768); in RefVignette16()
2333 int16 *aPtr = sPtr; in RefVignette16()
2334 int16 *bPtr = aPtr + sPlaneStep; in RefVignette16()
2335 int16 *cPtr = bPtr + sPlaneStep; in RefVignette16()
2336 int16 *dPtr = cPtr + sPlaneStep; in RefVignette16()
2361 aPtr [col] = (int16) (a - 32768); in RefVignette16()
2362 bPtr [col] = (int16) (b - 32768); in RefVignette16()
2363 cPtr [col] = (int16) (c - 32768); in RefVignette16()
2364 dPtr [col] = (int16) (d - 32768); in RefVignette16()
2387 int16 *planePtr = sPtr; in RefVignette16()
2405 planePtr [col] = (int16) (s - 32768); in RefVignette16()
2640 // Get the data 32-bit aligned if it is not. in RefMapArea16()
2647 count--; in RefMapArea16()
2653 // Use 32-bit reads and writes for bulk processing. in RefMapArea16()
2661 count -= blocks << 4; in RefMapArea16()
2664 while (blocks--) in RefMapArea16()
2670 // Use 32 bit reads & writes, and pack and unpack the 16-bit values. in RefMapArea16()
2673 // Note that this code runs on both little-endian and big-endian systems, in RefMapArea16()