Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug with disabling color correction within a movie player patch - anyone else notice this?



Please file a bug at http://developer.apple.com/bugreporter/

Thanks
Troy

On Feb 6, 2008, at 8:17 PM, vade wrote:

Hello

I noticed something rather odd, which may explain my confusion with DOD/ROI and sampler space.

My system Mac OS X 10.5.1, Intel MBP 2.33 with QT 7.3, I have the following behaviour within QC.

Step 1:

Create a Core Image Kernel with the following code:



kernel vec4 v001AlphaBlend(sampler image1, sampler image2, sampler mask)
{
// first we find out which image extent is the largest - we must do this since CIKL does not
// normalize sampler coordinates for us like GLSL does.
// We need to know which sampler contained that largest size..

vec2 maxSize = max(samplerSize(image1), samplerSize(image2));
maxSize = max(maxSize, samplerSize(mask));

// sample based on normalized coordinates and the image samplers native dimensions

vec4 img1 = sample(image1, samplerCoord(image1)/maxSize * samplerSize(image1));
vec4 img2 = sample(image2, samplerCoord(image2)/maxSize * samplerSize(image2));
vec4 msk = sample(mask, samplerCoord(mask)/maxSize * samplerSize(mask));

// mix based on masks alpha value
return mix(img1, img2, msk.a);
//return img1;
}


Step 2:
Pass three movies into the input, preferably those with different sizes, for me, my mask movie, which contains an alpha channel, is smaller than image input 1 and 2, and connect to a billboard.


Step 3:
Now, select the smaller movies playback patch. Enable/disable color correction. With my system, Disabling Color Correction seems to supply different coordinates to my CIKernel. The output is no longer within the same place when color correction is enabled:


No CC:
<NoCC.jpg>

With CC:
<WithCC.jpg>


Can anyone verify this? Is my Kernel code incorrect? ive been going crazy and then noticed I had disable CC checked on my mask movie, and then things started to make sense...


Thanks, _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Possible bug with disabling color correction within a movie player patch - anyone else notice this? (From: vade <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.