Mohammed Sameer [Sat, 29 Dec 2012 21:54:53 +0000 (23:54 +0200)]
Pass the correct url to video player
Mohammed Sameer [Sat, 29 Dec 2012 21:52:46 +0000 (23:52 +0200)]
Added a manualBack property and clicked signal to CameraToolBar
Setting this property to true will disable tool bar back handling and
will emmit clicked instead.
Mohammed Sameer [Sat, 29 Dec 2012 19:47:54 +0000 (21:47 +0200)]
Cleaned unneeded TODO items
Mohammed Sameer [Sat, 29 Dec 2012 19:10:55 +0000 (21:10 +0200)]
Added the ability to mark and unmark favorites from post capture page
Mohammed Sameer [Sat, 29 Dec 2012 01:46:35 +0000 (03:46 +0200)]
Implemented PostCaptureModel using QtSparql:
- Ability to remove rows
- Partial live update support
Mohammed Sameer [Fri, 28 Dec 2012 09:47:46 +0000 (11:47 +0200)]
Added gallery integration
Mohammed Sameer [Fri, 28 Dec 2012 09:25:23 +0000 (11:25 +0200)]
Ported ShareHelper to ShareUiInterface
Mohammed Sameer [Fri, 28 Dec 2012 03:10:59 +0000 (05:10 +0200)]
Use a running index to generate unique file names.
If we start capturing an image before the previous one gets a chance to be written
then we might accidentally return the same name twice.
Mohammed Sameer [Fri, 28 Dec 2012 02:58:30 +0000 (04:58 +0200)]
Implemented file deletion
Mohammed Sameer [Fri, 28 Dec 2012 02:31:48 +0000 (04:31 +0200)]
Invoke share UI when share button gets tapped
Mohammed Sameer [Fri, 28 Dec 2012 00:40:19 +0000 (02:40 +0200)]
More work on post capture
Rewrote sparql query
Video detection using rdf:type instead of mime type
Icons to toolbar
Mohammed Sameer [Fri, 28 Dec 2012 00:24:09 +0000 (02:24 +0200)]
Revert "Added mime type to TrackerStore"
This reverts commit
05387c1332b218bd76fb1095b2a960ff24634bc7.
Mohammed Sameer [Fri, 28 Dec 2012 00:09:10 +0000 (02:09 +0200)]
Use white back icon
Mohammed Sameer [Thu, 27 Dec 2012 22:28:51 +0000 (00:28 +0200)]
Added mime type to TrackerStore
Mohammed Sameer [Thu, 27 Dec 2012 22:05:30 +0000 (00:05 +0200)]
Use canonical paths for our storage and temporary paths.
We are inserting virtual objects into tracker using /home/developer while
tracker indexes them from /home/user and thus our virtual objects get ignored.
Mohammed Sameer [Thu, 27 Dec 2012 22:05:20 +0000 (00:05 +0200)]
style fix
Mohammed Sameer [Thu, 27 Dec 2012 18:21:39 +0000 (20:21 +0200)]
Standby should be visible when we have no current page
Mohammed Sameer [Thu, 27 Dec 2012 18:19:03 +0000 (20:19 +0200)]
Bind width to parent.width
Mohammed Sameer [Thu, 27 Dec 2012 17:47:39 +0000 (19:47 +0200)]
Added mute/unmute video recording sound
Mohammed Sameer [Thu, 27 Dec 2012 17:06:54 +0000 (19:06 +0200)]
Moved standby to its own component
Mohammed Sameer [Thu, 27 Dec 2012 04:25:40 +0000 (06:25 +0200)]
Disable viewfinder in settings pages
Mohammed Sameer [Thu, 27 Dec 2012 04:21:49 +0000 (06:21 +0200)]
Don't do an initial population of the stack when we are initiated.
We end up pushing items twice
Mohammed Sameer [Wed, 26 Dec 2012 02:54:07 +0000 (04:54 +0200)]
Added a floating toolbar to be used instead of the top left buttons.
We also use it to change settings affecting capture (ev, wb, cf, ...)
Also offers quick access to flash and video torch
Reworked the UI to use that toolbar and moved items around
Mohammed Sameer [Wed, 26 Dec 2012 02:53:41 +0000 (04:53 +0200)]
Cleanup
Mohammed Sameer [Tue, 25 Dec 2012 01:35:44 +0000 (03:35 +0200)]
Reworked ModeButton to use a Switch
Mohammed Sameer [Tue, 25 Dec 2012 00:37:29 +0000 (02:37 +0200)]
added error handling. this TODO has been completed
Mohammed Sameer [Mon, 24 Dec 2012 22:53:28 +0000 (00:53 +0200)]
Reworked and fixed pipeline error handling.
Each page can now implement cameraError() to do any cleanup when we get an error
Mohammed Sameer [Mon, 24 Dec 2012 22:52:09 +0000 (00:52 +0200)]
Don't show debugging information when we get an error.
Mohammed Sameer [Mon, 24 Dec 2012 20:43:46 +0000 (22:43 +0200)]
Remove commented APPLICATION_CLASS
Mohammed Sameer [Mon, 24 Dec 2012 20:29:53 +0000 (22:29 +0200)]
Stopping resource policy thread properly to avoid freezing while closing camera
Mohammed Sameer [Mon, 24 Dec 2012 15:32:13 +0000 (17:32 +0200)]
Reworked DoneHandler to avoid race conditions
If we start capturing the 2nd image before the first gets saved then we
accidentally try to rename the 1st image to the 2nd image.
We now only try to rename if we have a temporarily file name and a mode file name.
Since video mode only sets tempFileName then we should be fine as we don't really
allow recording a new video before the old one gets saved.
For images, we simply use the filename from the structure for the saved() signal
and fall back to the mode fileName if it's empty without overwriting the members
of QtCamModePrivate
Mohammed Sameer [Mon, 24 Dec 2012 15:10:06 +0000 (17:10 +0200)]
Add a MouseArea to PreviewImage and prevent interacting with controls below while its visible
Mohammed Sameer [Mon, 24 Dec 2012 15:09:24 +0000 (17:09 +0200)]
set standby widget z to 2
Mohammed Sameer [Mon, 24 Dec 2012 14:55:34 +0000 (16:55 +0200)]
Add a MouseArea to standby widget to prevent interactions with controls below
Mohammed Sameer [Mon, 24 Dec 2012 14:36:07 +0000 (16:36 +0200)]
Don't bind visibility to standby widget visibility anymore
Standby widget has a z value of 1 and will cover everything.
Mohammed Sameer [Mon, 24 Dec 2012 13:47:07 +0000 (15:47 +0200)]
Fixes for focus reticle
- Animate x, y and scale changes
- Starting the pipeline will set ROI according to the reticle position
- use anchors to center reticle when not in touch mode to avoid precision
inaccuracy with floats
Mohammed Sameer [Mon, 24 Dec 2012 02:43:03 +0000 (04:43 +0200)]
Pages which don't need the pipeline should show standby when application window is not active.
Mohammed Sameer [Mon, 24 Dec 2012 02:42:28 +0000 (04:42 +0200)]
set z value for standby to 1 so it shows above all other widgets
Mohammed Sameer [Mon, 24 Dec 2012 01:25:17 +0000 (03:25 +0200)]
Added/Updated TODO items
Mohammed Sameer [Mon, 24 Dec 2012 00:28:38 +0000 (02:28 +0200)]
Added CameraPage::policyLost()
This function to be called by PipelineManager when we lose resources and are about
to stop camera.
It's used by RecordingPage to dismiss itself.
Mohammed Sameer [Sun, 23 Dec 2012 23:30:34 +0000 (01:30 +0200)]
Reworked MountProtector using QTemporaryFile
Mohammed Sameer [Sun, 23 Dec 2012 22:44:19 +0000 (00:44 +0200)]
ambr doesn't need any UI handling. Remove it from TODOs
Mohammed Sameer [Sun, 23 Dec 2012 22:20:44 +0000 (00:20 +0200)]
CameraPage::updatePolicy() not used anywhere. Remove it.
Mohammed Sameer [Sun, 23 Dec 2012 22:17:27 +0000 (00:17 +0200)]
No need to anchor fill our parent. Page.qml sets width and height for us
Mohammed Sameer [Sun, 23 Dec 2012 21:13:48 +0000 (23:13 +0200)]
Monitor pulse audio state and reconnect when it dies and gets re-spawned again
Mohammed Sameer [Sun, 23 Dec 2012 15:26:51 +0000 (17:26 +0200)]
make fence sync objects configurable
Mohammed Sameer [Sun, 23 Dec 2012 15:07:06 +0000 (17:07 +0200)]
No more assertions after fixing the viewfinder stopping logic in QtCamDevice::stop()
Mohammed Sameer [Sun, 23 Dec 2012 13:52:50 +0000 (15:52 +0200)]
Disable viewfinder filters in video mode and enable them in image mode
Mohammed Sameer [Sun, 23 Dec 2012 13:51:36 +0000 (15:51 +0200)]
Reworked QtCamAnalysisBin
QtCamAnalysisBin is now a class that creates the bin internally and has methods
to obtain the GstBin and block and unblock data flow.
Mohammed Sameer [Sat, 22 Dec 2012 20:31:19 +0000 (22:31 +0200)]
We won't provide such focus details. Removing TODO mark.
Mohammed Sameer [Sat, 22 Dec 2012 17:16:53 +0000 (19:16 +0200)]
Reworked how video and wrapper sources are being created
Mohammed Sameer [Sat, 22 Dec 2012 17:01:21 +0000 (19:01 +0200)]
Remove QtCamDevicePrivate::resetCapabilities(). We don't use it
Mohammed Sameer [Sat, 22 Dec 2012 16:01:41 +0000 (18:01 +0200)]
properties file for N9
Mohammed Sameer [Sat, 22 Dec 2012 15:59:49 +0000 (17:59 +0200)]
Added QtCamPropertySetter
This class will catch added elements to a bin and set properties specified
in a configuration file.
Mohammed Sameer [Sat, 22 Dec 2012 00:22:51 +0000 (02:22 +0200)]
Add viewfinder-filters for N9
Mohammed Sameer [Sat, 22 Dec 2012 00:22:09 +0000 (02:22 +0200)]
Set viewfinder-filters
Mohammed Sameer [Fri, 21 Dec 2012 23:42:35 +0000 (01:42 +0200)]
Infrastructure for filters.
This consists of:
A GStreamer element to duplicate buffers
A wrapper that creates a bin utilizing the above mentioned element.
On some devices like N9, memory is frame buffer memory and access to such
memory is costly since it's not cached by the CPU. What we do is we copy it
to "normal memory" and pass that to any filters that want to inspect the buffer.
Mohammed Sameer [Fri, 21 Dec 2012 23:52:03 +0000 (01:52 +0200)]
fader property not used anywhere. Remove it.
Mohammed Sameer [Thu, 20 Dec 2012 23:23:39 +0000 (01:23 +0200)]
set window background to empty string and backgroundColor to transparent so viewfinder will show up
Mohammed Sameer [Thu, 20 Dec 2012 23:18:16 +0000 (01:18 +0200)]
Set handleBackground and handleBackgroundPressed to empty strings
Mohammed Sameer [Thu, 20 Dec 2012 23:17:56 +0000 (01:17 +0200)]
Don't set Indicator icon source if wbIndicator is not visible to avoid a warning
Mohammed Sameer [Thu, 20 Dec 2012 23:17:02 +0000 (01:17 +0200)]
Cleaned up some commented out defines
Mohammed Sameer [Thu, 20 Dec 2012 21:25:51 +0000 (23:25 +0200)]
Added QtCamFlash::ready to indicate readiness of flash
Mohammed Sameer [Thu, 20 Dec 2012 18:50:30 +0000 (20:50 +0200)]
No need to forward declare QtCamZoomPrivate
Mohammed Sameer [Thu, 20 Dec 2012 18:31:43 +0000 (20:31 +0200)]
Make that transition a catch all for all transitions to off.
If camera gets minimized while not idle then we reach an unknown state and camera
will never stop afterwards.
Mohammed Sameer [Thu, 20 Dec 2012 18:30:47 +0000 (20:30 +0200)]
release resources only if we manage to stop camera.
In theory, we shouldn't need that as camera will stop when we reach that state but just in case
Mohammed Sameer [Thu, 20 Dec 2012 18:19:36 +0000 (20:19 +0200)]
Don't set/show preview if standby widget is visible
Mohammed Sameer [Thu, 20 Dec 2012 18:18:19 +0000 (20:18 +0200)]
Don't show capture button if standby widget is visible
Mohammed Sameer [Thu, 20 Dec 2012 17:59:55 +0000 (19:59 +0200)]
Moved FocusReticle to Camera instead of CameraPage.
This makes it simpler to manage the state between VideoPage and RecordingPage
Mohammed Sameer [Wed, 19 Dec 2012 22:08:42 +0000 (00:08 +0200)]
wrong assignment lead to the ability to drag the reticle outside the page
Mohammed Sameer [Wed, 19 Dec 2012 21:30:37 +0000 (23:30 +0200)]
Don't store the whole real number. Use toFixed() to prevent precision craziness
Mohammed Sameer [Wed, 19 Dec 2012 21:27:53 +0000 (23:27 +0200)]
Use qFuzzyCompare() for evComp settings
Mohammed Sameer [Wed, 19 Dec 2012 20:56:23 +0000 (22:56 +0200)]
Added touch focus
Mohammed Sameer [Wed, 19 Dec 2012 19:45:39 +0000 (21:45 +0200)]
Added QtCamAutoFocus::setRegionOfInterest()
Mohammed Sameer [Sun, 16 Dec 2012 19:52:08 +0000 (21:52 +0200)]
Don't show rounded corners
Mohammed Sameer [Sun, 16 Dec 2012 17:00:32 +0000 (19:00 +0200)]
First implementation of touch focus. Backend bits are still missing
Mohammed Sameer [Sun, 16 Dec 2012 19:00:42 +0000 (21:00 +0200)]
Fixed painting to take into account offsets introduced by QPainter
Mohammed Sameer [Sat, 15 Dec 2012 19:06:06 +0000 (21:06 +0200)]
Added renderArea property to Camera
Mohammed Sameer [Sat, 15 Dec 2012 17:42:18 +0000 (19:42 +0200)]
Delete renderer when we are destroyed
Mohammed Sameer [Sat, 15 Dec 2012 02:41:32 +0000 (04:41 +0200)]
Use a message listener to detect auto focus acquisition instead of constructing QtCamAutoFocus
Mohammed Sameer [Sat, 15 Dec 2012 01:15:10 +0000 (03:15 +0200)]
Added notification when focus gets acquired
Mohammed Sameer [Fri, 14 Dec 2012 22:36:15 +0000 (00:36 +0200)]
Don't try to unregister the status handlers unless we have a device and listener.
This avoids a crash.
Mohammed Sameer [Fri, 14 Dec 2012 21:59:29 +0000 (23:59 +0200)]
Decrease the size of the corners a bit
Mohammed Sameer [Fri, 14 Dec 2012 21:57:06 +0000 (23:57 +0200)]
Hide focus reticle if we cannot focus while a particular scene mode is active
Mohammed Sameer [Fri, 14 Dec 2012 21:10:28 +0000 (23:10 +0200)]
blink reticle during focusing and show colors to indicate status of focus
Mohammed Sameer [Fri, 14 Dec 2012 21:09:50 +0000 (23:09 +0200)]
Change AutoFocus status when start or stop autoFocus gets called. Backend doesn't do it
Mohammed Sameer [Fri, 14 Dec 2012 20:36:13 +0000 (22:36 +0200)]
only do auto focus if caf has not succedded
Mohammed Sameer [Fri, 14 Dec 2012 20:33:09 +0000 (22:33 +0200)]
Added auto focus starting and stopping.
A long press should start auto focus, releasing finger outside capture button will
stop it. Also stop it when we get the preview image.
Mohammed Sameer [Fri, 14 Dec 2012 20:32:37 +0000 (22:32 +0200)]
Added a custom Button (CaptureButton) to expose more properties and signals
Mohammed Sameer [Fri, 14 Dec 2012 20:31:27 +0000 (22:31 +0200)]
Handling failure to acquire recording resources now works
Mohammed Sameer [Fri, 14 Dec 2012 17:58:24 +0000 (19:58 +0200)]
Moved all image capture logic to its own function
Mohammed Sameer [Fri, 14 Dec 2012 17:46:25 +0000 (19:46 +0200)]
Don't turn reticle into red if CAF fails.
Mohammed Sameer [Fri, 14 Dec 2012 17:10:52 +0000 (19:10 +0200)]
Added a focus reticle. It indicates CAF status only for now.
Mohammed Sameer [Thu, 13 Dec 2012 23:08:59 +0000 (01:08 +0200)]
Cleaned up debugging output
Mohammed Sameer [Thu, 13 Dec 2012 23:06:38 +0000 (01:06 +0200)]
Don't release resources on pipeline error.
Mohammed Sameer [Thu, 13 Dec 2012 23:05:58 +0000 (01:05 +0200)]
Added a label below the camera icon in standby page to indicate that resources were lost and killed the banner
Mohammed Sameer [Thu, 13 Dec 2012 22:45:35 +0000 (00:45 +0200)]
Don't ignore errors while stopping the pipeline.
This reverts commit
4b5634ce74ce85fbf0a5dbbcf85bd89bc3b1b42e manually.
Mohammed Sameer [Thu, 13 Dec 2012 02:01:10 +0000 (04:01 +0200)]
Reworking resource policy and pipeline handling to use states and transitions
Mohammed Sameer [Wed, 12 Dec 2012 23:59:34 +0000 (01:59 +0200)]
Don't show an error if we lose resources and window is not active
Mohammed Sameer [Wed, 12 Dec 2012 23:57:21 +0000 (01:57 +0200)]
stop camera and show error if resources get hijacked not released