Sync 2 jit.cellblocks
This example shows how to sync data between 2 jit.cellblocks, while being able to have different views/scrolling of the same data, by using either jit.matrix or a coll to store the data.
This example shows how to sync data between 2 jit.cellblocks, while being able to have different views/scrolling of the same data, by using either jit.matrix or a coll to store the data.
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.