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: CIVideoDemoGL sample



Sorry, but I seem to have hit a gmail shortcut when I didn't want to.
Here's the complete message.

Hi all,

I'm trying to create a movie view based on the CIVideoDemoGL sample.
My goal is to be able to include the movie's time code within the
movie view.

Now, while toying around with the sample code I noticed that it uses
around 50% of both my CPUs while Quicktime uses about 10% when playing
a movie. I deleted the effect filter from the sample but CPU usage
remains high. I had a look at OpenGL profiler but couldn't find any
proof that the GPU is actually used when running the sample app.

I also tried specifying that the GPU be used according to the
technical Q&A 1416:

ciContext = [[CIContext contextWithCGLContext:(CGLContextObj)[[self
openGLContext] CGLContextObj]
        pixelFormat:(CGLPixelFormatObj)[[self pixelFormat] CGLPixelFormatObj]
        options:[NSDictionary dictionaryWithObjectsAndKeys:
        (id)colorSpace,kCIContextOutputColorSpace,
        (id)colorSpace,kCIContextWorkingColorSpace,
        [NSNumber numberWithBool:NO],@"kCIContextUseSoftwareRenderer",nil
]] retain];

But as the sample creates its CIContext from an OpenGL context I don't
know if that will work.

Oh and I am using an ATI Radeon 9800 Pro.

So, any hints on how to have the GPU do some work or would you suppose
that it is actually used?

Thanks

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

This email sent to email@hidden

References: 
 >CIVideoDemoGL sample (From: Christian Schneider <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.