Lines Matching refs:buffer_caret
212 int buffer_caret = 0; in read_image_tga() local
259 while (buffer_caret < image_block_size) { in read_image_tga()
260 tga->bitmap[buffer_caret] = (int) conversion_buffer[buffer_caret]; in read_image_tga()
261 buffer_caret++; in read_image_tga()
289 buffer_caret = 0; in read_image_tga()
291 while( buffer_caret < rle_size) { in read_image_tga()
292 decompression_buffer[buffer_caret] = (int)conversion_buffer[buffer_caret]; in read_image_tga()
293 buffer_caret++; in read_image_tga()
296 buffer_caret = 0; in read_image_tga()
300 if (buffer_caret + pixel_block_size > rle_size) { in read_image_tga()
306 if ((decompression_buffer[buffer_caret] & TGA_RLE_FLAG) == TGA_RLE_FLAG) { in read_image_tga()
307 encoded_pixels = ( ( decompression_buffer[ buffer_caret ] & ~TGA_RLE_FLAG ) + 1 ); in read_image_tga()
308 buffer_caret++; 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()
321 buffer_caret += pixel_block_size; in read_image_tga()
324 encoded_pixels = decompression_buffer[ buffer_caret ] + 1; in read_image_tga()
325 buffer_caret++; in read_image_tga()
328 || buffer_caret + (encoded_pixels * pixel_block_size) > rle_size) { in read_image_tga()
334 …memcpy(tga->bitmap + bitmap_caret, decompression_buffer + buffer_caret, encoded_pixels * pixel_blo… in read_image_tga()
336 buffer_caret += (encoded_pixels * pixel_block_size); in read_image_tga()