1 | initial version |
As of 4.0.1 you can set CAP_PROP_CHANNEL property. This is the switch case for the property:
void videoInput::setPhyCon(int id, int conn){
switch(conn){
case 0:
VDList[id]->connection = PhysConn_Video_Composite;
break;
case 1:
VDList[id]->connection = PhysConn_Video_SVideo;
break;
case 2:
VDList[id]->connection = PhysConn_Video_Tuner;
break;
case 3:
VDList[id]->connection = PhysConn_Video_USB;
break;
case 4:
VDList[id]->connection = PhysConn_Video_1394;
break;
default:
return; //if it is not these types don't set crossbar
break;
}
VDList[id]->storeConn = conn;
VDList[id]->useCrossbar = true;
}
https://github.com/opencv/opencv/pull/12138/files/283d1c3dc4572e6f360e679dbfe3222a04f8a285 Note: CAP_CROSSBAR_INPIN_TYPE has been changed to CAP_PROP_CHANNEL