Will Verduzco · Apr 16, 2014 at 04:00 pm

HTC Releases Dual Lens SDK for the HTC One M8 (2014)

One of the highlights of the HTC One M8 is its new dual lens camera system. Termed “Duo Camera,” this innovative system allows the device to capture depth data in addition to standard imaging data. The Duo Camera System then maps this captured distance information to each pixel taken by the main camera in order to achieve various types of effects such as depth-of-field blur ( i.e. bokeh), as well as Lytro-style refocusing effects.

Up until now, the full functionality of the Duo Camera System has only been accessible through HTC’s first party camera application. Today, however, HTC opened up the Duo Camera System API for use by third party developers.

The Dual Lens SDK currently consists of two APIs: Dual Lens and DimensionPlus. The Dual Lens API allows developers to obtain and manage a bokeh strength map mask that can be mapped to the main camera’s image data. The DimensionPlus, API on the other hand, allows developers to export to the DimensionPlus file format in order to keep both depth and image data in one file.

The Dual Lens SDK is currently available in the form of an initial preview, so it is possible that more functionality will be added in the future or that current implementations may not be compatible with future software revisions. That said, it’s exciting that HTC decided to open up the APIs behind its most notable camera feature.

Developers looking to play around with and develop for the HTC Duo Camera System should head over to the HTC Dual Lens SDK site to learn more.


_________
Want something on the XDA Portal? Send us a tip!

Will Verduzco

willverduzco is an editor on XDA-Developers, the largest community for Android users. Will Verduzco is the Portal Administrator for the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. He is also a Johns Hopkins University graduate in neuroscience and is now currently studying to become a physician. View willverduzco's posts and articles here.
Mario Tomás Serrafero · Jul 5, 2015 at 11:00 am · 2 comments

Sunday Debate: Which Factors Caused HTC’s Woes?

Join us in a fun Sunday Debate on HTC's situation. Come with your opinions and feel free to read some of our thoughts, then pick your side or play devil’s advocate to get your voice heard and engage in friendly discussion. You can read our food-for-thought or jump straight into the fray below!     HTC is underperforming, and there isn’t much of a way of denying this. In April, their revenue nearly declined 40%, plummeting after the HTC One M9 had...

XDA NEWS
Mathew Brack · Jul 4, 2015 at 05:07 pm · 4 comments

HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading speed, audio and selfies. Whilst you are surely astounded that HTC won every time, the tests were incredibly biased and their release shows something concerning about the company and how they are performing in the current market.     One of the many reasons companies tend to utilize blind trials is when they feel that their product is comparable or better than its competitors. This leads to the assumption...

XDA NEWS
Mario Tomás Serrafero · Jul 4, 2015 at 12:00 pm · 5 comments

XDA Picks: Best Apps of the Week (June 27 – July 4)

Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and here are our top picks for this week.  ...

XDA NEWS
Share This