Lines Matching refs:outError
185 static int tick_type(png_bytep p, bool transparent, const char** outError) in tick_type() argument
202 … *outError = "Frame pixels must be either solid or transparent (not intermediate alphas)"; in tick_type()
206 *outError = "Ticks in transparent frame must be black or red"; in tick_type()
212 *outError = "White frame must be a solid color (no alpha)"; in tick_type()
225 *outError = "Ticks in white frame must be black or red"; in tick_type()
239 int32_t* outLeft, int32_t* outRight, const char** outError, in get_horizontal_ticks() argument
248 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) { in get_horizontal_ticks()
259 *outError = "Can't have more than one marked region along edge"; in get_horizontal_ticks()
263 } else if (*outError == NULL) { in get_horizontal_ticks()
278 *outError = "No marked region found along edge"; in get_horizontal_ticks()
288 int32_t* outTop, int32_t* outBottom, const char** outError, in get_vertical_ticks() argument
297 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) { in get_vertical_ticks()
308 *outError = "Can't have more than one marked region along edge"; in get_vertical_ticks()
312 } else if (*outError == NULL) { in get_vertical_ticks()
327 *outError = "No marked region found along edge"; in get_vertical_ticks()
337 int32_t* outLeft, int32_t* outRight, const char** outError) in get_horizontal_layout_bounds_ticks() argument
343 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + 4, transparent, outError)) { in get_horizontal_layout_bounds_ticks()
349 int tick = tick_type(row + i * 4, transparent, outError); in get_horizontal_layout_bounds_ticks()
357 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + (width - 2) * 4, transparent, outError)) { in get_horizontal_layout_bounds_ticks()
363 int tick = tick_type(row+i*4, transparent, outError); in get_horizontal_layout_bounds_ticks()
375 int32_t* outTop, int32_t* outBottom, const char** outError) in get_vertical_layout_bounds_ticks() argument
381 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
387 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()
395 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
401 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()