harmattan/cameraplus
5 years agosilence dbus-send output master
Mohammed Sameer [Tue, 17 Sep 2013 00:24:59 +0000 (03:24 +0300)]
silence dbus-send output

5 years agoRevert "Hide dbus-send output and don't use --print-reply"
Mohammed Sameer [Tue, 17 Sep 2013 00:24:07 +0000 (03:24 +0300)]
Revert "Hide dbus-send output and don't use --print-reply"

This reverts commit 9863309287ea77b0f2ca61acdf3971dcd5d917a2.

5 years agoRemove the useless warnings about failing to query pipeline position and duration
Mohammed Sameer [Tue, 17 Sep 2013 00:20:49 +0000 (03:20 +0300)]
Remove the useless warnings about failing to query pipeline position and duration

5 years agoremoved a blank line
Mohammed Sameer [Tue, 17 Sep 2013 00:19:58 +0000 (03:19 +0300)]
removed a blank line

5 years agoAdded the ability to control playback volume from post capture
Mohammed Sameer [Tue, 17 Sep 2013 00:19:06 +0000 (03:19 +0300)]
Added the ability to control playback volume from post capture

5 years agoSet media.name to '*'.
Mohammed Sameer [Mon, 16 Sep 2013 22:48:27 +0000 (01:48 +0300)]
Set media.name to '*'.

This fixes videos in post capture not having any sound

5 years agoHide dbus-send output and don't use --print-reply
Mohammed Sameer [Mon, 16 Sep 2013 21:54:08 +0000 (00:54 +0300)]
Hide dbus-send output and don't use --print-reply

5 years agoAdded a hidden setting (fileNaming/useUtc) to disable UTC usage for file names
Mohammed Sameer [Mon, 16 Sep 2013 21:52:14 +0000 (00:52 +0300)]
Added a hidden setting (fileNaming/useUtc) to disable UTC usage for file names

5 years agoAdded an icon for tiny video resolution
Mohammed Sameer [Mon, 16 Sep 2013 20:30:53 +0000 (23:30 +0300)]
Added an icon for tiny video resolution

5 years agoSet QVGA night FPS to 30
Mohammed Sameer [Mon, 16 Sep 2013 20:07:12 +0000 (23:07 +0300)]
Set QVGA night FPS to 30

5 years agoFixes for changing video resolution between 16:9 and 4:3
Mohammed Sameer [Mon, 16 Sep 2013 20:05:12 +0000 (23:05 +0300)]
Fixes for changing video resolution between 16:9 and 4:3

We simply set the video aspect ratio before we set the resolution and
We don't try to change the resolution when aspect ratio gets changed

5 years agoAdded a QVGA resolution to video resolutions
Mohammed Sameer [Mon, 16 Sep 2013 19:56:17 +0000 (22:56 +0300)]
Added a QVGA resolution to video resolutions

5 years agoChangelog for 0.0.8
Mohammed Sameer [Sun, 15 Sep 2013 20:22:14 +0000 (23:22 +0300)]
Changelog for 0.0.8

5 years agoAdd opacity animation to settings and post capture views
Mohammed Sameer [Sun, 15 Sep 2013 20:21:36 +0000 (23:21 +0300)]
Add opacity animation to settings and post capture views

5 years agoAdded support for strftime() format to creator name text
Mohammed Sameer [Sun, 15 Sep 2013 20:10:41 +0000 (23:10 +0300)]
Added support for strftime() format to creator name text

5 years agoActivated the option to disable capture previews
Mohammed Sameer [Sun, 15 Sep 2013 18:43:23 +0000 (21:43 +0300)]
Activated the option to disable capture previews

5 years agoAdded enablePreview property to declarative Mode
Mohammed Sameer [Sun, 15 Sep 2013 18:42:50 +0000 (21:42 +0300)]
Added enablePreview property to declarative Mode

5 years agoAdded enablePreview() and disablePreview() to QtCamMode
Mohammed Sameer [Sun, 15 Sep 2013 18:41:44 +0000 (21:41 +0300)]
Added enablePreview() and disablePreview() to QtCamMode

Using these calls we can enable and disable posting of capture preview images

5 years agoNo need to set slider orientation. Default is already horizontal
Mohammed Sameer [Sun, 15 Sep 2013 17:36:31 +0000 (20:36 +0300)]
No need to set slider orientation. Default is already horizontal

5 years agoReworked CameraToolIcon to not use meego bits
Mohammed Sameer [Sun, 15 Sep 2013 16:24:09 +0000 (19:24 +0300)]
Reworked CameraToolIcon to not use meego bits

5 years agoKill CameraButtonRow and use the QtQuick Row component
Mohammed Sameer [Sun, 15 Sep 2013 15:55:01 +0000 (18:55 +0300)]
Kill CameraButtonRow and use the QtQuick Row component

5 years agoReworked CameraButton to get rid of meego bits
Mohammed Sameer [Sun, 15 Sep 2013 15:52:13 +0000 (18:52 +0300)]
Reworked CameraButton to get rid of meego bits

5 years agoPlatform independent components should have QtQuick 2.0
Mohammed Sameer [Sun, 15 Sep 2013 15:49:31 +0000 (18:49 +0300)]
Platform independent components should have QtQuick 2.0

5 years agominor tweaks
Mohammed Sameer [Sun, 15 Sep 2013 14:17:27 +0000 (17:17 +0300)]
minor tweaks

5 years agoBind checked property to the corresponding setting value for CameraTextSwitch
Mohammed Sameer [Sun, 15 Sep 2013 13:49:40 +0000 (16:49 +0300)]
Bind checked property to the corresponding setting value for CameraTextSwitch

Seems we don't get the binding loop errors anymore.

5 years agoNo need for the when condition for binding camera zoom value to slider value
Mohammed Sameer [Sun, 15 Sep 2013 13:33:26 +0000 (16:33 +0300)]
No need for the when condition for binding camera zoom value to slider value

5 years agoSource /tmp/session_bus_address.user before invoking dbus-send in postinst script
Mohammed Sameer [Sun, 15 Sep 2013 13:13:56 +0000 (16:13 +0300)]
Source /tmp/session_bus_address.user before invoking dbus-send in postinst script

5 years agoReworked iso settings to use icons instead of buttons and text
Mohammed Sameer [Sun, 15 Sep 2013 11:59:32 +0000 (14:59 +0300)]
Reworked iso settings to use icons instead of buttons and text

5 years agounload post capture and settings views when we are in camera view
Mohammed Sameer [Sun, 15 Sep 2013 02:55:49 +0000 (05:55 +0300)]
unload post capture and settings views when we are in camera view

5 years agoGet rid of meego InfoBanner usage and move to a home grown component
Mohammed Sameer [Sun, 15 Sep 2013 02:31:48 +0000 (05:31 +0300)]
Get rid of meego InfoBanner usage and move to a home grown component

5 years agoUse loaders for post capture and settings views
Mohammed Sameer [Sun, 15 Sep 2013 02:30:26 +0000 (05:30 +0300)]
Use loaders for post capture and settings views

5 years agoConvert harmattan CameraLabel to use Text instead of Label
Mohammed Sameer [Sun, 15 Sep 2013 01:27:24 +0000 (04:27 +0300)]
Convert harmattan CameraLabel to use Text instead of Label

5 years agoGet rid of harmattan PageStack and Page
Mohammed Sameer [Sun, 15 Sep 2013 01:12:19 +0000 (04:12 +0300)]
Get rid of harmattan PageStack and Page

They both drag in ToolBar.qml and its style which are not used anywhere.

5 years agoReworked preview animation
Mohammed Sameer [Sun, 15 Sep 2013 00:58:11 +0000 (03:58 +0300)]
Reworked preview animation

5 years agoUse Component as the type for initialPage in harmattan CameraWindow
Mohammed Sameer [Sun, 15 Sep 2013 00:36:43 +0000 (03:36 +0300)]
Use Component as the type for initialPage in harmattan CameraWindow

5 years agoDefault value for the property is null. No need to assign it explicitly
Mohammed Sameer [Sun, 15 Sep 2013 00:11:35 +0000 (03:11 +0300)]
Default value for the property is null. No need to assign it explicitly

