org.freedesktop.gstreamer.gst.DebugGraphDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gst Show documentation
Show all versions of gst Show documentation
Java language bindings for Gst, generated with Java-GI
/* Java-GI - Java language bindings for GObject-Introspection-based libraries
* Copyright (C) 2022-2023 Jan-Willem Harmannij
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see .
*/
/* This file has been generated with Java-GI.
* Do not edit this file directly!
* Visit https://jwharm.github.io/java-gi for more information.
*/
package org.freedesktop.gstreamer.gst;
import io.github.jwharm.javagi.gobject.*;
import io.github.jwharm.javagi.gobject.types.*;
import io.github.jwharm.javagi.base.*;
import io.github.jwharm.javagi.interop.*;
import java.lang.foreign.*;
import java.lang.invoke.*;
import org.jetbrains.annotations.*;
/**
* Available details for pipeline graphs produced by GST_DEBUG_BIN_TO_DOT_FILE()
* and GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS().
*/
public class DebugGraphDetails extends io.github.jwharm.javagi.base.Bitfield {
/**
* Get the GType of the GstDebugGraphDetails class.
* @return the GType
*/
public static org.gnome.glib.Type getType() {
return Interop.getType("gst_debug_graph_details_get_type");
}
/**
* show caps-name on edges
*/
public static final DebugGraphDetails MEDIA_TYPE = new DebugGraphDetails(1);
/**
* show caps-details on edges
*/
public static final DebugGraphDetails CAPS_DETAILS = new DebugGraphDetails(2);
/**
* show modified parameters on
* elements
*/
public static final DebugGraphDetails NON_DEFAULT_PARAMS = new DebugGraphDetails(4);
/**
* show element states
*/
public static final DebugGraphDetails STATES = new DebugGraphDetails(8);
/**
* show full element parameter values even
* if they are very long
*/
public static final DebugGraphDetails FULL_PARAMS = new DebugGraphDetails(16);
/**
* show all the typical details that one might want
*/
public static final DebugGraphDetails ALL = new DebugGraphDetails(15);
/**
* show all details regardless of how large or
* verbose they make the resulting output
*/
public static final DebugGraphDetails VERBOSE = new DebugGraphDetails(-1);
/**
* Create a new DebugGraphDetails with the provided value
*/
public DebugGraphDetails(int value) {
super(value);
}
/**
* Combine (bitwise OR) operation
* @param masks one or more values to combine with
* @return the combined value by calculating {@code this | mask}
*/
public DebugGraphDetails or(DebugGraphDetails... masks) {
int value = this.getValue();
for (DebugGraphDetails arg : masks) {
value |= arg.getValue();
}
return new DebugGraphDetails(value);
}
/**
* Combine (bitwise OR) operation
* @param mask the first value to combine
* @param masks the other values to combine
* @return the combined value by calculating {@code mask | masks[0] | masks[1] | ...}
*/
public static DebugGraphDetails combined(DebugGraphDetails mask, DebugGraphDetails... masks) {
int value = mask.getValue();
for (DebugGraphDetails arg : masks) {
value |= arg.getValue();
}
return new DebugGraphDetails(value);
}
}