Esempio n. 1
0
 public MediaStill(IBMDSwitcherStills stills, uint index)
 {
     BMDSwitcherHash hash;
     stills.GetHash(index, out hash);
     this.Hash = String.Join("", BitConverter.ToString(hash.data).Split('-'));
     stills.GetName(index, out this.Name);
     this.Slot = (int)index + 1;
 }
Esempio n. 2
0
        public MediaStill(IBMDSwitcherStills stills, uint index)
        {
            BMDSwitcherHash hash;

            stills.GetHash(index, out hash);
            this.Hash = String.Join("", BitConverter.ToString(hash.data).Split('-'));
            stills.GetName(index, out this.Name);
            this.Slot = (int)index + 1;
        }
        private static MediaPoolState.StillState BuildStill(IBMDSwitcherStills props, uint index)
        {
            var state = new MediaPoolState.StillState();

            props.IsValid(index, out int valid);
            state.IsUsed = valid != 0;
            props.GetName(index, out string name);
            state.Filename = name;
            props.GetHash(index, out BMDSwitcherHash hash);
            state.Hash = hash.data;

            return(state);
        }