multicam: show highlight around selected source

This commit is contained in:
itsmattkc
2022-09-27 18:22:47 -07:00
parent c0d8d24c47
commit 80a900d105
10 changed files with 207 additions and 31 deletions
+7
View File
@@ -31,6 +31,11 @@ public:
void SetMonitorMode(bool e) { monitor_ = e; }
int GetCurrentSource() const
{
return GetStandardValue(kCurrentInput).toInt();
}
int GetSourceCount() const
{
return InputArraySize(kSourcesInput);
@@ -42,6 +47,8 @@ public:
return GetRowsAndColumns(GetSourceCount(), rows, cols);
}
static void IndexToRowCols(int index, int total_rows, int total_cols, int *row, int *col);
static int RowsColsToIndex(int row, int col, int total_rows, int total_cols)
{
return col + row * total_cols;