Need help with frame rate controls on android devices - Android Q&A, Help & Troubleshooting

I am working with a partner in developing an app that would go in between the apps and basically control it in order to show a uniform control of the pixels. Basically what we are trying to do is have pixel level control of the display regardless of the content on the phone.
My Questions are:
1. Does the smartphone developer API provide access to the frame buffer of the display, which can be modified for each frame that is displayed on the screen?
2. Does the smartphone have enough time to run a 2D filter on each frame before it gets displayed? Will the phone processor be fast enough that you can filter each image and still keep up with the output frame rate (e.g. 30 frames per second). Each calculation that will need to be calculated takes time for the processor to calculate, but how much? Can the phone do all of the calculations it will need to under 1/30 seconds AND keep up with normal app processing without affecting the overall frame rate. Much of this is based on the software that is developed to solve the problem, so the real question really isn't "Does the phone have enough real time," but rather " is the phone fast enough to handle a garden variety 2D convolution on top of everything it already does".
3. Will this level of control be achievable without root to be able to reach more people with unrooted devices or is this achievable only by root level permissions.
I do hope I am in the right area to post this very important question in the the development process. We need to get this sorted out first before we can begin programming.
All the help would be very much appreciated. Thanks xda!

Related

[Q] HTC Rezound Camera mod

Hello. First, I am sorry if I didnt get the right thread for this question. If I did i hope admin will move it to right thread, instead of removing it completely.
Second...
I was wondering is it possible that new and better cameras get even better functionality throught modding the cam application? If not in every HTC, then in new ones wich have enough power and abilities...
This is what I'm trying to say.
I own SonyEricsson K800i... I did complete work on it, new firmware, and inserted various patches for new options, adding more space for sms messages, more alarm options, different layout of home screen and so on, from better LCD display driver to amazing sound with modded equalizer. And then I found out about guy called Raiderski wich makes, better to say - remakes original camera driver, and adds various tweaks to the camera such as...
Balance: cyan - red
Balance: yellow - blue
Balance orange - light blue
CWB measuring: unlock - start - lock
Contrast: 1 - 30 - range
Color saturation: Neutral, Grayscale, 1 - 30
Focus: Infinity, Far, 1-30
EV compensation: from -2.0 to +2.0
Shutter Speed Fast: H SEM, H EM, from 1 - 6400 to 1 - 10
Shutter Speed Slow: SEM, EM, from 1/8 to 2sec
ISO sensitivity: 100, 125, 160, 200, 250, 320, 400, 500 - still very usable, 640, 800, 1000, 1250, 1600
Zoom: from 1x to 16x - digital only, stock SE comes with 8x
Autoexposure lock: Unlock - Lock
One feature it has - wich could be useful on new touchscreen phones: Instead of holding dedicated button for camera to focus and then shoot pic, and since Rezound doesnt have dedicated button as far as I know, and not having ability to have option of holding the button half pressed down, it could be added virtualy on the screen, since i dunno are touchsreen pressure sensitive, probbably not yet - it could be solved by 1-2 virtual buttons, like a unlocking the home screen - while holding the button, it focuses the pic OR previews the manual settings, and sliding it up or down or left or righ - shoots a pic. Or it could be simpler, 2 buttons, one for new autofocus/preview with ON/OFF state - and second for shooting the pic when taping it.
Why?
Imagine you want to preview your settings in realtime - before you want to shoot a pic. For night photos i choose SLOW SHUTTER SPEED to 3/5 and ISO 500 + zoom it to 3x and THEN hit dedicated button but only half way, and I see what the end result would look like.
This is what K800 has after modding it, and lowered JPEG compression ratio, and 30FPS recording and millions more stuff wich makes stock K800 and the rest phones look insignificant... Because now this K800 with 3mpx does better photos than 90% of the rest cellphones... I tried to make identical photo with Desire HD and K800... result was discusting when looking at pic wich Desire made, even small shake destroys the photo, and when holding it steady, again, doesnt make WOW effect while comparing the photos...
anyway, and so on and so on...
Basicly you get every option unlocked, you can have manual control over every aspect of the pic, every DSLR has this possibilities, and for years and years I use it in my old SE... So, why not make a mod for Rezound or some app wich will work on more HTC's wich have enough processor power and abilities? Big HD screen is here, its dualcore, 1gig of ram, it has great multimedia abilities, why not make it even better?
Is it possible to do or is it allready been done?
here's the "link" where I've been gathering info about this camera mod if someone wants to check, though it isnt great starting point if you want to learn what is it all about... link and news may be outdated because last time i checked, guy didnt have time to continue on developing the mod further:
Esato.com - Forum - Sony Ericsson - Software, Firmware and Drivers - Raider camera driver for K790, K800 and K810 (v6.6.5)
Well, hope someone can help you.
Croativan said:
So, why not make a mod for Rezound or some app wich will work on more HTC's wich have enough processor power and abilities? Big HD screen is here, its dualcore, 1gig of ram, it has great multimedia abilities, why not make it even better?
Is it possible to do or is it allready been done?
Click to expand...
Click to collapse
first, I think what you want is pretty cool, camera mods are always good to have.
second, I thin the reason you are getting negative responses is becuase of the tone of your post. This particular paragraph for instance..
'so why not make a mod...'
what do you mean, why not. We do not even have root yet, let alone custom apks and roms. Your tone suggests that nobody wants to do this and you are trying to convince the community to build this 'sweet camera mod.
Also, it is obvious by your post that you have not read anything on this forum in regards to development, if so you would have seen that we do not have any way to mod the phone currently and therefore your suggest is somewhat moot.
By looking at your overall writing style, I can assume English is not your native language and therefore the tone of your post is probably not the one you tried to get across. (the other option is that you are very young)
either way, welcome to the forums and to the rezound. my best suggestion for you is to continue to read the forums and follow the current development. When we get root and the ability to flash custom roms, perhaps your suggestion can be brought up again and will be better recieved.
Again, welcome and thank you for the awesome suggestion

