Jitter

Color bit depth in Jitter

A Jitter matrix in which the cells represent colored pixels—such as a video—normally has four planes of 8-bit (char) data, representing the values of the alpha, red, green, and blue components of the color. If you wanted to reduce the bit depth of that color information to fewer than 8 bits, which would reduce the total number of colors in the image, a simple way to do that is to shift all the bits to the right (so that the least significant bits are lost), then shift them back.

Copying one matrix to another

To set matrix “B” to have the contents of matrix “A”, you simply send “A” to “B”. (More specifically, you cause matrix “A” to send a jit_matrix message to matrix “B”.) The trick, though, is to suppress thruput on matrix “B” by setting its @thru attribute to 0 (it’s 1 by default), so that you can set and recall its contents independently.

Dim of moviedim

Whenever a movie is read into jit.qt.movie, it sends out a read message that reports whether the movie was read in successfully. You can use that information to trigger a getmoviedim message to jit.qt.movie, and use the moviedim to set the dim of jit.qt.movie and all other objects that need to know that information.

Switching Video

You can switch between multiple videos without starting from the beginning of each clip after each every switch by acquiring the time the clip was stopped as the next starting point.