After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622482 - photography iface review
photography iface review
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal enhancement
: 0.11.x
Assigned To: ensonic
GStreamer Maintainers
Depends on: 616814 627134
Blocks: 649849
 
 
Reported: 2010-06-23 10:40 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2012-07-10 23:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-photography-Add-GstPhotography-prefix-and-fix-spelli.patch (25.02 KB, patch)
2010-10-14 13:44 UTC, Lasse Laukkanen
none Details | Review
0002-photography-Add-manual-control-of-exposure-focus-and.patch (6.29 KB, patch)
2010-10-14 13:49 UTC, Lasse Laukkanen
needs-work Details | Review
Add GstPhotography prefix and fix spelling colour->color (26.54 KB, patch)
2010-10-21 10:22 UTC, Lasse Laukkanen
committed Details | Review
Add manual control of exposure, focus and white balance (7.67 KB, patch)
2010-10-21 10:25 UTC, Lasse Laukkanen
committed Details | Review
Update documentation (13.13 KB, patch)
2010-10-21 10:26 UTC, Lasse Laukkanen
committed Details | Review
use GstPhotographyNoiseReduction enumeration instead of guint (1.63 KB, patch)
2010-10-21 10:27 UTC, Lasse Laukkanen
none Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2010-06-23 10:40:34 UTC
This bug is for reviewing GstPhotography completeness. The interface show cover usual settings for photography and the still image capture process.

Things missing:
1.) A way to turn off Auto-Whitebalance. Could be done by adding
GST_PHOTOGRAPHY_WB_MODE_OFF

2.) A way to turn off Auto-Exposure.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2010-09-28 09:48:43 UTC
All public symbols should have GstPhotography prefix, thus we need to rename the enum types e.g. GstWhiteBalanceMode -> GstPhotographyWhiteBalanceMode

The GStreamer API uses US American English spelling, not British
English spelling: Thus we should change "COLOUR" => "COLOR".
Comment 2 Lasse Laukkanen 2010-10-14 13:44:13 UTC
Created attachment 172349 [details] [review]
0001-photography-Add-GstPhotography-prefix-and-fix-spelli.patch

Add GstPhotography prefix to public symbols and fix spelling colour->color
Comment 3 Lasse Laukkanen 2010-10-14 13:49:23 UTC
Created attachment 172352 [details] [review]
0002-photography-Add-manual-control-of-exposure-focus-and.patch

Add new interface properties and mode for better manual control of exposure, focus and white balance, proposed updates are summarized below. Also, how about deprecating gst_photography_get/set_* functions and having only respective interface properties?


White-balance:
        new wb mode option GST_PHOTOGRAPHY_WB_MODE_MANUAL

        new interface proprety
        "white-balance", integer type for manual setting/getting of white
         balance as color temperature in Kelvin units(?)
        FIXME: to be checked if the unit is valid/sufficient

        So if GST_PHOTOGRAPHY_WB_MODE_MANUAL is set then automatic white
        balance is disabled and current value should remain. Application can
        query current or set new value. 

Exposure:
        new mode "exposure-mode":
            GST_PHOTOGRAPHY_EXPOSURE_MODE_AUTO = 0,
            GST_PHOTOGRAPHY_EXPOSURE_MODE_MANUAL

        change property name:
        "exposure" -> "exposure-time"

        new interface properties:
        "analog-gain", analog gain applied to the sensor
        "min-exposure-time", for setting exposure time limit to autoexposure
        "max-exposure-time", for setting exposure time limit to autoexposure

        Again, setting GST_PHOTOGRAPHY_EXPOSURE_MODE_MANUAL will turn
        autoexposure off, current exposure remains and exposure settings can
        be controlled using interface properties.

Focusing:
        new focus mode option GST_PHOTOGRAPHY_FOCUS_MODE_MANUAL

        new interface property for setting/getting current focus value:
        "lens-focus" float type, lens distance from image plane in millimeter
         units
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2010-10-20 13:49:06 UTC
Review of attachment 172352 [details] [review]:

::: gst-libs/gst/interfaces/photography.h
@@ +212,1 @@
 } GstPhotographyFocusMode;

These still miss API docs. Could be done as a followup patch.

@@ +215,3 @@
+    GST_PHOTOGRAPHY_EXPOSURE_MODE_AUTO = 0,
+    GST_PHOTOGRAPHY_EXPOSURE_MODE_MANUAL
+} GstPhotographyExposureMode;

Please add docs.
Comment 5 Lasse Laukkanen 2010-10-21 10:22:37 UTC
Created attachment 172917 [details] [review]
Add GstPhotography prefix and fix spelling colour->color

Rebase to HEAD and update -sections.txt for docs.
Comment 6 Lasse Laukkanen 2010-10-21 10:25:10 UTC
Created attachment 172918 [details] [review]
Add manual control of exposure, focus and white balance

Rebase to HEAD.

New interface properties for manual white balance: white-point, color-temperature.
White point should describe the color "white" as raw values. FIXME: check correct representation for white point.

Change lens-focus property unit to diopter.
Comment 7 Lasse Laukkanen 2010-10-21 10:26:07 UTC
Created attachment 172920 [details] [review]
Update documentation

Update documentation
Comment 8 Lasse Laukkanen 2010-10-21 10:27:01 UTC
Created attachment 172921 [details] [review]
use GstPhotographyNoiseReduction enumeration instead of guint

Minor fix related to GstPhotographyNoiseReduction
Comment 9 Stefan Sauer (gstreamer, gtkdoc dev) 2010-12-20 09:48:22 UTC
Comment on attachment 172921 [details] [review]
use GstPhotographyNoiseReduction enumeration instead of guint

This change is already in git head
Comment 10 Stefan Sauer (gstreamer, gtkdoc dev) 2010-12-20 10:25:20 UTC
I'd like to get at least the spelling fixes and the doc fixes in. I'll push these after vacations if there are no more comments.
Comment 11 Luciana Fujii 2011-05-26 22:14:26 UTC
Hi! Any news on this? It would be nice to have this extra properties in GstPhotography.
Comment 12 Tim-Philipp Müller 2012-07-10 23:18:05 UTC
> I'll push these after vacations if there are no more comments.

Long vacation that ;)


commit eabb238b2445084abe8aafdbb884368179b512fe
Author: Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Date:   Wed Oct 13 10:55:17 2010 +0300

    photography: update documentation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622482

commit 3d94d8dc39c4e13069714c80a3584dd561a1e41b
Author: Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Date:   Thu Oct 14 10:49:55 2010 +0300

    photography: Add manual control of exposure, focus and white balance
    
    Add new interface properties and mode for better manual control of
    exposure, focus and white balance.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622482

commit 8fd2fc662a7c36a2df4c2621dd88a0951395a820
Author: Lasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Date:   Fri Oct 8 11:33:31 2010 +0300

    photography: Add GstPhotography prefix and fix spelling colour->color
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622482