GstTypes

GstTypes — various global enums and constants

Synopsis


#include <gst/gst.h>


enum        GstState;
enum        GstStateChangeReturn;
enum        GstRank;


Description

Details

enum GstState

typedef enum {
  GST_STATE_VOID_PENDING        = 0, /* used for GstElement->pending_state when
                                        there is no pending state */
  GST_STATE_NULL                = 1,
  GST_STATE_READY               = 2,
  GST_STATE_PAUSED              = 3,
  GST_STATE_PLAYING             = 4
} GstState;


enum GstStateChangeReturn

typedef enum {
  GST_STATE_CHANGE_FAILURE             = 0,
  GST_STATE_CHANGE_SUCCESS             = 1,
  GST_STATE_CHANGE_ASYNC               = 2,
  GST_STATE_CHANGE_NO_PREROLL          = 3
} GstStateChangeReturn;


enum GstRank

typedef enum {
  GST_RANK_NONE                 = 0,
  GST_RANK_MARGINAL             = 64,
  GST_RANK_SECONDARY            = 128,
  GST_RANK_PRIMARY              = 256
} GstRank;

Element priority ranks. Defines the order in which the autoplugger (or similar rank-picking mechanisms) will choose this element over an alternative one with the same function. The rank is a unsigned integer ranging from 0 (GST_RANK_NONE) to 256 (GST_RANK_PRIMARY). These constants serve as a rough guidiance for defining the rank of a GstPlugin using gst_plugin_feature_set_rank().

GST_RANK_NONE will be chosen last or not at all
GST_RANK_MARGINAL unlikly to be chosen
GST_RANK_SECONDARY likely to be chosen
GST_RANK_PRIMARY will be chosen first