Apple Final Cut Pro 5 User Manual Page 276

  • Download
  • Add to my manuals
  • Print
  • Page
    / 376
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 275
276 Chapter 16
yuvcolor yuvtint;
yuvtint = RGBtint;
yuvtint += 128;
offset128[ 1] = 128;
offset128[ 2] = 128;
colorTransform (Src1, Dest, RGBtoYUV, offset0, offset128);
channelFill(Dest, -1, -1, yuvtint.u, yuvtint.v);
ColorTransform (Dest, Dest,YUVtoRGB, offset128, offset0);
The first two lines state the script’s name and type, and assign it to a group in the Browser.
This script is named “Tint.” It is a filter script and has been assigned to the group Image
Control. This means it can be found in the Browser’s Image Control bin.
filter “Tint”;
group “Image Control”
The third line specifies the input control needed. In this case, all that is needed is a standard
color selection control. If more input controls were needed, they would appear in this part of
the script, on separate lines. This input control takes a number corresponding to the color
selected and places it in a variable called RGBtint.
All input controls place the result of the input into a variable, so that it can be used later on
in the script code.
input RGBtint, “Tint Color”, color, 0,0,0,0;
The next line shows where the actual script code begins. Every line that follows it is script
code:
code
The remaining lines are the code required to take the selected color and apply it to the video
by changing the colors in individual pixels of video. The final line, which begins with the
word
channelFill, is the one that actually applies the selected color.
float offset0[ 3], offset128[ 3] ;
yuvcolor yuvtint;
yuvtint = RGBtint;
yuvtint += 128;
offset128[ 1] = 128;
offset128[ 2] = 128;
colorTransform (Src1, Dest, RGBtoYUV, offset0, offset128);
channelFill(Dest, -1, -1, yuvtint.u, yuvtint.v);
ColorTransform (Dest, Dest,YUVtoRGB, offset128, offset0);
Page view 275
1 2 ... 271 272 273 274 275 276 277 278 279 280 281 ... 375 376

Comments to this Manuals

No comments