Lines Matching defs:format
28 #include "util/format/format_utils.h"
202 enum pipe_format format = input[i].src_format;
210 if (format >= PIPE_FORMAT_R64_UINT &&
211 format <= PIPE_FORMAT_R64G64B64A64_UINT) {
213 format = MAX2(format, PIPE_FORMAT_R64G64B64_UINT);
215 format = MIN2(format, PIPE_FORMAT_R64G64_UINT);
218 switch (format) {
237 format == PIPE_FORMAT_R64G64B64_UINT ?
524 * Clamp color value to format range.
527 util_clamp_color(enum pipe_format format,
533 for (i = 0; i < util_format_get_nr_components(format); i++) {
534 uint8_t bits = util_format_get_component_bits(format, UTIL_FORMAT_COLORSPACE_RGB, i);
536 if (util_format_is_unorm(format))
538 else if (util_format_is_snorm(format))
540 else if (util_format_is_pure_uint(format))
542 else if (util_format_is_pure_sint(format))