[FFmpeg-devel] Patch to fix qtrle endian issue with rgb555 pixel format

Alexis Ballier alexis.ballier
Wed Mar 3 14:17:50 CET 2010


2010/3/2 Michael Niedermayer <michaelni at gmx.at>:
> On Mon, Mar 01, 2010 at 10:57:11PM -0800, Mo DeJong wrote:
>> As far as I could tell, there is no support in libswscale for
>> converting a rgb555le to rgb555be, and it is not clear how to add that
>> support in a generic way. Correct me if I am wrong here, but it seems
>> to me the -pix_fmt passed on the command line should be "-pix_fmt
>> rgb555" and not "-pix_fmt rgb555be" which would be required if
>> PIX_FMT_RGB555BE was put into the pix_fmts for this codec. My patch
>> makes the minimal change needed to get the quicktime encoder working
>> the way it seems it should be, please advise if there is a clearly
>> better approach.
>
> fix swscale, if swscale is lacking support.

I did send a patch for exactly this purpose some time ago [1]... my
understanding was that it was rejected because:
- you didnt care about non native endian formats
- the fastest version increased too much the code/object size
- I didn't want to submit a patch that was obviously suboptimal in
terms of speed

So, I gave up.
Feel free to resurrect the patch or mail me in private if you want the
other ones, I may still have them somewhere.

Alexis.

[1] http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-August/074222.html



More information about the ffmpeg-devel mailing list