[Ffmpeg-devel] [PATCH] enable libswscale
Luca Abeni
lucabe72
Thu Sep 14 16:46:41 CEST 2006
Hi V?ctor,
On Thu, 2006-09-14 at 10:20 +0200, V?ctor Paesa wrote:
[...]
> > How can I reproduce the problem?
> > Do I need to use the imlib2 filter, or can I reproduce the problem
> > without it?
>
> Probably is easier use the ported imlib2 filter, and follow the steps in the
> imlib_test_case.txt that I attached.
Thanks; I managed to reproduce the problem, now.
I think I understand what's going on...
If I got it right, the conversion between IMGFMT_* and PIX_FMT_* is the
following:
1) IMGFMT_RGBA ---> PIX_FMT_RGBA; IMGFMT_ARGB ---> PIX_FMT_ARGB;
IMGFMT_BGRA ---> PIX_FMT_BGRA; IMGFMT_ABGR ---> PIX_FMT_ABGR
2) IMGFMT_BGR32 ---> PIX_FMT_RGB32, and IMGFMT_RGB32 ---> PIX_FMT_BGR32
(because mplayer and ffmpeg use different naming conventions)
Michael, is this correct? I hope I did not misunderstand this stuff
again :)
So, since there is this RGB32 <---> BGR32 "swap" between mplayer and
ffmpeg, the isRGB() macro should return true for PIX_FMT_BGR32, and the
isBGR() macro should return true for PIX_FMT_RGB32... :(
After changing this (and after fixing a bug in my patch that I just
found --- I'll post it tomorrow), the test seems to work ok.
Michael, does this make sense?
I have no time now, but tomorrow I'll do other tests and post an update.
Thanks,
Luca
--
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
N O W A R ! ! !
More information about the ffmpeg-devel
mailing list