[MOD] Camera from HTC Amaze 4G, v0.11

Search This thread

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
== important =======================================================
Development is frozen.
Thank you all for your help in debug and for your thanksful posts.
It is possible that I will return to development of this project, but this is unpredictable for now.
Thanks to all of You!
If someone wants to continue development of this camera or to port any other camera he could see source code and changes I've made here:.
https://github.com/igorbezkrovny/android_htc_evo3d_camera_from_amaze4g

=================================================================
HTC Amaze 4G camera app is amazing.

(for example, http://www.youtube.com/watch?v=T9AmViR_twM)

========================================================
app: HTC Camera application
base: HTC Amaze 4G camera app
platform: HTC EVO 3D (GSM & CDMA)
version: 0.11
how to install:
1) for non-rooted phone install apk
2) for rooted phone flash zip file via recovery or just install apk
programmer: Igor Bezkrovny
source code: https://github.com/igorbezkrovny/android_htc_evo3d_camera_from_amaze4g
========================================================
I have created poll for two questions: camera name for flashable zip & photo file naming convention. Also you can suggest something (last question in the poll).
Please answer to questions only once.
PLEASE ANSWER TO POLL. THX

* In order to access the custom image parameters you have to set the scene mode to manual. Then and only then will the white balance, contrast, brightness, sharpness, etc. be available to you.

Tweaks:
1. 3D resolution changed to 2048x1152
2. iso 1250 (realy it seems like iso 450-500)
3. long touch makes photo
4. Jpeg quality set to 100%

Known issues:
0. Some EVO 3D has smaller second camera sensor! Try 2048x1152 version first and if it crashes in 3D mode, use 1920x1080 version
1. BurstShot and SmartShot disabled - it seems we need updated kernel with ZERO SHUTTER LAG driver included. So, if HTC doesn't give even kernel src for us we have only choice to wait for new stock kernel with ZSL driver.
2. Face/Blinks detections doesn't work in 3D
3. Disabled Panorama and Portrait scenes when in 3D.
4. CDMA issue: it seems that for most cdma phones Panorama stucks in 2D :(
5. Codec MPEG can't be used with bitrate higher than 12 mbps. Codec H264 can be used with any bitrate.

Changelog:
0.11 (GSM&CDMA 2048x1152 in 3D) Flashable zip
0.11 (GSM&CDMA 1920x1080 in 3D) Flashable zip
0.11 (GSM&CDMA 2048x1152 in 3D) standalone apk
0.11 (GSM&CDMA 1920x1080 in 3D) standalone apk
1. Codec H264 is automaticaly used for 3D video recording.
2. Flash is always turned ON if flash mode is "ON" (when taking picture). It is very useful to see what you are shooting when taking picture in low light conditions.

0.10 (GSM&CDMA 2048x1152 in 3D) Flashable zip
0.10 (GSM&CDMA 1920x1080 in 3D) Flashable zip
0.10 (GSM&CDMA 2048x1152 in 3D) standalone apk
0.10 (GSM&CDMA 1920x1080 in 3D) standalone apk
* You should select "H264" codec to record video in 3D. Codec h264 will be autoselected for 3D in next version
1. Added option to set 50HZ/60HZ antibanding.
2. Removed video format selection. It doesn't needed! 3GP and MP4 are just a containers. Video encoding bitrate is the only important to reduce file size.
3. Added codec selection (H264/MPEG)
4. Enabled video encoding bitrate selection for 720p and 540p
5. Added more bitrate choices.

0.09 - removed because it always saves video into 3GP container
1. 3GP/MP4 video format selection
2. Added Camera version to Tutorial title
3. Universal flash script rewritten
4. Added autobuilder to sources in git

0.08 (GSM 2048x1152 in 3D)
0.08 (GSM 1920x1080 in 3D)
0.08 (CDMA 2048x1152 in 3D)
0.08 (CDMA 1920x1080 in 3D)
1. Preview after capture -> Share ->"Midnight" button changed to "More..."
2. Install script fixed

0.08 with video 1920x1080 recording. DEV VERSION. Tweaks in KERNEL, media_profiles.xml & possibly in libxxxxxxx.so needed

1. test HTCCamera.apk that is configured to record 1920x1080 video, but it doesn't work for me.

0.07
1. Fixed code to correctly disable Panorama and Portrait in 3D mode

0.06 (has issue, use 0.07)
1. Disabled Panorama and Portrait scenes when in 3D.

0.05
1. fixed FC in Video Recording

0.04
1. Gallery is now available directly from camera screen after taking Panorama (SweepShot).

0.03
1. fixed FC in 3D mode when battery is lower than 15%
2. SmartShot/BurstMode disabled (if you select it, mode will not change)

0.02
1. fixed FC in 3D, but face detection and blink detection works now in 2D!
2. Jpeg QUALITY set to 100% (was 85%)

0.01
1. Ported from version of Baadnewz & CdTDroiD link
2. Tweaked
3. Fixed FC in 3D mode by disabling for both modes face detection and blink detection.

If you found not listed issue:
1. Reboot phone
2. Install and run android application "catlog", press "menu"->"Record"
3. Launch Camera and take video till camera FC
4. "catlog"->"menu"->"stop". Log file created in /sdcard/catlog_saved_logs/
5. email me with attached log file: [underscore]iga[underscore] at mail.ru or reply with attached log file in this post. Also please specify your ROM version.

========================================================
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
========================================================

divedr made comparison of different cameras/pictures:
Evo3DCamComp_1.jpg

The dynamic range from the Amaze port is superior to the stock and modded stock cameras. The lower set of images illustrate the resolution (level of detail) from the Amaze port is better than stock or the modded stock camera from Clean ROM 2.8.
 

Attachments

  • HTCAmaze_camera_ported2EVO3D_v0_03_by_bio_signed.zip
    8 MB · Views: 3,241
  • HTCAmaze_camera_ported2EVO3D_v0_02_by_bio_signed.zip
    8 MB · Views: 560
  • HTCAmaze_camera_ported2EVO3D_v0_04_by_bio_signed.zip
    8 MB · Views: 578
  • HTCAmaze_camera_ported2EVO3D_v0_05_by_bio_signed.zip
    8 MB · Views: 479
  • HTCAmaze_camera_ported2EVO3D_v0_07_by_bio_signed.zip
    8 MB · Views: 5,182
  • HTCAmaze_camera_ported2EVO3D_v0_08_2048x1152_gsm_by_bio_signed.zip
    8 MB · Views: 4,752
  • HTCAmaze_camera_ported2EVO3D_v0_08_1920x1080_gsm_by_bio_signed.zip
    8 MB · Views: 3,732
  • HTCAmaze_camera_ported2EVO3D_v0_08_2048x1152_cdma_by_bio_signed.zip
    8 MB · Views: 4,680
  • HTCAmaze_camera_ported2EVO3D_v0_08_1920x1080_cdma_by_bio_signed.zip
    8 MB · Views: 5,245
  • HTCCamera_1920x1080_v0.08_by_bio.apk
    6.3 MB · Views: 1,653
  • HTCCamera_2048x1152_v0.08_by_bio.apk
    6.3 MB · Views: 1,982
  • HTCCamera_1920x1080_v0.10_by_bio.apk
    6.3 MB · Views: 1,341
  • HTCCamera_2048x1152_v0.10_by_bio.apk
    6.3 MB · Views: 1,627
  • HTCCamera_1920x1080_v0.10_by_bio_signed.zip
    8 MB · Views: 1,048
  • HTCCamera_2048x1152_v0.10_by_bio_signed.zip
    8 MB · Views: 1,366
  • HTCCamera_1920x1080_v0.11_by_bio.apk
    6.3 MB · Views: 10,591
  • HTCCamera_2048x1152_v0.11_by_bio.apk
    6.3 MB · Views: 15,024
  • HTCCamera_1920x1080_v0.11_by_bio_signed.zip
    8 MB · Views: 9,639
  • HTCCamera_2048x1152_v0.11_by_bio_signed.zip
    8 MB · Views: 15,259
Last edited:

snerism

Senior Member
Jun 9, 2006
91
10
Dubai UAE
www.youtube.com
I concur either.. no need for root explorer! - Download and Install

My device loaded with Turge's "KingCobra3D 1.4" works well!

---------------------------------------------------------------------------------------------------
update: 2D & 3D pics are working .. got FC'ed on video recording - dozen of attempts, still of no avail..
---------------------------------------------------------------------------------------------------
 
Last edited:

harpss1ngh

Senior Member
May 14, 2010
506
60
London
Is this better than the other tweaked one that was posted? Also does this have 0% image compression? What is the pic quality like compared to the standard evo 3d camera apk?

Good job with the tweaks, finally GSM users are getting closer to something the CDMA users are getting in their awesome roms...
 
Last edited:
  • Like
Reactions: bigjohn6582

Turge

Inactive Recognized Developer
Sep 20, 2008
4,789
20,760
Hamilton
venomroms.com
Looks very promising... I tested this on King Cobra 1.4 and it FC'd on scenes SmartShot and SweepShop, it froze on BurstShot (had to FC it manually) and ClearShot HDR doesn't seem to make a difference (do we need special hardware?).

Everything else appears to work properly.

I like the camera though and I'll probably use it for bit. Nice work porting this over.

EDIT: Here's a flashable zip of the 2D+3D HTC Amaze camera...
 

Attachments

  • HTCAmazeCamera.zip
    6.3 MB · Views: 1,444
Last edited:

FitzysN6

Senior Member
Nov 1, 2010
287
67
Adelaide
Looks very promising... I tested this on King Cobra 1.4 and it FC'd on scenes SmartShot and SweepShop, it froze on BurstShot (had to FC it manually) and ClearShot HDR doesn't seem to make a difference (do we need special hardware?).

Everything else appears to work properly.

I like the camera though and I'll probably use it for bit. Nice work porting this over.

EDIT: Here's a flashable zip of the 2D+3D HTC Amaze camera...

Cheers.

Same FC issues for me, like the look of the sweepshot thing though. One of my very old Nokia's used to do that..
 

FitzysN6

Senior Member
Nov 1, 2010
287
67
Adelaide
any FC after video recording and is it really 2MP front camera resolution?

Video okay using HD (1280*720)@20mbps. Both front & back camera's, both have the same time remaining to record ! Video looks great on the phone, haven't viewed on my 65" TV so can't comment on that.

Front camera pic is 182kb - 720*1280 res.

Hope this is what you meant.

Cheers

Fitzy
 

justj

Senior Member
Jul 25, 2009
267
18
Hampton Court
Video recording FC after finish recording on QHD and lower res.
Video recording FC straight away when on HD setting.
Camera -smartshoot FC
SweepShot FC
BurstShot Freeze.
 

dashrink

Senior Member
Apr 23, 2009
1,064
146
The 2d and 3d pics are working, but the video fcs no matter what i do....

Sent from my HTC EVO 3D X515m using XDA App
 

daniels7

Senior Member
Jul 12, 2011
128
124
Berlin
Wow, great work.

Taking 2D and 3D Pictures works quite good, but almost every mode except Automatic lets the App crash
 

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
The 2d and 3d pics are working, but the video fcs no matter what i do....

Sent from my HTC EVO 3D X515m using XDA App

1) Backup all files you will replace
2) You can try to replace media_profiles.xml and reboot
3) If it not helped, you can try to replace other files.

4. You may need to manually place files from original HTC_SENSATION!!!_HTCAmaze_Camera_MODv3_Repacked.zip except HTCCamera.apk to proper folders. (media_profiles.xml, /lib/*.so, /framework/*.*). Clear cache & dalvik cache. WARNING: it's possible that in your rom something is incompatible with some .so. It can take evo to continous bootloop. (if so - remove and install battery back , go to recovery and restore files you replaced via adb)
 
Last edited:

igor.bezkrovny

Senior Member
Aug 23, 2011
136
176
Kyiv
Wow, great work.

Taking 2D and 3D Pictures works quite good, but almost every mode except Automatic lets the App crash

What modes are not working?
For me works: Auto/HDR/Panorama/Sport/Macro/Portrait/Manual

You can try this
4. You may need to manually place files from original HTC_SENSATION!!!_HTCAmaze_Camera_MODv3_Repacked.zip except HTCCamera.apk to proper folders. (media_profiles.xml, /lib/*.so, /framework/*.*). Clear cache & dalvik cache. WARNING: it's possible that in your rom something is incompatible with some .so. It can take evo to continous bootloop. (if so - remove and install battery back , go to recovery and restore files you replaced via adb)

But re-read warning again!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 93
    == important =======================================================
    Development is frozen.
    Thank you all for your help in debug and for your thanksful posts.
    It is possible that I will return to development of this project, but this is unpredictable for now.
    Thanks to all of You!
    If someone wants to continue development of this camera or to port any other camera he could see source code and changes I've made here:.
    https://github.com/igorbezkrovny/android_htc_evo3d_camera_from_amaze4g

    =================================================================
    HTC Amaze 4G camera app is amazing.

    (for example, http://www.youtube.com/watch?v=T9AmViR_twM)

    ========================================================
    app: HTC Camera application
    base: HTC Amaze 4G camera app
    platform: HTC EVO 3D (GSM & CDMA)
    version: 0.11
    how to install:
    1) for non-rooted phone install apk
    2) for rooted phone flash zip file via recovery or just install apk
    programmer: Igor Bezkrovny
    source code: https://github.com/igorbezkrovny/android_htc_evo3d_camera_from_amaze4g
    ========================================================
    I have created poll for two questions: camera name for flashable zip & photo file naming convention. Also you can suggest something (last question in the poll).
    Please answer to questions only once.
    PLEASE ANSWER TO POLL. THX

    * In order to access the custom image parameters you have to set the scene mode to manual. Then and only then will the white balance, contrast, brightness, sharpness, etc. be available to you.

    Tweaks:
    1. 3D resolution changed to 2048x1152
    2. iso 1250 (realy it seems like iso 450-500)
    3. long touch makes photo
    4. Jpeg quality set to 100%

    Known issues:
    0. Some EVO 3D has smaller second camera sensor! Try 2048x1152 version first and if it crashes in 3D mode, use 1920x1080 version
    1. BurstShot and SmartShot disabled - it seems we need updated kernel with ZERO SHUTTER LAG driver included. So, if HTC doesn't give even kernel src for us we have only choice to wait for new stock kernel with ZSL driver.
    2. Face/Blinks detections doesn't work in 3D
    3. Disabled Panorama and Portrait scenes when in 3D.
    4. CDMA issue: it seems that for most cdma phones Panorama stucks in 2D :(
    5. Codec MPEG can't be used with bitrate higher than 12 mbps. Codec H264 can be used with any bitrate.

    Changelog:
    0.11 (GSM&CDMA 2048x1152 in 3D) Flashable zip
    0.11 (GSM&CDMA 1920x1080 in 3D) Flashable zip
    0.11 (GSM&CDMA 2048x1152 in 3D) standalone apk
    0.11 (GSM&CDMA 1920x1080 in 3D) standalone apk
    1. Codec H264 is automaticaly used for 3D video recording.
    2. Flash is always turned ON if flash mode is "ON" (when taking picture). It is very useful to see what you are shooting when taking picture in low light conditions.

    0.10 (GSM&CDMA 2048x1152 in 3D) Flashable zip
    0.10 (GSM&CDMA 1920x1080 in 3D) Flashable zip
    0.10 (GSM&CDMA 2048x1152 in 3D) standalone apk
    0.10 (GSM&CDMA 1920x1080 in 3D) standalone apk
    * You should select "H264" codec to record video in 3D. Codec h264 will be autoselected for 3D in next version
    1. Added option to set 50HZ/60HZ antibanding.
    2. Removed video format selection. It doesn't needed! 3GP and MP4 are just a containers. Video encoding bitrate is the only important to reduce file size.
    3. Added codec selection (H264/MPEG)
    4. Enabled video encoding bitrate selection for 720p and 540p
    5. Added more bitrate choices.

    0.09 - removed because it always saves video into 3GP container
    1. 3GP/MP4 video format selection
    2. Added Camera version to Tutorial title
    3. Universal flash script rewritten
    4. Added autobuilder to sources in git

    0.08 (GSM 2048x1152 in 3D)
    0.08 (GSM 1920x1080 in 3D)
    0.08 (CDMA 2048x1152 in 3D)
    0.08 (CDMA 1920x1080 in 3D)
    1. Preview after capture -> Share ->"Midnight" button changed to "More..."
    2. Install script fixed

    0.08 with video 1920x1080 recording. DEV VERSION. Tweaks in KERNEL, media_profiles.xml & possibly in libxxxxxxx.so needed

    1. test HTCCamera.apk that is configured to record 1920x1080 video, but it doesn't work for me.

    0.07
    1. Fixed code to correctly disable Panorama and Portrait in 3D mode

    0.06 (has issue, use 0.07)
    1. Disabled Panorama and Portrait scenes when in 3D.

    0.05
    1. fixed FC in Video Recording

    0.04
    1. Gallery is now available directly from camera screen after taking Panorama (SweepShot).

    0.03
    1. fixed FC in 3D mode when battery is lower than 15%
    2. SmartShot/BurstMode disabled (if you select it, mode will not change)

    0.02
    1. fixed FC in 3D, but face detection and blink detection works now in 2D!
    2. Jpeg QUALITY set to 100% (was 85%)

    0.01
    1. Ported from version of Baadnewz & CdTDroiD link
    2. Tweaked
    3. Fixed FC in 3D mode by disabling for both modes face detection and blink detection.

    If you found not listed issue:
    1. Reboot phone
    2. Install and run android application "catlog", press "menu"->"Record"
    3. Launch Camera and take video till camera FC
    4. "catlog"->"menu"->"stop". Log file created in /sdcard/catlog_saved_logs/
    5. email me with attached log file: [underscore]iga[underscore] at mail.ru or reply with attached log file in this post. Also please specify your ROM version.

    ========================================================
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    ========================================================

    divedr made comparison of different cameras/pictures:
    Evo3DCamComp_1.jpg

    The dynamic range from the Amaze port is superior to the stock and modded stock cameras. The lower set of images illustrate the resolution (level of detail) from the Amaze port is better than stock or the modded stock camera from Clean ROM 2.8.
    5
    New version v0.10 uploaded.

    Igor, as you asked here are the data from the comparisons I made. As they say a picture is worth a thousand words:

    Evo3DCamComp_2.jpg


    The dynamic range from the Amaze port is superior to the stock and modded stock cameras. The lower set of images illustrate the resolution (level of detail) from the Amaze port is better than stock or the modded stock camera from Clean ROM 2.8.

    All things considered, if you can enable metering mode selection it would make this port the BEST camera app hands down for the evo 3D. I wouldn't look to change anything before getting metering working. The other parameters (Sweep Shot, Burst, Video CODECs, etc.) are eye candy compared to the metering modes. The ability to change metering modes affects the capabilities of a digiital imaging system significantly. The ability to switch metering modes is a real photographic tool which when enabled would endow the evo 3D with significantly increased abilities as a photographic instrument. Igor if you can pull this off it would be a coup!

    Thanks again for all the hard work!
    3
    Overview

    I would like to start by apologizing for the extremely long post.I have made an attempt at evaluating the ported Amaze camera to the stock and modified stock apps available. There are some pretty interesting results.

    In order to make a valid comparison we first have to identify and understand the variables involved in any digital imaging system which determine the ultimate image quality that can be attained. First and foremost are the limitations placed on the system by virtue of the innate functionality imposed by hardware specifications. You cant make a 5MP sensor an 8MP sensor however, software plays an equally important role in determining the ultimate image output of the system. This is best illustrated by comparison of the The Nikon D80 and the Sony DSLR-A100. Both use the same APS c Sony sensoy however the performance, image quality and characteristics of the two camera bodies are significantly different. This is largely due to differing ASIC technology and image processing software. If you want to read more about the technical aspects of digital imaging systems a good place to start is here: http://www.dpreview.com/learn/glossary.asp

    Under standardized conditions I shot several test images using the evo 3D and the Amaze port, stock camera and the modded stock camera of Clean ROM 2.8. The results are a bit surprising. It would seem that the Amaze port brings to the evo 3D something which the modded stock cameras do not. It would appear that the iso boost from the Amaze port does more than boost the iso. Looking closely at the image histograms it would appear it gives an increased dynamic range of 1 to 2 stops. This is extremely significant. The Amaze port low light performance appears to be measurably better than the stock or modded stock cameras can deliver.

    In the past the overall consensus regarding HTCs methodology in developing camera software is to develop a generic application for a relatively similar group of hardware iterations and use switches within the software to accomodate the various hardware configurations. It is reasonable to beieve this is the case as it is from a production standpoint a cost effective strategy. If that is the case it would seem the Amaze camera ap may have some fundamental differences (seperate from software switches) as compared to stock or modded stock cameras.

    This inclines me to opine that what we have here in the Amaze port may represent a fundamentally different iteration of the camera application perhaps marking HTCs cutoff point for sundowning the camera app wich shipped with the evo 3D.

    Whatever the functionality and image quality provided by the Amaze port offers significant advantages over stock. If there is a way to enable selection of different metering modes (which I do not believe are enabled in the Amaze as there are no references to such functionality in the HTC user manual) it would make this THE hands down BEST camera app for the 3D.

    Agan sorry for the LOOONG post!

    Nice work Igor, please keep it up, its greatly appreciated!
    3
    camera now works in both modes (2d + 3d)
    3
    On CDMA. Infected Eternity.
    Everything but sweepshot (Force Closes) and taking 3D pics work. When attempting to take a 3D pic it sits as if it's saving. Then crashes to homewcreen everytime. :-\

    I don't have cdma evo 3d. If you want to be a tester on cdma, we will make a cdma camera together. If so - pm me, do not post here.