-
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
1 parent
361bf40
commit 1628303
Showing
14 changed files
with
600 additions
and
25 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
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 |
---|---|---|
@@ -1,37 +1,59 @@ | ||
using Crestron.SimplSharpPro.DM.Streaming; | ||
using NvxEpi.Abstractions; | ||
using NvxEpi.Services.Feedback; | ||
using PepperDash.Essentials.Core; | ||
|
||
namespace NvxEpi.Features.Hdmi.Input | ||
{ | ||
public class HdmiInput1 : HdmiInputBase | ||
{ | ||
private const uint InputNumber = 1; | ||
|
||
public HdmiInput1(INvxDeviceWithHardware device) | ||
: base(device) | ||
{ | ||
|
||
var capability = (device.Hardware is DmNvxE760x) | ||
? DmHdcpCapabilityValueFeedback.GetFeedback(device.Hardware) | ||
: Hdmi1HdcpCapabilityValueFeedback.GetFeedback(device.Hardware); | ||
: HdmiHdcpCapabilityValueFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_capability.Add(1, capability); | ||
_capability.Add(InputNumber, capability); | ||
|
||
var sync = (device.Hardware is DmNvxE760x) | ||
? DmSyncDetectedFeedback.GetFeedback(device.Hardware) | ||
: Hdmi1SyncDetectedFeedback.GetFeedback(device.Hardware); | ||
: HdmiSyncDetectedFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_sync.Add(InputNumber, sync); | ||
|
||
var inputResolution = HdmiCurrentResolutionFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_currentResolution.Add(InputNumber, inputResolution); | ||
|
||
var capabilityString = HdmiHdcpCapabilityFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
var audioChannels = HdmiAudioChannelsFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_audioChannels.Add(InputNumber, audioChannels); | ||
|
||
var audioFormat = HdmiAudioFormatFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_audioFormat.Add(InputNumber, audioFormat); | ||
|
||
var colorSpace = HdmiColorSpaceFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_sync.Add(1, sync); | ||
_colorSpace.Add(InputNumber, colorSpace); | ||
|
||
//TODO | ||
var inputResolution = new StringFeedback(() => string.Empty); | ||
_currentResolution.Add(1, inputResolution); | ||
var hdrType = HdmiHdrTypeFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
var capabilityString = Hdmi1HdcpCapabilityFeedback.GetFeedback(device.Hardware); | ||
_hdrType.Add(InputNumber, hdrType); | ||
|
||
Feedbacks.Add(capability); | ||
Feedbacks.Add(sync); | ||
Feedbacks.Add(inputResolution); | ||
Feedbacks.Add(capabilityString); | ||
Feedbacks.Add(audioChannels); | ||
Feedbacks.Add(audioFormat); | ||
Feedbacks.Add(colorSpace); | ||
Feedbacks.Add(hdrType); | ||
} | ||
} | ||
} |
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,29 +1,61 @@ | ||
using NvxEpi.Abstractions; | ||
using Crestron.SimplSharpPro.DM; | ||
using Crestron.SimplSharpPro.DM.Streaming; | ||
using NvxEpi.Abstractions; | ||
using NvxEpi.Services.Feedback; | ||
using PepperDash.Essentials.Core; | ||
|
||
namespace NvxEpi.Features.Hdmi.Input | ||
{ | ||
public class HdmiInput2 : HdmiInput1 | ||
{ | ||
public HdmiInput2(INvxDeviceWithHardware device) : base(device) | ||
private const uint InputNumber = 2; | ||
|
||
public HdmiInput2(INvxDeviceWithHardware device) | ||
: base(device) | ||
{ | ||
var capability = Hdmi2HdcpCapabilityValueFeedback.GetFeedback(device.Hardware); | ||
_capability.Add(2, capability); | ||
|
||
var sync = Hdmi2SyncDetectedFeedback.GetFeedback(device.Hardware); | ||
_sync.Add(2, sync); | ||
var capability = (device.Hardware is DmNvxE760x) | ||
? DmHdcpCapabilityValueFeedback.GetFeedback(device.Hardware) | ||
: HdmiHdcpCapabilityValueFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_capability.Add(InputNumber, capability); | ||
|
||
var sync = (device.Hardware is DmNvxE760x) | ||
? DmSyncDetectedFeedback.GetFeedback(device.Hardware) | ||
: HdmiSyncDetectedFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_sync.Add(InputNumber, sync); | ||
|
||
var inputResolution = HdmiCurrentResolutionFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_currentResolution.Add(InputNumber, inputResolution); | ||
|
||
var capabilityString = HdmiHdcpCapabilityFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
var audioChannels = HdmiAudioChannelsFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_audioChannels.Add(InputNumber, audioChannels); | ||
|
||
var audioFormat = HdmiAudioFormatFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_audioFormat.Add(InputNumber, audioFormat); | ||
|
||
var colorSpace = HdmiColorSpaceFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
_colorSpace.Add(InputNumber, colorSpace); | ||
|
||
//TODO | ||
var inputResolution = new StringFeedback(() => string.Empty); | ||
_currentResolution.Add(2, inputResolution); | ||
var hdrType = HdmiHdrTypeFeedback.GetFeedback(device.Hardware, InputNumber); | ||
|
||
var capabilityString = Hdmi2HdcpCapabilityFeedback.GetFeedback(device.Hardware); | ||
_hdrType.Add(InputNumber, hdrType); | ||
|
||
Feedbacks.Add(capability); | ||
Feedbacks.Add(sync); | ||
Feedbacks.Add(inputResolution); | ||
Feedbacks.Add(capabilityString); | ||
Feedbacks.Add(audioChannels); | ||
Feedbacks.Add(audioFormat); | ||
Feedbacks.Add(colorSpace); | ||
Feedbacks.Add(hdrType); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.