[MPlayer-dev-eng] rawrgb support

Artur Zaprzala zybi at fanthom.math.put.poznan.pl
Fri Apr 12 16:39:23 CEST 2002


Mplayer can't play 16 bits/pixel uncompressed RGB AVIs (AFAIK). The 
codec for them should be rawbgr15.

libmpcodecs/vd_raw.c detects format correctly:
         case 15:
         case 16: sh->format=IMGFMT_BGR15; break;

but in libmpdemux/video.c:
                 sh_video->format = mmioFOURCC(0, 'R', 'G', 'B') | 
sh_video->bih->biBitCount;
all raw 16bpp AVIs will get IMGFMT_BGR16 format.


At http://www.jmcgowan.com/avicodecs.html I found the following info:
"""
By default, the M. 16 bit per pixel format is actually RGB 15
where one bit is unused, 5 bits for red, 5 bits for green, and 5 bits
for blue. ...

M. also added a new value for the biCompression field of the
BITMAPINFOHEADER called BI_BITFIELDS.  If biCompression is set
to BI_BITFIELDS, then the color table is three DWORD (32 bit)
masks giving the bits used for the red, green, and blue components
of a pixel.  In this way, a "custom" format such as RGB 5-6-5 (5 bits
for Red, 6 bits for Green, and 5 bits for Blue) can be defined.  This
is 16-bit RGB.
"""

-- 
Artur Zaprzala
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rawrgb.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020412/57f40f69/attachment.txt>


More information about the MPlayer-dev-eng mailing list