• Home
  • Raw
  • Download

Lines Matching refs:Quantum

310 static inline Quantum ScaleAnyToQuantum(const QuantumAny quantum,  in ScaleAnyToQuantum()
316 return((Quantum) (((double) QuantumRange*quantum)* in ScaleAnyToQuantum()
319 return((Quantum) (((double) QuantumRange*quantum)* in ScaleAnyToQuantum()
324 static inline QuantumAny ScaleQuantumToAny(const Quantum quantum, in ScaleQuantumToAny()
331 static inline Quantum ScaleCharToQuantum(const unsigned char value) in ScaleCharToQuantum()
333 return((Quantum) value); in ScaleCharToQuantum()
336 static inline Quantum ScaleLongToQuantum(const unsigned int value) in ScaleLongToQuantum()
339 return((Quantum) ((value)/16843009UL)); in ScaleLongToQuantum()
341 return((Quantum) (value/16843009.0)); in ScaleLongToQuantum()
345 static inline Quantum ScaleLongLongToQuantum(const MagickSizeType value) in ScaleLongLongToQuantum()
348 return((Quantum) (value/MagickULLConstant(72340172838076673))); in ScaleLongLongToQuantum()
350 return((Quantum) (value/72340172838076673.0)); in ScaleLongLongToQuantum()
354 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
357 return((Quantum) 0); in ScaleMapToQuantum()
361 return((Quantum) (value+0.5)); in ScaleMapToQuantum()
363 return((Quantum) value); in ScaleMapToQuantum()
367 static inline unsigned int ScaleQuantumToLong(const Quantum quantum) in ScaleQuantumToLong()
380 static inline MagickSizeType ScaleQuantumToLongLong(const Quantum quantum) in ScaleQuantumToLongLong()
393 static inline unsigned int ScaleQuantumToMap(const Quantum quantum) in ScaleQuantumToMap()
395 if (quantum >= (Quantum) MaxMap) in ScaleQuantumToMap()
406 static inline unsigned short ScaleQuantumToShort(const Quantum quantum) in ScaleQuantumToShort()
419 static inline Quantum ScaleShortToQuantum(const unsigned short value) in ScaleShortToQuantum()
422 return((Quantum) ((value+128U)/257U)); in ScaleShortToQuantum()
424 return((Quantum) (value/257.0)); in ScaleShortToQuantum()
428 static inline Quantum ScaleCharToQuantum(const unsigned char value) in ScaleCharToQuantum()
431 return((Quantum) (257U*value)); in ScaleCharToQuantum()
433 return((Quantum) (257.0*value)); in ScaleCharToQuantum()
437 static inline Quantum ScaleLongToQuantum(const unsigned int value) in ScaleLongToQuantum()
440 return((Quantum) ((value)/MagickULLConstant(65537))); in ScaleLongToQuantum()
442 return((Quantum) (value/65537.0)); in ScaleLongToQuantum()
446 static inline Quantum ScaleLongLongToQuantum(const MagickSizeType value) in ScaleLongLongToQuantum()
449 return((Quantum) ((value)/MagickULLConstant(281479271743489))); in ScaleLongLongToQuantum()
451 return((Quantum) (value/281479271743489.0)); in ScaleLongLongToQuantum()
455 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
458 return((Quantum) 0); in ScaleMapToQuantum()
462 return((Quantum) (value+0.5)); in ScaleMapToQuantum()
464 return((Quantum) value); in ScaleMapToQuantum()
468 static inline unsigned int ScaleQuantumToLong(const Quantum quantum) in ScaleQuantumToLong()
481 static inline MagickSizeType ScaleQuantumToLongLong(const Quantum quantum) in ScaleQuantumToLongLong()
494 static inline unsigned int ScaleQuantumToMap(const Quantum quantum) in ScaleQuantumToMap()
496 if (quantum >= (Quantum) MaxMap) in ScaleQuantumToMap()
507 static inline unsigned short ScaleQuantumToShort(const Quantum quantum) in ScaleQuantumToShort()
520 static inline Quantum ScaleShortToQuantum(const unsigned short value) in ScaleShortToQuantum()
522 return((Quantum) value); in ScaleShortToQuantum()
525 static inline Quantum ScaleCharToQuantum(const unsigned char value) in ScaleCharToQuantum()
528 return((Quantum) (16843009UL*value)); in ScaleCharToQuantum()
530 return((Quantum) (16843009.0*value)); in ScaleCharToQuantum()
534 static inline Quantum ScaleLongToQuantum(const unsigned int value) in ScaleLongToQuantum()
536 return((Quantum) value); in ScaleLongToQuantum()
539 static inline Quantum ScaleLongLongToQuantum(const MagickSizeType value) in ScaleLongLongToQuantum()
542 return((Quantum) ((value)/MagickULLConstant(4294967297))); in ScaleLongLongToQuantum()
544 return((Quantum) (value/4294967297.0)); in ScaleLongLongToQuantum()
548 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
551 return((Quantum) 0); in ScaleMapToQuantum()
552 if (value >= (Quantum) MaxMap) in ScaleMapToQuantum()
555 return((Quantum) (65537.0*value+0.5)); in ScaleMapToQuantum()
557 return((Quantum) (65537.0*value)); in ScaleMapToQuantum()
561 static inline unsigned int ScaleQuantumToLong(const Quantum quantum) in ScaleQuantumToLong()
574 static inline MagickSizeType ScaleQuantumToLongLong(const Quantum quantum) in ScaleQuantumToLongLong()
587 static inline unsigned int ScaleQuantumToMap(const Quantum quantum) in ScaleQuantumToMap()
591 if ((quantum/65537) >= (Quantum) MaxMap) in ScaleQuantumToMap()
601 static inline unsigned short ScaleQuantumToShort(const Quantum quantum) in ScaleQuantumToShort()
615 static inline Quantum ScaleShortToQuantum(const unsigned short value) in ScaleShortToQuantum()
618 return((Quantum) (65537UL*value)); in ScaleShortToQuantum()
620 return((Quantum) (65537.0*value)); in ScaleShortToQuantum()
624 static inline Quantum ScaleCharToQuantum(const unsigned char value) in ScaleCharToQuantum()
626 return((Quantum) (72340172838076673.0*value)); in ScaleCharToQuantum()
629 static inline Quantum ScaleLongToQuantum(const unsigned int value) in ScaleLongToQuantum()
631 return((Quantum) (4294967297.0*value)); in ScaleLongToQuantum()
634 static inline Quantum ScaleLongLongToQuantum(const MagickSizeType value) in ScaleLongLongToQuantum()
636 return((Quantum) (value)); in ScaleLongLongToQuantum()
639 static inline Quantum ScaleMapToQuantum(const MagickRealType value) in ScaleMapToQuantum()
642 return((Quantum) 0); in ScaleMapToQuantum()
645 return((Quantum) (281479271743489.0*value)); in ScaleMapToQuantum()
648 static inline unsigned int ScaleQuantumToLong(const Quantum quantum) in ScaleQuantumToLong()
653 static inline MagickSizeType ScaleQuantumToLongLong(const Quantum quantum) in ScaleQuantumToLongLong()
666 static inline unsigned int ScaleQuantumToMap(const Quantum quantum) in ScaleQuantumToMap()
675 static inline unsigned short ScaleQuantumToShort(const Quantum quantum) in ScaleQuantumToShort()
684 static inline Quantum ScaleShortToQuantum(const unsigned short value) in ScaleShortToQuantum()
686 return((Quantum) (281479271743489.0*value)); in ScaleShortToQuantum()