[MPlayer-dev-eng] [PATCH] Correctly support 32-bit raw MOV

Timothy Lee timothy.lee at siriushk.com
Wed Jan 23 11:28:40 CET 2008


Dear all,

Michael Niedermayer wrote:
> On Tue, Jan 22, 2008 at 02:51:42PM +0800, Timothy Lee wrote:
>   
>> Carl Eugen Hoyos wrote:
>>     
>>> Timothy Lee<timothy.lee<at>  siriushk.com>  writes:
>>>       
>>>> The following patches fixes the support for 32-bit raw RGB video in
>>>> MOV.  The colorspace of those video are IMGFMT_RGB32_1, which is not
>>>> supported by libswscale (as mentioned in
>>>> http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2007-     
>>> Would it be possible to add a scaler to libswscale to support IMGFMT_RGB32_1? I
>>> believe that solution would be preferred.
>>>       
>> I've tried down that path, but it appears to involve adding converter
>> functions for every output format,
>>     
> no, it would be possible to add just the bswap code and a
> rgb32_1 -> internal yuv converter
> one could even add just the bswap32 filter and nothing else, that would be
> ugly as many convertions would fail but it still is better than this hack
>   
> id say the bswap32 filter is rejected. ive no comment about the rest
>   
I've re-implemented the support for RGB32x and BGR32x colorspace inside 
libswscale as per Michael's suggestions.  This updated set of patches 
does the following:

    * libswscale-rgb32x.patch -- adds support for RGB32x -> BGR32 and
      BGR32x -> RGB32 conversion using 32-bit byte-swapping.
    * vd-rgb32x.patch --  modifies the filter chain construction process
      to automatically insert another vf_scale when the vo does not
      support RGB32x or BGR32x colorspace.
    * mov-raw-32bit.patch -- fixes the colorspace of 32-bit raw RGB
      video reported by MOV demuxer.

Again, the code has not been tested on big-endian machines.

Regards,
Timothy Lee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libswscale-rgb32x.patch
Type: text/x-patch
Size: 3525 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080123/0fb7be25/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd-rgb32x.patch
Type: text/x-patch
Size: 5184 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080123/0fb7be25/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mov-raw-32bit.patch
Type: text/x-patch
Size: 1319 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080123/0fb7be25/attachment-0002.bin>


More information about the MPlayer-dev-eng mailing list