
com.glookast.commons.capture.info.PixelFormat Maven / Gradle / Ivy
package com.glookast.commons.capture.info;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for PixelFormat.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="PixelFormat">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="UNKNOWN"/>
* <enumeration value="UYVY"/>
* <enumeration value="V210"/>
* <enumeration value="RGB24"/>
* </restriction>
* </simpleType>
*
*/
@XmlType(name = "PixelFormat", namespace = "http://info.capture.commons.glookast.com")
@XmlEnum
public enum PixelFormat
{
UNKNOWN("UNKNOWN"),
UYVY("UYVY"),
@XmlEnumValue("V210")
V_210("V210"),
@XmlEnumValue("RGB24")
RGB_24("RGB24");
private final String value;
PixelFormat(String v)
{
value = v;
}
public String value()
{
return value;
}
public static PixelFormat fromValue(String v)
{
for (PixelFormat c : PixelFormat.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy