harmattan/cameraplus
11 years agoAdded sync parameter to QtCamVideo::stopRecording()
Mohammed Sameer [Sat, 5 Jan 2013 18:09:05 +0000 (20:09 +0200)]
Added sync parameter to QtCamVideo::stopRecording()

When sync is set to true, stopRecording() will wait for video-done message
to be posted to the GstBus before returning thus ensuring that recording has
been completed.

11 years agoDeclarative Camera should deactivete active mode when destroyed before stopping the...
Mohammed Sameer [Sat, 5 Jan 2013 18:06:55 +0000 (20:06 +0200)]
Declarative Camera should deactivete active mode when destroyed before stopping the device.
This will prevent losing the video being recorded when closing camera while recording

11 years agoKill CameraPage::needsPipeline property
Mohammed Sameer [Sat, 5 Jan 2013 15:40:36 +0000 (17:40 +0200)]
Kill CameraPage::needsPipeline property

If a page doesn't need the pipeline then it should set the policyMode to CameraResources.None

11 years agoIf a page doesn't need the pipeline then switch to off only if the camera is idle
Mohammed Sameer [Sat, 5 Jan 2013 15:33:26 +0000 (17:33 +0200)]
If a page doesn't need the pipeline then switch to off only if the camera is idle

11 years agoPostCapture page doesn't need any policy resources so just release them
Mohammed Sameer [Sat, 5 Jan 2013 15:27:42 +0000 (17:27 +0200)]
PostCapture page doesn't need any policy resources so just release them

11 years agoCall page.play() instead of video.play()
Mohammed Sameer [Fri, 4 Jan 2013 16:52:34 +0000 (18:52 +0200)]
Call page.play() instead of video.play()

page.play() should do some error checking.

11 years agoAlways show the toolbar if there is an error loading the preview
Mohammed Sameer [Fri, 4 Jan 2013 15:18:06 +0000 (17:18 +0200)]
Always show the toolbar if there is an error loading the preview

11 years agoDon't show QuillImage if there is an error
Mohammed Sameer [Fri, 4 Jan 2013 15:15:55 +0000 (17:15 +0200)]
Don't show QuillImage if there is an error
This makes the error label visible

11 years agoCheck for mass storage mode before disk space before we capture an image
Mohammed Sameer [Fri, 4 Jan 2013 14:48:17 +0000 (16:48 +0200)]
Check for mass storage mode before disk space before we capture an image

11 years agoAutohide toolbar in PostCapturePage
Mohammed Sameer [Thu, 3 Jan 2013 23:12:42 +0000 (01:12 +0200)]
Autohide toolbar in PostCapturePage

11 years agoAdded TODOs
Mohammed Sameer [Thu, 3 Jan 2013 20:06:33 +0000 (22:06 +0200)]
Added TODOs

11 years agoQML/JS debugger needs QtScript
Mohammed Sameer [Wed, 2 Jan 2013 04:05:12 +0000 (06:05 +0200)]
QML/JS debugger needs QtScript

11 years agoRenamed imports to declarative and libimports to libdeclarativeqtcamera
Mohammed Sameer [Wed, 2 Jan 2013 04:04:25 +0000 (06:04 +0200)]
Renamed imports to declarative and libimports to libdeclarativeqtcamera

11 years agoAutohide video player toolbar after 3 seconds of inactivity
Mohammed Sameer [Wed, 2 Jan 2013 02:52:30 +0000 (04:52 +0200)]
Autohide video player toolbar after 3 seconds of inactivity

11 years agoCleaned up commented code
Mohammed Sameer [Wed, 2 Jan 2013 02:47:27 +0000 (04:47 +0200)]
Cleaned up commented code

11 years agoAdded a hack to set the ZoomSlider state to "visible" when zoom keys get pressed.
Mohammed Sameer [Wed, 2 Jan 2013 01:07:31 +0000 (03:07 +0200)]
Added a hack to set the ZoomSlider state to "visible" when zoom keys get pressed.

11 years agoDelete QSparqlConnection when we are not active
Mohammed Sameer [Wed, 2 Jan 2013 00:44:58 +0000 (02:44 +0200)]
Delete QSparqlConnection when we are not active

11 years agoDelete QmBattery when we are not active
Mohammed Sameer [Wed, 2 Jan 2013 00:44:08 +0000 (02:44 +0200)]
Delete QmBattery when we are not active

11 years agoVolume up and down keys should now work and change zoom
Mohammed Sameer [Wed, 2 Jan 2013 00:39:49 +0000 (02:39 +0200)]
Volume up and down keys should now work and change zoom

11 years agoRemoved unneeded mutex.
Mohammed Sameer [Wed, 2 Jan 2013 00:19:42 +0000 (02:19 +0200)]
Removed unneeded mutex.

11 years agoAdding qmljsdebug to config will enable QML/JS debugger
Mohammed Sameer [Tue, 1 Jan 2013 21:13:35 +0000 (23:13 +0200)]
Adding qmljsdebug to config will enable QML/JS debugger

11 years agoAdded a TODO file and moved the big features there
Mohammed Sameer [Tue, 1 Jan 2013 21:10:57 +0000 (23:10 +0200)]
Added a TODO file and moved the big features there

11 years agoAdded ISO selector to CameraToolBar
Mohammed Sameer [Tue, 1 Jan 2013 17:08:33 +0000 (19:08 +0200)]
Added ISO selector to CameraToolBar

11 years agoImplemented own DeviceInfo
Mohammed Sameer [Tue, 1 Jan 2013 16:04:28 +0000 (18:04 +0200)]
Implemented own DeviceInfo

11 years agoAdded grid lines
Mohammed Sameer [Tue, 1 Jan 2013 15:23:33 +0000 (17:23 +0200)]
Added grid lines

11 years agoMake ScaleButtonType optional.
Mohammed Sameer [Tue, 1 Jan 2013 13:22:39 +0000 (15:22 +0200)]
Make ScaleButtonType optional.

We can still zoom without it

11 years agoRemove ScaleButtonType acquisition from policy. Will introduce it if I ever get hw...
Mohammed Sameer [Tue, 1 Jan 2013 13:20:48 +0000 (15:20 +0200)]
Remove ScaleButtonType acquisition from policy. Will introduce it if I ever get hw with such key

11 years agoset the width of the delegate to the width of the parent. image width gets 10 pixels...
Mohammed Sameer [Tue, 1 Jan 2013 01:08:53 +0000 (03:08 +0200)]
set the width of the delegate to the width of the parent. image width gets 10 pixels less

11 years agoAdded pinch zoom TODO
Mohammed Sameer [Tue, 1 Jan 2013 00:36:26 +0000 (02:36 +0200)]
Added pinch zoom TODO

11 years agoFixed image preview
Mohammed Sameer [Mon, 31 Dec 2012 23:22:54 +0000 (01:22 +0200)]
Fixed image preview

We were showing the preview image only during the opacity animation.
The intention was to show it during pause animation too.

11 years agoTODO cleanup
Mohammed Sameer [Mon, 31 Dec 2012 23:22:41 +0000 (01:22 +0200)]
TODO cleanup

11 years agoThis file is not used anywhere
Mohammed Sameer [Mon, 31 Dec 2012 22:46:57 +0000 (00:46 +0200)]
This file is not used anywhere

11 years agoUse Qtm namespace for QtMobility.systeminfo to resolve the BatteryInfo conflict
Mohammed Sameer [Mon, 31 Dec 2012 20:44:56 +0000 (22:44 +0200)]
Use Qtm namespace for QtMobility.systeminfo to resolve the BatteryInfo conflict

11 years agoReplaced QtMobility BatteryInfo
Mohammed Sameer [Mon, 31 Dec 2012 20:12:20 +0000 (22:12 +0200)]
Replaced QtMobility BatteryInfo

11 years agoUse Qt resource system for QML and JS files
Mohammed Sameer [Mon, 31 Dec 2012 02:40:04 +0000 (04:40 +0200)]
Use Qt resource system for QML and JS files

11 years agoListItem not needed
Mohammed Sameer [Mon, 31 Dec 2012 02:39:31 +0000 (04:39 +0200)]
ListItem not needed

11 years agoReworked mode animation.
Mohammed Sameer [Mon, 31 Dec 2012 01:59:53 +0000 (03:59 +0200)]
Reworked mode animation.

Use a series of property change notifications and bindings to derive the animation/

The PauseAnimation {} is needed because the dimmer doesn't fully dim without it :(

11 years agoPost capture timeout removed.
Mohammed Sameer [Sat, 29 Dec 2012 23:45:05 +0000 (01:45 +0200)]
Post capture timeout removed.

Unlikely to be implemented.
Removed its commented code and properties from settings.

11 years agoReworked VideoPlayerPage to use CameraToolBar
Mohammed Sameer [Sat, 29 Dec 2012 22:55:32 +0000 (00:55 +0200)]
Reworked VideoPlayerPage to use CameraToolBar

11 years agoUse CameraToolBar instead of the ToolBar from components.
Mohammed Sameer [Sat, 29 Dec 2012 21:55:08 +0000 (23:55 +0200)]
Use CameraToolBar instead of the ToolBar from components.
Top bar also replaced with a rectangle

11 years agoPass the correct url to video player
Mohammed Sameer [Sat, 29 Dec 2012 21:54:53 +0000 (23:54 +0200)]
Pass the correct url to video player

11 years agoAdded a manualBack property and clicked signal to CameraToolBar
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.

11 years agoCleaned unneeded TODO items
Mohammed Sameer [Sat, 29 Dec 2012 19:47:54 +0000 (21:47 +0200)]
Cleaned unneeded TODO items

11 years agoAdded the ability to mark and unmark favorites from post capture page
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

11 years agoImplemented PostCaptureModel using QtSparql:
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

11 years agoAdded gallery integration
Mohammed Sameer [Fri, 28 Dec 2012 09:47:46 +0000 (11:47 +0200)]
Added gallery integration

11 years agoPorted ShareHelper to ShareUiInterface
Mohammed Sameer [Fri, 28 Dec 2012 09:25:23 +0000 (11:25 +0200)]
Ported ShareHelper to ShareUiInterface

11 years agoUse a running index to generate unique file names.
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.

11 years agoImplemented file deletion
Mohammed Sameer [Fri, 28 Dec 2012 02:58:30 +0000 (04:58 +0200)]
Implemented file deletion

11 years agoInvoke share UI when share button gets tapped
Mohammed Sameer [Fri, 28 Dec 2012 02:31:48 +0000 (04:31 +0200)]
Invoke share UI when share button gets tapped

11 years agoMore work on post capture
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

11 years agoRevert "Added mime type to TrackerStore"
Mohammed Sameer [Fri, 28 Dec 2012 00:24:09 +0000 (02:24 +0200)]
Revert "Added mime type to TrackerStore"

This reverts commit 05387c1332b218bd76fb1095b2a960ff24634bc7.

11 years agoUse white back icon
Mohammed Sameer [Fri, 28 Dec 2012 00:09:10 +0000 (02:09 +0200)]
Use white back icon

11 years agoAdded mime type to TrackerStore
Mohammed Sameer [Thu, 27 Dec 2012 22:28:51 +0000 (00:28 +0200)]
Added mime type to TrackerStore

11 years agoUse canonical paths for our storage and temporary paths.
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.

11 years agostyle fix
Mohammed Sameer [Thu, 27 Dec 2012 22:05:20 +0000 (00:05 +0200)]
style fix

11 years agoStandby should be visible when we have no current page
Mohammed Sameer [Thu, 27 Dec 2012 18:21:39 +0000 (20:21 +0200)]
Standby should be visible when we have no current page

11 years agoBind width to parent.width
Mohammed Sameer [Thu, 27 Dec 2012 18:19:03 +0000 (20:19 +0200)]
Bind width to parent.width

11 years agoAdded mute/unmute video recording sound
Mohammed Sameer [Thu, 27 Dec 2012 17:47:39 +0000 (19:47 +0200)]
Added mute/unmute video recording sound

11 years agoMoved standby to its own component
Mohammed Sameer [Thu, 27 Dec 2012 17:06:54 +0000 (19:06 +0200)]
Moved standby to its own component

11 years agoDisable viewfinder in settings pages
Mohammed Sameer [Thu, 27 Dec 2012 04:25:40 +0000 (06:25 +0200)]
Disable viewfinder in settings pages

11 years agoDon't do an initial population of the stack when we are initiated.
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

11 years agoAdded a floating toolbar to be used instead of the top left buttons.
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

11 years agoCleanup
Mohammed Sameer [Wed, 26 Dec 2012 02:53:41 +0000 (04:53 +0200)]
Cleanup

11 years agoReworked ModeButton to use a Switch
Mohammed Sameer [Tue, 25 Dec 2012 01:35:44 +0000 (03:35 +0200)]
Reworked ModeButton to use a Switch

11 years agoadded error handling. this TODO has been completed
Mohammed Sameer [Tue, 25 Dec 2012 00:37:29 +0000 (02:37 +0200)]
added error handling. this TODO has been completed

11 years agoReworked and fixed pipeline error handling.
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

11 years agoDon't show debugging information 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.

