Lines Matching refs:pixel_block_size
208 int pixel_block_size = (tga->bits / 8); in read_image_tga() local
222 if(overflow2(tga->width * tga->height, pixel_block_size)) { in read_image_tga()
226 image_block_size = (tga->width * tga->height) * pixel_block_size; in read_image_tga()
300 if (buffer_caret + pixel_block_size > rle_size) { in read_image_tga()
310 if ((bitmap_caret + (encoded_pixels * pixel_block_size)) > image_block_size in read_image_tga()
311 || buffer_caret + pixel_block_size > rle_size) { in read_image_tga()
318 …memcpy(tga->bitmap + bitmap_caret, decompression_buffer + buffer_caret, pixel_block_size * sizeof(… in read_image_tga()
319 bitmap_caret += pixel_block_size; in read_image_tga()
321 buffer_caret += pixel_block_size; in read_image_tga()
327 if ((bitmap_caret + (encoded_pixels * pixel_block_size)) > image_block_size in read_image_tga()
328 || buffer_caret + (encoded_pixels * pixel_block_size) > rle_size) { in read_image_tga()
334 …bitmap_caret, decompression_buffer + buffer_caret, encoded_pixels * pixel_block_size * sizeof(int)… in read_image_tga()
335 bitmap_caret += (encoded_pixels * pixel_block_size); in read_image_tga()
336 buffer_caret += (encoded_pixels * pixel_block_size); in read_image_tga()