Register a domain and help support LQ
Go Back > Blogs
User Name



Simple C - mix pixel data, integer math (fixed point), data clamping...

Posted 06-06-2013 at 07:15 PM by rainbowsally

Simple C to mix pixel data, integer math (fixed point), data clamping

Today's Features
  • Simple program to add two pixels clamping each byte to 0xFF, but adding all four bytes in parallel for speed. There are no branches in the algorithm.
  • Another simple program to mix two colors defining a gradient using a fraction from 0 to 1. We compare floating point to fixed point math versions.

Surprisingly, the long version compiles about the same code as the short one with...
Posted in Uncategorized
Views 665 Comments 0 rainbowsally is offline

New-Make And MC2, Meet MPG123 (terminal app to play MP3 and other file formats)

Posted 12-25-2012 at 09:11 PM by rainbowsally
Updated 08-06-2014 at 09:47 AM by rainbowsally (wrong acronym for alsa)

After that last rant about screwy software, I found some GREAT software. mpg123 is outstanding.

Today's Features
  • Me eating my words, even about assembler coding. ;-)

Famous last words galore! I even have to eat my words about asm. In fact this app is so cool I had to add the ability to compile asm and C sources in the same directory to the mc2 code.

MPG123 (sandboxed relocatable binary installation OR compile from code, modify, experiment, etc.) is linked...
Posted in Uncategorized
Views 711 Comments 0 rainbowsally is offline


All times are GMT -5. The time now is 06:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration