Lines Matching refs:numerator
467 static void float2urat(double value, unsigned int max, unsigned int *numerator, in float2urat() argument
470 *numerator = 0; in float2urat()
476 *numerator = max; in float2urat()
485 *numerator = 0; in float2urat()
488 *numerator = n; in float2urat()
505 *numerator = n; in float2urat()
513 *numerator = 0; in float2urat()
517 static void ConvertDoubleToURational(double value, unsigned int *numerator, in ConvertDoubleToURational() argument
519 float2urat(value, 0xFFFFFFFFU, numerator, denominator); in ConvertDoubleToURational()
522 static void ConvertDoubleToSRational(double value, int *numerator, in ConvertDoubleToSRational() argument
533 *numerator = (int)n; in ConvertDoubleToSRational()
536 *numerator = -*numerator; in ConvertDoubleToSRational()
1261 unsigned int numerator; in writeExifTagAndData() local
1265 numerator = atoi(curElement); in writeExifTagAndData()
1269 ConvertDoubleToURational(value, &numerator, &denominator); in writeExifTagAndData()
1271 Put32u(Buffer+(*DataWriteIndex), numerator); in writeExifTagAndData()
1275 int numerator; in writeExifTagAndData() local
1279 numerator = atoi(curElement); in writeExifTagAndData()
1283 ConvertDoubleToSRational(value, &numerator, &denominator); in writeExifTagAndData()
1285 Put32u(Buffer+(*DataWriteIndex), numerator); in writeExifTagAndData()