org.gstreamer.FlowReturn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gstreamer-java Show documentation
Show all versions of gstreamer-java Show documentation
Java binding for the Gstreamer framework (0.10 compatible)
/*
* Copyright (C) 2007 Wayne Meissner
* Copyright (C) 1999,2000 Erik Walthinsen
* 2000 Wim Taymans
*
* This file is part of gstreamer-java.
*
* This code is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* version 3 for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with this work. If not, see .
*/
package org.gstreamer;
import org.gstreamer.lowlevel.IntegerEnum;
import org.gstreamer.lowlevel.annotations.DefaultEnumValue;
/**
* The result of passing data to a pad.
*/
public enum FlowReturn implements IntegerEnum {
/** Resend buffer, possibly with new caps (not send yet). */
RESEND(1),
/** Data passing was ok. */
OK(0),
/** {@link Pad} is not linked. */
NOT_LINKED(-1),
/** {@link Pad} is in wrong state. */
WRONG_STATE(-2),
/** Did not expect anything, like after EOS. */
UNEXPECTED(-3),
/** {@link Pad} is in not negotiated. */
NOT_NEGOTIATED(-4),
/**
* Some (fatal) error occured. Element generating this error should post
* an error message with more details.
*/
ERROR(-5),
/** This operation is not supported. */
NOT_SUPPORTED(-6),
/** The default enum value used when no other value matches the native value */
@DefaultEnumValue
__UNKNOWN_NATIVE_VALUE(~0);
FlowReturn(int value) {
this.value = value;
}
/**
* Gets the integer value of the enum.
* @return The integer value for this enum.
*/
public int intValue() {
return value;
}
private int value;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy