[maemo-developers] [maemo-developers] Detecting N800 camera position

From: Tim Teulings rael at edge.ping.de
Date: Sat Mar 3 19:11:00 EET 2007
Hello!

> you could also check:
> 
> /sys/devices/platform/gpio-switch/cam_act/
> /sys/devices/platform/gpio-switch/cam_turn/

I'm really lost in detecting and changing camer position.

My application uses gstreamer but is not a GTK application and thus not
actively using the gtk, gnome, osso,hildon infrastruture.

Using gconfv4l2src works in that I get an image but the video image does
not automatically flip horizontally.

As a next step I tried to add a notifier for the gconf configuration
value. But this does not work. The notifier callback is never called.
Perhaps because I do not use a gtk main event loop.

As a next try I tried to use gconf directly to poll the state. But this
does not work either.

After that I checked the /sys/-values and they change. So now I will
regulary poll this values as "I don#t like it but it works" solution.

However how to I flip the video manually using gstreamer?

P.S.:
And yes, image/video flipping does work in principle as tested with the
video conferencing tool.

P.P.S.: If I got this working I will release a small, simple GUI driven
camera application...

-- 
Gruß...
       Tim

More information about the maemo-developers mailing list