[FFmpeg-devel] [PATCH] Implement function to compute bits per pixel

Stefano Sabatini stefano.sabatini-lala
Sun Apr 26 15:15:24 CEST 2009


On date Sunday 2009-04-26 13:29:58 +0200, Stefano Sabatini encoded:
> On date Sunday 2009-04-26 12:55:33 +0200, Michael Niedermayer encoded:
> > On Sun, Apr 26, 2009 at 12:19:28PM +0200, Stefano Sabatini wrote:
> > > Hi, as in subject.
> > > 
> > > This is the output of the test program:
> > > yuv420p: bits_per_pixel: 12
> > > yuyv422: bits_per_pixel: 12
> > 
> > interresting
> 
> Ouch, fixed.
> 
> Output:
> yuv420p: bits_per_pixel: 12
> yuyv422: bits_per_pixel: 16
> rgb24: bits_per_pixel: 24
> bgr24: bits_per_pixel: 24
> yuv422p: bits_per_pixel: 16
> yuv444p: bits_per_pixel: 24
> yuv410p: bits_per_pixel: 9
> yuv411p: bits_per_pixel: 12
> gray8: bits_per_pixel: 8
> monowhite: bits_per_pixel: 1
> monoblack: bits_per_pixel: 1
> pal8: bits_per_pixel: 8
> yuvj420p: bits_per_pixel: 12
> yuvj422p: bits_per_pixel: 16
> yuvj444p: bits_per_pixel: 24
> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> uyvy422: bits_per_pixel: 16
> uyyvyy411: bits_per_pixel: 12
> bgr8: bits_per_pixel: 8
> bgr4: bits_per_pixel: 4
> bgr4_byte: bits_per_pixel: 4
> rgb8: bits_per_pixel: 8
> rgb4: bits_per_pixel: 4
> rgb4_byte: bits_per_pixel: 4
> nv12: bits_per_pixel: 12
> nv21: bits_per_pixel: 12
> argb: bits_per_pixel: 32
> rgba: bits_per_pixel: 32
> abgr: bits_per_pixel: 32
> bgra: bits_per_pixel: 32
> gray16be: bits_per_pixel: 16
> gray16le: bits_per_pixel: 16
> yuv440p: bits_per_pixel: 16
> yuvj440p: bits_per_pixel: 16
> yuva420p: bits_per_pixel: 14

Fixed this.

> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> rgb48be: bits_per_pixel: 48
> rgb48le: bits_per_pixel: 48
> rgb565be: bits_per_pixel: 16
> rgb565le: bits_per_pixel: 16
> rgb555be: bits_per_pixel: 15
> rgb555le: bits_per_pixel: 15
> bgr565be: bits_per_pixel: 16
> bgr565le: bits_per_pixel: 16
> bgr555be: bits_per_pixel: 15
> bgr555le: bits_per_pixel: 15
> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> (null): bits_per_pixel: 1
> yuv420ple: bits_per_pixel: 24
> yuv420pbe: bits_per_pixel: 24
> yuv422ple: bits_per_pixel: 32
> yuv422pbe: bits_per_pixel: 32
> yuv444ple: bits_per_pixel: 48
> yuv444pbe: bits_per_pixel: 48

Regards.
-- 
FFmpeg = Fierce and Faithful Multimedia Peaceless Exciting Geisha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pixdesc-get-bpp.patch
Type: text/x-diff
Size: 1785 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090426/f9b3b1ae/attachment.patch>



More information about the ffmpeg-devel mailing list