Lines Matching refs:outError
186 static int tick_type(png_bytep p, bool transparent, const char** outError) in tick_type() argument
203 … *outError = "Frame pixels must be either solid or transparent (not intermediate alphas)"; in tick_type()
207 *outError = "Ticks in transparent frame must be black or red"; in tick_type()
213 *outError = "White frame must be a solid color (no alpha)"; in tick_type()
226 *outError = "Ticks in white frame must be black or red"; in tick_type()
240 int32_t* outLeft, int32_t* outRight, const char** outError, in get_horizontal_ticks() argument
249 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) { in get_horizontal_ticks()
260 *outError = "Can't have more than one marked region along edge"; in get_horizontal_ticks()
264 } else if (*outError == NULL) { in get_horizontal_ticks()
279 *outError = "No marked region found along edge"; in get_horizontal_ticks()
289 int32_t* outTop, int32_t* outBottom, const char** outError, in get_vertical_ticks() argument
298 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) { in get_vertical_ticks()
309 *outError = "Can't have more than one marked region along edge"; in get_vertical_ticks()
313 } else if (*outError == NULL) { in get_vertical_ticks()
328 *outError = "No marked region found along edge"; in get_vertical_ticks()
338 int32_t* outLeft, int32_t* outRight, const char** outError) in get_horizontal_layout_bounds_ticks() argument
344 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + 4, transparent, outError)) { in get_horizontal_layout_bounds_ticks()
350 int tick = tick_type(row + i * 4, transparent, outError); in get_horizontal_layout_bounds_ticks()
358 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + (width - 2) * 4, transparent, outError)) { in get_horizontal_layout_bounds_ticks()
364 int tick = tick_type(row+i*4, transparent, outError); in get_horizontal_layout_bounds_ticks()
376 int32_t* outTop, int32_t* outBottom, const char** outError) in get_vertical_layout_bounds_ticks() argument
382 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
388 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()
396 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) { in get_vertical_layout_bounds_ticks()
402 int tick = tick_type(rows[i] + offset, transparent, outError); in get_vertical_layout_bounds_ticks()