Package org.freedesktop.gstreamer.gst
Enum Class StreamError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<StreamError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum StreamError
extends Enum<StreamError>
implements Enumeration
Stream errors are for anything related to the stream being processed:
format errors, media type errors, ...
They're typically used by decoders, demuxers, converters, ...
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionused when there's no codec to handle the stream's type.used when decoding fails.used when the stream is encrypted and can't be decrypted because this is not supported by the element.used when the stream is encrypted and can't be decrypted because no suitable key is available.used when demuxing fails.used when encoding fails.a general error which doesn't fit in any other category.used when the stream is of the wrong format (for example, wrong caps).used when muxing fails.use this when you do not want to implement this functionality yet.the number of stream error types.do not use this except as a placeholder for deciding where to go while developing code.used when the element doesn't know the stream's type.used when the element doesn't handle this type of stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the StreamError classint
getValue()
Get the numeric value of this enumstatic StreamError
of
(int value) Create a new StreamError for the provided valuestatic Quark
quark()
static StreamError
Returns the enum constant of this class with the specified name.static StreamError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. -
TOO_LAZY
do not use this except as a placeholder for deciding where to go while developing code. -
NOT_IMPLEMENTED
use this when you do not want to implement this functionality yet. -
TYPE_NOT_FOUND
used when the element doesn't know the stream's type. -
WRONG_TYPE
used when the element doesn't handle this type of stream. -
CODEC_NOT_FOUND
used when there's no codec to handle the stream's type. -
DECODE
used when decoding fails. -
ENCODE
used when encoding fails. -
DEMUX
used when demuxing fails. -
MUX
used when muxing fails. -
FORMAT
used when the stream is of the wrong format (for example, wrong caps). -
DECRYPT
used when the stream is encrypted and can't be decrypted because this is not supported by the element. -
DECRYPT_NOKEY
used when the stream is encrypted and can't be decrypted because no suitable key is available. -
NUM_ERRORS
the number of stream error types.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new StreamError for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
quark
-