Look at this:
http://maemo.org/development/documentation/manuals/4-0-x/how_to_use_came
ra_api/

You can replace the create_jpeg() fn with one that does what you want
with the buffer of raw data that is passed to it.


Simon

> -----Original Message-----
> From: dongmei zhou [mailto:[email protected]] 
> Sent: 23 February 2009 12:37
> To: Simon Pickering
> Cc: [email protected]
> Subject: Re: How to create a BMP image using c or python
> 
> 
> hi All,
> 
>  Thank you for your tips and  I  want to  add  a point that  
> I  want to  get BMP file form N800 camera,You know that  we 
> can get jpeg file  through Gstreamer  got from N800 Camera, 
> what about  BMP file?
>    
> 
> 
> 2009/2/23 Simon Pickering <[email protected]>
> 
> 
> 
>               hi All,
>                  I know that  Jpeg  image  can be created  
> with Gstreamer , while how to
>               create a  BMP format image by c or python?
>               Any help would be appreciated, thanks in advance!
>               
> 
> 
>       Google? A bitmap is just a header followed by the data 
> (which can just be raw data if you don't want to implement RLE code).
>       
>       E.g. format of the file: 
> http://en.wikipedia.org/wiki/Windows_bitmap
>       
>       and here's an implementation that you could copy and 
> change: 
> http://cpansearch.perl.org/src/DHUNT/PDL-Planet-0.05/libimage/bmp.c
>       
>       All you need is some data and stdio.h
>       
>       Cheers,
>       
>       
>       Simon
>       
>       
>       
> 
> 
> 
> 
> -- 
> BRS! 
> Thanks!
> 
> 

_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to