Lines Matching defs:format
105 * \param format the pixel format (must be validated beforehand)
119 GLenum format, GLenum type,
159 /* The pixel type and format should have been error checked earlier */
160 assert(format == GL_COLOR_INDEX || format == GL_STENCIL_INDEX);
176 bytes_per_pixel = _mesa_bytes_per_pixel( format, type );
178 /* The pixel type and format should have been error checked earlier */
220 * \param format the pixel format (must be validated beforehand)
235 GLenum format, GLenum type,
241 format, type, img, row, column);
251 GLenum format, GLenum type,
255 format, type, 0, 0, column);
263 GLenum format, GLenum type,
267 format, type, 0, row, column);
275 GLenum format, GLenum type,
279 format, type, img, row, column);
289 * \param format pixel format.
296 GLint width, GLenum format, GLenum type )
312 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type);
339 * pixel packing parameters and image width, format and type.
344 GLenum format, GLenum type )
359 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type);
860 * according to the format and type of data being input.
865 _mesa_swap_bytes_2d_image(GLenum format, GLenum type,
875 int swapsPerPixel = _mesa_bytes_per_pixel(format, type) / swapSize;
876 int stride = _mesa_image_row_stride(packing, width, format, type);
881 assert(_mesa_bytes_per_pixel(format, type) % swapSize == 0);