Issues with resolution of SDL window/texture in android phones - android

I am trying to stream video over RTSP protocol in Android phones. I have created an application that receive packets over RTSP protocol, decode using FFMPEG, and present it to the window using SDL 2.0. In that application, creating the SDL window and SDL texture looks like this:
screen = SDL_CreateWindow ("Test ffmpeg",SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_SHOWN|SDL_WINDOW_FULLSCREEN );
bmp = SDL_CreateTexture (renderer, SDL_PIXELFORMAT_IYUV, SDL_TEXTUREACCESS_STREAMING, 1280, 720);
This application runs smoothly (without any flickering or distortions) on Samsung Galaxy S3 (but with reddish overlay), but on HTC sensation xe, samsung galaxy grand, sony xperia S, there is a lot of flickering and distortions. When I tried to reduce the resolution in both of the above functions (i.e) creating texture and creating window (640*360 in HTC sensation xe and 800*480 in samsung galaxy grand), the application runs smoothly. Now I have two questions
Why mobiles other than samsung galaxy s3 (out of all the mobiles mentioned above) unable to stream video of higher resolution (1280*720)?
On all samsung galaxy s3 mobiles, I can see a reddish overlay. Anybody have any idea what is the cause of that reddish overlay?

Re 2, I have solved the reddish display issue on samsung galaxy s3 mobiles by disabling the hardware overlay option in the developer options menu (Settings->Developer Options->Check the "disable hardware overlay" checkbox)

Related

ExtractMpegFramesTest example doesn't work on API23 Devices

I tried to run this bigflake example on some android devices.
I tried it on Galaxy S3, S4 and S7.
For Galaxy S3 everything works fine. I've taken the first frame and this is what I've got:
And then I tried to run the same code on Galaxy S6 and S7, but then I received a strange image for the same video
Do someone(fadden lol) know what could cause this problem?

Unity3d project does not display images on samsung galaxy tablets

I have created a 2D game in Unity and have successfully created it PC build now I want to port it on Android devices. I have created the android build and It works on most of my android devices except on Samsung Galaxy tablets. On Samsung Galaxy tablet devices, it does not display the main menu backgrounds.
I have checked dimensions of the image these are 2048 X 2048.
In the inspector of unity the properties of image are asss follows:
type is sprite, max size is 1024 and compressed
On other android devices,(google nexus, micromax phones, bluestacks) it displays the images properly. Can anyone please guide me?
You also have to set you image as "Sprite" from Inspector.
Hi I found out what I was doing wrong.
the textures were not appropriate according to the resolution of the screen. After I created another set of textures and setting the compression and max size to 2048 X 2048 it started displaying.

How to run an emulator using Galaxy S4 configuration?

I have created an galaxy s4 emulator using this post how to open galaxy S4 emulator
but my problem is when I tried to run this emulator it takes very long time and at last it said time is out. My ram is 6GM. And I created emulator by providing 800MB ram. And my laptop screen resolution is HD.
How to resolve my problem immediately because I have to test my app in galaxy s4.
I got it working with the settings the other link holds (How to test android app in Galaxy S4 configuration using emulator?) and "Target Google APIs (Google Inc.) - API Level 17" and also I let the Emulator help by my GPU "Emulator Options: Use Host GPU".
Hope you folks get it working to :)
Samsung has not released Add-on for galaxy s4.
But we have an alternatives for the Same Configurations.
Actual:Samsung S4 (1080 x 1920 pixels, 5.0 inches (~441 ppi pixel density))
Alternative:Sony Xperia Z (1080 x 1920 pixels, 5.0 inches (~441 ppi pixel density))
Both are using Drawable-xxhdpi resource folder.
To configure Sony Xperia Z:
http://developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/
Testing on Sony Xperia Z emulator,will effect the same result in Samsung galaxy s4.
Emulators are slow. No matter what configuration you have. So testing in emulator doesn't mean it'll give you same behaviour in the real device.
Unless samsung decided to do so, it won't be available with Android SDK as predefined config. You may need to manually set the configurations (which is what you have done). Even then the OS gonna run in S4 is customised by Samsung yet again as I said earlier you won't get it with your SDK package.

Android reference devices for responsive webdesign

Which devices (smartphone and tablet) do you recommend to buy as reference?
And what version of Android do you prefer?
Main goal: testing responsive websites in our small web studio.
Smartphones:
Samsung Galaxy — S2, S3, S4 (but S4 and S3 seem to be too expensive).
Google Nexus 4.
4.0 — 4.5 branded devices in middle cost segment.
bi-brands or Chinese devices (low cost, Android 4.1+).
Tablets (I think, only 9.7/10.1 inches not 7 inches):
Samsung (dunno which).
Chinese devices.
We have limited resources, so…
I would go for Google Reference Devices, as they always go through all Android versions, and they have always the latest version available. Right now they are:
Nexus 7 (2012 and 2013 versions). 2012 version is the most sold Android Tablet. also works as a reference Portrait Tablet.
Nexus 4
Nexus 10. Reference Landscape Tablet.
Nexus One or Nexus S for a reference Android Gingerbread device.
Then, if you have the budget, I would go for typical best sellers in all ranges:
Galaxy S2, S3 and S4
Galaxy Y, Ace, HTC Desire X
Samsung Galaxy Tab 7, 8.9 and 10.

How to do a live presentation by sharing android screen?

Here you can see during the launch of Samsung Galaxy Nexus the presenter displays a live android screen. I have been searching far and wide for any software that can do the same.
I have seen apps like droid#screen but there is a huge lag while streaming the phone screen. While coming to hdpi devices the lag becomes huge and becomes a showstopper.
Is there any way I could attain the same quality and speed ?
Attach your Galaxy Nexus to an HDMI projector (or, for compatible hardware, use Miracast, a.k.a., Samsung AllShare).
Or, root your Galaxy Nexus and find some software that can work directly with the framebuffer for this.
Droid#Screen is as fast as you can get using semi-supported techniques.
If you do not have the cable, TeamViewer QuickSupport is also an alternative, just tried it on Samsung Galaxy S3 and works like charm.

Categories

Resources