Lines Matching refs:decompression_buffer
213 int* decompression_buffer = NULL; in read_image_tga() local
274 decompression_buffer = (int*) gdMalloc(image_block_size * sizeof(int)); in read_image_tga()
275 if (decompression_buffer == NULL) { in read_image_tga()
281 gdFree( decompression_buffer ); in read_image_tga()
288 gdFree(decompression_buffer); in read_image_tga()
295 decompression_buffer[buffer_caret] = (int)conversion_buffer[buffer_caret]; in read_image_tga()
304 gdFree( decompression_buffer ); in read_image_tga()
309 if ((decompression_buffer[buffer_caret] & TGA_RLE_FLAG) == TGA_RLE_FLAG) { in read_image_tga()
310 encoded_pixels = ( ( decompression_buffer[ buffer_caret ] & ~TGA_RLE_FLAG ) + 1 ); in read_image_tga()
315 gdFree( decompression_buffer ); in read_image_tga()
321 …memcpy(tga->bitmap + bitmap_caret, decompression_buffer + buffer_caret, pixel_block_size * sizeof(… in read_image_tga()
327 encoded_pixels = decompression_buffer[ buffer_caret ] + 1; in read_image_tga()
332 gdFree( decompression_buffer ); in read_image_tga()
337 …memcpy(tga->bitmap + bitmap_caret, decompression_buffer + buffer_caret, encoded_pixels * pixel_blo… in read_image_tga()
342 gdFree( decompression_buffer ); in read_image_tga()