Searched refs:curve_bytes (Results 1 – 2 of 2) sorted by relevance
/external/skqp/third_party/skcms/ |
D | skcms.cc | 281 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; in read_curve_para() local 282 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para() 287 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para() 558 uint32_t curve_bytes; in read_curves() local 559 if (!read_curve(buf + curve_offset, size - curve_offset, &curves[i], &curve_bytes)) { in read_curves() 563 if (curve_bytes > UINT32_MAX - 3) { in read_curves() 566 curve_bytes = (curve_bytes + 3) & ~3U; in read_curves() 568 uint64_t new_offset_64 = (uint64_t)curve_offset + curve_bytes; in read_curves()
|
/external/skia/third_party/skcms/ |
D | skcms.cc | 457 static const uint32_t curve_bytes[] = { 4, 12, 16, 20, 28 }; in read_curve_para() local 458 if (size < SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]) { in read_curve_para() 463 *curve_size = SAFE_FIXED_SIZE(para_Layout) + curve_bytes[function_type]; in read_curve_para() 761 uint32_t curve_bytes; in read_curves() local 762 if (!read_curve(buf + curve_offset, size - curve_offset, &curves[i], &curve_bytes)) { in read_curves() 766 if (curve_bytes > UINT32_MAX - 3) { in read_curves() 769 curve_bytes = (curve_bytes + 3) & ~3U; in read_curves() 771 uint64_t new_offset_64 = (uint64_t)curve_offset + curve_bytes; in read_curves()
|