• Home
  • Raw
  • Download

Lines Matching refs:deUint16

167 	return *(const deUint16*)(src + uint32ByteOffset16To32);  in readUint32High16()
170 inline void writeUint32High16 (deUint8* dst, deUint16 val) in writeUint32High16()
178 *(deUint16*)(dst + uint32ByteOffset16To32) = val; in writeUint32High16()
261 inline deUint16 convertSatRteUint10 (float f) in convertSatRteUint10()
263 const deUint16 rounded = convertSatRte<deUint16>(f); in convertSatRteUint10()
264 const deUint16 maxUint10 = 0x3FFu; in convertSatRteUint10()
268 inline deUint16 convertSatRteUint12 (float f) in convertSatRteUint12()
270 const deUint16 rounded = convertSatRte<deUint16>(f); in convertSatRteUint12()
271 const deUint16 maxUint12 = 0xFFFu; in convertSatRteUint12()
286 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f; in channelToFloat()
294 case TextureFormat::UNSIGNED_INT16: return (float)*((const deUint16*)value); in channelToFloat()
301 case TextureFormat::UNORM_SHORT_10: return (float)((*((const deUint16*)value)) >> 6u) / 1023.0f; in channelToFloat()
302 case TextureFormat::UNORM_SHORT_12: return (float)((*((const deUint16*)value)) >> 4u) / 4095.0f; in channelToFloat()
304 case TextureFormat::USCALED_INT16: return (float)*((const deUint16*)value); in channelToFloat()
325 case TextureFormat::UNORM_INT16: return (T)*((const deUint16*)value); in channelToIntType()
333 case TextureFormat::UNSIGNED_INT16: return (T)*((const deUint16*)value); in channelToIntType()
340 case TextureFormat::UNORM_SHORT_10: return (T)((*(((const deUint16*)value))) >> 6u); in channelToIntType()
341 case TextureFormat::UNORM_SHORT_12: return (T)((*(((const deUint16*)value))) >> 4u); in channelToIntType()
343 case TextureFormat::USCALED_INT16: return (T)*((const deUint16*)value); in channelToIntType()
368 …case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); … in floatToChannel()
375 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); brea… in floatToChannel()
381 …case TextureFormat::UNORM_SHORT_10: *((deUint16*)dst) = (deUint16)(convertSatRteUint10(src * 102… in floatToChannel()
382 …case TextureFormat::UNORM_SHORT_12: *((deUint16*)dst) = (deUint16)(convertSatRteUint12(src * 409… in floatToChannel()
384 …case TextureFormat::USCALED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break; in floatToChannel()
421 static inline deUint16 convertSatUint10 (S src) in convertSatUint10()
427 return (deUint16)min; in convertSatUint10()
429 return (deUint16)max; in convertSatUint10()
431 return (deUint16)src; in convertSatUint10()
435 static inline deUint16 convertSatUint12 (S src) in convertSatUint12()
441 return (deUint16)min; in convertSatUint12()
443 return (deUint16)max; in convertSatUint12()
445 return (deUint16)src; in convertSatUint12()
458 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSat<deUint16> (src); break; in intToChannel()
465 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); br… in intToChannel()
472 …case TextureFormat::UNORM_SHORT_10: *((deUint16*)dst) = (deUint16)(convertSatUint10(src) << 6u);… in intToChannel()
473 …case TextureFormat::UNORM_SHORT_12: *((deUint16*)dst) = (deUint16)(convertSatUint12(src) << 4u);… in intToChannel()
475 …case TextureFormat::USCALED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); bre… in intToChannel()
1089 #define UI16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
1226 #define U16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixelInt()
1438 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 11, 5) | PN(swizzled[1], 5, 6) | PN(swizzled[2… in setPixel()
1445 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 5, 6) | PU(swizzled[2… in setPixel()
1452 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 10, 5) | PN(swizzled[1], 5, 5) | PN(swizzled[2… in setPixel()
1459 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 12, 4) | PN(swizzled[1], 8, 4) | PN(swizzled[2… in setPixel()
1466 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 12, 4) | PU(swizzled[1], 8, 4) | PU(swizzled[2… in setPixel()
1473 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 11, 5) | PN(swizzled[1], 6, 5) | PN(swizzled[2… in setPixel()
1480 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 15, 1) | PN(swizzled[1], 10, 5) | PN(swizzled[… in setPixel()
1487 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 6, 5) | PU(swizzled[2… in setPixel()
1589 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 5, 6) | PU(swizzled[2… in setPixel()
1596 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 10, 5) | PU(swizzled[1], 5, 5) | PU(swizzled[2… in setPixel()
1604 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 12, 4) | PU(swizzled[1], 8, 4) | PU(swizzled[2… in setPixel()
1612 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 6, 5) | PU(swizzled[2… in setPixel()
1619 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 15, 1) | PU(swizzled[1], 10, 5) | PU(swizzled[… in setPixel()
1673 writeUint32High16(pixelPtr, convertSatRte<deUint16>(depth * 65535.0f)); in setPixDepth()