Is there a way to access the virtual data port for Mode, on CIMixOver within the QC application?

First things first, this is a private CoreImage Filter, so it's unrelated to QC (qc just creates a CI* patch for every CI Filter it finds, private or not). Because it's private, there's no documentation for it, and you shouldn't depend on it, blah blah blah.

However, creating the filter allows for some interrogation. Using the following objc code:

        CIFilter *cimixover = [CIFilter filterWithName:@"CIMixOver"];
        NSLog(@"mixover: %@", cimixover);
        NSLog(@"attr: %@", [cimixover attributes]);
        NSLog(@"input: %@", [cimixover inputKeys]);


Produces the following output:

2010-01-14 09:33:48.185 ci[20991:10b] mixover: {CIMixOver {
    inputBackgroundImage = <null>;
    inputFilteredImage = <null>;
    inputImage = <null>;
    inputMode = <null>;
}}
2010-01-14 09:33:48.192 ci[20991:10b] attr: {
    CIAttributeDescription = CIMixOver;
    CIAttributeFilterCategories =     (
        CICategoryCompositeOperation,
        CICategoryVideo,
        CICategoryStillImage,
        CICategoryInterlaced,
        CICategoryNonSquarePixels,
        CICategoryBuiltIn,
        CICategoryApplePrivate
    );
    CIAttributeFilterDisplayName = CIMixOver;
    CIAttributeFilterName = CIMixOver;
CIAttributeReferenceDocumentation = http://developer.apple.com/cgi-bin/apple_ref.cgi?apple_ref=//apple_ref/doc/filter/ci/CIMixOver ;
    inputBackgroundImage =     {
        CIAttributeClass = CIImage;
CIAttributeDescription = "The image to use as a background image.";
        CIAttributeDisplayName = "Background Image";
        CIUIParameterSet = CIUISetBasic;
    };
    inputFilteredImage =     {
        CIAttributeClass = CIImage;
        CIAttributeDisplayName = FilteredImage;
        CIUIParameterSet = CIUISetBasic;
    };
    inputImage =     {
        CIAttributeClass = CIImage;
CIAttributeDescription = "The image to use as an input image. For filters that also use a background image, this is the foreground image.";
        CIAttributeDisplayName = Image;
        CIUIParameterSet = CIUISetBasic;
    };
    inputMode =     {
        CIAttributeClass = NSString;
        CIAttributeDefault = over;
        CIAttributeDisplayName = Mode;
        CIUIParameterSet = CIUISetBasic;

so inputMode looks like it's expecting a string (with @"over" being the default?). I'm not sure what other strings are allowed, and why QC doesn't just make it a string port (perhaps because strings aren't normally a part of CoreImage filters?), but at least you know a bit more now. ;)

The CIAttributeReferenceDocumentation URL is bogus -- it's the CI filter reference, but QCMixOver isn't included on that page.

--
[ christopher wright ]
[email protected]
http://kineme.net/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]
  • CIMixOver George Toledo
    • Re: CIMixOver Christopher Wright

Reply via email to