5 years agoGive aspect ratios Repeater an id (aspectRatios)
Mohammed Sameer [Sun, 15 Sep 2013 00:11:05 +0000 (03:11 +0300)]
Give aspect ratios Repeater an id (aspectRatios)

5 years agoChangelog for 0.0.7
Mohammed Sameer [Sat, 14 Sep 2013 21:49:12 +0000 (00:49 +0300)]
Changelog for 0.0.7

5 years agoReworked postcapture model
Mohammed Sameer [Sat, 14 Sep 2013 21:39:49 +0000 (00:39 +0300)]
Reworked postcapture model

Ditch the implementation using QDir and use opendir()/readdir()
This decreases the time needed to create the model for a directory
containing 1336 files to 33ms instead of 200-300ms

Getting the entries of the directory itself using QDir was costing us ~120ms

5 years agoAdded mime types for png and avi to PostCaptureModel
Mohammed Sameer [Sat, 14 Sep 2013 21:00:40 +0000 (00:00 +0300)]
Added mime types for png and avi to PostCaptureModel

5 years agoAdded an option to disable preview for images and videos (inactive)
Mohammed Sameer [Sat, 14 Sep 2013 20:56:06 +0000 (23:56 +0300)]
Added an option to disable preview for images and videos (inactive)

5 years agoAdded a postinst maintainer script to show a note about rebooting
Mohammed Sameer [Thu, 12 Sep 2013 20:31:14 +0000 (23:31 +0300)]
Added a postinst maintainer script to show a note about rebooting

5 years agoAdded point of exposure to TODO
Mohammed Sameer [Thu, 12 Sep 2013 01:00:28 +0000 (04:00 +0300)]
Added point of exposure to TODO

5 years agoMove qt_cam_copy_register to QtCamera
Mohammed Sameer [Thu, 12 Sep 2013 00:37:38 +0000 (03:37 +0300)]
Move qt_cam_copy_register to QtCamera

This makes sure we register it once per application instead of once per device.

5 years agoRevert "Move qt_cam_copy_register to QtCamera"
Mohammed Sameer [Thu, 12 Sep 2013 00:36:33 +0000 (03:36 +0300)]
Revert "Move qt_cam_copy_register to QtCamera"

This reverts commit 9ad5a2d40dabd90687e8851fe336a32155be5933.

5 years agoFix some QML TypError resulting from overlay.cam being null
Mohammed Sameer [Wed, 11 Sep 2013 23:56:36 +0000 (02:56 +0300)]
Fix some QML TypError resulting from overlay.cam being null

5 years agoMake dimmer a property instead of aliasing it
Mohammed Sameer [Wed, 11 Sep 2013 23:52:30 +0000 (02:52 +0300)]
Make dimmer a property instead of aliasing it

5 years agoMove qt_cam_copy_register to QtCamera
Mohammed Sameer [Wed, 11 Sep 2013 23:35:24 +0000 (02:35 +0300)]
Move qt_cam_copy_register to QtCamera

This ensures we do it only once per application instead of once per device.

5 years agoDon't anchor the tool bar menu button.
Mohammed Sameer [Wed, 11 Sep 2013 22:57:27 +0000 (01:57 +0300)]
Don't anchor the tool bar menu button.

tool bar height is the button height so no point in anchoring. It only gives
a QML warning

5 years agoDon't set proximity close property upon component completion.
Mohammed Sameer [Wed, 11 Sep 2013 22:54:28 +0000 (01:54 +0300)]
Don't set proximity close property upon component completion.

Not really needed, it triggers a QML error and it will be set anyway
when the sensor becomes active

5 years agoenable asynchronous loading of indicators, capture button bits and standby image
Mohammed Sameer [Sun, 8 Sep 2013 20:27:14 +0000 (23:27 +0300)]
enable asynchronous loading of indicators, capture button bits and standby image

5 years agoproximity sensor support implemented. Remove TODO
Mohammed Sameer [Sun, 8 Sep 2013 19:53:38 +0000 (22:53 +0300)]
proximity sensor support implemented. Remove TODO

5 years agoUnset QtCamdevice viewfinder when Viewfinder is being destructed.
Mohammed Sameer [Sun, 8 Sep 2013 18:57:30 +0000 (21:57 +0300)]
Unset QtCamdevice viewfinder when Viewfinder is being destructed.

This fixes the following crash:
pure virtual method called
terminate called without an active exception
Aborted

Viewfinder was being destroyed and QtCamDevice was still holding a pointer
to garbage. It tries to stop viewfinder when the device gets stopped
which leads to the above mentioned crash.

5 years agoTry to revent accidental capture via proximity sensor.
Mohammed Sameer [Sun, 8 Sep 2013 18:31:34 +0000 (21:31 +0300)]
Try to revent accidental capture via proximity sensor.

We will delay the proximity close event by 500ms to try to prevent accidental capture

5 years agoDon't disable GPS when we are obscured by location-ui or conndlgs
Mohammed Sameer [Sun, 8 Sep 2013 17:52:21 +0000 (20:52 +0300)]
Don't disable GPS when we are obscured by location-ui or conndlgs

Achieved by adding a PlatformQuirks QML component which takes care of
forcing camera to be on.

On Harmattan it forces on when we are obscured by location-ui (for positioning terms)
or conndlgs (for connection establishment).

As a side effect, we now prevent display dimming while playing a video in post capture

5 years agoDon't disable all interactions when standby is visible
Mohammed Sameer [Sun, 8 Sep 2013 13:33:40 +0000 (16:33 +0300)]
Don't disable all interactions when standby is visible

This will hopefully allow recovering from any error

5 years agoDon't set close to false when we deactivate ProximitySensor
Mohammed Sameer [Wed, 28 Aug 2013 21:18:55 +0000 (00:18 +0300)]
Don't set close to false when we deactivate ProximitySensor

5 years agoConvert TextSwitch to a platform specific component and rename it to CameraTextSwitch
Mohammed Sameer [Mon, 26 Aug 2013 23:21:33 +0000 (02:21 +0300)]
Convert TextSwitch to a platform specific component and rename it to CameraTextSwitch

Sailfish Silica has a native TextSwitch which can be used directly

5 years agoHandle the case when we have different paths for videos and images
Mohammed Sameer [Mon, 26 Aug 2013 22:29:21 +0000 (01:29 +0300)]
Handle the case when we have different paths for videos and images

5 years agoDon't call pure virtual parent methods
Mohammed Sameer [Mon, 26 Aug 2013 22:10:43 +0000 (01:10 +0300)]
Don't call pure virtual parent methods

5 years agoDon't forget to call base class implementation
Mohammed Sameer [Mon, 26 Aug 2013 21:41:30 +0000 (00:41 +0300)]
Don't forget to call base class implementation

5 years agoRemove PATH and TEMP_PATH
Mohammed Sameer [Mon, 26 Aug 2013 21:23:39 +0000 (00:23 +0300)]
Remove PATH and TEMP_PATH

We don't use them anymore

5 years agoChangelog for 0.0.6
Mohammed Sameer [Sun, 25 Aug 2013 20:01:03 +0000 (23:01 +0300)]
Changelog for 0.0.6

5 years agoReworked PostCaptureModel
Mohammed Sameer [Sun, 25 Aug 2013 19:41:07 +0000 (22:41 +0300)]
Reworked PostCaptureModel

We don't really need to use 2 models. We can simply use QStandardItemModel
and sort the data before we insert them.

5 years agoDim share and delete icons when we have no item shown
Mohammed Sameer [Sun, 25 Aug 2013 19:37:53 +0000 (22:37 +0300)]
Dim share and delete icons when we have no item shown

5 years agoSwitch toolbar animation to opacity
Mohammed Sameer [Sun, 25 Aug 2013 17:41:50 +0000 (20:41 +0300)]
Switch toolbar animation to opacity

This also avoids 'Binding loop detected for property "height"' warning

5 years agoDisable zoom button and proximity sensor if we are not in capture mode
Mohammed Sameer [Sun, 25 Aug 2013 17:19:07 +0000 (20:19 +0300)]
Disable zoom button and proximity sensor if we are not in capture mode

This prevents accidental capture when we are in either post capture or settings views.

6 years agopopulate post capture model when page is current and clear it when we leave
Mohammed Sameer [Sun, 25 Aug 2013 11:31:50 +0000 (14:31 +0300)]
populate post capture model when page is current and clear it when we leave

6 years agoFirst attempt at getting rid of tracker for post capture
Mohammed Sameer [Sat, 24 Aug 2013 22:32:24 +0000 (01:32 +0300)]
First attempt at getting rid of tracker for post capture

6 years agoImplemented capturing via proximity sensor
Mohammed Sameer [Sat, 24 Aug 2013 09:33:55 +0000 (12:33 +0300)]
Implemented capturing via proximity sensor

6 years agoAdded an option to enable using proximity sensor to capture
Mohammed Sameer [Sat, 24 Aug 2013 09:18:00 +0000 (12:18 +0300)]
Added an option to enable using proximity sensor to capture

6 years agoUse UTC time to obtain the date stamp
Mohammed Sameer [Fri, 23 Aug 2013 22:24:00 +0000 (01:24 +0300)]
Use UTC time to obtain the date stamp

6 years agoMake capture buttons always visible even if we use zoom keys for capturing
Mohammed Sameer [Wed, 21 Aug 2013 20:06:51 +0000 (23:06 +0300)]
Make capture buttons always visible even if we use zoom keys for capturing

6 years agoRename ZoomCaptureCancel.qml to CaptureCancel.qml
Mohammed Sameer [Wed, 21 Aug 2013 20:06:18 +0000 (23:06 +0300)]
Rename ZoomCaptureCancel.qml to CaptureCancel.qml

API cleaned up a bit to make it a bit more generic

6 years agoMake sure we don't play camera sounds in silent profile
Mohammed Sameer [Mon, 19 Aug 2013 23:10:49 +0000 (02:10 +0300)]
Make sure we don't play camera sounds in silent profile

6 years agoAdded new line to qtcamera.ini
Mohammed Sameer [Mon, 19 Aug 2013 23:07:49 +0000 (02:07 +0300)]
Added new line to qtcamera.ini

6 years agoUpdated TODO file
Mohammed Sameer [Mon, 19 Aug 2013 22:13:51 +0000 (01:13 +0300)]
Updated TODO file

6 years agoDon't reuse file names
Mohammed Sameer [Mon, 19 Aug 2013 21:37:26 +0000 (00:37 +0300)]
Don't reuse file names

Always keep track of the last used counter and don't just pick the next available file name.

6 years agoFix compile error with latest qt5 libresourceqt
Mohammed Sameer [Sun, 18 Aug 2013 21:13:02 +0000 (00:13 +0300)]
Fix compile error with latest qt5 libresourceqt

DBUSConnectionEventLoop::getInstance() has been removed
It's also not a global static object anymore so it should be fine
to rely on it being instantiated in the right thread

6 years agoAdded NoFaceDetection quirk
Mohammed Sameer [Sun, 18 Aug 2013 19:23:31 +0000 (22:23 +0300)]
Added NoFaceDetection quirk

Enable face detection settings if NoFaceDetection quirk is not present

6 years agoAdded NoTouchFocus quirk
Mohammed Sameer [Sun, 18 Aug 2013 19:18:30 +0000 (22:18 +0300)]
Added NoTouchFocus quirk

Enable touch focus only if device doesn't have NoTouchFocus quirk

6 years agoRemove front camera night mode TODO
Mohammed Sameer [Sun, 18 Aug 2013 11:41:42 +0000 (14:41 +0300)]
Remove front camera night mode TODO

6 years agoFixes for qml/js debugging
Mohammed Sameer [Sun, 18 Aug 2013 02:05:59 +0000 (05:05 +0300)]
Fixes for qml/js debugging

If we are compiled with qmljs debugging then we
initialize it immediately before constructing QApplication

Seems to fail otherwise.

6 years agoChangelog for 0.0.5
Mohammed Sameer [Sat, 17 Aug 2013 21:49:57 +0000 (00:49 +0300)]
Changelog for 0.0.5

