LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

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

Posted 06-06-2013 at 06: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...
Member
Posted in Uncategorized
Views 449 Comments 0 rainbowsally is offline
Old

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

Posted 12-25-2012 at 08:11 PM by rainbowsally
Updated 09-04-2013 at 09:04 PM 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...
Member
Posted in Uncategorized
Views 605 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement

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