Well, if you are using a QTOpenGLTextureContext just make sure to pass
in the plugins pixel format and CGLContextObj in the QTOpenGLContexts
initializer/create function
You can get the pixel format by calling CGLPixelFormatObj pixelFormat
= CGLGetPixelFormat([context CGLContextObj]);
For leak, I dont know, we'd probably need to see some code. The
colorspace thing only was of real performance benefit to me when
passing through chains of Image Units or QC Filters for effects.
Having everything pre-set to a specific colorspace negated the need
for conversions behind my back from Quartz or Core Image at every
step. It made a huge difference, but only really when mixing multiple
videos.
On Apr 22, 2009, at 4:50 AM, Fabrice Pipart wrote:
On Apr 21, 2009, at 7:54 PM, vade wrote:
Are you making your QTVisualContext shared with the context that
the QCPlugin provides? This ensures that the QTvisualContext and
your CGLContext are shared, so textures/resources are able to move
between contexts quickly.
I am not sure how to do this...
Can you please give me a way to check this
I think the 2 OpenGL contexts are just the same, I don't create any
new one in the Plugin.
Otherwise how do I retrieve the plugin context in my app to have the
two contexts shared?
As for the leak, you need to make sure you call
QTVisualContextTask() to service quicktime, or you will see that
leak.
I do !
Each time I render a frame.
Another issue I had with getting QTVisualContext to work well
within my app was colorspace conversion. It looks like you are
assuming ARGB or BGRA, when you may be getting other formats. You
can add hints to your QTVisualContextCreate to add input/output and
working color spaces, but thats a nuanced topic, and possible off
topic for the QC list. I did see some improvement tuning those
values.
Do you think that could lead to the dramatic performance drop I
experience?
Best regards
Fabrice Pipart
www.easyshadow.com
EasyMediaOnline
Digital Signage Software
AIM : fabricepipart
Skype: fabrice.pipart
Tel. (877)-ESIGN-4U ext 69
Int. +1-(877)-374-4648
Fax +1-(877) 298-5108
_______________________________________________
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]