Lines Matching refs:image_block_size
209 int image_block_size; in read_image_tga() local
226 image_block_size = (tga->width * tga->height) * pixel_block_size; in read_image_tga()
227 if(overflow2(image_block_size, sizeof(int))) { in read_image_tga()
239 tga->bitmap = (int *) gdMalloc(image_block_size * sizeof(int)); in read_image_tga()
248 conversion_buffer = (unsigned char *) gdMalloc(image_block_size * sizeof(unsigned char)); in read_image_tga()
253 if (gdGetBuf(conversion_buffer, image_block_size, ctx) != image_block_size) { in read_image_tga()
259 while (buffer_caret < image_block_size) { in read_image_tga()
271 decompression_buffer = (int*) gdMalloc(image_block_size * sizeof(int)); in read_image_tga()
275 conversion_buffer = (unsigned char *) gdMalloc(image_block_size * sizeof(unsigned char)); in read_image_tga()
282 rle_size = gdGetBuf(conversion_buffer, image_block_size, ctx); in read_image_tga()
298 while( bitmap_caret < image_block_size ) { in read_image_tga()
310 if ((bitmap_caret + (encoded_pixels * pixel_block_size)) > image_block_size in read_image_tga()
327 if ((bitmap_caret + (encoded_pixels * pixel_block_size)) > image_block_size in read_image_tga()