]> git.sesse.net Git - vlc/blob - modules/video_filter/atmo/AtmoChannelAssignment.h
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / video_filter / atmo / AtmoChannelAssignment.h
1 #ifndef _AtmoChannelAssignment_
2 #define _AtmoChannelAssignment_
3
4 #include "AtmoDefs.h"
5
6 class CAtmoChannelAssignment
7 {
8 protected:
9     // name of the mapping (for menus and lists)
10     char *m_psz_name;
11     // count of channels starting with 0 ... X for which a mapping exists!
12     int m_num_channels;
13     // array were each destination channel - has an index to the source zone to use
14     // or -1 to show black output on this channel
15     int *m_mappings;
16
17 public:
18     CAtmoChannelAssignment(void);
19     CAtmoChannelAssignment(CAtmoChannelAssignment &source);
20     ~CAtmoChannelAssignment(void);
21
22 public:
23     // internal used to mark a not modifyable definition
24     // with a default assignment!
25     ATMO_BOOL system;
26     char *getName() { return(m_psz_name); }
27     void setName(const char *pszNewName);
28
29     void setSize(int numChannels);
30     int getSize() { return m_num_channels; }
31     int *getMapArrayClone(int &count);
32     int getZoneIndex(int channel);
33     void setZoneIndex(int channel, int zone);
34 };
35
36 #endif