Mailing Lists: Apple Mailing Lists

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

Intel-only issue with QCRenderer -initWithOpenGLContext:::



I have an ObjC app that displays live video into an NSOpenGLContext using a simple QC Video Input / Billboard composition. It all works quite well.

On PPC machines (G5, 10.4.6, Xcode 2.2.1), this line works flawlessly:

    renderer = [[QCRenderer alloc] initWithOpenGLContext:_glContext
                                             pixelFormat:_glPixelFormat
                                                    file:path];

But on Intel (with either Intel native code, or Rosetta'd PPC code), I get this:

*** Message from <QCVideoInput = 0x13A49FB0 "VideoInput_1">:
    Sequence grabber settings restoration failed (error -2004)

The code continues, but the resulting video looks "ghostly" and greatly overexposed, almost as if it were inverted, but not quite.

The parameters to the call all seem legit, as far as I can tell:

(gdb) p renderer
$1 = (class QCRenderer *) 0x13a5fd80
(gdb) p _glContext
$1 = (class NSOpenGLContext *) 0x13a590e0
(gdb) p _glPixelFormat
$2 = (class NSOpenGLPixelFormat *) 0x13a5ddf0
(gdb) p path
$3 = (class NSString *) 0x13a4b530
(gdb) po path
/Users/Roland/Video/build/Development/Video.app/Contents/Resources/ LiveVideo.qtz


Can anyone offer possible causes for this? Again, it works fine on PPC. But even if I run a PPC version on Intel via Rosetta, I still get the same error message and video problem. And, I can run the LiveVideo.qtz composition directly in QC and it works fine. I've tried this with both the internal iSight and an external one, with no difference.

Roland

_______________________________________________
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


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.