Ffplay and libSDL-1.3 on Windows Mobile 6.5

Dear Experts,

I’m trying to compile ffplay for my Windows Mobile phone (HTC Dash 3G). I use the latest version of cegcc in linux.

I patched the latest svn code with Andrey’s patch. I tried four renderers: gdi, software, gapi, and raw, to play a 320x240 H.264 raw stream. The first two renderers gives black windows, gapi gives a transparent window, and raw crashes. I note that, the audio part works fine with MP4 files (so I think I successfully compiled most of libSDL and ffplay).

Since other users reported black window issues with gdi renderer, I decided to try gapi.

I looked into ffplay: right after vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height, SDL_YV12_OVERLAY, screen);

I dumped (“vp->bmp->pixels: %08x, %08x, %08x”, vp->bmp->pixels[0], vp->bmp->pixels[2],vp->bmp->pixels[1]), which gives:
vp->bmp->pixels: ffffffe0, 0066005c, 33780030

My understanding is, these three pointers point to Y, U, V array, respectively. But, they look random to me.

I also checked SDL_compact.c, where we have
overlay->pixels = overlay->hwdata->planes;

I, however, cannot find out where the hwdata->planes being set. Any hints are highly appreciated.

Thanks,
Cheng

Hi !
About crash raw render, You used lastest patch
(libsdl-1.3-wince-render-copy-fix.diff.gz)?
An can you make the simple test case?

2010/5/13, Cheng Hsu :> Dear Experts,

I’m trying to compile ffplay for my Windows Mobile phone (HTC Dash 3G). I
use the latest version of cegcc in linux.

I patched the latest svn code with Andrey’s patch. I tried four renderers:
gdi, software, gapi, and raw, to play a 320x240 H.264 raw stream. The first
two renderers gives black windows, gapi gives a transparent window, and raw
crashes. I note that, the audio part works fine with MP4 files (so I think I
successfully compiled most of libSDL and ffplay).

Since other users reported black window issues with gdi renderer, I decided
to try gapi.

I looked into ffplay: right after vp->bmp = SDL_CreateYUVOverlay(vp->width,
vp->height, SDL_YV12_OVERLAY, screen);

I dumped (“vp->bmp->pixels: %08x, %08x, %08x”, vp->bmp->pixels[0],
vp->bmp->pixels[2],vp->bmp->pixels[1]), which gives:
vp->bmp->pixels: ffffffe0, 0066005c, 33780030

My understanding is, these three pointers point to Y, U, V array,
respectively. But, they look random to me.

I also checked SDL_compact.c, where we have
overlay->pixels = overlay->hwdata->planes;

I, however, cannot find out where the hwdata->planes being set. Any hints
are highly appreciated.

Thanks,
Cheng

Hi!
I have added gapi/raw overlay support, please check my last changes.

The test ffmpeg program in an attachment

2010/5/14, Andrey A. <@Andrey_A>:

Hi!
I have added gapi/raw overlay support, please check my last changes.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: ffmpeg.c.gz
Type: application/x-gzip
Size: 1656 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100514/b4a0dc28/attachment.bin

Hi Andrey,

Many Thanks for the patch and test program. Sorry that I didn’t do the test earlier: I didn’t get a chance to boot into Linux until now.

The new implementation works great on my Windows Mobile 6.5. Thank you very much!

If you like to get the stdout.txt and stderr.txt, or a screenshot image. Please let me know. I will email them to you. (I couldn’t find a way to post an attachment in the forum interface).

Thanks,
Cheng

Andrey A. wrote:> The test ffmpeg program in an attachment

2010/5/14, Andrey A. :

Hi!
I have added gapi/raw overlay support, please check my last changes.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org