关于嵌入式下jpeg转换bmp指定data source问题,请各位帮帮忙
使用的是ijg的jpeg6b库,现在已经移植过来,
1、 Allocate and initialize a JPEG decompression object
2、Specify the source of the compressed data (eg, a file)
3、Call jpeg_read_header() to obtain image info
4、Set parameters for decompression
jpeg_start_decompress(...);
while (scan lines remain to be read)
jpeg_read_scanlines(...);
jpeg_finish_decompress(...);
Release the JPEG decompression object
里面给的例子是基于文件系统的,我现在环境是无文件系统的,所以在第二步不能用jpeg_stdio_src(&cinfo, infile)指定data source。
请问,我改如何指定data source,
我看了libjpeg,里面只是说支持buffer-->buffer的转换,但是我还是找不到如何指定data source。
请各位帮帮忙了。。。。
多谢了。