LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Run C/C++ Code As Script

Posted 09-04-2013 at 11:36 AM by rainbowsally
Updated 08-06-2014 at 07:13 AM by rainbowsally (new version)

runc update Sept 27, 2013

http://rainbowsally.org/rainbowsally...-rs-1.2.tar.gz

Changes slist_count() to standard objlist syntax and removes slist_getCount()
Removes destructor functions from objlist so that each class explicitly free anything memory they allocate.
Added atexit() function to tmpmem/tmpstr functions.
Most of these changes address memory leaks and/or memory that remains accessible after the apps close.

--------------...
Member
Posted in Uncategorized
Views 595 Comments 0 rainbowsally is offline
Old

QT, fast!! pixel (color) mixing

Posted 06-21-2013 at 08:22 AM by rainbowsally
Updated 06-21-2013 at 08:32 AM by rainbowsally

Today's feature
  • super fast color mixing ('lerp') for QT4
  • PRINT_AND_DO macro to show function and execute it.
  • 8 bit fixed point math.
  • A snippet of working code from the next lq-qt/mc2 lib.

Behind the scenes we are working on getting qwt lib to play nice with Designer. We're apparently over the hump with dials, which were very tricky!!

And so it's break time.

Let's talk a bit about fast color mixing, which isn't always an issue but can be when you are...
Member
Posted in Uncategorized
Views 801 Comments 0 rainbowsally is offline
Old

More simple C and color mixing tests

Posted 06-11-2013 at 12:30 AM by rainbowsally

Today's Feature
  • Here's another pixel (color) mixing toy. The best yet.

Back a couple of blog pages
http://www.linuxquestions.org/questi...lamping-35557/
we were playing with color mixing and data clamping and all kinds of junk including comparing routines to mix colors by a floating point ratio.

This is mixcolors.c - named the same as the other version we were playing with and...
Member
Posted in Uncategorized
Views 485 Comments 0 rainbowsally is offline
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 611 Comments 0 rainbowsally is offline
Old

qt4 - sudoku solver and closable toolbar examples

Posted 05-25-2013 at 10:54 AM by rainbowsally
Updated 08-06-2014 at 07:28 AM by rainbowsally
Tags mc2, qt4, simple c

Qt4 examples.

SudokuResolver (qt4, only 180K)

screenshot http://rainbowsally.org/pub/sudoku.png

I got this at http://setup.weeb.ch, I believe. I reworked the make system using mc2 and made a few very minor changes, such as centering the window on showEvent() and addding save/restore to/from files.

There are several interesting features in the code from grid setup to BigList STL templates
and multi core processing code.
...
Member
Posted in Uncategorized
Views 540 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration