Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d22909c authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Merge tag 'v1.51.1' into 1471-master-upstream_fix

Version 1.51.1
parents cd611a84 31a38fc8
Loading
Loading
Loading
Loading
Loading
+12 −3
Original line number Original line Diff line number Diff line
@@ -80,6 +80,8 @@
<li><a href="#contact">Contacting me (bugs etc)</a></li>
<li><a href="#contact">Contacting me (bugs etc)</a></li>
</ul>
</ul>


<!-- Remember that ad must not be more than 30% of total page content height (i.e., total page, not just what's
on screen in the viewport. -->
<!-- start adsense code -->
<!-- start adsense code -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- help_top_1 -->
<!-- help_top_1 -->
@@ -368,8 +370,6 @@ regions will have their brightness boosted to bring out the detail. This mode is
of brightness (e.g., on a bright sunny day) as well as being useful to automatically optimise photos in low light scenes. Also
of brightness (e.g., on a bright sunny day) as well as being useful to automatically optimise photos in low light scenes. Also
see <a href="#dro_vs_hdr">DRO vs HDR</a>.</p>
see <a href="#dro_vs_hdr">DRO vs HDR</a>.</p>


<p>Note that if Camera2 API is used, DRO will give improved quality in bright scenes.</p>

<p><a name="hdr"><b>HDR</b></a></p>
<p><a name="hdr"><b>HDR</b></a></p>


<p>High Dynamic Range Imaging (HDR) is a technique where the camera takes multiple shots at different exposures, and combines them
<p>High Dynamic Range Imaging (HDR) is a technique where the camera takes multiple shots at different exposures, and combines them
@@ -515,7 +515,7 @@ recording.</p>
delay (see below).</p>
delay (see below).</p>


<p><b>Volume keys</b> - You can set what happens when your device's volume keys are pressed:</p><ul>
<p><b>Volume keys</b> - You can set what happens when your device's volume keys are pressed:</p><ul>
<li>Take photo or start/stop video (depending on photo/video mode).</li>
<li>Take photo or start/stop video (depending on photo/video mode). On Android 7+, volume down will instead pause/resume video when recording video.</li>
<li>Trigger an autofocus - or if in manual mode, change the focus distance in/out. In this mode, holding down both volume keys
<li>Trigger an autofocus - or if in manual mode, change the focus distance in/out. In this mode, holding down both volume keys
will take a photo (or start/stop video). This makes your volume keys behave more like a physical camera button - hold down one
will take a photo (or start/stop video). This makes your volume keys behave more like a physical camera button - hold down one
key to focus, then both to take a photo.</li>
key to focus, then both to take a photo.</li>
@@ -888,6 +888,10 @@ create the final HDR image (although if you don't want Open Camera's HDR mode at
Exposure Bracketing Photo Mode). Note this will make saving slower, especially if options like "Stamp photos" or
Exposure Bracketing Photo Mode). Note this will make saving slower, especially if options like "Stamp photos" or
<a href="#auto_stabilise">Auto-level</a> are also used.</p>
<a href="#auto_stabilise">Auto-level</a> are also used.</p>


<p><b>HDR tonemapping</b> - When using <a href="#hdr">HDR</a> mode, the high dynamic range image needs to be converted
back to a regular image, using a process called tonemapping. This option allows you to choose some different
tonemapping algorithms.</p>

<p><b>HDR contrast enhancement</b> - When using <a href="#hdr">HDR</a> mode, in some (bright) scenes a local contrast
<p><b>HDR contrast enhancement</b> - When using <a href="#hdr">HDR</a> mode, in some (bright) scenes a local contrast
enhancement algorithm is applied to improve the look of the image. It also gives such images a look that is stereotypically
enhancement algorithm is applied to improve the look of the image. It also gives such images a look that is stereotypically
associated with "HDR". If you prefer not to apply this at all, you can change this option from "Smart" to "Off". Or you can
associated with "HDR". If you prefer not to apply this at all, you can change this option from "Smart" to "Off". Or you can
@@ -915,6 +919,11 @@ a third party File Explorer application to see and delete XML files.</p>
photos will still be as the camera (or other people) view the scene. This option can be used to mirror the
photos will still be as the camera (or other people) view the scene. This option can be used to mirror the
resultant photo, so the resultant photo matches the mirrored image you see on the screen.</p>
resultant photo, so the resultant photo matches the mirrored image you see on the screen.</p>


<p><b>Remove device EXIF data</b> - Whether to remove device EXIF metadata from JPEG photos. Note that
    this will not remove exif tags applied by other Open Camera settings that apply EXIF metadata (e.g.
    location/geotagging, artist, copyright etc). Those other options are independent and will override this
    setting. Also note that RAW/DNG and videos are not affected.</p>

<p><b>Artist</b> - If text is entered in this setting, then the text will be stored in the image's Exif metadata as the
<p><b>Artist</b> - If text is entered in this setting, then the text will be stored in the image's Exif metadata as the
    "Artist" tag. Only supported for JPEG format. Not supported for RAW photos (DNG format).</p>
    "Artist" tag. Only supported for JPEG format. Not supported for RAW photos (DNG format).</p>


+46 −0
Original line number Original line Diff line number Diff line
@@ -47,6 +47,52 @@
<p>&lt; <small><a href="index.html">Main Page.</a></small></p>
<p>&lt; <small><a href="index.html">Main Page.</a></small></p>


<pre>
<pre>
Version 1.51.1 (2023/01/02)

FIXED   Fix crashes for Camera2 API.

Version 1.51 (2022/12/21)

FIXED   Gallery thumbnail had incorrect orientation on some Android 10+ devices.
FIXED   Focus bracketing images came out underexposed on some devices since
        version 1.50 (e.g. Pixel 6 Pro).
FIXED   Problems with NR, fast burst and long manual exposures on some devices (e.g., Pixel 6 Pro).
FIXED   Face detection on-screen icon shouldn't show in camera vendor extension modes (as not
        supported).
FIXED   For Camera2 API, red eye flash was incorrectly being shown even on devices that didn't
        support it.
FIXED   Not saving location exif information for Camera2 API on some devices (e.g., Pixel 6 Pro).
FIXED   Crashed recording video on some devices and resolutions (e.g. Pixel 6 Pro at 1920x1440) if
        those resolutions didn't support the same frame rate as other resolutions.
FIXED   Don't display error message if using volume keys to turn auto-level on or off in RAW or
        Panorama mode (unless device doesn't support auto-level at all).
ADDED   New option Settings/Photo settings/"Remove device EXIF data" to remove device metadata from
        JPEG photos.
ADDED   Shading for auto-level and crop guides, to darken the preview outside of the region of
        interest.
ADDED   Display message to hold device steady when using X-Night photo mode.
ADDED   New option Settings/Photo settings/"HDR tonemapping" to choose tonemapping algorithm used
        for HDR photo mode.
UPDATED Applied a timeout of 1 second for focusing with Camera2 API.
UPDATED Made it easier to zoom to 1x zoom using seekbar on devices that can zoom out to ultra-wide
        camera.
UPDATED Make zoom seekbar snap to powers of two (for Camera2 API).
UPDATED No longer switch to manual mode in DRO and NR photo modes, as on some devices this meant
        losing the benefit of manufacturer algorithms.
UPDATED Volume key down now supports pause/resume video on Android 7+ when recording video, if
        option for volume keys is set to "Take photo (or start/stop video recording)".
UPDATED Apply a dimmed effect when reopening camera or switching modes (for Camera2 API).
UPDATED Improved look of on-screen level line.
UPDATED On-screen pitch and compass lines now show smaller intervals as camera zooms in.
UPDATED Improvement to HDR algorithm for dark scenes.
UPDATED Camera2 extension night mode now adds "_Night" to filename.
UPDATED Default to Camera2 API for some devices (will only take affect for new installs or if
        resetting settings).
UPDATED Default to flash off instead of flash auto.
UPDATED DRO, HDR, NR modes no longer activate showing full on-screen info toast when opening camera.
UPDATED Use system toasts without custom views when appropriate.
UPDATED Display current value for photo stamp font size and colour in preference summary.

Version 1.50.1 (2022/06/08)
Version 1.50.1 (2022/06/08)


FIXED   Crash on OPPO devices for old camera API introduced in 1.50.
FIXED   Crash on OPPO devices for old camera API introduced in 1.50.
+5 −0
Original line number Original line Diff line number Diff line
@@ -80,6 +80,8 @@
responsive ads won't show (at least on my Nexus 6)!
responsive ads won't show (at least on my Nexus 6)!
If any code is changed here, make sure layout is still good and ads show on laptop, Nexus 6 and Galaxy Nexus.
If any code is changed here, make sure layout is still good and ads show on laptop, Nexus 6 and Galaxy Nexus.
-->
-->
<!-- Remember that ad must not be more than 30% of total page content height (i.e., total page, not just what's
on screen in the viewport. -->
<!--<a href="Screenshot_2014-09-22-14-34-48.jpg">
<!--<a href="Screenshot_2014-09-22-14-34-48.jpg">
<img src="Screenshot_2014-09-22-14-34-48_thumbversion.jpg" alt="Screenshot" title="Screenshot" style="max-width:100%">
<img src="Screenshot_2014-09-22-14-34-48_thumbversion.jpg" alt="Screenshot" title="Screenshot" style="max-width:100%">
</a>-->
</a>-->
@@ -118,6 +120,7 @@ browsers -->
<li>Overlay a choice of grids and crop guides.</li>
<li>Overlay a choice of grids and crop guides.</li>
<li>Optional GPS location tagging (geotagging) of photos and videos; for photos this includes compass direction (GPSImgDirection, GPSImgDirectionRef).</li>
<li>Optional GPS location tagging (geotagging) of photos and videos; for photos this includes compass direction (GPSImgDirection, GPSImgDirectionRef).</li>
<li>Apply date and timestamp, location coordinates, and custom text to photos; store date/time and location as video subtitles (.SRT).</li>
<li>Apply date and timestamp, location coordinates, and custom text to photos; store date/time and location as video subtitles (.SRT).</li>
<li>Option to remove device exif metadata from photos.</li>
<li>Panorama, including for front camera.</li>
<li>Panorama, including for front camera.</li>
<li>Support for <a href="help.html#hdr">HDR</a> (with auto-alignment and ghost removal) and Exposure Bracketing.</li>
<li>Support for <a href="help.html#hdr">HDR</a> (with auto-alignment and ghost removal) and Exposure Bracketing.</li>
<li>Support for Camera2 API: manual controls (with optional focus assist); burst mode; RAW (DNG) files; camera vendor extensions; slow motion video; log profile video.</li>
<li>Support for Camera2 API: manual controls (with optional focus assist); burst mode; RAW (DNG) files; camera vendor extensions; slow motion video; log profile video.</li>
@@ -151,6 +154,8 @@ browsers -->


<!-- don't have ads too close to download links! -->
<!-- don't have ads too close to download links! -->
<hr>
<hr>
<!-- Remember that ad must not be more than 30% of total page content height (i.e., total page, not just what's
on screen in the viewport. -->
<!-- start adsense code -->
<!-- start adsense code -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- contents_ad -->
<!-- contents_ad -->
+7 −1
Original line number Original line Diff line number Diff line
@@ -21,7 +21,8 @@ android {
        // also need build tools at least 21 to avoid Google Play 64-bit warning (required from 1 August 2019)
        // also need build tools at least 21 to avoid Google Play 64-bit warning (required from 1 August 2019)


        testApplicationId "net.sourceforge.opencamera.test"
        testApplicationId "net.sourceforge.opencamera.test"
        testInstrumentationRunner "android.test.InstrumentationTestRunner"
        //testInstrumentationRunner "android.test.InstrumentationTestRunner"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    }


    buildTypes {
    buildTypes {
@@ -63,4 +64,9 @@ dependencies {
    implementation 'foundation.e:elib:0.0.1-alpha11'
    implementation 'foundation.e:elib:0.0.1-alpha11'


    testImplementation 'junit:junit:4.13.1'
    testImplementation 'junit:junit:4.13.1'

    // newer AndroidJUnit4 InstrumentedTest
    androidTestImplementation "androidx.test:runner:1.4.0"
    androidTestImplementation "androidx.test:rules:1.4.0"
    androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
}
}
+17 −0
Original line number Original line Diff line number Diff line
package net.sourceforge.opencamera;

import org.junit.experimental.categories.Categories;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

/** Tests for Avg algorithm - only need to run on a single device
 *  Should manually look over the images dumped onto DCIM/
 *  To use these tests, the testdata/ subfolder should be manually copied to the test device in the DCIM/testOpenCamera/
 *  folder (so you have DCIM/testOpenCamera/testdata/). We don't use assets/ as we'd end up with huge APK sizes which takes
 *  time to transfer to the device every time we run the tests.
 *  On Android 10+, scoped storage permission needs to be given to Open Camera for the DCIM/testOpenCamera/ folder.
 */
@RunWith(Categories.class)
@Categories.IncludeCategory(AvgTests.class)
@Suite.SuiteClasses({InstrumentedTest.class})
public class AvgTestSuite {}
Loading