Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » plugin/tga (Working with RasterEncoder) 
	
		
		
			| plugin/tga [message #60224] | 
			Sun, 22 October 2023 14:22   | 
		 
		
			
				
				
				
					
						  
						jjacksonRIAB
						 Messages: 227 Registered: June 2011 
						
					 | 
					Experienced Member  | 
					 | 
		 
		 
	 | 
 
	
		I'm working on a TGA plugin here: 
 
https://github.com/BornTactical/tga 
 
So far it lacks robust error handling so it will crash if a TGA is malformed and there are missing features but it seems to be working for a lot of TGAs. 
 
I have more than a few questions though, mainly dealing with Run Length Encoding and RasterEncoder. Where is the appropriate place to compress a raster line for storage? Right now I'm putting it in WriteLineRaw, but I end up having to do casting and bpp checks. If anyone wants to go through the code and offer suggestions on how I could improve it I'm happy to learn.
		
		
		[Updated on: Sun, 22 October 2023 14:24] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 17:12:11 CET 2025 
 Total time taken to generate the page: 0.04638 seconds 
 |