forked from mintopia/atemlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leitet
committed
Oct 7, 2020
1 parent
f3ac526
commit 2e27092
Showing
7 changed files
with
112 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ public static void Version() | |
AssemblyTitleAttribute title = (AssemblyTitleAttribute)Assembly.GetEntryAssembly().GetCustomAttribute(typeof(AssemblyTitleAttribute)); | ||
Console.Out.WriteLine(String.Format("{0} {1}.{2}.{3}", title.Title, version.Major.ToString(), version.Minor.ToString(), version.Revision.ToString())); | ||
Console.Out.WriteLine("Jessica Smith <[email protected]>"); | ||
Console.Out.WriteLine("Chris Leitet https://github.com/cleitet"); | ||
Console.Out.WriteLine("This software is released under the MIT License"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,45 @@ | ||
using BMDSwitcherAPI; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SwitcherLib | ||
{ | ||
public class MediaStill | ||
{ | ||
public String Name; | ||
public String Hash; | ||
public int Slot; | ||
public int MediaPlayer; | ||
|
||
public MediaStill() | ||
{ | ||
} | ||
|
||
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; | ||
} | ||
|
||
public String ToCSV() | ||
{ | ||
return String.Join(",", this.Slot.ToString(), "\"" + this.Name + "\"", "\"" + this.Hash + "\"", this.MediaPlayer.ToString()); | ||
} | ||
} | ||
} | ||
using BMDSwitcherAPI; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SwitcherLib | ||
{ | ||
|
||
public class MediaSlot | ||
{ | ||
public String Type; | ||
public String Name; | ||
public String Hash; | ||
public int Slot; | ||
public int MediaPlayer; | ||
|
||
public MediaSlot(IBMDSwitcherClip clip, uint index) | ||
{ | ||
BMDSwitcherHash hash; | ||
// Only getting the hash of the first frame | ||
clip.GetFrameHash(0, out hash); | ||
this.Hash = String.Join("", BitConverter.ToString(hash.data).Split('-')); | ||
clip.GetName(out this.Name); | ||
this.Slot = (int)index + 1; | ||
this.Type = "Clip"; | ||
} | ||
|
||
public MediaSlot(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; | ||
this.Type = "Still"; | ||
} | ||
|
||
public String ToCSV() | ||
{ | ||
return String.Join(",", this.Slot.ToString(), "\"" + this.Type + "\"", "\"" + this.Name + "\"", "\"" + this.Hash + "\"", this.MediaPlayer.ToString()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters