Lines Matching refs:packing
100 const struct gl_pixelstore_attrib *packing, in _mesa_image_offset() argument
115 alignment = packing->Alignment; in _mesa_image_offset()
116 if (packing->RowLength > 0) { in _mesa_image_offset()
117 pixels_per_row = packing->RowLength; in _mesa_image_offset()
122 if (packing->ImageHeight > 0) { in _mesa_image_offset()
123 rows_per_image = packing->ImageHeight; in _mesa_image_offset()
129 skippixels = packing->SkipPixels; in _mesa_image_offset()
131 skiprows = packing->SkipRows; in _mesa_image_offset()
133 skipimages = (dimensions == 3) ? packing->SkipImages : 0; in _mesa_image_offset()
173 if (packing->Invert) { in _mesa_image_offset()
215 const struct gl_pixelstore_attrib *packing, in _mesa_image_address() argument
223 addr += _mesa_image_offset(dimensions, packing, width, height, in _mesa_image_address()
231 _mesa_image_address1d( const struct gl_pixelstore_attrib *packing, in _mesa_image_address1d() argument
237 return _mesa_image_address(1, packing, image, width, 1, in _mesa_image_address1d()
243 _mesa_image_address2d( const struct gl_pixelstore_attrib *packing, in _mesa_image_address2d() argument
249 return _mesa_image_address(2, packing, image, width, height, in _mesa_image_address2d()
255 _mesa_image_address3d( const struct gl_pixelstore_attrib *packing, in _mesa_image_address3d() argument
261 return _mesa_image_address(3, packing, image, width, height, in _mesa_image_address3d()
278 _mesa_image_row_stride( const struct gl_pixelstore_attrib *packing, in _mesa_image_row_stride() argument
283 ASSERT(packing); in _mesa_image_row_stride()
286 if (packing->RowLength == 0) { in _mesa_image_row_stride()
290 bytesPerRow = (packing->RowLength + 7) / 8; in _mesa_image_row_stride()
298 if (packing->RowLength == 0) { in _mesa_image_row_stride()
302 bytesPerRow = bytesPerPixel * packing->RowLength; in _mesa_image_row_stride()
306 remainder = bytesPerRow % packing->Alignment; in _mesa_image_row_stride()
308 bytesPerRow += (packing->Alignment - remainder); in _mesa_image_row_stride()
311 if (packing->Invert) { in _mesa_image_row_stride()
325 _mesa_image_image_stride( const struct gl_pixelstore_attrib *packing, in _mesa_image_image_stride() argument
331 ASSERT(packing); in _mesa_image_image_stride()
334 if (packing->RowLength == 0) { in _mesa_image_image_stride()
338 bytesPerRow = (packing->RowLength + 7) / 8; in _mesa_image_image_stride()
346 if (packing->RowLength == 0) { in _mesa_image_image_stride()
350 bytesPerRow = bytesPerPixel * packing->RowLength; in _mesa_image_image_stride()
354 remainder = bytesPerRow % packing->Alignment; in _mesa_image_image_stride()
356 bytesPerRow += (packing->Alignment - remainder); in _mesa_image_image_stride()
358 if (packing->ImageHeight == 0) in _mesa_image_image_stride()
361 bytesPerImage = bytesPerRow * packing->ImageHeight; in _mesa_image_image_stride()