mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
gstreamer: Use correct 10-bit format on big endian systems
This commit is contained in:
parent
90fd191392
commit
65eb56e7ad
1 changed files with 7 additions and 1 deletions
|
@ -126,11 +126,17 @@ enum {
|
|||
#define PROP_TARGET_SOCKET_DEFAULT -1
|
||||
#define PROP_PARAMETERS_STRING_DEFAULT NULL
|
||||
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
#define FORMAT_I420_10 "I420_10LE"
|
||||
#else
|
||||
#define FORMAT_I420_10 "I420_10BE"
|
||||
#endif
|
||||
|
||||
/* pad templates */
|
||||
static GstStaticPadTemplate gst_svtav1enc_sink_pad_template = GST_STATIC_PAD_TEMPLATE(
|
||||
"sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS("video/x-raw, "
|
||||
"format = (string) {I420, I420_10LE}, "
|
||||
"format = (string) {I420, " FORMAT_I420_10 "}, "
|
||||
"width = (int) [64, 3840], "
|
||||
"height = (int) [64, 2160], "
|
||||
"framerate = (fraction) [0, MAX]"));
|
||||
|
|
Loading…
Reference in a new issue