Library communicating with PTP enabled devices (digital photo cameras and so on).
Follow libptp (Picture Transfer Protocol lib)
Rate This ProjectLogin To Rate This Project
I had figured that this would be a project with a compact library and a decent API -- a lib with a header file. It isn't. The code is just about the worst code I have EVER read. The most egregious aspect is that the code uses macros with local variable names. It's complete garbage. The author apologizes for one or two global variables but uses global macros with local variables! It needs a complete rewrite. I should have gone with gPhoto.
HI Mariusz, I am using libptp library for reading camera settings. I am having problem to read an extended PTP property and hope you could show me some clues about how to solve it. I am using ptpcam --show-properties to find properties of Theta S, a 360 camera. It use extended PTP property to define shutter speed. Its API is here. Ptpcam can see that it is a list but its properties are “Unknown”. Do you think this is because the property value is define as standard Rational? Is there any way to add surport to read these values? Thank you very much for your time. Xiaoming
a life saver for me... thanks.. seems stable than gphoto2 to me..
Libptp works perfect.
This is surely one of the best open source projects.