Problems with window resolution / texture SDL on android phones

I am trying to broadcast RTSP video on Android phones. I created an application that accepts packets using the RTSP protocol, decodes using FFMPEG and presents it to the window using SDL 2.0. In this application, creating an SDL window and SDL texture is as follows:

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 flicker or distortion) on the Samsung Galaxy S3 (but with a reddish overlay), but on HTC sensation xe, samsung galaxy grand, sony xperia S, there are a lot of flicker and distortion. When I tried to reduce the resolution in both of the above functions (for example, creating a texture and creating a window (640 * 360 in HTC sensation xe and 800 * 480 in the samsung grand galaxy), the application works smoothly. Now I have two questions.

  • Why mobile phones other than samsung galaxy s3 (of all the mobile phones mentioned above) cannot transmit video with a higher resolution (1280 * 720)?
  • On all Samsung Galaxy s3 mobile phones, I see a reddish overlay. Does anyone know what is the reason for this reddish overlay?
+3
source share
1

Re 2, samsung galaxy s3, (- > - > " " )

+2

All Articles