Home
last modified time | relevance | path

Searched refs:SAFE_SIZEOF (Results 1 – 2 of 2) sorted by relevance

/external/skqp/third_party/skcms/
Dskcms.cc27 #define SAFE_SIZEOF(x) ((uint64_t)sizeof(x)) macro
185 return (const tag_Layout*)(profile->buffer + SAFE_SIZEOF(header_Layout)); in get_tag_table()
202 if (tag.type != skcms_Signature_sf32 || tag.size < SAFE_SIZEOF(sf32_Layout)) { in skcms_GetCHAD()
226 if (tag->type != skcms_Signature_XYZ || tag->size < SAFE_SIZEOF(XYZ_Layout)) { in read_tag_xyz()
352 if (size < SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t)) { in read_curve_curv()
357 *curve_size = SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t); in read_curve_curv()
599 if (tag->size < SAFE_SIZEOF(mAB_Layout)) { in read_tag_mab()
645 if (tag->size < matrix_offset + 12 * SAFE_SIZEOF(uint32_t)) { in read_tag_mab()
856 assert(SAFE_SIZEOF(header_Layout) == 132); in skcms_Parse()
861 memset(profile, 0, SAFE_SIZEOF(*profile)); in skcms_Parse()
[all …]
/external/skia/third_party/skcms/
Dskcms.cc45 #define SAFE_SIZEOF(x) ((uint64_t)sizeof(x)) macro
369 return (const tag_Layout*)(profile->buffer + SAFE_SIZEOF(header_Layout)); in get_tag_table()
386 if (tag.type != skcms_Signature_sf32 || tag.size < SAFE_SIZEOF(sf32_Layout)) { in skcms_GetCHAD()
410 if (tag->type != skcms_Signature_XYZ || tag->size < SAFE_SIZEOF(XYZ_Layout)) { in read_tag_xyz()
528 if (size < SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t)) { in read_curve_curv()
533 *curve_size = SAFE_FIXED_SIZE(curv_Layout) + value_count * SAFE_SIZEOF(uint16_t); in read_curve_curv()
803 if (tag->size < SAFE_SIZEOF(mAB_or_mBA_Layout)) { in read_tag_mab()
849 if (tag->size < matrix_offset + 12 * SAFE_SIZEOF(uint32_t)) { in read_tag_mab()
930 if (tag->size < SAFE_SIZEOF(mAB_or_mBA_Layout)) { in read_tag_mba()
975 if (tag->size < matrix_offset + 12 * SAFE_SIZEOF(uint32_t)) { in read_tag_mba()
[all …]