Home | History | Annotate | Download | only in main

Lines Matching full:packing

82  * Pixel unpacking/packing parameters are observed according to \p packing.
85 * \param packing the pixelstore attributes
100 const struct gl_pixelstore_attrib *packing,
115 alignment = packing->Alignment;
116 if (packing->RowLength > 0) {
117 pixels_per_row = packing->RowLength;
122 if (packing->ImageHeight > 0) {
123 rows_per_image = packing->ImageHeight;
129 skippixels = packing->SkipPixels;
131 skiprows = packing->SkipRows;
133 skipimages = (dimensions == 3) ? packing->SkipImages : 0;
173 if (packing->Invert) {
196 * Pixel unpacking/packing parameters are observed according to \p packing.
199 * \param packing the pixelstore attributes
215 const struct gl_pixelstore_attrib *packing,
223 addr += _mesa_image_offset(dimensions, packing, width, height,
231 _mesa_image_address1d( const struct gl_pixelstore_attrib *packing,
237 return _mesa_image_address(1, packing, image, width, 1,
243 _mesa_image_address2d( const struct gl_pixelstore_attrib *packing,
249 return _mesa_image_address(2, packing, image, width, height,
255 _mesa_image_address3d( const struct gl_pixelstore_attrib *packing,
261 return _mesa_image_address(3, packing, image, width, height,
270 * \param packing the pixelstore attributes
278 _mesa_image_row_stride( const struct gl_pixelstore_attrib *packing,
283 ASSERT(packing);
286 if (packing->RowLength == 0) {
290 bytesPerRow = (packing->RowLength + 7) / 8;
298 if (packing->RowLength == 0) {
302 bytesPerRow = bytesPerPixel * packing->RowLength;
306 remainder = bytesPerRow % packing->Alignment;
308 bytesPerRow += (packing->Alignment - remainder);
311 if (packing->Invert) {
322 * pixel packing parameters and image width, format and type.
325 _mesa_image_image_stride( const struct gl_pixelstore_attrib *packing,
331 ASSERT(packing);
334 if (packing->RowLength == 0) {
338 bytesPerRow = (packing->RowLength + 7) / 8;
346 if (packing->RowLength == 0) {
350 bytesPerRow = bytesPerPixel * packing->RowLength;
354 remainder = bytesPerRow % packing->Alignment;
356 bytesPerRow += (packing->Alignment - remainder);
358 if (packing->ImageHeight == 0)
361 bytesPerImage = bytesPerRow * packing->ImageHeight;