CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2011
    Posts
    1

    converting JPEG frames into Image

    Hello,

    I'm a noob in java programming.
    Currently I'm dealing with C328R CMOS camera which is a image sensor with JPEG compression.
    The camera transmit the JPEG-compressed data in packets and a group of packets forms a frame (one image per frame). Each packet has an ID so the sequence of the packet can be traced. It uses serial transmission to communicate to the PC.

    For now, I have no problem to read the data serially as I just read the inputStream. The problem is I have no idea on how to convert every frame into image.

    Any hints for me to work with?

    Thanks for any reply ^^

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: converting JPEG frames into Image

    I don't have an answer, but here is a some place to start.
    How do the bytes you read compare to the bytes in a jpeg file?
    Here is what the first few bytes of a jpeg file look like in hex:
    FFD8 FFE0 0010 4A46 4946 0001 0101 0096
    0096 0000 FFDB 0043 0010 0B0C 0E0C 0A10
    Norm

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured