harmattan/cameraplus
10 years agoAdded a flash indicator
Mohammed Sameer [Sat, 3 Aug 2013 17:04:22 +0000 (20:04 +0300)]
Added a flash indicator

10 years agoCleaned up unused icon ids
Mohammed Sameer [Sat, 3 Aug 2013 16:52:09 +0000 (19:52 +0300)]
Cleaned up unused icon ids

10 years agoCorrected video recording resolution for front camera
Mohammed Sameer [Sat, 3 Aug 2013 05:11:30 +0000 (08:11 +0300)]
Corrected video recording resolution for front camera

Stolen from Aura ;-)

10 years agoImplemented per device resolution setting and selection
Mohammed Sameer [Sat, 3 Aug 2013 05:04:39 +0000 (08:04 +0300)]
Implemented per device resolution setting and selection

10 years agoRenamed ImageSettings.qml and VideoSettings.qml to ImageModeSettings.qml and VideoMod...
Mohammed Sameer [Fri, 2 Aug 2013 23:11:11 +0000 (02:11 +0300)]
Renamed ImageSettings.qml and VideoSettings.qml to ImageModeSettings.qml and VideoModeSettings.qml

Prevent clashing with stuff from declarative QtCamera

10 years agoSome coding style fixes
Mohammed Sameer [Fri, 2 Aug 2013 23:08:46 +0000 (02:08 +0300)]
Some coding style fixes

10 years agoMultiple fixes:
Mohammed Sameer [Fri, 2 Aug 2013 22:09:27 +0000 (01:09 +0300)]
Multiple fixes:

- Drop QtCamViewfinder::setDevice() as it's not really needed
- Added Camera::prepareForDeviceChange() signal to notify about the destruction of device.

Viewfinder will reset QtCamDevice viewfinder when Camera emits prepareForDeviceChange().
This allows us to properly restart the pipeline for the secondary camera.

10 years agoUnset camerabin viewfinder-sink property when we unset viewfinder
Mohammed Sameer [Sun, 14 Apr 2013 01:04:22 +0000 (04:04 +0300)]
Unset camerabin viewfinder-sink property when we unset viewfinder

10 years agoCleaned up irrelevant comment
Mohammed Sameer [Sun, 14 Apr 2013 01:03:23 +0000 (04:03 +0300)]
Cleaned up irrelevant comment

10 years agoFree the iterator after iterating on bin elements.
Mohammed Sameer [Sun, 14 Apr 2013 00:56:37 +0000 (03:56 +0300)]
Free the iterator after iterating on bin elements.

We were practically leaking the memory and also holding
a reference to camerabin which prevents deleting it because
reference count will never reach 0

10 years agoDon't hold a reference to camerabin
Mohammed Sameer [Sun, 14 Apr 2013 00:54:56 +0000 (03:54 +0300)]
Don't hold a reference to camerabin

If we keep the reference to camerabin then it will never be freed
when QtCamDevice gets destroyed without special code for handling
device deletion.

What we do instead is to acquire a reference when needed and then
release it immediately.

10 years agoReset pipeline manager error and try to start camera device when device gets changed
Mohammed Sameer [Fri, 2 Aug 2013 21:38:51 +0000 (00:38 +0300)]
Reset pipeline manager error and try to start camera device when device gets changed

10 years agoEnable camera device switcher when camera is idle.
Mohammed Sameer [Fri, 2 Aug 2013 21:33:35 +0000 (00:33 +0300)]
Enable camera device switcher when camera is idle.

10 years agoAdded presets for secondary camera.
Mohammed Sameer [Wed, 10 Apr 2013 22:07:40 +0000 (01:07 +0300)]
Added presets for secondary camera.

Night mode resolution is still not working unfortunately.

Conflicts:
data/n9/qtcamera.ini

10 years agoIntroduce a base class for capabilities.
Mohammed Sameer [Sun, 7 Apr 2013 22:10:40 +0000 (01:10 +0300)]
Introduce a base class for capabilities.

Introduce the Capability base class for all capabilities.
It has only one property for now (isSupported).

Conflicts:
declarative/declarative.pro
declarative/plugin.cpp

10 years agoCorrect the class name in the message for Aperture
Mohammed Sameer [Sun, 7 Apr 2013 22:09:45 +0000 (01:09 +0300)]
Correct the class name in the message for Aperture

10 years agoShow/hide UI elements for setting resolution and aspect ratio
Mohammed Sameer [Fri, 2 Aug 2013 21:26:06 +0000 (00:26 +0300)]
Show/hide UI elements for setting resolution and aspect ratio
depending on the availability of resolutions and/or aspect ratios
for a selected device.

10 years agoAdded aspectRatioCount to ImageSettings and VideoSettings
Mohammed Sameer [Sun, 7 Apr 2013 17:35:46 +0000 (20:35 +0300)]
Added aspectRatioCount to ImageSettings and VideoSettings

10 years agoAdd count property to ImageResolutionModel and VideoResolutionModel
Mohammed Sameer [Sun, 7 Apr 2013 17:35:08 +0000 (20:35 +0300)]
Add count property to ImageResolutionModel and VideoResolutionModel

Conflicts:
declarative/imageresolutionmodel.cpp
declarative/videoresolutionmodel.cpp

10 years agoIf we don't have resolutions then return an invalid one.
Mohammed Sameer [Sat, 6 Apr 2013 19:15:47 +0000 (22:15 +0300)]
If we don't have resolutions then return an invalid one.

This should allow camerabin2 to start assuming it can negotiate
some sane defaults instead of crashing.

10 years agoUse a QPointer for the m_mode member.
Mohammed Sameer [Sat, 6 Apr 2013 18:02:26 +0000 (21:02 +0300)]
Use a QPointer for the m_mode member.

m_mode is owned by the device and it will be destroyed if device
gets destroyed.

10 years agoAdded settings to change camera device.
Mohammed Sameer [Fri, 2 Aug 2013 21:05:00 +0000 (00:05 +0300)]
Added settings to change camera device.

This is just the UI. Changing the device leads to a crash.

10 years agopost capture image now follows device orientation
Mohammed Sameer [Fri, 2 Aug 2013 20:04:26 +0000 (23:04 +0300)]
post capture image now follows device orientation

10 years agoRename orientationChanged to onOrientationChanged
Mohammed Sameer [Fri, 2 Aug 2013 19:25:28 +0000 (22:25 +0300)]
Rename orientationChanged to onOrientationChanged
seems it was confusing QML runtime. Signal was not being catched in QML

10 years agoHide post capture toolbar immediately when we start video playback
Mohammed Sameer [Fri, 2 Aug 2013 14:33:53 +0000 (17:33 +0300)]
Hide post capture toolbar immediately when we start video playback

10 years agoReworked CameraToolBar
Mohammed Sameer [Fri, 2 Aug 2013 04:55:05 +0000 (07:55 +0300)]
Reworked CameraToolBar

10 years agoAdded TODO items to be resolved before a release
Mohammed Sameer [Thu, 1 Aug 2013 15:29:09 +0000 (18:29 +0300)]
Added TODO items to be resolved before a release

10 years agoRemoved unused functions after cleaning up CheckButton
Mohammed Sameer [Thu, 1 Aug 2013 00:27:03 +0000 (03:27 +0300)]
Removed unused functions after cleaning up CheckButton

10 years agoReworked CheckButton API
Mohammed Sameer [Thu, 1 Aug 2013 00:23:50 +0000 (03:23 +0300)]
Reworked CheckButton API

CheckButton has one roperty "checked".
It will also highlight the background of the checked button

10 years agoVideoPlayer::paused property does not exist. Use VideoPlayer::state instead
Mohammed Sameer [Wed, 31 Jul 2013 20:21:57 +0000 (23:21 +0300)]
VideoPlayer::paused property does not exist. Use VideoPlayer::state instead

10 years agoMove all icon ids used in .qml files into CameraTheme and create a harmattan theme
Mohammed Sameer [Wed, 31 Jul 2013 20:16:19 +0000 (23:16 +0300)]
Move all icon ids used in .qml files into CameraTheme and create a harmattan theme

10 years agoindented
Mohammed Sameer [Wed, 31 Jul 2013 18:57:40 +0000 (21:57 +0300)]
indented

10 years agoCheckButton and all components using it converted to iconId usage
Mohammed Sameer [Wed, 31 Jul 2013 18:44:15 +0000 (21:44 +0300)]
CheckButton and all components using it converted to iconId usage

10 years agoDisable postcapture ListView flicking when we are playing a video
Mohammed Sameer [Wed, 31 Jul 2013 18:34:50 +0000 (21:34 +0300)]
Disable postcapture ListView flicking when we are playing a video

10 years agoConvert most iconSource usage to iconId
Mohammed Sameer [Wed, 31 Jul 2013 18:32:54 +0000 (21:32 +0300)]
Convert most iconSource usage to iconId

10 years agoview->showFullScreen moved by mistake to QT5 specific block
Mohammed Sameer [Wed, 31 Jul 2013 18:15:05 +0000 (21:15 +0300)]
view->showFullScreen moved by mistake to QT5 specific block

10 years agoQt5: If QQuickView cannot load QML then print them and quit.
Mohammed Sameer [Wed, 31 Jul 2013 18:02:56 +0000 (21:02 +0300)]
Qt5: If QQuickView cannot load QML then print them and quit.

10 years agoRename Campass and Orientation to CameraCompass and CameraOrientation
Mohammed Sameer [Wed, 31 Jul 2013 17:47:56 +0000 (20:47 +0300)]
Rename Campass and Orientation to CameraCompass and CameraOrientation

10 years agoMake more components harmattan specific
Mohammed Sameer [Wed, 31 Jul 2013 17:45:01 +0000 (20:45 +0300)]
Make more components harmattan specific

10 years agoRefactor and rename isWrapperReady to isReadyForCapture()
Mohammed Sameer [Mon, 29 Jul 2013 02:07:29 +0000 (05:07 +0300)]
Refactor and rename isWrapperReady to isReadyForCapture()

This better describes what the function should do.
We will check the "ready-for-capture" property on video source
if we don't have a wrapper instead of returning false.

10 years agoAdd missing include
Mohammed Sameer [Mon, 29 Jul 2013 01:47:17 +0000 (04:47 +0300)]
Add missing include

10 years agoCall parent class componentComplete()
Mohammed Sameer [Mon, 29 Jul 2013 01:44:25 +0000 (04:44 +0300)]
Call parent class componentComplete()

10 years agoReworked main.qml so we have a page
Mohammed Sameer [Sun, 28 Jul 2013 22:12:56 +0000 (01:12 +0300)]
Reworked main.qml so we have a page

10 years agoReworking QtCamViewfinderRenderer to avoid having to pass QPainter to the renderer
Mohammed Sameer [Sun, 28 Jul 2013 18:56:59 +0000 (21:56 +0300)]
Reworking QtCamViewfinderRenderer to avoid having to pass QPainter to the renderer

10 years agoMove PreviewImage underneath FocusReticle
Mohammed Sameer [Sun, 28 Jul 2013 18:44:11 +0000 (21:44 +0300)]
Move PreviewImage underneath FocusReticle

It must be like that otherwise PreviewImage steals mouse events from FocusReticle

10 years agoReplace font.capitalization with a capitalize property
Mohammed Sameer [Sun, 28 Jul 2013 18:22:35 +0000 (21:22 +0300)]
Replace font.capitalization with a capitalize property

10 years agoRemoved extra space
Mohammed Sameer [Sun, 28 Jul 2013 18:22:19 +0000 (21:22 +0300)]
Removed extra space

10 years agoAliasing position properties is not working. Just bind them
Mohammed Sameer [Sun, 28 Jul 2013 18:21:28 +0000 (21:21 +0300)]
Aliasing position properties is not working. Just bind them

10 years agoKill QtCamViewfinderRendererGeneric
Mohammed Sameer [Sun, 28 Jul 2013 18:20:11 +0000 (21:20 +0300)]
Kill QtCamViewfinderRendererGeneric

It's broken and unused.

10 years agoAlways register DeviceInfo and GeoCode.
Mohammed Sameer [Sun, 28 Jul 2013 15:39:20 +0000 (18:39 +0300)]
Always register DeviceInfo and GeoCode.

It should always be provided per platform

10 years agoMore fixes for Qt5
Mohammed Sameer [Sun, 28 Jul 2013 15:38:32 +0000 (18:38 +0300)]
More fixes for Qt5

10 years agoIf wrapperVideoSource is null then connect to videoSource ready-for-capture instead
Mohammed Sameer [Sun, 28 Jul 2013 15:35:34 +0000 (18:35 +0300)]
If wrapperVideoSource is null then connect to videoSource ready-for-capture instead

10 years agoAdded DeviceInfo and GeoCode for Qt5
Mohammed Sameer [Sat, 27 Jul 2013 23:53:59 +0000 (02:53 +0300)]
Added DeviceInfo and GeoCode for Qt5

10 years agoMake a new component CameraPositionSource to get rid of QtMobility dependency
Mohammed Sameer [Sat, 27 Jul 2013 22:27:55 +0000 (01:27 +0300)]
Make a new component CameraPositionSource to get rid of QtMobility dependency

10 years agoDeviceInfo and GeoCode are now harmattan specific
Mohammed Sameer [Sat, 27 Jul 2013 22:10:09 +0000 (01:10 +0300)]
DeviceInfo and GeoCode are now harmattan specific

10 years agoFixed VideoPlayerPage.qml failure to set cameraConfig
Mohammed Sameer [Sat, 27 Jul 2013 22:04:34 +0000 (01:04 +0300)]
Fixed VideoPlayerPage.qml failure to set cameraConfig

10 years agoFix setting role names for Qt4 (Inspired by QtGrilo fixes).
Mohammed Sameer [Sat, 27 Jul 2013 22:00:03 +0000 (01:00 +0300)]
Fix setting role names for Qt4 (Inspired by QtGrilo fixes).

10 years agoBooster is enabled for all builds
Mohammed Sameer [Sat, 27 Jul 2013 20:56:09 +0000 (23:56 +0300)]
Booster is enabled for all builds

10 years agoInitial Qt5 port
Mohammed Sameer [Sat, 27 Jul 2013 20:09:11 +0000 (23:09 +0300)]
Initial Qt5 port

10 years agoPostCaptureModel doesn't need to subclass QDeclarativeParserStatus
Mohammed Sameer [Sat, 27 Jul 2013 02:20:01 +0000 (05:20 +0300)]
PostCaptureModel doesn't need to subclass QDeclarativeParserStatus

10 years agoCamera doesn't need to subclass QDeclarativeItem
Mohammed Sameer [Sat, 27 Jul 2013 01:25:21 +0000 (04:25 +0300)]
Camera doesn't need to subclass QDeclarativeItem

10 years agoRemove unneeded Camera::geometryChanged()
Mohammed Sameer [Fri, 26 Jul 2013 20:51:50 +0000 (23:51 +0300)]
Remove unneeded Camera::geometryChanged()

10 years agoCreate a QDeclarativeItem Viewfinder subclass
Mohammed Sameer [Fri, 26 Jul 2013 19:59:25 +0000 (22:59 +0300)]
Create a QDeclarativeItem Viewfinder subclass

10 years agoCall cam.roi.resetRegionOfInterest only if cam.roi is not null
Mohammed Sameer [Fri, 26 Jul 2013 19:58:42 +0000 (22:58 +0300)]
Call cam.roi.resetRegionOfInterest only if cam.roi is not null

10 years agoReplace @IMPORT_QT_QUICK@ with "import QtQuick 2.0"
Mohammed Sameer [Fri, 26 Jul 2013 17:36:12 +0000 (20:36 +0300)]
Replace @IMPORT_QT_QUICK@ with "import QtQuick 2.0"

QFSFileEngine and QAbstractFileEngineHandler are not available in Qt5
We will hardcode import QtQuick 2.0 to make Qt5 happy and will replace
it with QtQuick 1.1 when not using Qt5

10 years agoReturn NULL if we cannot create any elements
Mohammed Sameer [Fri, 26 Jul 2013 01:57:12 +0000 (04:57 +0300)]
Return NULL if we cannot create any elements

10 years agoPartial implementation of QmlFileEngine::fileName()
Mohammed Sameer [Fri, 26 Jul 2013 00:01:31 +0000 (03:01 +0300)]
Partial implementation of QmlFileEngine::fileName()

Nemo Qt won't load qml files other than main.qml without that

10 years agoInitialize quill only if we are building for harmattan
Mohammed Sameer [Fri, 26 Jul 2013 00:00:45 +0000 (03:00 +0300)]
Initialize quill only if we are building for harmattan

10 years agoImplement a dummy SoundVolumeControl for nemo
Mohammed Sameer [Thu, 25 Jul 2013 22:06:47 +0000 (01:06 +0300)]
Implement a dummy SoundVolumeControl for nemo

10 years agoAssume nemo if we are not building for harmattan
Mohammed Sameer [Thu, 25 Jul 2013 21:36:52 +0000 (00:36 +0300)]
Assume nemo if we are not building for harmattan

10 years agoRemove harmattan specific bits from Sounds
Mohammed Sameer [Thu, 25 Jul 2013 21:24:44 +0000 (00:24 +0300)]
Remove harmattan specific bits from Sounds

All the harmattan audio route handling is now in a harmattan
specific implementation.
Application expects a component named SoundVolumeControl per platform

10 years agoMove quillitem.* to src/harmattan and register it only if we are building for harmattan
Mohammed Sameer [Thu, 25 Jul 2013 20:42:24 +0000 (23:42 +0300)]
Move quillitem.* to src/harmattan and register it only if we are building for harmattan

10 years agoKill DeclarativeQtCameraNotifications
Mohammed Sameer [Thu, 25 Jul 2013 20:13:22 +0000 (23:13 +0300)]
Kill DeclarativeQtCameraNotifications

Sounds class will handle all sound playback.
Location of audio files will be part of PlatformSettings instead of QtCamConfig

10 years agoAdd missing QRectF include
Mohammed Sameer [Thu, 25 Jul 2013 16:35:31 +0000 (19:35 +0300)]
Add missing QRectF include

10 years agoUse QString::toLatin1() instead of QString::toAscii()
Mohammed Sameer [Thu, 25 Jul 2013 16:33:52 +0000 (19:33 +0300)]
Use QString::toLatin1() instead of QString::toAscii()

10 years agoUnify harmattan detection and move harmattan specific bits to a harmattan scope
Mohammed Sameer [Mon, 22 Jul 2013 23:53:53 +0000 (02:53 +0300)]
Unify harmattan detection and move harmattan specific bits to a harmattan scope

10 years agoMove QuillItem to harmattan specific components.
Mohammed Sameer [Mon, 22 Jul 2013 22:38:01 +0000 (01:38 +0300)]
Move QuillItem to harmattan specific components.

10 years agoPut error label and play button in a column to prevent their overlap
Mohammed Sameer [Mon, 22 Jul 2013 22:36:32 +0000 (01:36 +0300)]
Put error label and play button in a column to prevent their overlap

10 years agoKill com.nokia.meego importing in the ui.
Mohammed Sameer [Mon, 22 Jul 2013 21:45:40 +0000 (00:45 +0300)]
Kill com.nokia.meego importing in the ui.

We have a set of components underneath qml/harmattan implementing harmattan specific
functionality. The rest should be more or less generic.

10 years agoIndented
Mohammed Sameer [Mon, 22 Jul 2013 18:32:51 +0000 (21:32 +0300)]
Indented

10 years agoKeep orientation sensor active when we are in post capture view
Mohammed Sameer [Mon, 22 Jul 2013 18:29:53 +0000 (21:29 +0300)]
Keep orientation sensor active when we are in post capture view

10 years agoDrop unneeded CameraOverlay.qml
Mohammed Sameer [Mon, 22 Jul 2013 18:12:13 +0000 (21:12 +0300)]
Drop unneeded CameraOverlay.qml

10 years agoIndent and drop unneeded com.nokia.meego import
Mohammed Sameer [Mon, 22 Jul 2013 18:10:33 +0000 (21:10 +0300)]
Indent and drop unneeded com.nokia.meego import

10 years agoFirst attempt at removing QtQuick 1.1 hardcoding from qml files.
Mohammed Sameer [Mon, 22 Jul 2013 17:35:11 +0000 (20:35 +0300)]
First attempt at removing QtQuick 1.1 hardcoding from qml files.

We replace QtQuick import with a macro which will get replaced during runtime
with the correct version via a custom QFileSystemEngine subclass

10 years agoUse a Loader element to load and unload PostCaptureModel
Mohammed Sameer [Mon, 22 Jul 2013 00:09:57 +0000 (03:09 +0300)]
Use a Loader element to load and unload PostCaptureModel

10 years agoDon't connect to GraphUpdated more than once.
Mohammed Sameer [Sun, 21 Jul 2013 23:49:56 +0000 (02:49 +0300)]
Don't connect to GraphUpdated more than once.

This happens if we call reload() more than once

10 years agoStop video playback when we lose policy resources
Mohammed Sameer [Sun, 21 Jul 2013 20:04:50 +0000 (23:04 +0300)]
Stop video playback when we lose policy resources

10 years agolock the UI when user starts to drag the reticle.
Mohammed Sameer [Sun, 21 Jul 2013 19:34:56 +0000 (22:34 +0300)]
lock the UI when user starts to drag the reticle.

10 years agoReset touch focus back if the user starts dragging the view (onCanceled)
Mohammed Sameer [Sun, 21 Jul 2013 05:03:49 +0000 (08:03 +0300)]
Reset touch focus back if the user starts dragging the view (onCanceled)

10 years agoAdded error reporting
Mohammed Sameer [Thu, 18 Jul 2013 16:25:55 +0000 (19:25 +0300)]
Added error reporting

10 years agoenable fence sync objects because they are needed by video player.
Mohammed Sameer [Thu, 18 Jul 2013 16:15:03 +0000 (19:15 +0300)]
enable fence sync objects because they are needed by video player.

10 years agoInitial implementation of our own VideoPlayer declarative item
Mohammed Sameer [Wed, 17 Jul 2013 23:42:25 +0000 (02:42 +0300)]
Initial implementation of our own VideoPlayer declarative item

10 years agoDrop unused signal cameraConfigChanged()
Mohammed Sameer [Wed, 17 Jul 2013 03:40:45 +0000 (06:40 +0300)]
Drop unused signal cameraConfigChanged()

10 years agoAdded CameraConfig to QtCamera declarative module
Mohammed Sameer [Tue, 16 Jul 2013 23:30:38 +0000 (02:30 +0300)]
Added CameraConfig to QtCamera declarative module

10 years agoSorted alphabetically
Mohammed Sameer [Tue, 16 Jul 2013 14:07:43 +0000 (17:07 +0300)]
Sorted alphabetically

10 years agoGet rid of CameraPage.qml
Mohammed Sameer [Tue, 16 Jul 2013 14:06:07 +0000 (17:06 +0300)]
Get rid of CameraPage.qml

10 years agoIndented
Mohammed Sameer [Tue, 16 Jul 2013 03:25:56 +0000 (06:25 +0300)]
Indented

10 years agoFixes and indentation for VideoTorchButton.qml
Mohammed Sameer [Tue, 16 Jul 2013 03:24:08 +0000 (06:24 +0300)]
Fixes and indentation for VideoTorchButton.qml

10 years agoFixes and indentation for VideoEvCompButton.qml
Mohammed Sameer [Tue, 16 Jul 2013 03:21:53 +0000 (06:21 +0300)]
Fixes and indentation for VideoEvCompButton.qml

10 years agoFixes and indentation for ImageEvCompButton.qml
Mohammed Sameer [Tue, 16 Jul 2013 03:19:41 +0000 (06:19 +0300)]
Fixes and indentation for ImageEvCompButton.qml