@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VideoBlackFailoverSettings extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
VideoBlackFailoverSettings() |
Modifier and Type | Method and Description |
---|---|
VideoBlackFailoverSettings |
clone() |
boolean |
equals(Object obj) |
Double |
getBlackDetectThreshold()
A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'.
|
Integer |
getVideoBlackThresholdMsec()
The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlackDetectThreshold(Double blackDetectThreshold)
A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'.
|
void |
setVideoBlackThresholdMsec(Integer videoBlackThresholdMsec)
The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs.
|
String |
toString()
Returns a string representation of this object.
|
VideoBlackFailoverSettings |
withBlackDetectThreshold(Double blackDetectThreshold)
A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'.
|
VideoBlackFailoverSettings |
withVideoBlackThresholdMsec(Integer videoBlackThresholdMsec)
The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs.
|
public void setBlackDetectThreshold(Double blackDetectThreshold)
blackDetectThreshold
- A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the
input to be considered black, every pixel in a frame must be below this threshold. The threshold is
calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black).
Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color
depth: (1023*0.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1
in an 8-bit color depth: (255*0.1=25.5), which means a pixel value of 25 or less is 'black'. The range is
0.0 to 1.0, with any number of decimal places.public Double getBlackDetectThreshold()
public VideoBlackFailoverSettings withBlackDetectThreshold(Double blackDetectThreshold)
blackDetectThreshold
- A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the
input to be considered black, every pixel in a frame must be below this threshold. The threshold is
calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black).
Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color
depth: (1023*0.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1
in an 8-bit color depth: (255*0.1=25.5), which means a pixel value of 25 or less is 'black'. The range is
0.0 to 1.0, with any number of decimal places.public void setVideoBlackThresholdMsec(Integer videoBlackThresholdMsec)
videoBlackThresholdMsec
- The amount of time (in milliseconds) that the active input must be black before automatic input failover
occurs.public Integer getVideoBlackThresholdMsec()
public VideoBlackFailoverSettings withVideoBlackThresholdMsec(Integer videoBlackThresholdMsec)
videoBlackThresholdMsec
- The amount of time (in milliseconds) that the active input must be black before automatic input failover
occurs.public String toString()
toString
in class Object
Object.toString()
public VideoBlackFailoverSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.