Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-structured PPStrip, RGB global brightness, etc... #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

schardt
Copy link

@schardt schardt commented Sep 3, 2014

• Re-structured PPStrip to convert RBG values of various types to a table of bytes as these values are presented, rather than when [PPStrip serialize] is called. After this, the code that presented the values (in uint8s) ran twice as fast, and [serialize] probably ran 100x as fast since all it does now is copy a block of bytes. (It's amazing to me just how much overhead manipulating an NSArray of PPPixel objects turned out to cause.)

• Fixed recent code written to handle 16-bit RGB components (not tested yet since we don't have the 16-bit hardware yet!)

• Expanded the global brightness properties in various classes to handle separated brightness adjustments for red, green, and blue.

• Fixed a few type-mismatch warnings, particularly ones where an unsigned int was compared to a signed int.

Signed-off-by: schardt [email protected]

…brightness, type-mismatch warnings

• Re-structured PPStrip to convert RBG values of various types to a table of bytes as these values are presented, rather than when [PPStrip serialize] is called.  After this, the code that presented the values (in uint8s) ran twice as fast, and [serialize] probably ran 100x as fast since all it does now is copy a block of bytes.

• Fixed recent code written to handle 16-bit RGB components (not tested yet since we don't have the 16-bit hardware yet!)

• Expanded the global brightness properties in various classes to handle separated brightness adjustments for red, green, and blue.

• Fixed a few type-mismatch warnings, particularly ones where an unsigned int was compared to a signed int.

Signed-off-by: schardt <[email protected]>
@schardt schardt changed the title Re-structured PP Strip, RGB global brightness, etc... Re-structured PPStrip, RGB global brightness, etc... Sep 3, 2014
…(and saved 200K in the build size). Simplified and sped up PPCard by taking out packetPool and packetPromiseDict.
… Removed use of custom macros, categories. Removed unused files (for clarity). Added a lot of comments.
…ing done. Added LOG() and ASSERT() macros. Removed alternate completion notification schemes from PPPusher.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants