View Single Post
  #2   Spotlight this post!  
Unread 10-01-2010, 10:12
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: jpeg conversion for dashboard software

I'm not sure what language or platform you are using, but two approaches you might try.

Try to use NIIMAQ.dll. This is how the LabVIEW, Java, and C/C++ code is doing it on the robot, and how LV is doing it on the dashboard. I can't be certain, but I believe that the Windows host library probably has the entrypoint for decoding to a buffer that is easily called using C parameter conventions.

Second approach would be to download the JPEG consortium code. This is where most of the JPEG decoders come from anyway, and internally, it is definitely stream based and you can point the stream to a buffer rather than a file.

Greg McKaskle