Joe Maller: Joe's Debug and Explore Filters: Joe's PixelFormat TesterA filter for Final Cut Pro to help switch between YUV and RGB color spaces with FXScript.
This filter helped me a great deal while struggling with Joe's Color Glow and switching between YUV and RGB color spaces. More detail about YUV and RGB issues with FXScript are discussed on the FXScript RGB and YUV Color page.
How It Works
There are two main concepts for dealing with color spaces in FXScript, conversion and assignment. Conversion changes pixel data from one color space to another, moving the resulting image into a new image buffer. Assignment doesn't bother with conversion and simply tells FXScript to interpret the pixel values in the image buffer using the assigned color space.
This filter offers several conversions between formats. Each is contained within an if statement. The contents of the first if statement look sort of like this:
The statement is based on the current selection of
The above line takes the image data from
The remaining three lines change the format from a number to a string
(remember that all values seem to be numbers too), adds some English words
to the string to give it meaning and then draws the string onto the
There are 10 options but each does pretty much the same thing. The FXScript RGB and YUV Color page has more information about working with color spaces.