6 years agoinstall icons
Mohammed Sameer [Sat, 17 Aug 2013 21:46:57 +0000 (00:46 +0300)]
install icons

6 years agoSet the video resolution when video aspect ratio gets changed
Mohammed Sameer [Sat, 17 Aug 2013 21:11:58 +0000 (00:11 +0300)]
Set the video resolution when video aspect ratio gets changed

This is not used for N9 but it might be used in the future

6 years agoDon't try to change the resolution while we are changing the device.
Mohammed Sameer [Sat, 17 Aug 2013 21:10:58 +0000 (00:10 +0300)]
Don't try to change the resolution while we are changing the device.

This will lead to invalid resolution being set. resetCamera() will
take care of setting the resolution after we are done changing the device

6 years agoresetCamera() will set needed resolution after resetting camera.
Mohammed Sameer [Sat, 17 Aug 2013 21:09:24 +0000 (00:09 +0300)]
resetCamera() will set needed resolution after resetting camera.

No need to do that when either ImageSettings or VideoSettings become ready

6 years agoKill redundant Connecation element for resolution settings
Mohammed Sameer [Sat, 17 Aug 2013 19:31:47 +0000 (22:31 +0300)]
Kill redundant Connecation element for resolution settings

We can do that inside Settings element itself

6 years agoemit deviceChanged() after we are done recreating DeviceSettings
Mohammed Sameer [Sat, 17 Aug 2013 16:00:15 +0000 (19:00 +0300)]
emit deviceChanged() after we are done recreating DeviceSettings

6 years agoPrevent changing any camera properties while device change is in progress
Mohammed Sameer [Sat, 17 Aug 2013 15:59:22 +0000 (18:59 +0300)]
Prevent changing any camera properties while device change is in progress

6 years agoFirst attempt at making Settings class device aware
Mohammed Sameer [Sat, 17 Aug 2013 01:26:33 +0000 (04:26 +0300)]
First attempt at making Settings class device aware

6 years agoRevert "Implemented per device resolution setting and selection"
Mohammed Sameer [Fri, 16 Aug 2013 18:22:26 +0000 (21:22 +0300)]
Revert "Implemented per device resolution setting and selection"

This reverts commit 04e7179e1a1fe4957dd38ccf9b9555f02e9b4b83.

Conflicts:
qml/CameraSettings.qml
qml/ImageOverlay.qml
qml/VideoOverlay.qml

6 years agoReset toolbar when device gets changed
Mohammed Sameer [Thu, 15 Aug 2013 23:36:48 +0000 (02:36 +0300)]
Reset toolbar when device gets changed

6 years agoHide unusable ui parts depending on device quirks
Mohammed Sameer [Thu, 15 Aug 2013 23:26:17 +0000 (02:26 +0300)]
Hide unusable ui parts depending on device quirks

6 years agoAdded QtCamQuirks to libQtCamera and Quirks to libdeclarativeQtCamera
Mohammed Sameer [Tue, 13 Aug 2013 21:42:49 +0000 (00:42 +0300)]
Added QtCamQuirks to libQtCamera and Quirks to libdeclarativeQtCamera

This allows us to specify any device specific quirks to workaround from the UI side.
Also added N9 quirks

6 years agoAdded methods to find VideoResolution and set it
Mohammed Sameer [Tue, 13 Aug 2013 18:19:47 +0000 (21:19 +0300)]
Added methods to find VideoResolution and set it

6 years agoAdded ImageSettings::currentResolution and methods to find ImageResolution and set it
Mohammed Sameer [Tue, 13 Aug 2013 18:19:06 +0000 (21:19 +0300)]
Added ImageSettings::currentResolution and methods to find ImageResolution and set it

6 years agoAdded new QML types to create VideoResolution and ImageResolution from QML
Mohammed Sameer [Tue, 13 Aug 2013 16:04:01 +0000 (19:04 +0300)]
Added new QML types to create VideoResolution and ImageResolution from QML

6 years agoHide video torch setting when front camera is active
Mohammed Sameer [Mon, 12 Aug 2013 18:56:24 +0000 (21:56 +0300)]
Hide video torch setting when front camera is active