Active Topics

 


Poll: What applications would you like to see FIRST to receive portrait mode ?
Poll Options
What applications would you like to see FIRST to receive portrait mode ?

Reply
Thread Tools
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#31
Originally Posted by timsamoff View Post
I don't get this... The Images app (how you view images) can be in landscape and portrait. But the camera?

If you want to take a photo in portrait, you hold the device in portrait -- just like a regular camera. If the camera had to switch to portrait mode, you'd still be taking your photo in landscape (because the view would rotate), but it'd be shrunk to fit in the portrait view.

Or, am I missing something?

Tim
You're right, I think we're mostly good if the app is dumb: When in portrait mode I'm framing a portrait. But I need buttons at the bottom of the screen: Zoom and shutter, and a quick menu or overlay button for other functions. It's all about comfortable, one-handed opperation, and I can see myself writing my own photo and video app if I don't get this. But I'd really rather not.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
timsamoff's Avatar
Posts: 1,605 | Thanked: 1,601 times | Joined on Mar 2007 @ Southern California
#32
Originally Posted by daperl View Post
You're right, I think we're mostly good if the app is dumb: When in portrait mode I'm framing a portrait. But I need buttons at the bottom of the screen: Zoom and shutter, and a quick menu or overlay button for other functions. It's all about comfortable, one-handed opperation, and I can see myself writing my own photo and video app if I don't get this. But I'd really rather not.
These are all handled by hardware buttons... Just like any digital camera.

Tim
__________________
http://samoff.com
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#33
Originally Posted by timsamoff View Post
These are all handled by hardware buttons... Just like any digital camera.

Tim
Yeah, but how many of those cameras are running an open, rooted GNU/Linux? If I find some extra free time, I might have to dust off and spruce up a PyGTK GStreamer app to show you what can be done with just an n8x0. And actually, we have qole to thank for blazing and sharing some of the early GStreamer A/V tablet trails.

It's soon to be the second generation of digital Burger King, baby: Have It Even More Your Way.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#34
I am very excited by the possibilities of the new camera. I did some quick gstreamer pipeline tests and seriously, It is no harder to use the high quality camera on the N900 than it was to use the N8x0 camera. It should be even better now, as there seems to be a much wider range of sinks etc...

I'm looking forward to some seriously whiz-bang community apps using the camera. Now I know daperl will be writing one
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#35
Cool! Did you create a video with synced audio?
__________________
N9: Go white or go home
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#36
qole, try this n800 script on the n900.

Code:
#! /usr/bin/env python

import gtk
import gst

class ShowMe:
	def __init__(self):
		window = gtk.Window(gtk.WINDOW_TOPLEVEL)
		window.set_title("Webcam-Viewer")
		window.connect("destroy", gtk.main_quit, "WM destroy")
		vbox = gtk.VBox()
		window.add(vbox)
		self.movie_window = gtk.DrawingArea()
		vbox.add(self.movie_window)
		hbox = gtk.HBox()
		vbox.pack_start(hbox, False)
		hbox.set_border_width(10)
		hbox.pack_start(gtk.Label())
		self.button = gtk.Button("Start")
		self.button.connect("clicked", self.start_stop)
		hbox.pack_start(self.button, False)
		self.button2 = gtk.Button("Quit")
		self.button2.connect("clicked", self.exit)
		hbox.pack_start(self.button2, False)
		hbox.add(gtk.Label())
		window.show_all()

		# Set up the gstreamer pipeline
		self.player = gst.parse_launch ('gconfv4l2src ! video/x-raw-yuv,width=320,height=240,framerate=(fraction)15/1 ! autovideosink')

		bus = self.player.get_bus()
		bus.add_signal_watch()
		bus.enable_sync_message_emission()
		bus.connect("message", self.on_message)
		bus.connect("sync-message::element", self.on_sync_message)

	def start_stop(self, w):
		if self.button.get_label() == "Start":
			self.button.set_label("Stop")
			self.player.set_state(gst.STATE_PLAYING)
		else:
			self.player.set_state(gst.STATE_NULL)
			self.button.set_label("Start")

	def exit(self, widget, data=None):
		gtk.main_quit()

	def on_message(self, bus, message):
		t = message.type
		if t == gst.MESSAGE_EOS:
			self.player.set_state(gst.STATE_NULL)
			self.button.set_label("Start")
		elif t == gst.MESSAGE_ERROR:
			err, debug = message.parse_error()
			print "Error: %s" % err, debug
			self.player.set_state(gst.STATE_NULL)
			self.button.set_label("Start")

	def on_sync_message(self, bus, message):
		if message.structure is None:
			return
		message_name = message.structure.get_name()
		if message_name == "prepare-xwindow-id":
			# Assign the viewport
			imagesink = message.src
			imagesink.set_property("force-aspect-ratio", True)
			imagesink.set_xwindow_id(self.movie_window.window.xid)

if __name__ == "__main__":
    gtk.gdk.threads_init()
    ShowMe()
    gtk.main()
__________________
N9: Go white or go home
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#37
Hi daperl,

The source in the pipeline is wrong for the new camera(s). We should continue this in another thread or via e-mail.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#38
I just sorta had a thought. Does anyone what EXIF data the cameras seem to support?

I ask because I am wondering if portrait orientation EXIF data is out of the question.

The accelerometer determines if it is held in as portrait/horizontal (0 or 1) and writes this to the EXIF properties, and then an image viewer could recognize this and rotate it as needed/desired.

Additionally I think this feature, should it exist, should be enable/disable optional as I can see it annoying certain people.
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#39
I'm pretty sure I've read or seen in a video that the camera and built-in image viewer already does that.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#40
GPS data is also embedded in EXIF, the rest is pretty run-of-the-mill.
 
Reply

Tags
nokia v. upright ppl war, portrait mode


 
Forum Jump


All times are GMT. The time now is 17:14.