Lines Matching refs:unit
280 /* TODO: validate format of calibration name and unit name */
363 int unit, png_const_charp swidth, png_const_charp sheight)
372 /* Double check the unit (should never get here with an invalid
373 * unit unless this is an API call.)
375 if (unit != 1 && unit != 2)
376 png_error(png_ptr, "Invalid sCAL unit");
386 info_ptr->scal_unit = (png_byte)unit;
390 png_debug1(3, "allocating unit for info (%u bytes)", (unsigned int)lengthw);
405 png_debug1(3, "allocating unit for info (%u bytes)", (unsigned int)lengthh);
427 png_set_sCAL(png_const_structrp png_ptr, png_inforp info_ptr, int unit,
450 png_set_sCAL_s(png_ptr, info_ptr, unit, swidth, sheight);
457 png_set_sCAL_fixed(png_const_structrp png_ptr, png_inforp info_ptr, int unit,
478 png_set_sCAL_s(png_ptr, info_ptr, unit, swidth, sheight);