Newsletter
REAL HACKER NEWS
  • Home
  • REVIEWS
  • SECURITY
  • GAMING
  • SMARTPHONES
  • CAMERA
  • COMPUTERS
    • LAPTOP
  • APPLICATIONS
  • AUDIO
No Result
View All Result
  • Home
  • REVIEWS
  • SECURITY
  • GAMING
  • SMARTPHONES
  • CAMERA
  • COMPUTERS
    • LAPTOP
  • APPLICATIONS
  • AUDIO
No Result
View All Result
REAL HACKER NEWS
No Result
View All Result
Home APPLICATIONS

Better Device Compatibility with CameraX

Real Hacker Staff by Real Hacker Staff
November 19, 2022
in APPLICATIONS
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter



Posted by The Android Crew

Related articles

Why can’t I use my iPhone as a webcam on my Apple TV?

Why can’t I use my iPhone as a webcam on my Apple TV?

April 1, 2023
Happy Birthday Apple – these are iMore’s favorite products of all time

Happy Birthday Apple – these are iMore’s favorite products of all time

April 1, 2023

CameraX is an Android Jetpack library that makes it straightforward to include digicam performance immediately in your Android app. That’s why we focus closely on machine compatibility out-of-the-box, so you’ll be able to concentrate on what makes your app distinctive.

On this publish, we’ll take a look at 3 ways CameraX makes builders’ lives simpler in terms of machine compatibility. First, we’ll take a peek into our CameraX Check Lab the place we check over 150 bodily telephones every single day. Second, we’ll take a look at Quirks, the mechanism CameraX makes use of to mechanically deal with machine inconsistencies. Third, we’ll focus on the methods CameraX makes it simpler to develop apps for foldable telephones.

CameraX Check Lab

A single rack in our CameraX Test Lab on the left, and on the right, a moving image of the inside of a test inclusure with rotating phone mount 
(Left) A single rack in our CameraX Check Lab. Every check enclosure comprises two similar Android telephones for testing back and front cameras. (Proper) A GIF displaying the within of a check inclosure, with a rotating cellphone mount (for testing portrait and panorama orientations) and a high-resolution check chart (not pictured).

We constructed the CameraX Check Lab to make sure CameraX works on the Android units most individuals have of their pockets. The Check Lab opened in 2019 with 52 cellphone fashions. At the moment, the Check Lab has 150 cellphone fashions. We prioritize units with probably the most each day energetic customers over the previous 28 days (28DAUs) and units that leverage a various vary of methods on a chip (SoCs). The Check Lab at present covers over 750 million 28DAUs. We additionally check many various Android variations, going again to Android 5.1 (Lollipop).

To generate dependable check outcomes, every cellphone mannequin has its personal check enclosure to manage for gentle and different environmental components. Every enclosure comprises two telephones of the identical mannequin to simplify testing the back and front cameras. On the alternative facet of the check enclosure from the telephones, there’s a high-resolution check chart. This chart has many industry-standard checks for digicam attributes like colour correctness, decision, sharpness, and dynamic vary. The chart additionally has some particular components for purposeful checks like face detection.

While you undertake CameraX in your app, you get the peace of mind of this steady testing throughout many units and API ranges. Moreover, we’re repeatedly bettering the Check Lab, together with including new telephones based mostly on market tendencies to make sure that the vast majority of your customers are properly represented. See our present check machine checklist for the newest stock in our Check Lab.

Quirks

Google offers a Digicam Picture Check Suite in order that OEM’s cameras meet a baseline of consistency. Nonetheless, when coping with the big selection of units that run Android, there will be variations in the long run consumer digicam expertise. CameraX contains an abstraction layer, referred to as Quirks, to take away these variations in habits in order that CameraX behaves constantly throughout all units with no effort from app builders.

We discover these quirks based mostly on our personal handbook testing, the Check Lab’s computerized testing, and bug stories filed in our public CameraX concern tracker. As of at present, CameraX has over 30 Quirks that mechanically repair habits inconsistencies for builders. Listed below are just a few examples:

  • OnePixelShiftQuirk: Some telephones shift a column of pixels when changing YUV information to RGB. CameraX mechanically corrects for this on these units.
  • ExtensionDisableQuirk: For telephones that don’t help extensions or have damaged habits with extensions, CameraX disables sure extensions.
  • CameraUseInconsistentTimebaseQuirk: Some telephones don’t correctly timestamp video and audio. CameraX fixes the timestamps in order that the video and audio align correctly.

These are only a few examples of how CameraX mechanically handles quirky machine habits. We’ll proceed so as to add extra corrections as we discover them, so app builders gained’t should take care of these one-offs on their very own. When you discover inconsistent habits on a tool you’re testing, you’ll be able to file a problem within the CameraX part detailing the habits and the machine it’s taking place on.

Foldable telephones

Foldables proceed to be the quickest rising smartphone kind issue. Their flexibility in display measurement provides complexity to digicam growth. Listed below are just a few ways in which CameraX simplifies the event of digicam apps on foldables.

CameraX’s Preview use case handles variations between the side ratio of the digicam and the side ratio of the display. With conventional cellphone and pill kind components, this distinction must be small as a result of Part 7.5.5 of the Android Compatibility Definition Doc requires that the “lengthy dimension of the digicam aligns with the display’s lengthy dimension.” Nonetheless, with foldable units the display side ratio can change, so this relationship may not all the time maintain. With CameraX you’ll be able to all the time protect side ratio by filling the PreviewView (which can crop the preview picture) or becoming the picture into the PreviewView (which can end in letterboxing or pillarboxing). Set PreviewView.ScaleType to specify which methodology to make use of.

The rise in foldable units additionally will increase the chance that your app could also be utilized in a multi-window atmosphere. CameraX is ready up for multi-window help out-of-the-box. CameraX handles all facets of lifecycle administration for you, together with the multi-window case the place different apps can take precedence entry of singleton assets, such because the microphone or digicam. This implies no extra effort is required from app builders when utilizing CameraX in a multi-window atmosphere.

We’re all the time searching for extra methods to enhance CameraX to make it even simpler to make use of. With respect to foldables, for instance, we’re exploring methods to let builders name setTargetResolution() with out having to keep in mind the completely different configurations a foldable machine will be in. Control this weblog and our CameraX launch notes for updates on new options!

Getting began with CameraX

Now we have plenty of assets that will help you get began with CameraX. The perfect beginning place is our CameraX codelab. If you wish to dig a bit deeper with CameraX, take a look at our digicam code samples, starting from a primary app to extra superior options like digicam extensions. For an outline of every little thing CameraX has to supply, see our CameraX documentation. When you’ve got any questions, be happy to achieve out to us on our CameraX dialogue group.



Source link

Tags: CameraXCompatibilityDevice
Share76Tweet47

Related Posts

Why can’t I use my iPhone as a webcam on my Apple TV?

Why can’t I use my iPhone as a webcam on my Apple TV?

by Real Hacker Staff
April 1, 2023
0

OK, so hear me out. Wouldn't it be pretty cool if you could use your iPhone as a webcam for...

Happy Birthday Apple – these are iMore’s favorite products of all time

Happy Birthday Apple – these are iMore’s favorite products of all time

by Real Hacker Staff
April 1, 2023
0

Today, on April 1, back in 1976, Apple was founded by Steve Jobs and Steve Wozniak, which eventually led to...

Microsoft Fixes New Azure AD Vulnerability Impacting Bing Search and Major Apps

Microsoft Fixes New Azure AD Vulnerability Impacting Bing Search and Major Apps

by Real Hacker Staff
April 1, 2023
0

Apr 01, 2023Ravie LakshmananAzure / Active Directory Microsoft has patched a misconfiguration issue impacting the Azure Active Directory (AAD) identity...

Cacti, Realtek, and IBM Aspera Faspex Vulnerabilities Under Active Exploitation

by Real Hacker Staff
April 1, 2023
0

Apr 01, 2023Ravie LakshmananCyber Attack / Vulnerability Critical security flaws in Cacti, Realtek, and IBM Aspera Faspex are being exploited...

Millions of Sites at Risk!

Millions of Sites at Risk!

by Real Hacker Staff
April 1, 2023
0

Apr 01, 2023Ravie LakshmananWeb Security / Cyber Threat Unknown threat actors are actively exploiting a recently patched security vulnerability in...

Load More
  • Trending
  • Comments
  • Latest

eSIMs Will Transform the Way You Think About Mobile Data and Security

March 7, 2023

XMOS Launches XVF3800 High-Performance Voice Processor for Enterprise and Consumer Voice Conferencing Platforms

March 7, 2023

Sennheiser Starts Shipping EW-DX Digital Wireless Microphone Series

November 22, 2022

Chinese Hackers Using Russo-Ukrainian War Decoys to Target APAC and European Entities

December 7, 2022

Hello world!

0
US Commodities Regulator Beefs Up Bitcoin Futures Review

US Commodities Regulator Beefs Up Bitcoin Futures Review

0
Bitcoin Hits 2018 Low as Concerns Mount on Regulation, Viability

Bitcoin Hits 2018 Low as Concerns Mount on Regulation, Viability

0
India: Bitcoin Prices Drop As Media Misinterprets Gov’s Regulation Speech

India: Bitcoin Prices Drop As Media Misinterprets Gov’s Regulation Speech

0
It’s April Fools’ Day, Here Are The Best Gaming Gags We’ve Seen

It’s April Fools’ Day, Here Are The Best Gaming Gags We’ve Seen

April 1, 2023
Save up to 35 percent on Logitech’s G PRO X Gaming Headset and more

Save up to 35 percent on Logitech’s G PRO X Gaming Headset and more

April 1, 2023
Always be prompting | TechCrunch

Always be prompting | TechCrunch

April 1, 2023
Pixel Buds Pro’s head tracked Spatial Audio: A wonderful, useless tech

Pixel Buds Pro’s head tracked Spatial Audio: A wonderful, useless tech

April 1, 2023

Recent News

It’s April Fools’ Day, Here Are The Best Gaming Gags We’ve Seen

It’s April Fools’ Day, Here Are The Best Gaming Gags We’ve Seen

April 1, 2023
Save up to 35 percent on Logitech’s G PRO X Gaming Headset and more

Save up to 35 percent on Logitech’s G PRO X Gaming Headset and more

April 1, 2023

Categories

  • APPLICATIONS
  • AUDIO
  • CAMERA
  • COMPUTERS
  • GAMING
  • LAPTOP
  • REVIEWS
  • SECURITY
  • SMARTPHONES
  • Uncategorized
REAL HACKER NEWS

We bring you the best news on Internet new gadgets hacking and technology from around the world

  • Contact
  • Cookie Privacy Policy
  • Terms and Conditions
  • Privacy Policy
  • Disclaimer
  • DMCA

© 2003 Real Hacker News

No Result
View All Result
  • Home
  • REVIEWS
  • SECURITY
  • GAMING
  • SMARTPHONES
  • CAMERA
  • COMPUTERS
    • LAPTOP
  • APPLICATIONS
  • AUDIO

© 2003 Real Hacker News

Go to mobile version