[Q] Minimum scroll/pan step size

Hi, curious question.
I'm wondering why the Nexus7 doesn't allow you to slow scroll/pan down at single pixel steps. Always seems to be in 2-3 pixel jumps. I got a bad habit of scrolling web pages while reading from iOS but on my N7 I get these kinda anoying start/stop jerks.
Is this related to the virtual pixel resolution being lower than the actual screen resolution? And would changing it allow one to match the virtual pixels to the screen pixels and get smoother slow speed panning?
Anyone know if some custom ROMs optimize for this?
BR
POTS101 said:
Hi, curious question.
I'm wondering why the Nexus7 doesn't allow you to slow scroll/pan down at single pixel steps. Always seems to be in 2-3 pixel jumps. I got a bad habit of scrolling web pages while reading from iOS but on my N7 I get these kinda anoying start/stop jerks.
Is this related to the virtual pixel resolution being lower than the actual screen resolution? And would changing it allow one to match the virtual pixels to the screen pixels and get smoother slow speed panning?
Anyone know if some custom ROMs optimize for this?
BR
Click to expand...
Click to collapse
I have been struggling with this issue for days. Looked into kernel code hoping to find anything related to scrolling or touchscreen but nowhere to find such a thing. It has nothing to do with virtual pixel resolution. If you swipe your finger at a degree of between 45-90 (accapted as scroll up by the system), Y coordinates change by 3 pixels where as X coordinates can change by 1.. Therefore its not a limitation, it is kind of scroll sensitivity which is 3px.. I've seen other devices can scroll by 1 pixel.
I believe google has set this value to 3 because of rendering issues, since its gonna render the screen 3 times more if it is set to 1. Maybe it is the optimum sensitivity. Lower than 3 pixels may disrupt buttery smoothness but its just a guess..
I hope one dev can lead us the right piece of code where it is set to 3 and we can change it ourselves to test the best..
You guys can try the problem yourself actually by installing the "Multi-touch accuracy check" app from market, which shows the exact pixel of the touch..
the xy coordinates readout from the developer "show touches" setting shows the 3pixel increments too.
when panning something just a bit faster than dead slow then suddenly gets rid of the jumps and goes smoother as well.
could it be a battery saving thing that they just get rid of taxing the cpu/gpu when people like me do these constant slow scroll pans on webpages and books etc.?
POTS101 said:
the xy coordinates readout from the developer "show touches" setting shows the 3pixel increments too.
when panning something just a bit faster than dead slow then suddenly gets rid of the jumps and goes smoother as well.
could it be a battery saving thing that they just get rid of taxing the cpu/gpu when people like me do these constant slow scroll pans on webpages and books etc.?
Click to expand...
Click to collapse
2 more thoughts:
a) this relatively coarse sensitivity can lead sometimes (not often) lead to a +/-3 pixel uncertanty in a UI element and cause it to jittter - sometimes happens when finger pressure changes.
b) I had for a while thought that it may be linked to the size of the touch sensors on the display. Being a lower cost device I figured that the HW resolution may be lower than pixel count. But I'm pretty sure that you must be always hitting multiple sensors and the system should just interpolate to a finer resolution.
POTS101 said:
the xy coordinates readout from the developer "show touches" setting shows the 3pixel increments too.
when panning something just a bit faster than dead slow then suddenly gets rid of the jumps and goes smoother as well.
could it be a battery saving thing that they just get rid of taxing the cpu/gpu when people like me do these constant slow scroll pans on webpages and books etc.?
Click to expand...
Click to collapse
When scrolled a little bit faster, it still increases by 3px , not 1.. I also assume that it is about battery saving but if I can find a way to decrease the step size, I'd love to try it by myself..
Also It can be related to the sensors , as you mentioned, but not likely.. It can catch 1px changes when swiped horizontally..
Any news on this?
As far as I can see, this is only related to touch screen; if you use a usb mouse, you can actually see the scroll by one pixel at time, and there is no graphical issues. With mouse all seems smoother...
At this point, I think It's an hardware issue of the touch screen, as the system can easly support 1px scrolling
aLPaSLaN07 said:
I have been struggling with this issue for days. Looked into kernel code hoping to find anything related to scrolling or touchscreen but nowhere to find such a thing. It has nothing to do with virtual pixel resolution. If you swipe your finger at a degree of between 45-90 (accapted as scroll up by the system), Y coordinates change by 3 pixels where as X coordinates can change by 1.. Therefore its not a limitation, it is kind of scroll sensitivity which is 3px.. I've seen other devices can scroll by 1 pixel.
I believe google has set this value to 3 because of rendering issues, since its gonna render the screen 3 times more if it is set to 1. Maybe it is the optimum sensitivity. Lower than 3 pixels may disrupt buttery smoothness but its just a guess..
I hope one dev can lead us the right piece of code where it is set to 3 and we can change it ourselves to test the best..
You guys can try the problem yourself actually by installing the "Multi-touch accuracy check" app from market, which shows the exact pixel of the touch..
Click to expand...
Click to collapse
My two cents...I tried this approach and when you move your finger with about 5 degree you can get 1 pixel change by Y and 3 pixels change by X. And if you move your finder with about 85 degree you get 1 pixel by X and 3 pixels by Y. It seems that hardware can handle the 1 pixel change by X or Y. It looks like the touch events are throttled by the system based on the distance between points.
There is no decent and satisfying answer to this yet .. I'm still waiting for a solution..

[Q] Modifying screen image in android

I am connecting my Nexus 4 to a projector - but the resulting image is trapezoidal due to keystone. I want to be able to control this using software such that the image that goes out of the android is already corrected for this problem (In such a case, the projection will get smaller for the wider edge of the trapezoid and will be equal to the narrow edge; the remaining area can be black pixels.) There are two things to do here - one is the actual algorithm for keystone correction, which I think I have found here - Algorithm for software keystone correction. Any other efficient algos? And the second is how to modify the displayed screen in android to the one I want to send (if I were somehow able to change the android screen resolution to a trapezoidal value!). I don't mind distorting the phone display as long as the projected display is good. Also, would prefer this for any running app, not necessarily my app. Thanks a ton!

Question Variable 120Hz screen refresh rate

Do you think it would be possible to achieve variable refresh rate of Xperia 1 mark 3 screen?
I mean display instead of always running in 120Hz or 60Hz would run in 120Hz when scrolling and even in 1Hz or 10Hz when nothing moving on screen (for example reading or watching a picture).
That would help with battery life and reduce the heat.
We could select to always run in 120Hz or in hybrid mode.
Do you think software can do this?
I think it's possible if someone work with software or fw.
the real question is if Sony will work on that (probably not) or if modding community will work on that when and if TWRP or other rom will support Xperia 1 III.
Maybe (but this is just a big speculation) with the new android release google will support variable refresh rate inside Android
Unless the screen can run at those refresh rates, sony can't do anything. if the hardware is not capable, software/firmware can't do anything. My take on this is if our xperia 1 III had vrr screens, sony wouldve already implemented it in their android to take advantage of it. so therefore, our screens most likely aren't vrr and therefore stuck at 60 or 120hz.
as for the 40hz in game mode, the screen still runs at 60hz as per developer settings show refresh rate, so it only reduces the fps of the game, not the refresh rate of the screen.
I think probably we will get the "ProMotion" feature on an update. I hope sony does it.
What is ProMotion feature?
Since this device was released tbh we didn't receive any new feature/function or changes to better for our phone.
Apart from reducing cpu's clock speed to reduce abnormal extreme heating there are either feature removals (like Music - disablement of downloading metadata from Internet) or just security patches... Literally nothing. I still hope for vivid mode for better colors and many updates to camera (4k 60fps in main camera, 21:9 picture s in main camera, night mode, better quality as I noticed some blur on the edges + pics are too soft). Also hoping for better battery utilisation and maybe bring back super stamina mode.
And bring back sony Album and other xperia iconic apps :/
Sony Album can be side loaded from APK Mirror. I loaded it but deleted it because I saw no benefit...YMMV. I believe there are other "Sony" apps available there also.
Indeed it is available and still working, but we do not know for how long it will work, especially after new system updates. Like android 12, then 13 etc

[ClOSED] Sound Meter for WearOs

Are you a professional, musician, sound engineer, or someone who needs to measure and monitor sound levels in your environment? Look no further than Sound Meter, the audio measurement and monitoring app for Android wear smartwatches.
With Sound Meter, you can easily and accurately measure sound levels on-the-go without the need for a separate sound measurement device. The app offers a range of features and functionality to help you get the most out of your sound measurement and monitoring experience.
Get a complete lowdown on the decibel levels in your surroundings with Sound Meter! It shows you the current, max, and average sound levels in real-time, giving you a spidey-sense for the noises around you. You can easily pause and resume your sound measurements at any time using the pause and close buttons. Keep track of your sound data and restart your session whenever you're ready, all with just a few taps.
In addition, Sound Meter includes an amplitude visualizer, which allows you to see the sound wave in real-time. The visualizer provides a clear and easy-to-understand representation of the sound levels, making it easier for you to monitor and manage the sound levels in your environment.
Sound Meter is designed to be user-friendly and intuitive, with a clean and simple interface that makes it easy to use even for those without a background in sound engineering. Plus, with support for a wide range of Android wear smartwatches, you can use Sound Meter on your preferred device.
So why wait? Download Sound Meter today and start measuring and monitoring sound levels like a pro.
Mod edit: DL link removed
Note:- Microphones in most devices are aligned to human voice and the maximum values are limited by the hardware. Very loud sounds (~90 dB and more) may not be recognized.
@Arunsudharsan
Greetings. I have closed your thread which is in vilation of XDA's Rules for Paid Apps and Themes, with emphasis on the following excerpt:
Spoiler
1) You must provide a free theme/app for all members. Your Thread must focus on this free theme/app. You may only mention and link to the paid theme/app.
2)The theme/app must remain free. No limited access, no registration required.
If/when you wish to provide a free version to our members, then please PM me and I'll be happy to open your thread.
Thank you for your cooperation, and have a pleasant day.
-Regards: Badger50

Categories

Resources