Searched refs:src_format_desc (Results 1 – 3 of 3) sorted by relevance
42 const struct util_format_description *src_format_desc; in test_all() local43 src_format_desc = util_format_description(src_format); in test_all()53 if (util_is_format_compatible(src_format_desc, dst_format_desc)) { in test_all()54 printf("%s -> %s\n", src_format_desc->short_name, dst_format_desc->short_name); in test_all()
650 const struct util_format_description *src_format_desc; in util_format_translate() local662 src_format_desc = util_format_description(src_format); in util_format_translate()664 if (util_is_format_compatible(src_format_desc, dst_format_desc)) { in util_format_translate()677 assert(src_x % src_format_desc->block.width == 0); in util_format_translate()678 assert(src_y % src_format_desc->block.height == 0); in util_format_translate()681 src_row = (const uint8_t *)src + src_y*src_stride + src_x*(src_format_desc->block.bits/8); in util_format_translate()688 y_step = MAX2(dst_format_desc->block.height, src_format_desc->block.height); in util_format_translate()689 x_step = MAX2(dst_format_desc->block.width, src_format_desc->block.width); in util_format_translate()691 assert(y_step % src_format_desc->block.height == 0); in util_format_translate()694 src_step = y_step / src_format_desc->block.height * src_stride; in util_format_translate()[all …]
626 const struct util_format_description *src_format_desc; in areResourcesCompatible() local629 src_format_desc = util_format_description(src_resource->format); in areResourcesCompatible()632 assert(src_format_desc->block.width == dst_format_desc->block.width); in areResourcesCompatible()633 assert(src_format_desc->block.height == dst_format_desc->block.height); in areResourcesCompatible()634 assert(src_format_desc->block.bits == dst_format_desc->block.bits); in areResourcesCompatible()636 return util_is_format_compatible(src_format_desc, dst_format_desc); in areResourcesCompatible()