Jump to content

Two Input Cop .vfl


ivan

Recommended Posts

hrm. It looks like it cannot be done.

hm, I guess it's been a while since I worote a COP.

Every time I compile, regardless of what I put, I get a generator COP.

How does one make a two input compositing COP with .vfl?

Link to comment
Share on other sites

Hi Ivan,

hmm... I just tried it and it seems to work ok -- though I also don't compile COPs very often, so maybe I'm missing something. Here's what I tried:

A 2-input filter, saved as TestCopFilter.vfl, and compiled with "vcc -l TestCopFilter.otl TestCopFilter.vfl":

#pragma opname TestCopFilter
#pragma oplabel TestCopFilter
#pragma opmininputs 2
#pragma opmaxinputs 2
cop2 TestCopFilter () {
	R = R;
	G = G;
	B = B;
}

And a max-2-input "generator", saved as TestCopGen.vfl, and compiled with "vcc -l TestCopGen.otl TestCopGen.vfl":

#pragma opname TestCopGen
#pragma oplabel TestCopGen
#pragma opmininputs 0
#pragma opmaxinputs 2
cop2 TestCopGen () {
	R = G = 1;
}

It would seem that the only distinguishing aspect of a generator is that its "opminimputs" must be 0 (and the restrictions to what you can do inside that follow from that) -- but I'm just speculating. Anyhoo... seems to work over here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...