Genesi Home Home Projects Forums
Login
Username:

Password:

Remember Me
 
[Register an Account]

Developer Programs
i.MX6
i.MX515

Efika 5200B

Search Projects

Google

Sponsored By



Efika 5200B Project
Reggae on Efika

in category Multimedia
proposed by Grzegorz Kraszewski on 21st February 2006 (accepted on 20th March 2006)

Blog Entry

  Workarounds - the essence of media decoders
posted by Grzegorz Kraszewski on 29th January 2007

I've been given two problematic BMP pictures yesterday. They were not shown by RView, a simple Reggae based image viewer. The first one is RLE compressed, I plan to implement RLE decompressor this week. The second one however has one bug (structure size of BMP bitmap header set to 0), and one unexpected feature. In spite it is 8-bit, it has only 61 palette entries. Workaround for the first thing is simple, if structure size is 0, I assume standard 40 bytes. The second one was a bit more difficult. I've decided to read only number of used colors from palette (unless some stupid saver has set it to 0, I assume full palette then), and then just skip to pixel data. Implementing those workarounds I've made a lot of internal fixes, even one in NetPBM recognition routine (How it is related to BMP? Don't ask me...).

PowerDeveloper.org: Copyright © 2004-2011, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. All other names and trademarks used are property of their respective owners. Privacy Policy