maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish API for camera (https://talk.maemo.org/showthread.php?t=100150)

Radu 2018-01-13 09:05

Sailfish API for camera
 
I'm thinking of doing some development for Sailfish, and I might buy a Xiaomi or Oneplus compatible device.

One of my ideas is to make a programmable camera app, where you can run scripts and such (similar to CHDK).
Anyway, I've been looking online for info about the camera API and I couldn't find anything. Is there an official guide or something, preferably for C (not C++) camera programing?

Feathers McGraw 2018-01-13 14:05

Re: Sailfish API for camera
 
Start here:

https://sailfishos.org/wiki/Core_Are...PIs#Multimedia

Quote:

Multimedia

Sailfish Multimedia uses QtMultimedia, on top of GStreamer 1.0 supporting the 'good' and 'bad' plugin collections. The 'ugly' plugin set is not supported for licensing reasons.


Some low-level media services that interact with the Android HAL are wrapped up in droidmedia, and exposed in a custom Gstreamer plugin: GStreamer1.0-droid. This includes support for OMX codecs (H.264/AVC, VP8, MPEG-4 & H.263 video, MP3 & AAC audio), Camera support (including direct capture and encoding of video for recording) and EGL display, which can all use Android native buffers and formats internally for added performance.

Radu 2018-01-13 14:21

Re: Sailfish API for camera
 
Thanks, but I meant a place where I can find an actual API, with functions on how to init the camera, set the ISO, focus, and so on, preferably with some examples as well.

pichlo 2018-01-13 15:42

Re: Sailfish API for camera
 
I had a similar problem once. Not about the camera but that does not matter. The only documentation I found was waaaaaay too high level for my needs. I ended up giving up. Life is too short.

Radu 2018-01-13 17:00

Re: Sailfish API for camera
 
That kind of sucks. Tizen has some good documentation, but there are no ports on other phones, and I can't even buy a Samsung Z4 phone here (plus, I heard they are locked down, so no sideloading?).


All times are GMT. The time now is 23:07.

vBulletin® Version 3.8.8