编译/通过libjpeg为iPhone(iOS版3.0+)? [英] Compiling/using libjpeg for iPhone (iOS 3.0+)?
问题描述
我想使用的libjpeg( http://www.ijg.org/ )库在iPhone的iOS 3.0或更高版本的项目。我已经尝试了几种不同的方法,但作为一个有点幼稚,我真的不知道如何开始。
我一直在玩与SDL库项目的零件和碎片从这里 HTTP://$c$c.google.com/p/sdl-static/ 都没有任何实际工作成果
任何人都可以联系我的教程或给我推在正确的方向?
我的最终目标是能够操纵JPEG图像有点类似于此的libjpeg MatLab的包装的DCT系数。
http://www.philsallee.com/jpegtbx
所以我想先从像
的UIImage *盖= [UIImage的imageNamed:@cover.jpg];
//转换成的libjpeg结构
//做一些DCT系数操作
* UIImage的隐秘= ... //它保存到iOS SDK相当于图像类型
您可以解压缩整个库到你的项目和文件添加到X $ C $℃。有一个文件'Filelist.txt中描述的最小集,你需要链接到你的项目。看看example.c如何调用API。我没有看到的功能来调整DCT系数 - 那你对自己有破解
I want to use the libjpeg (http://www.ijg.org/) library in an iPhone iOS 3.0 or greater project. I have tried a few different approaches, but being a bit naive, I'm not really sure how to begin.
I've been playing with parts and pieces of the SDL library project from here http://code.google.com/p/sdl-static/ all to no real working outcomes.
Can anyone link me to a tutorial or give me a push in the right direction?
My ultimate goal is to be able to manipulate the DCT coefficients of jpeg images somewhat similar to this MatLab libjpeg wrapper. http://www.philsallee.com/jpegtbx
So I would like to start with something like
UIImage *cover = [UIImage imageNamed:@"cover.jpg"];
// convert to the libjpeg structs
// do some DCT coefficient manipulations
UIImage *stego = ... // save it back to iOS SDK equivalent image type
You can unpack the entire library into your project and add the files to XCode. There's a file 'filelist.txt' which describes the minimal set you need to link into your project. Have a look at 'example.c' for how to call the API. I don't see functions to tweak the DCT coefficients - that you'll have to hack in yourself.
这篇关于编译/通过libjpeg为iPhone(iOS版3.0+)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!