Lines Matching refs:conversion_buffer
211 unsigned char* conversion_buffer = NULL; in read_image_tga() local
248 conversion_buffer = (unsigned char *) gdMalloc(image_block_size * sizeof(unsigned char)); in read_image_tga()
249 if (conversion_buffer == NULL) { in read_image_tga()
253 if (gdGetBuf(conversion_buffer, image_block_size, ctx) != image_block_size) { in read_image_tga()
255 gdFree(conversion_buffer); in read_image_tga()
260 tga->bitmap[buffer_caret] = (int) conversion_buffer[buffer_caret]; in read_image_tga()
264 gdFree(conversion_buffer); in read_image_tga()
275 conversion_buffer = (unsigned char *) gdMalloc(image_block_size * sizeof(unsigned char)); in read_image_tga()
276 if (conversion_buffer == NULL) { in read_image_tga()
282 rle_size = gdGetBuf(conversion_buffer, image_block_size, ctx); in read_image_tga()
284 gdFree(conversion_buffer); in read_image_tga()
292 decompression_buffer[buffer_caret] = (int)conversion_buffer[buffer_caret]; in read_image_tga()
302 gdFree( conversion_buffer ); in read_image_tga()
313 gdFree( conversion_buffer ); in read_image_tga()
330 gdFree( conversion_buffer ); in read_image_tga()
340 gdFree( conversion_buffer ); in read_image_tga()