GstStaticCaps的初始化

struct _GstStaticCaps {
  /*< public >*/
  GstCaps *caps;
  const char *string;orm

  /*< private >*/
  gpointer _gst_reserved[GST_PADDING];
};string

#define GST_STATIC_CAPS(string) \
{ \
  /* caps */ NULL, \
  /* string */ string, \
  GST_PADDING_INIT \
}io

 

一個例子form

GstStaticCaps scaps = GST_STATIC_CAPS ("audio/x-raw, "channel

  "format = (string) " GST_AUDIO_NE (S16) ", "
  "layout = (string) interleaved, "
  "channels = (int) 1, " "rate = (int) [ 1, MAX ]")
);
layout

相關文章
相關標籤/搜索