Pad Templates: SRC template: 'src' Availability: Always Capabilities: video/x-h264 framerate: [ 0/1, 2147483647/1 ] width: [ 1, 2147483647 ] height: [ 1, 2147483647 ] stream-format: { (string)avc, (string)byte-stream } alignment: au profile: { (string)high-4:4:4, (string)high-4:2:2, (string)high-10, (string)high, (string)main, (string)baseline, (string)constrained-baseline, (string)high-4:4:4-intra, (string)high-4:2:2-intra, (string)high-10-intra }转换成GstStaticPadTemplate代码
时间: 2024-04-27 21:24:07 浏览: 133
```
static const GstStaticPadTemplate src_template =
GST_STATIC_PAD_TEMPLATE(
"src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS(
"video/x-h264, "
"framerate = (fraction) [0/1, 2147483647/1], "
"width = (int) [1, 2147483647], "
"height = (int) [1, 2147483647], "
"stream-format = (string) avc, byte-stream, "
"alignment = (string) au, "
"profile = (string) high-4:4:4, high-4:2:2, high-10, high, main, baseline, constrained-baseline, high-4:4:4-intra, high-4:2:2-intra, high-10-intra"
)
);
```
阅读全文