[MOD] Custom camera HAL with 4K UHD/DCI and 30 FPS video recording


Installing this mod will give you the ability to record 4K UHD/DCI videos on your OnePlus X, as well as record videos at a consistent 30 frames per second in all lighting conditions (no more frame drops/stuttering when recording videos at night). This mod is compatible with most ROMs.


This is a custom camera HAL I created using CAF's vanilla camera HAL sources. As a lot of reverse engineering was involved in this, there are some caveats (see below).

Note that some ROMs using older proprietary camera libraries (such as the newest version of H2OS) will not benefit from 30 FPS video or my anti-shake algorithm.

If the 4K option does not appear in the camera app you're using, or your camera stops working, then clear data for the camera app that you're using.


Notable features:
  • 4K UHD and DCI video recording
  • Consistent 30 FPS video recording in all lighting conditions
  • Intelligent anti-shake algorithm (significantly reduces motion blur when capturing photos)
  • Faster autofocus in low lighting conditions
  • No stuttering in camera viewfinder
  • Improved photo quality
  • Photo capture up to 4208x3120 resolution (instead of 4160x3120)

Caveats:

  • No ClearImage
  • No manual mode only in the OnePlus Camera app (other apps that support manual ISO and manual exposure work fine)

Installation instructions:
Install the 60 Hz Anti-banding file if you are in any of the following countries:


American Samoa
Anguilla
Antigua
Aruba
Bahamas
Belize
Bermuda
Brazil
Canada
Cayman Islands
Colombia
Costa Rica
Cuba
Dominican Republic
Ecuador
El Salvador
Guam
Guatemala
Guyana
Haiti
Honduras
Liberia
Mexico
Micronesia
Montserrat Islands
Nicaragua
Okinawa
Palmyra Atoll
Panama
Peru
Philippines
Puerto Rico
St. Kitts & Nevis Islands
Saudi Arabia
South Korea
Suriname
Tahiti
Taiwan
Trinidad & Tobago
United States
Venezuela
Virgin Islands


Instructions:

  1. Download the camera HAL and copy it to your device
  2. Reboot to recovery
  3. Install the camera HAL
  4. OPTIONAL install the 60 Hz Anti-banding file ONLY if you are in any of the countries listed above
  5. Reboot

Downloads:
Camera HAL: http://forum.xda-developers.com/devd...t/dl/?id=18115

60 Hz Anti-banding: http://forum.xda-developers.com/devd...t/dl/?id=17356


Original Post - XDA
Previous
Next Post »

Welcome To OnePlusDEV Blog