LEADTOOLS Support
General
General Questions
Re: Retrieving the interface of the Nth selected video processor
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, November 4, 2010 3:51:59 AM(UTC)
Groups: Registered
Posts: 5
Hi,
I know I can retrieve an interface to the 1st added video processor of a capture control by calling the GetSubObject method with CaptureObject.SelVideoProcessor as the parameter.
But if i have 2 or more filters/processors active at a time how can I retrieve interfaces to the others?
The only way i know of is through GetSubObject, and none of the CaptureObject enum values seem to what I'm looking for.
Am i missing something obvious? Any help would be greatly appreciated. By the way, I'm doing this in C# using mm sdk v17 .
Thanks,
Tony.
#2
Posted
:
Thursday, November 4, 2010 7:16:36 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Tony,
To select the first object, you pass (CaptureObject.SelVideoProcessor) to the function.
To select any other object (index from 1 to N-1), you pass (CaptureObject.SelVideoProcessor + index).
This means if you have 4 processor filters selected into the control, and you want to get the last processor, you pass (CaptureObject.SelVideoProcessor + 3).
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Thursday, November 4, 2010 7:49:29 PM(UTC)
Groups: Registered
Posts: 5
So I really was missing something that simple. Thanks again Maen.
LEADTOOLS Support
General
General Questions
Re: Retrieving the interface of the Nth selected video processor
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.