mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
effectv: Fix processing on big endian architectures
This commit is contained in:
parent
c17134c6de
commit
f981bec99d
8 changed files with 76 additions and 18 deletions
|
@ -69,17 +69,25 @@ enum
|
|||
#define DEFAULT_DUSTS TRUE
|
||||
|
||||
static GstStaticPadTemplate gst_agingtv_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_agingtv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR)
|
||||
#endif
|
||||
);
|
||||
|
||||
GST_BOILERPLATE (GstAgingTV, gst_agingtv, GstVideoFilter,
|
||||
|
|
|
@ -51,17 +51,25 @@
|
|||
GST_BOILERPLATE (GstEdgeTV, gst_edgetv, GstVideoFilter, GST_TYPE_VIDEO_FILTER);
|
||||
|
||||
static GstStaticPadTemplate gst_edgetv_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR ";" GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_edgetv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR ";" GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -101,14 +101,22 @@ static GstStaticPadTemplate gst_optv_src_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR "; " GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_optv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR "; " GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static void
|
||||
|
|
|
@ -69,14 +69,16 @@ static GstStaticPadTemplate gst_quarktv_src_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR ";"
|
||||
GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_quarktv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR ";"
|
||||
GST_VIDEO_CAPS_BGRx "; " GST_VIDEO_CAPS_RGBx)
|
||||
);
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -142,14 +142,22 @@ static GstStaticPadTemplate gst_radioactv_src_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_radioactv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR)
|
||||
#endif
|
||||
);
|
||||
|
||||
static void
|
||||
|
|
|
@ -79,17 +79,25 @@ enum
|
|||
GST_BOILERPLATE (GstRevTV, gst_revtv, GstVideoFilter, GST_TYPE_VIDEO_FILTER);
|
||||
|
||||
static GstStaticPadTemplate gst_revtv_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR ";" GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_revtv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" GST_VIDEO_CAPS_RGBx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xBGR ";" GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -60,14 +60,22 @@ static GstStaticPadTemplate gst_shagadelictv_src_template =
|
|||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_shagadelictv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB)
|
||||
#endif
|
||||
);
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -57,17 +57,25 @@ enum
|
|||
};
|
||||
|
||||
static GstStaticPadTemplate gst_vertigotv_src_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_BGRx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR)
|
||||
#endif
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_vertigotv_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx)
|
||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_BGRx)
|
||||
#else
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR)
|
||||
#endif
|
||||
);
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue