Postingan

Menampilkan postingan dengan label Android Graphics

Handling Device Orientation Efficiently in Vulkan With Pre-Rotation

Gambar
By Omar El Sheikh, Android Engineer Francesco Carucci , Developer Advocate Vulkan provides developers with the power to specify much more information to devices about rendering state compared to OpenGL. With that power though comes some new responsibilities; developers are expected to explicitly implement things that in OpenGL were handled by the driver. One of these things is device orientation and its relationship to render surface orientation. Currently, there are 3 ways that Android can handle reconciling the render surface of the device with the orientation of the device : The device has a Display Processing Unit (DPU) that can efficiently handle surface rotation in hardware to match the device orientation (requires a device that supports this) The Android OS can handle surface rotation by adding a compositor pass that will have a performance cost depending on how the compositor has to deal with rotating the output image The application itself can handle the surface rotation by re...

Wide Color Photos Are Coming to Android: Things You Need to Know to be Prepared

Gambar
Posted by Peiyong Lin, Software Engineer Android is now at the point where sRGB color gamut with 8 bits per color channel is not enough to take advantage of the display and camera technology. At Android we have been working to make wide color photography happen end-to-end, e.g. more bits and bigger gamuts. This means, eventually users will be able to capture the richness of the scenes, share a wide color pictures with friends and view wide color pictures on their phones. And now with Android Q, it's starting to get really close to reality: wide color photography is coming to Android. So, it's very important to applications to be wide color gamut ready. This article will show how you can test your application to see whether it's wide color gamut ready and wide color gamut capable, and the steps you need to take to be ready for wide color gamut photography. But before we dive in, why wide color photography? Display panels and camera sensors on mobile are getting better and be...