11 years agoRemove commented APPLICATION_CLASS
Mohammed Sameer [Mon, 24 Dec 2012 20:43:46 +0000 (22:43 +0200)]
Remove commented APPLICATION_CLASS

11 years agoStopping resource policy thread properly to avoid freezing while closing camera
Mohammed Sameer [Mon, 24 Dec 2012 20:29:53 +0000 (22:29 +0200)]
Stopping resource policy thread properly to avoid freezing while closing camera

11 years agoReworked DoneHandler to avoid race conditions
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

11 years agoAdd a MouseArea to PreviewImage and prevent interacting with controls below while...
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

11 years agoset standby widget z to 2
Mohammed Sameer [Mon, 24 Dec 2012 15:09:24 +0000 (17:09 +0200)]
set standby widget z to 2

11 years agoAdd a MouseArea to standby widget to prevent interactions with controls below
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

11 years agoDon't bind visibility to standby widget visibility anymore
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.

11 years agoFixes for focus reticle
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

11 years agoPages which don't need the pipeline should show standby when application window is...
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.

11 years agoset z value for standby to 1 so it shows above all other widgets
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

11 years agoAdded/Updated TODO items
Mohammed Sameer [Mon, 24 Dec 2012 01:25:17 +0000 (03:25 +0200)]
Added/Updated TODO items

11 years agoAdded CameraPage::policyLost()
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.

11 years agoReworked MountProtector using QTemporaryFile
Mohammed Sameer [Sun, 23 Dec 2012 23:30:34 +0000 (01:30 +0200)]
Reworked MountProtector using QTemporaryFile

11 years agoambr doesn't need any UI handling. Remove it from TODOs
Mohammed Sameer [Sun, 23 Dec 2012 22:44:19 +0000 (00:44 +0200)]
ambr doesn't need any UI handling. Remove it from TODOs

11 years agoCameraPage::updatePolicy() not used anywhere. Remove it.
Mohammed Sameer [Sun, 23 Dec 2012 22:20:44 +0000 (00:20 +0200)]
CameraPage::updatePolicy() not used anywhere. Remove it.

11 years agoNo need to anchor fill our parent. Page.qml sets width and height for us
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

11 years agoMonitor pulse audio state and reconnect when it dies and gets re-spawned again
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

11 years agomake fence sync objects configurable
Mohammed Sameer [Sun, 23 Dec 2012 15:26:51 +0000 (17:26 +0200)]
make fence sync objects configurable

11 years agoNo more assertions after fixing the viewfinder stopping logic in QtCamDevice::stop()
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()

11 years agoDisable viewfinder filters in video mode and enable them in image mode
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

11 years agoReworked QtCamAnalysisBin
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.

11 years agoWe won't provide such focus details. Removing TODO mark.
Mohammed Sameer [Sat, 22 Dec 2012 20:31:19 +0000 (22:31 +0200)]
We won't provide such focus details. Removing TODO mark.

11 years agoReworked how video and wrapper sources are being created
Mohammed Sameer [Sat, 22 Dec 2012 17:16:53 +0000 (19:16 +0200)]
Reworked how video and wrapper sources are being created

11 years agoRemove QtCamDevicePrivate::resetCapabilities(). We don't use it
Mohammed Sameer [Sat, 22 Dec 2012 17:01:21 +0000 (19:01 +0200)]
Remove QtCamDevicePrivate::resetCapabilities(). We don't use it

11 years agoproperties file for N9
Mohammed Sameer [Sat, 22 Dec 2012 16:01:41 +0000 (18:01 +0200)]
properties file for N9

11 years agoAdded QtCamPropertySetter
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.

11 years agoAdd viewfinder-filters for N9
Mohammed Sameer [Sat, 22 Dec 2012 00:22:51 +0000 (02:22 +0200)]
Add viewfinder-filters for N9

11 years agoSet viewfinder-filters
Mohammed Sameer [Sat, 22 Dec 2012 00:22:09 +0000 (02:22 +0200)]
Set viewfinder-filters

11 years agoInfrastructure for 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.

11 years agofader property not used anywhere. Remove it.
Mohammed Sameer [Fri, 21 Dec 2012 23:52:03 +0000 (01:52 +0200)]
fader property not used anywhere. Remove it.

11 years agoset window background to empty string and backgroundColor to transparent so viewfinde...
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

11 years agoSet handleBackground and handleBackgroundPressed to empty strings
Mohammed Sameer [Thu, 20 Dec 2012 23:18:16 +0000 (01:18 +0200)]
Set handleBackground and handleBackgroundPressed to empty strings