libjpeg API and Reference [closed]

两盒软妹~` 提交于 2019-12-21 07:14:13

问题


I am having trouble finding an API that details functions calls and return values... The headers aren't exactly very clean either...

I have found tons of examples, but I'm interested in error handling (return values). Am I approaching this wrong because I'm tearing my hair out trying to find something as basic as a function list for this well known library.


回答1:


There is some documentation in libjpeg.txt.

libjpeg is a very low-level, steep-learning-curve, old school c library. To use it effectively you need to be familiar with setjmp and longjmp, c structure layouts, function pointers, and lots of other low-level C stuff. It's a bear to work with but possible to do a great deal with minimal resource usage.

The documentation is not that great. I think the authors intended that anybody using this library would be able to read through the source and figure out how the stuff works.




回答2:


The main API files would be jpeglib.h and jerror.h. You can find these files as part of standard Android distribution also.jpeglib.h contains all the data structures, whereas jerror.h contains all error codes with corresponding messages.



来源:https://stackoverflow.com/questions/15101281/libjpeg-api-and-reference

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!