static GstFlowReturn gst_mill_color_transform_ip (GstBaseTransform * btrans, GstBuffer * inbuf) { GstFlowReturn ret = GST_FLOW_OK; GstMillColor *mc; mc = GST_MILL_COLOR (btrans); /* Transform in place */ if (mc->in_rgba) transform_rgb (GST_BUFFER_DATA (inbuf), GST_BUFFER_SIZE (inbuf)); else transform_bgr (GST_BUFFER_DATA (inbuf), GST_BUFFER_SIZE (inbuf)); return ret; }
static GstFlowReturn gst_alpha_color_transform_ip (GstBaseTransform * btrans, GstBuffer * inbuf) { GstFlowReturn ret = GST_FLOW_OK; GstAlphaColor *alpha; alpha = GST_ALPHA_COLOR (btrans); /* Transform in place */ if (alpha->in_rgba) transform_rgb (GST_BUFFER_DATA (inbuf), GST_BUFFER_SIZE (inbuf)); else transform_bgr (GST_BUFFER_DATA (inbuf), GST_BUFFER_SIZE (inbuf)); return ret; }