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

Timothy Lee timothy.lee at siriushk.com
Mon Jan 21 08:15:02 CET 2008


Dear all,

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-December/055397.html).

These three patches does the following:

    * vf-bswap32.patch -- adds a filter called "bswap32" that converts
      RGB32x -> BGR32, or BGR32x -> RGB32 using 32-bit byte-swapping.
    * vd-rgb32x.patch -- modifies the filter chain construction process
      to automatically insert vf_bswap32 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.

This patch works on little-endian machines, but needs testing on 
big-endian PCs.  I've uploaded a sample to 
ftp://upload.mplayerhq.hu/MPlayer/incoming/aletrek-raw-32bit.mov, which 
plays back with a reddish tint without the patch.

The most optimized approach to supporting RGB32x and BGR32x colorspace 
is of course by adding their conversion routines in libswscale.


Regards,
Timothy Lee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf-bswap32.patch
Type: text/x-patch
Size: 4244 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080121/6d6c0729/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd-rgb32x.patch
Type: text/x-patch
Size: 2410 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080121/6d6c0729/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/20080121/6d6c0729/attachment-0002.bin>


More information about the MPlayer-dev-eng mailing list