Lines Matching defs:format

70  * is used when we need to rebase a format to match a different
71 * base internal format.
140 * the rebase swizzle to use in a format conversion based on the base
141 * format involved.
143 * \param baseFormat the base internal format involved in the conversion.
189 unreachable("Unexpected base format");
261 * \param dst_format The destination color format. It can be a mesa_format
263 * \param dst_stride The stride of the destination format in bytes.
265 * \param src_format The source color format. It can be a mesa_format
267 * \param src_stride The stride of the source format in bytes.
272 * format involved. NULL if no rebase transform is needed
273 * (i.e. the internal base format and the base format of
319 * match an internal base format, since in these cases a simple pack/unpack
320 * to the dst format from the src format may not match the requirements
321 * of the internal base format. For now we decide to be safe and
475 /* If the destination format is signed but the source is unsigned, then we
476 * don't loose any data by converting to a signed intermediate format above
478 * destination is unsigned then, by using an unsigned intermediate format,
480 * intermediate format take care of truncating at zero. The exception here
481 * is if the intermediate format is float, in which case the first
523 * a signed to an unsigned format because the unsigned packing function
671 * Describes a format as an array format, if possible
673 * A helper function for figuring out if a (possibly packed) format is
674 * actually an array format and, if so, what the array parameters are.
676 * \param[in] format the mesa format
680 * given format to RGBA
682 * the format is a normalized integer or a
684 * \return true if this format is an array format, false otherwise
687 _mesa_format_to_array(mesa_format format, GLenum *type, int *num_components,
695 if (_mesa_is_format_compressed(format))
698 *normalized = !_mesa_is_format_integer(format);
700 _mesa_uncompressed_format_to_type_and_comps(format, type, &format_components);
702 switch (_mesa_get_format_layout(format)) {
705 _mesa_get_format_swizzle(format, swizzle);
711 if (_mesa_get_format_max_bits(format) != 8)
713 *num_components = _mesa_get_format_bytes(format);
740 if (_mesa_get_format_max_bits(format) != 16)
742 *num_components = _mesa_get_format_bytes(format) / 2;
764 if (_mesa_get_format_max_bits(format) != 32)
773 _mesa_get_format_swizzle(format, packed_swizzle);
842 * format
884 * format
1487 * Most format conversion operations required by GL can be performed by