为 iPhone (iOS 3.0+) 编译/使用 libjpeg?
我想在 iPhone iOS 3.0 中使用 libjpeg (http://www.ijg.org/) 库或更大的项目。我尝试了几种不同的方法,但有点天真,我不太确定如何开始。
我一直在使用 http://code 的 SDL 库项目的各个部分。 google.com/p/sdl-static/ 完全没有实际的工作成果。
任何人都可以将我链接到教程或推动我走向正确的方向吗?
我的最终目标是能够操纵 jpeg 图像的 DCT 系数,这与 MatLab libjpeg 包装器有点相似。 http://www.philsallee.com/jpegtbx
所以我想从类似的开始
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
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将整个库解压到您的项目中并将文件添加到 XCode。有一个文件“filelist.txt”,它描述了链接到项目中所需的最小集。查看“example.c”了解如何调用 API。我没有看到调整 DCT 系数的函数 - 你必须自己破解。
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.