博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
GstStaticCaps的初始化
阅读量:7164 次
发布时间:2019-06-29

本文共 501 字,大约阅读时间需要 1 分钟。

struct _GstStaticCaps {

  /*< public >*/
  GstCaps *caps;
  const char *string;

  /*< private >*/

  gpointer _gst_reserved[GST_PADDING];
};

#define GST_STATIC_CAPS(string) \

{ \
  /* caps */ NULL, \
  /* string */ string, \
  GST_PADDING_INIT \
}

 

一个例子

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

  "format = (string) " GST_AUDIO_NE (S16) ", "

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

 

转载于:https://www.cnblogs.com/Dream-Chaser/p/10964287.html

你可能感兴趣的文章